/*-----------------------------------*/

.bpt-popup-window
{
	border: none;
	background-color: white;
	padding-top:0px;

	overflow:hidden;

	z-index: 150 !important;
	position: absolute !important;

	top: 0px;
	left:0px;

	box-shadow: var(--popup-shadow);
	border-radius: var(--popup-border-radius);
}

.bpt-popup-window #top
{
	padding: 3px;
	height: 32px;
	background-color: #efefef;
	font-family: Arial;
	font-size:16px;
	font-weight: bold;
	color:  #435D68;
	border-bottom: 1px solid var(--border-color);
}

.bpt-popup-window #top img
{
	border: 0px;
	padding: 0px;
	margin: 0px;
}

.bpt-popup-window #content
{
	padding-left: 0px;
	padding:2px;
	overflow:auto;
}


.bpt-popup-window #bottom
{
	padding-top:2px;
	height: 34px;
	background-color: #efefef;
	font-family: Arial;
	font-size:16px;
	color:  #435D68;
	border-top: 1px solid var(--border-color);
}

.popup-mit-suchleiste
{
	border: none;
	background-color: white;
	padding-top:0px;

	overflow:hidden;

	z-index: 150 !important;
	position: absolute !important;

	top: 0px;
	left:0px;

	box-shadow: var(--popup-shadow);
	border-radius: var(--popup-border-radius);
}

.popup-mit-suchleiste #top
{
	padding: 3px;
	height: 58px;
	background-color: #efefef;
	font-family: Arial;
	font-size:16px;
	color:  #435D68;
	border-bottom: 1px solid var(--border-color);
}

.popup-mit-suchleiste #top img
{
	border: 0px;
	padding: 0px;
	margin: 0px;
}

.popup-mit-suchleiste #content
{
	padding-left: 0px;
	padding:2px;
	overflow:auto;
}


.popup-mit-suchleiste #bottom
{
	padding-top:2px;
	height: 34px;
	background-color: #efefef;
	font-family: Arial;
	font-size:16px;
	color:  #435D68;
	border-top: 1px solid var(--border-color);
}

.bs-popup-mit-suchleiste
{
	border: none;
	background-color: white;
	padding-top:0px;

	overflow:hidden;

	z-index: 150 !important;
	position: absolute !important;

	top: 0px;
	left:0px;

	box-shadow: var(--popup-shadow);
	border-radius: var(--popup-border-radius);
}

.bs-popup-mit-suchleiste #top
{
	padding: 3px;
	height: 84px;
	background-color: #efefef;
	font-family: Arial;
	font-size:16px;
	color:  #435D68;
	border-bottom: 1px solid var(--border-color);
}

.bs-popup-mit-suchleiste #top img
{
	border: 0px;
	padding: 0px;
	margin: 0px;
}

.bs-popup-mit-suchleiste #content
{
	padding-left: 0px;
	padding:2px;
	overflow:auto;
}


.bs-popup-mit-suchleiste #bottom
{
	padding-top:2px;
	height: 34px;
	background-color: #efefef;
	font-family: Arial;
	font-size:16px;
	color:  #435D68;
	border-top: 1px solid var(--border-color);
}

.update_teilnehmer_popup
{
	border: none;
	background-color: white;
	padding-top:0px;

	overflow:hidden;

	z-index: 150 !important;
	position: absolute !important;

	top: 0px;
	left:0px;

	box-shadow: var(--popup-shadow);
	border-radius: var(--popup-border-radius);
}

.update_teilnehmer_popup #top
{
	padding: 3px;
	height: 145px;
	background-color: #efefef;
	font-family: Arial;
	font-size:16px;
	color:  #435D68;
	border-bottom: 1px solid var(--border-color);
}

.update_teilnehmer_popup #top img
{
	border: 0px;
	padding: 0px;
	margin: 0px;
}

.update_teilnehmer_popup #content
{
	padding-left: 0px;
	padding:2px;
	overflow:auto;
}


.update_teilnehmer_popup #bottom
{
	padding-top:2px;
	height: 34px;
	background-color: #efefef;
	font-family: Arial;
	font-size:18px;
	color:  #435D68;
	border-top: 1px solid var(--border-color);
}

.keyword-popup-mit-suchleiste
{
	border: none;
	background-color: white;
	padding-top:0px;

        z-index: 150 !important;
	position: absolute !important;

        height: 400px;
        width: 600px;
	box-shadow: var(--popup-shadow);
	border-radius: var(--popup-border-radius);
}

.keyword-popup-mit-suchleiste #top
{
	padding: 3px;
	height: 84px;
	background-color: #efefef;
	font-family: Arial;
	font-size:16px;
	color:  #435D68;
	border-bottom: 1px solid var(--border-color);
}

.keyword-popup-mit-suchleiste #top img
{
	border: 0px;
	padding: 0px;
	margin: 0px;
}

.keyword-popup-mit-suchleiste #content
{
	padding-left: 0px;
	padding:2px;
	overflow:auto;
        height: 302px;
}


.keyword-popup-mit-suchleiste #bottom
{
	padding-top:2px;
	height: 6px;
	background-color: #efefef;
	font-family: Arial;
	font-size:16px;
	color:  #435D68;
	border-top: 1px solid var(--border-color);
}

#color_picker
{
	height: 270px !important;
	width: 420px !important;
	left: 302px !important;
}

#color_picker #content
{
	height: 196px !important; /*108px*/
}

#color_picker .color
{
	border-radius: 4px;
}

.ui-autocomplete {
     z-index: 9999 !important;
}

.ui-state-active,.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited,.ui-state-active:hover {
    color: #666666 !important;
}

/* =========================================
   MODERN POPUP STYLES
   Usage: Add class "modern-popup" to .bpt-popup-window
   ========================================= */

.bpt-popup-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 149;
    /* backdrop-filter: blur(0.5px); */
}

.bpt-popup-window.modern-popup {
    /* Reset & Positioning override */
    position: fixed !important;
    top: 50% !important; /* Wichtig: Überschreibt JS top */
    left: 50% !important; /* Wichtig: Überschreibt JS left */
    transform: translate(-50%, -50%) !important; /* Zentriert exakt */
    z-index: 150 !important;

    /* Modern Look */
    background-color: var(--popup-bg);
    border: none;
    box-shadow: var(--popup-shadow);
    border-radius: var(--popup-border-radius);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Size & Layout */
    min-width: 400px;
    max-width: 90vw;
    width: auto !important;
    /* height: auto !important; /* Wichtig: Überschreibt JS height damit Footer unten bleibt */
    padding-top: 0; /* Reset old padding */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header Section */
.bpt-popup-window.modern-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 20px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: #efefef;
    height: auto; /* Reset old height */
    flex-shrink: 0; /* Verhindert Schrumpfen */
    position: relative;
}

/* Feedback Meldung Style */
.bpt-popup-window.modern-popup .popup-header .popup-feedback {
    display: none; /* Standardmäßig ausgeblendet */
    position: absolute;
    bottom: 4px;   /* Klebt am unteren Rand des Headers */
    left: 20px;    /* Bündig mit dem Titel */
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    white-space: nowrap;
    animation: fadeIn 0.3s ease-in-out;
}

/* Farb-Varianten für Feedback */
.bpt-popup-window.modern-popup .popup-header .popup-feedback.modern-success {
    color: #008800; /* Grün */
}

.bpt-popup-window.modern-popup .popup-header .popup-feedback.modern-error {
    color: #aa0000; /* Rot */
}

.bpt-popup-window.modern-popup .popup-header .popup-feedback.modern-info {
    color: #773b00; /* Braun */
}

.bpt-popup-window.modern-popup .popup-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--header-text-color);
    margin: 0;
}

.bpt-popup-window.modern-popup .popup-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    transition: color 0.2s;
}

.bpt-popup-window.modern-popup .popup-close:hover {
    color: #333;
}

/* Content Section */
.bpt-popup-window.modern-popup .popup-content {
    padding: 18px;
    color: var(--body-text-color);
    font-size: 15px;
    line-height: 1.5;
    overflow-y: auto;
    max-height: 70vh;
    border: none; /* Reset old borders if applied to children */
    height: auto !important; /* Wichtig: Überschreibt JS content height */
    flex-grow: 1; /* Drückt den Footer nach unten, falls Container doch Höhe hat */
}

/* Footer Section */
.bpt-popup-window.modern-popup .popup-footer {
    padding: 10px 18px;
    background-color: #efefef;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    height: auto; /* Reset old height */
    flex-shrink: 0; /* Verhindert Schrumpfen */
}

/* Button Styles for Footer */
.bpt-popup-window.modern-popup button.btn-primary,
.bpt-popup-window.modern-popup button.btn-secondary {
    padding: 7px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out; /* Weicher Übergang */
}

/* Primary Button Style */
.bpt-popup-window.modern-popup button.btn-primary {
    background-color: var(--highlight-color);
    color: white;
}

.bpt-popup-window.modern-popup button.btn-primary:hover {
    background-color: #004494;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Secondary Button Style */
.bpt-popup-window.modern-popup button.btn-secondary {
    background-color: white;
    border-color: #ccc;
    color: #333;
}

.bpt-popup-window.modern-popup button.btn-secondary:hover {
    background-color: #e2e6ea;
    border-color: #adb5bd;
    color: #1a1a1a;
}

/* Specific adjustments for buttons inside Content area to ensure spacing */
.bpt-popup-window.modern-popup .popup-content button.btn-primary,
.bpt-popup-window.modern-popup .popup-content button.btn-secondary {
    /* margin-top: 10px; */
    /* margin-bottom: 10px; */
    /* Optional: falls sie nebeneinander stehen sollen */
    margin-right: 5px;
}

/* Modern Input Style to match Buttons */
.bpt-popup-window.modern-popup input.modern-input {
    padding: 8px 12px; /* Ähnlich wie Button, etwas weniger horizontal */
    font-size: 12px;
    line-height: 1.2;
    color: var(--body-text-color);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ccc; /* Standard Rand */
    border-radius: 4px; /* Gleiche Rundung wie Button */
    box-sizing: border-box; /* Wichtig, damit Padding die Breite nicht sprengt */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    vertical-align: middle; /* Damit es bündig mit dem Button ist */
    height: auto; /* Überschreibt etwaige alte Inline-Styles */
}

/* Placeholder Styling (Der "Empty Text") */
.bpt-popup-window.modern-popup input.modern-input::placeholder {
    color: #a0a0a0;     /* Ein mittleres Grau */
    opacity: 1;         /* Wichtig für Firefox (hat sonst Transparenz) */
    font-style: normal; /* Optional: italic für kursiv */
}

/* Optional: Placeholder sanft ausblenden, wenn man reinklickt */
.bpt-popup-window.modern-popup input.modern-input:focus::placeholder {
    color: transparent;
    transition: color 0.2s ease;
}

/* Focus Effekt für das Input */
.bpt-popup-window.modern-popup input.modern-input:focus {
    color: var(--body-text-color);
    background-color: #fff;
    border-color: var(--highlight-color); /* Nimmt deine Highlight Farbe */
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25); /* Leichter Glow in Highlight Farbe */
}
