/* ══════════════════════════════════════════════════════════════
 *  EXTRA.CSS – Karl Bautechnik Design-Overhaul
 *  Lädt NACH style.css und überschreibt/ergänzt gezielt.
 * ══════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─── */
:root {
    --kb-blau:       #1a5276;
    --kb-blau-hell:  #2980b9;
    --kb-blau-soft:  #d6eaf8;
    --kb-akzent:     #e67e22;
    --kb-akzent-hover: #d35400;
    --kb-grau:       #7f8c8d;
    --kb-grau-hell:  #ecf0f1;
    --kb-grau-border:#dcdde1;
    --kb-weiss:      #ffffff;
    --kb-text:       #2c3e50;
    --kb-text-hell:  #636e72;
    --kb-success:    #27ae60;
    --kb-danger:     #e74c3c;
    --kb-radius:     6px;
    --kb-shadow:     0 2px 8px rgba(0,0,0,0.08);
    --kb-shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --kb-transition: 0.25s ease;
}

/* ─── Basis-Typografie ─── */
body {
    color: var(--kb-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--kb-blau);
    line-height: 1.3;
}

a {
    color: var(--kb-blau-hell);
    transition: color var(--kb-transition);
}
a:hover { color: var(--kb-akzent); }

p { line-height: 1.8; }

/* ─── Layout-Helfer ─── */
.flexible {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
}

.centerize {
    justify-content: center;
}

.rightflow {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hidden { display: none; }
.visible { display: block; }

/* ─── Globale Buttons ─── */
button,
.button,
input[type="submit"],
.submit {
    background: linear-gradient(135deg, var(--kb-blau) 0%, var(--kb-blau-hell) 100%);
    color: var(--kb-weiss) !important;
    border: none;
    padding: 12px 28px;
    border-radius: var(--kb-radius);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all var(--kb-transition);
    box-shadow: var(--kb-shadow);
    text-decoration: none;
    display: inline-block;
}

button:hover,
.button:hover,
input[type="submit"]:hover,
.submit:hover {
    background: linear-gradient(135deg, var(--kb-blau-hell) 0%, var(--kb-akzent) 100%);
    box-shadow: var(--kb-shadow-hover);
    transform: translateY(-1px);
}

button:active,
.button:active,
input[type="submit"]:active,
.submit:active {
    transform: translateY(0);
    box-shadow: var(--kb-shadow);
}

/* ─── Globale Inputs ─── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--kb-grau-border);
    border-radius: var(--kb-radius);
    font-size: 15px;
    font-family: inherit;
    color: var(--kb-text);
    background: var(--kb-weiss);
    transition: border-color var(--kb-transition), box-shadow var(--kb-transition);
    box-sizing: border-box;
    -webkit-appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--kb-blau-hell);
    box-shadow: 0 0 0 3px rgba(41,128,185,0.15);
}

textarea {
    resize: vertical;
    min-height: 80px;
    overflow: auto;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237f8c8d' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--kb-text);
    margin-bottom: 4px;
}

/* ─── Formular-Zeilen ─── */
.form-row {
    margin-bottom: 18px;
}

.widget-checkbox .checkbox_container {
    border: 1.5px solid var(--kb-grau-border);
    border-radius: var(--kb-radius);
    padding: 14px 18px;
    background: #fafbfc;
}

.widget-checkbox .checkbox_container legend {
    font-weight: 600;
    font-size: 14px;
    color: var(--kb-blau);
    padding: 0 6px;
}

.widget-checkbox .checkbox_container span {
    display: inline-block;
    margin: 4px 16px 4px 0;
}

.widget-checkbox input[type="checkbox"],
.widget-checkbox input[type="radio"] {
    margin-right: 6px;
    accent-color: var(--kb-blau-hell);
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.mandatory .mandatory {
    color: var(--kb-danger);
    margin-left: 2px;
}

/* ─── Header ─── */
body > header {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    background: var(--kb-weiss);
}

/* ─── Navigation ─── */
#nav-main > ul > li > a {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transition: color var(--kb-transition), background var(--kb-transition);
    border-radius: 3px;
    z-index: 3;
}

#nav-main > ul > li.active > a,
#nav-main > ul > li.trail > a {
    color: var(--kb-akzent) !important;
}

/* Der weisse ":before"-Verbindungskasten aus style.css hat das
   Dropdown ueberdeckt (z-index 2 ueber Dropdown z-index 1, plus
   38px hoher weisser Block ueber dem 1. Eintrag). Wir deaktivieren
   ihn komplett und loesen die Optik sauber ueber das Dropdown selbst. */
#nav-main > ul > li.submenu:before,
#nav-main > ul > li.submenu:hover:before,
#nav-main > ul > li.submenu:last-child:before {
    display: none !important;
    content: none !important;
}

/* Aktiver/gehoverter Tab mit Untermenue: heller Hintergrund als
   optische Verbindung zum Dropdown */
#nav-main > ul > li.submenu:hover > a {
    background: var(--kb-weiss);
    color: var(--kb-blau) !important;
    box-shadow: 0 -3px 0 var(--kb-blau-hell) inset;
    border-radius: var(--kb-radius) var(--kb-radius) 0 0;
}

/* Dropdown-Container: korrekt positioniert, KEIN overflow:hidden
   (das wuerde Sub-Sub-Menues und Schatten abschneiden) */
#nav-main > ul > li > ul {
    top: 100%;
    margin-top: 0;
    min-width: 230px;
    border: 1px solid var(--kb-grau-border);
    border-top: 3px solid var(--kb-blau-hell);
    border-radius: 0 var(--kb-radius) var(--kb-radius) var(--kb-radius);
    box-shadow: 0 8px 24px rgba(26,82,118,0.15);
    background: var(--kb-weiss);
    z-index: 5;
    padding: 8px 0;
    overflow: visible;
}

#nav-main > ul > li > ul a {
    position: relative;
    padding: 11px 24px 11px 22px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-transform: none;
    color: var(--kb-text);
    border-top: none;
    border-left: 3px solid transparent;
    transition: background var(--kb-transition), color var(--kb-transition), border-color var(--kb-transition), padding-left var(--kb-transition);
}

/* Erster Eintrag: kein Rand, sauberer Abstand nach oben */
#nav-main > ul > li > ul li:first-child > a {
    border-top: none;
}

#nav-main > ul > li > ul a:hover,
#nav-main > ul > li > ul a:focus {
    background: var(--kb-blau-soft);
    color: var(--kb-blau);
    border-left-color: var(--kb-akzent);
    padding-left: 26px;
    text-decoration: none;
}

/* Letztes Menue oeffnet nach links -> Rundung spiegeln */
#nav-main > ul > li:last-child > ul {
    border-radius: var(--kb-radius) 0 var(--kb-radius) var(--kb-radius);
}

/* Mobile Navigation */
#nav-main-mobile {
    padding: 12px 16px;
    font-size: 15px;
    border: 1.5px solid var(--kb-grau-border);
    border-radius: var(--kb-radius);
    background: var(--kb-weiss);
}

/* ─── Banner / Slider ─── */
#image-main {
    height: 420px;
    overflow: hidden;
    margin: 0;
    box-shadow: none;
    background: #1a2a35;
}

/* Wrapper nicht mehr über den Banner ziehen (style.css nutzte -60px Überlappung) */
#wrapper {
    padding-bottom: 36px;
}

#scroll-banner {
    width: 100%;
    height: 420px;
    overflow: hidden;
    position: relative;
    border: none;
    border-radius: 0;
}

.scroll-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Jede Slide muss volle Breite haben und nicht schrumpfen */
.slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        transparent 30%,
        rgba(0,0,0,0.55) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Override der style.css-Regeln: .hgroup soll KEIN top:110px / height:0 haben */
#image-main .hgroup,
.slide .hgroup {
    position: absolute;
    top: auto !important;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 30px 5%;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
    overflow: visible;
}

#image-main .hgroup h1,
.slide .hgroup h1 {
    color: var(--kb-weiss) !important;
    font-size: clamp(22px, 3.5vw, 42px);
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin: 0 0 8px;
    line-height: 1.2;
}

#image-main .hgroup h2,
.slide .hgroup h2 {
    color: rgba(255,255,255,0.92) !important;
    font-size: clamp(14px, 2vw, 20px);
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    margin: 0;
    line-height: 1.5;
}

/* Override der span-Regeln aus style.css (float:left + Hintergrund entfernen) */
#image-main .hgroup h1 span,
#image-main .hgroup h2 span,
.slide .hgroup h1 span,
.slide .hgroup h2 span {
    float: none !important;
    clear: none !important;
    display: inline !important;
    padding: 0 !important;
    background: none !important;
}

/* ─── Breadcrumb ─── */
#content-top-bar {
    background: var(--kb-grau-hell);
    border-bottom: 1px solid var(--kb-grau-border);
    padding: 12px 4%;
}

#breadcrumbs {
    font-size: 13px;
    color: var(--kb-grau);
}

#breadcrumbs a {
    color: var(--kb-blau-hell);
    text-decoration: none;
}

#breadcrumbs a:hover {
    color: var(--kb-akzent);
    text-decoration: underline;
}

#breadcrumbs b {
    color: var(--kb-text);
}

/* ─── Content-Bereich ─── */
section#content {
    padding-top: 28px;
}

section#content h1 {
    font-size: 28px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--kb-akzent);
    display: inline-block;
}

/* ─── Sidebar ─── */
#nav-sub h1 {
    font-size: 18px;
    border-bottom: 2px solid var(--kb-akzent);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

#nav-sub h1 a {
    color: var(--kb-blau) !important;
    text-decoration: none;
}

#nav-sub ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#nav-sub ul li a {
    display: block;
    padding: 9px 14px;
    color: var(--kb-text);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all var(--kb-transition);
    font-size: 14px;
    border-radius: 0 var(--kb-radius) var(--kb-radius) 0;
}

#nav-sub ul li a:hover {
    background: var(--kb-blau-soft);
    border-left-color: var(--kb-blau-hell);
    color: var(--kb-blau);
}

#nav-sub ul li a.active {
    background: var(--kb-blau-soft) !important;
    border-left-color: var(--kb-akzent) !important;
    color: var(--kb-blau) !important;
    font-weight: 700 !important;
}

/* Rechte Sidebar: Suche */
.searchform {
    display: flex;
    gap: 0;
}

.searchform input[type="search"] {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.searchform button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 10px 18px;
    white-space: nowrap;
}

/* Rechte Sidebar: Kontaktdaten */
aside#sidebar-secondary .ce_text {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--kb-radius);
    border: 1px solid var(--kb-grau-border);
}

aside#sidebar-secondary .ce_text h2 {
    font-size: 16px;
    color: var(--kb-blau);
    margin-top: 0;
}

aside#sidebar-secondary iframe {
    border-radius: var(--kb-radius);
    margin-top: 16px;
    box-shadow: var(--kb-shadow);
    width: 100%;
    max-width: 100%;
}

/* ══════════════════════════════════════════════════════════════
 *  ICON-FONT-FALLBACK
 *  Die Original-Schrift "RockSolid Icons" fehlt im Archiv
 *  (Pfad ../../files/vision/fonts/ existiert nicht mehr).
 *  Ergebnis waren leere Kaestchen. Wir ersetzen die Glyphen
 *  durch Unicode-Symbole, die auf allen Plattformen vorhanden
 *  sind (inkl. Haiku/WebPositive, OS/2, alte Windows-Versionen).
 * ══════════════════════════════════════════════════════════════ */

/* Aufzaehlungslisten (featured-list): Haekchen statt Kaestchen */
ul.featured-list li:before,
#content ul.featured-list li:before,
div.featured-list ul li:before,
#content div.featured-list ul li:before {
    font-family: inherit !important;
    content: "\2714" !important;
    color: var(--kb-akzent);
    font-size: 14px;
    font-weight: bold;
}

/* ─── Leistungsliste: Layout-Fix ───
 * Original war "float: right; width: 30%" -> Liste schwebte allein
 * im leeren Content-Bereich. Wir machen sie linksbuendig, volle
 * Breite und mehrspaltig, damit sie den Bereich sauber ausfuellt.
 * column-count wird von allen Ziel-Browsern unterstuetzt (auch
 * WebKit-basiertem WebPositive/Haiku, Gecko, alten Presto-Engines). */
#content ul.featured-list,
div.featured-list ul,
#content div.featured-list ul {
    float: none !important;
    width: 100% !important;
    max-width: 100%;
    margin: 8px 0 28px 0 !important;
    padding-left: 4px;
    -webkit-columns: 2 260px;
    -moz-columns: 2 260px;
    columns: 2 260px;
    -webkit-column-gap: 32px;
    -moz-column-gap: 32px;
    column-gap: 32px;
    font-size: 15px;
}

ul.featured-list li,
#content ul.featured-list li,
div.featured-list ul li,
#content div.featured-list ul li {
    margin: 0 0 10px 0 !important;
    padding-left: 26px;
    text-indent: -26px;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
    line-height: 1.4;
}

/* Haekchen wieder als fuehrendes Symbol (text-indent-Technik) */
ul.featured-list li:before,
#content ul.featured-list li:before,
div.featured-list ul li:before,
#content div.featured-list ul li:before {
    width: auto !important;
    margin: 0 8px 0 0 !important;
    margin-left: 0 !important;
    text-indent: 0;
    display: inline !important;
}

/* Falls die Listenpunkte Links sind: klar als Link erkennbar */
#content ul.featured-list li a,
div.featured-list ul li a {
    color: var(--kb-blau-hell);
    text-decoration: none;
}
#content ul.featured-list li a:hover,
div.featured-list ul li a:hover {
    color: var(--kb-akzent);
    text-decoration: underline;
}

/* Hinweis-Boxen */
.confirmation:before {
    font-family: inherit !important;
    content: "\2714" !important;
}
.information:before {
    font-family: inherit !important;
    content: "\2139" !important;
}
.warning:before {
    font-family: inherit !important;
    content: "\26A0" !important;
}

/* Toplink (nach oben scrollen) */
.ce_toplink > a:before,
.toplink > a:before {
    font-family: inherit !important;
    content: "\2191" !important;
}

/* Externe Links */
a[target="_blank"]:after {
    font-family: inherit !important;
    content: " \2197" !important;
    font-size: 80%;
}

/* Akkordeon-Pfeile (Glossar) */
.ce_accordion .toggler:before {
    font-family: inherit !important;
    content: "\25B8" !important;
    line-height: 1 !important;
}
.ce_accordion .toggler.active:before {
    font-family: inherit !important;
    content: "\25BE" !important;
}

/* ─── Glossar / Akkordeon ─── */
.ce_accordion .toggler {
    background: linear-gradient(135deg, #f8f9fa 0%, var(--kb-weiss) 100%);
    border: 1px solid var(--kb-grau-border);
    border-radius: var(--kb-radius);
    padding: 14px 44px 14px 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--kb-blau);
    transition: all var(--kb-transition);
    margin-bottom: 6px;
    position: relative;
}

.ce_accordion .toggler:hover {
    background: var(--kb-blau-soft);
    border-color: var(--kb-blau-hell);
}

.ce_accordion .toggler.active {
    background: var(--kb-blau);
    color: var(--kb-weiss);
    border-color: var(--kb-blau);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
}

.ce_accordion .toggler:before {
    right: 16px;
    font-size: 18px;
}

.ce_accordion .toggler.active:before {
    color: var(--kb-weiss);
}

.accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 18px;
    background: var(--kb-weiss);
    border: 1px solid var(--kb-grau-border);
    border-top: none;
    border-radius: 0 0 var(--kb-radius) var(--kb-radius);
    margin-bottom: 8px;
}

.accordion.open {
    padding: 18px;
}

/* ─── Suchergebnisse ─── */
.highlightMeOnHover {
    padding: 16px 20px;
    border: 1px solid var(--kb-grau-border);
    border-radius: var(--kb-radius);
    margin-bottom: 12px;
    transition: all var(--kb-transition);
    background: var(--kb-weiss);
}

.highlightMeOnHover:hover {
    transform: translateY(-2px);
    box-shadow: var(--kb-shadow-hover);
    border-color: var(--kb-blau-hell);
    background: var(--kb-weiss);
    outline: none;
}

.highlightMeOnHover h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.highlightMeOnHover p {
    margin: 0;
    color: var(--kb-text-hell);
    font-size: 14px;
    line-height: 1.6;
}

mark {
    background: #ffeaa7;
    padding: 1px 4px;
    border-radius: 3px;
}

/* ─── Footer ─── */
/* Höhere Spezifität als style.css "body > footer" nötig! */
body > footer {
    background: linear-gradient(180deg, var(--kb-blau) 0%, #0e3a56 100%) !important;
    color: rgba(255,255,255,0.85);
    margin-top: 0;
    padding-top: 40px;
}

/* Alle Texte im Footer hell einfärben (überschreibt color:gray aus style.css) */
body > footer,
body > footer p,
body > footer li,
body > footer #footer-content,
body > footer #footer-content .footer-column {
    color: rgba(255,255,255,0.82);
}

body > footer #footer-content h1,
footer h1 {
    color: var(--kb-weiss) !important;
    font-size: 16px;
    border-bottom: 2px solid var(--kb-akzent);
    padding-bottom: 8px;
    display: inline-block;
    margin: 0 0 20px;
}

body > footer a,
footer a {
    color: var(--kb-akzent) !important;
    text-decoration: none;
}

body > footer a:hover,
footer a:hover {
    color: #f39c12 !important;
    text-decoration: underline;
}

footer .icon-list {
    list-style: none;
    padding-left: 50px;
}

body > footer #footer-content ul.icon-list li i,
footer .icon-list li i {
    display: block;
    font-style: normal;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.55;
    margin-bottom: 2px;
    color: rgba(255,255,255,0.75);
}

body > footer #footer-content ul.icon-list li a,
body > footer #footer-content ul.icon-list li b,
footer .icon-list li b {
    color: var(--kb-weiss) !important;
    font-size: 15px;
    font-weight: bold;
}

/* Telefonnummer-Link (blau in Original) → hell */
body > footer #footer-content ul.icon-list li b {
    color: #7fbac6 !important;
}

#footer-content {
    padding-top: 20px;
    padding-bottom: 20px;
}

#nav-footer {
    border-top: 1px solid rgba(255,255,255,0.12);
}

body > footer #nav-footer ul,
#nav-footer ul {
    list-style: none;
    padding: 20px 0;
    text-align: center;
}

body > footer #nav-footer a,
#nav-footer a {
    font-size: 13px;
    color: rgba(255,255,255,0.7) !important;
    transition: color var(--kb-transition);
}

body > footer #nav-footer a:hover,
#nav-footer a:hover {
    color: var(--kb-akzent) !important;
}

#footer-info {
    background: rgba(0,0,0,0.25);
    text-align: center;
    padding: 14px 0;
}

body > footer #footer-info p,
#footer-info p {
    font-size: 13px;
    margin: 0;
    color: rgba(255,255,255,0.7);
}

/* Footer Schnellkontakt-Form */
footer .mod_form h1 {
    margin-bottom: 16px;
}

footer .mod_form input,
footer .mod_form textarea,
footer .mod_form select {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: var(--kb-weiss);
}

footer .mod_form input::placeholder,
footer .mod_form textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

footer .mod_form input:focus,
footer .mod_form textarea:focus,
footer .mod_form select:focus {
    border-color: var(--kb-akzent);
    box-shadow: 0 0 0 3px rgba(230,126,34,0.2);
    background: rgba(255,255,255,0.15);
}

footer .mod_form label {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
}

footer .mod_form button {
    background: linear-gradient(135deg, var(--kb-akzent) 0%, var(--kb-akzent-hover) 100%);
    width: 100%;
    margin-top: 8px;
}

footer .mod_form button:hover {
    background: linear-gradient(135deg, #f39c12 0%, var(--kb-akzent) 100%);
}

/* ─── DSGVO-Banner ─── */
.dsgvoabfrage {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999999;
    background: rgba(26,82,118,0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 15px;
    border-top: 3px solid var(--kb-akzent);
    animation: dsgvoFadeInScale 0.5s ease-out forwards;
    transform-origin: bottom center;
    text-shadow: none;
    color: rgba(255,255,255,0.9);
}

.dsgvoabfrage > div {
    padding: 20px 60px 20px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.dsgvoabfrage > div > h3 {
    color: var(--kb-weiss);
    margin: 0 0 8px;
    font-size: 18px;
}

.dsgvoabfrage > div > p {
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

.dsgvoabfrage > div > p > a {
    color: var(--kb-akzent) !important;
    text-shadow: none;
}

.dsgvoabfrage img {
    max-width: 28px;
    max-height: 28px;
    position: absolute;
    right: 16px;
    top: 16px;
    margin: 0 !important;
    filter: invert(1);
    opacity: 0.7;
    transition: all var(--kb-transition);
}

.dsgvoabfrage img:hover {
    opacity: 1;
    transform: rotate(90deg) scale(1.1) !important;
    cursor: pointer;
}

/* ─── Login-Schloss ─── */
.gi-s-e {
    position: fixed;
    bottom: 12px;
    right: 12px;
    transition: all 0.6s ease;
    transform: scale(0.5);
    opacity: 0.08;
}

.gi-s-e:hover {
    transform: scale(1);
    opacity: 0.8;
}

.gi-s-e img {
    max-width: 32px;
}

/* ─── Login / Dashboard ─── */
.loggedIn {
    position: fixed;
    top: 80px;
    right: 0;
    z-index: 999999;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(6px);
    padding: 10px 12px;
    box-shadow: -2px 2px 12px rgba(0,0,0,0.12);
    border-radius: var(--kb-radius) 0 0 var(--kb-radius);
    max-width: 130px;
}

.loggedIn form {
    margin: 0 0 6px;
}

.loggedIn form:last-child {
    margin-bottom: 0;
}

.loggedIn button {
    padding: 7px 14px;
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
}

.container {
    padding: 24px 32px;
    margin: 8px 16px;
    box-shadow: var(--kb-shadow);
    line-height: 2;
    text-align: left;
    background: var(--kb-weiss);
    border-radius: var(--kb-radius);
    border: 1px solid var(--kb-grau-border);
}

/* Dashboard */
.dashitem {
    transition: all var(--kb-transition);
    padding: 22px 32px;
    font-weight: 600;
    text-align: center;
    margin: 6px;
    border-radius: var(--kb-radius);
    border: 1px solid var(--kb-grau-border);
    background: var(--kb-weiss);
    color: var(--kb-blau);
    cursor: pointer;
    box-shadow: var(--kb-shadow);
    min-width: 140px;
    transform: none;
}

.dashitem:hover {
    transform: translateY(-3px);
    box-shadow: var(--kb-shadow-hover);
    border-color: var(--kb-blau-hell);
    background: var(--kb-blau-soft);
    outline: none;
}

/* ─── Editor-Overlay ─── */
.editman {
    position: fixed;
    top: 3%;
    left: 5%;
    width: 90%;
    height: 94vh;
    z-index: 999999;
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
    border: none;
    border-radius: 10px;
    background-color: var(--kb-weiss);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.editman #editify {
    display: flex;
    flex-direction: column;
    height: 90%;
    overflow: auto;
}

.titlebar {
    background: linear-gradient(135deg, var(--kb-blau) 0%, var(--kb-blau-hell) 100%);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--kb-weiss);
    font-weight: 600;
    font-size: 15px;
}

.titlebar img {
    max-width: 22px;
    max-height: 22px;
    filter: invert(1);
    opacity: 0.8;
    transition: all var(--kb-transition);
    transform: none;
}

.titlebar img:hover {
    opacity: 1;
    transform: rotate(90deg);
    cursor: pointer;
}

iframe {
    border: none;
    margin: 0;
    padding: 0;
}

#editman.visible { display: block; }
#editman.hidden { display: none; }

#editify iframe {
    border: none;
    width: 100%;
    height: 70vh;
}

/* TinyMCE Styles */
textarea.tinymce {
    min-height: 400px;
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
    overflow: auto;
}

/* ─── Formular-Box (TinyMCE-generiert) ─── */
.formular-box {
    background: var(--kb-grau-hell);
    padding: 24px;
    border-radius: var(--kb-radius);
    border: 1px solid var(--kb-grau-border);
}

.formular-box > .innerbox {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0;
}

.formular-box label {
    font-size: 13px;
    font-weight: 600;
}

.hideForVisitor {
    display: none;
    opacity: 0;
}

/* ─── Warn-/Erfolgsmeldungen ─── */
.warn, p.warn {
    background: #fef5e7;
    border: 1px solid var(--kb-akzent);
    color: #7d6608;
    padding: 12px 18px;
    border-radius: var(--kb-radius);
    font-weight: 500;
}

.success, p.success {
    background: #e8f5e9;
    border: 1px solid var(--kb-success);
    color: #1e8449;
    padding: 12px 18px;
    border-radius: var(--kb-radius);
    font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
 *  RESPONSIVE
 * ══════════════════════════════════════════════════════════════ */

/* Tablet ≤ 900px */
@media screen and (max-width: 900px) {
    #image-main,
    #scroll-banner {
        height: 300px;
    }

    .slide .hgroup {
        padding: 20px 5%;
    }

    #footer-content .footer-column {
        width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 30px;
    }

    #footer-content .footer-column-3 form {
        width: 100%;
    }

    #footer-content .footer-column-3 .button-wrap {
        float: none;
        width: 100%;
        margin-top: 20px;
        margin-left: 0;
    }

    aside#sidebar,
    aside#sidebar-secondary {
        padding: 12px 5% !important;
    }

    .searchform {
        margin: 0 5%;
    }

    .dsgvoabfrage > div {
        padding: 16px 50px 16px 16px;
    }

    .formular-box > .innerbox {
        grid-template-columns: 1fr;
    }

    .editman {
        top: 1%;
        left: 1%;
        width: 98%;
        height: 98vh;
    }
}

/* Mobile ≤ 599px */
@media screen and (max-width: 599px) {
    #image-main,
    #scroll-banner {
        height: 220px;
    }

    .slide .hgroup {
        padding: 14px 4%;
    }

    .slide .hgroup h1 {
        font-size: 18px !important;
    }

    .slide .hgroup h2 {
        font-size: 13px !important;
    }

    section#content h1 {
        font-size: 22px;
    }

    #content-top-bar {
        padding: 10px 4%;
    }

    #content-top-bar .button {
        margin-top: 10px;
        display: block;
        text-align: center;
    }

    footer .icon-list li {
        font-size: 14px;
    }

    footer .mod_form .form-row {
        margin-bottom: 12px;
    }

    .dsgvoabfrage > div {
        padding: 14px 40px 14px 14px;
        font-size: 13px;
    }

    .dsgvoabfrage > div > h3 {
        font-size: 15px;
    }

    .loggedIn {
        top: auto;
        bottom: 0;
        right: 0;
        border-radius: var(--kb-radius) 0 0 0;
        padding: 8px 10px;
        max-width: 110px;
    }

    .loggedIn button {
        padding: 5px 10px;
        font-size: 11px;
    }

    .dashitem {
        min-width: 100px;
        padding: 14px 18px;
        font-size: 13px;
    }

    .widget-checkbox .checkbox_container span {
        display: block;
        margin: 6px 0;
    }

    .editman {
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .titlebar {
        border-radius: 0;
    }
}

/* ══════════════════════════════════════════════════════════════
 *  ADMIN: Basisdaten-Seite (basisdaten.php)
 * ══════════════════════════════════════════════════════════════ */
.admin-basisdaten {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
}

.admin-basisdaten h1 {
    font-size: 24px;
    color: var(--kb-blau);
    border-bottom: 3px solid var(--kb-akzent);
    padding-bottom: 10px;
    display: inline-block;
    margin-bottom: 24px;
}

.admin-basisdaten .grid4x {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0;
}

.admin-basisdaten .grid4x > p {
    margin: 0;
}

.admin-basisdaten .grid4x label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--kb-text);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-basisdaten .field-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--kb-radius);
    border: 1px solid var(--kb-grau-border);
}

.admin-basisdaten .field-group h3 {
    margin: 0 0 16px;
    font-size: 15px;
    color: var(--kb-blau);
    border-bottom: 1px solid var(--kb-grau-border);
    padding-bottom: 8px;
}

.admin-basisdaten textarea {
    min-height: 80px;
}

.admin-basisdaten .full-width {
    grid-column: 1 / -1;
}

@media screen and (max-width: 600px) {
    .admin-basisdaten .grid4x {
        grid-template-columns: 1fr;
    }
}
