/* ================================================================
 * BDL Chrome-UI v4 — fiveandfriends 2026-10-08
 *
 * Vorgaben:
 * 1) Hauptmenue bleibt wie Original (Grau-Verlauf, UPPERCASE)
 * 2) Aktive Rubrik: ganz dezente Hintergrundfarbe (statt BDL-Blau-Flaeche)
 *    Text bleibt BDL-Blau.
 * 3) Pull-Down-Overlay: heller Hintergrund, dunkle Schrift, weisse Trenner.
 * 4) Sidebar-Teaser-Boxen bleiben flach BDL-Blau.
 * 5) Sticky-Header beim Scroll (Live-Verhalten) via JS/CSS.
 * ================================================================ */

/* ---- Aktive Rubrik im Hauptmenue dezenter ---- */
/* Statt BDL-Blau-Verlauf-Flaeche: sehr helles Blau als Highlight,
 * Textfarbe BDL-Blau. Hebt sich klar aber nicht laut vom Grau ab. */
/* Aktiver Hauptmenue-Punkt: BDL-blauer Hintergrund + weisser Text (wie Live).
   Alle anderen Punkte bleiben dunkelgrau auf hellgrau fuer besseren Kontrast. */
#mainmenu a.nav_active,
#mainmenu a.gradient-blau1 {
    background: var(--c-blue) !important;
    background-image: none !important;
    color: #ffffff !important;
    text-shadow: none !important;
    font-weight: var(--fw-semibold);
    transition: background var(--dur-base) var(--ease);
}
/* Normale Hauptmenue-Punkte: Textfarbe von #666 auf #333 fuer besseren Kontrast */
#mainmenu > ul > li > a,
#mainmenu > ul > ul > li > a {
    color: #333 !important;
}
#mainmenu > ul > li > a:hover,
#mainmenu > ul > ul > li > a:hover {
    color: var(--c-blue) !important;
}

/* BDL Intern bleibt orange, aber Verlauf raus, flach */
a.gradient-orange,
#sidemenu a.gradient-orange,
#sidemenu ul.bdlintern a,
#mainmenu a.gradient-orange {
    background: var(--c-orange) !important;
    background-image: none !important;
    color: #ffffff !important;
    text-shadow: none !important;
    transition: background var(--dur-base) var(--ease);
}

a.gradient-orange:hover,
#sidemenu ul.bdlintern a:hover,
#mainmenu a.gradient-orange:hover {
    background: var(--c-orange-dark) !important;
}

/* ---- Pull-Down-Overlay (Dropdown "Ueber uns, Positionen, ...") ---- */
/* v3: Starker Kontrast (BDL-Blau + weiss) + bessere Positionierung
 * (dezenter Abstand zum Hauptmenue-Item, mehr Luft innen). */
#mainmenu ul.sub,
#mainmenu div.sub,
#snapped-header ul.sub,
#snapped-header div.sub,
#headmenu ul.sub,
#headmenu div.sub {
    background: var(--c-blue) !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.22) !important;
    margin-top: 8px !important;   /* Abstand zum Hauptmenue-Item */
    padding: 6px 0 !important;    /* vertikale Luft */
    min-width: 240px !important;  /* breiter fuer bessere Lesbarkeit */
    overflow: hidden !important;  /* abgerundete Ecken greifen auf Items */
}

#mainmenu ul.sub li > a,
#snapped-header ul.sub li > a,
#headmenu ul.sub li > a,
#mainmenu div.sub li > a,
#snapped-header div.sub li > a {
    background: transparent !important;
    background-image: none !important;
    color: #ffffff !important;
    text-shadow: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.12) !important;
    font-weight: var(--fw-regular);
    letter-spacing: 0.03em;
    padding: 10px 20px !important;  /* horizontale + vertikale Luft */
    transition: background-color var(--dur-base) var(--ease);
}

#mainmenu ul.sub li:last-child > a,
#snapped-header ul.sub li:last-child > a,
#headmenu ul.sub li:last-child > a {
    border-bottom: 0 !important;
}

#mainmenu ul.sub li > a:hover,
#mainmenu ul.sub li:hover > a,
#snapped-header ul.sub li > a:hover,
#snapped-header ul.sub li:hover > a,
#headmenu ul.sub li > a:hover,
#headmenu ul.sub li:hover > a {
    background: var(--c-blue-dark) !important;
    color: #ffffff !important;
}

/* ---- Submenue-Bar (dunkelblauer Rubriken-Balken "Ueber uns Positionen ...") ---- */
#submenu, .submenu-bar, .nav-sub, [class*="subnav"],
#headmenu > div[class*="sub"],
#mainmenu + div[class*="sub"] {
    background: var(--c-blue) !important;
    background-image: none !important;
    border-top: 0;
    box-shadow: none !important;
}

#submenu a, .submenu-bar a, .nav-sub a, [class*="subnav"] a {
    background: transparent !important;
    background-image: none !important;
    color: #ffffff !important;
    text-shadow: none !important;
    opacity: 0.9;
    transition: opacity var(--dur-base) var(--ease);
}

#submenu a:hover,
#submenu a.active,
#submenu a.nav_active,
#submenu a.cur,
.submenu-bar a:hover, .nav-sub a:hover {
    opacity: 1;
    color: #ffffff !important;
}
/* Aktiver Submenu-Punkt: weisser Balken am unteren Rand des Submenu-Items,
   bündig abschliessend - Analogie zum blauen Balken im Hauptmenu
   (box-shadow: inset 0 -3px 0 var(--c-blue)). Submenu ist blau, Balken weiss. */
#submenu a.nav_active,
#submenu a.active,
#submenu a.cur {
    font-weight: 600;
    text-decoration: none;
    box-shadow: inset 0 -3px 0 #ffffff;
}
/* Submenu-Container: duenne Linie unten entfernen, flache Kante zum Content */
#submenu,
#submenu ul {
    border: 0 !important;
    box-shadow: none !important;
}
/* Items sind inline-block, voll an Submenu-Hoehe gebunden */
div#submenu ul li a {
    display: inline-block;
    height: 34px;
    line-height: 34px;
    padding: 0 10px;
    box-sizing: border-box;
}
div#submenu a.nav_active,
div#submenu a.active,
div#submenu a.cur {
    box-shadow: inset 0 -3px 0 #ffffff;
}

/* ---- Sidebar-Teaser-Boxen: Blau-Verlauf raus ---- */
.frame-type-header.frame-layout a,
#right .frame-type-header a,
#right .frame .frame-type-header a {
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-color: var(--c-blue) !important;
    color: #ffffff !important;
    text-shadow: none !important;
    border: 0 !important;
    transition: background-color var(--dur-base) var(--ease);
}

.frame-type-header.frame-layout a:hover,
#right .frame-type-header a:hover {
    background-color: var(--c-blue-dark) !important;
}

/* ---- Suchfeld in Sidebar entschaerfen ---- */
#right input[type="text"].search,
#right form[action*="kesearch"] input[type="text"],
.suchfeld input[type="text"] {
    background: var(--c-bg-field) !important;
    background-image: none !important;
    border: 1px solid var(--c-border-soft) !important;
    box-shadow: none !important;
    color: var(--c-ink) !important;
    border-radius: var(--radius-md);
}

/* ---- Sticky-Scroll-Header (wird per JS beim Scroll eingeblendet) ---- */
/* Design nach Live-Vorbild: weiss, Mixed-Case Items, Active-Unterstrich */
body.nav-sticky #snapped-header,
body.nav-sticky #snapped-header-wrap {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: #ffffff !important;
    background-image: none !important;
    border-bottom: 1px solid var(--c-border-soft) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
    animation: bdl-nav-slide-down 180ms ease-out;
}

@keyframes bdl-nav-slide-down {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

/* Items im sticky-Header: Mixed-Case, dezent, Live-Look */
body.nav-sticky #snapped-header > ul > li > a,
body.nav-sticky #snapped-header ul.sf-menu > li > a {
    background: transparent !important;
    background-image: none !important;
    color: var(--c-ink-soft) !important;
    text-transform: none !important;
    font-family: var(--f-sans);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.01em;
    text-shadow: none !important;
    border: 0 !important;
    padding: 18px 18px !important;
}

body.nav-sticky #snapped-header > ul > li > a:hover,
body.nav-sticky #snapped-header ul.sf-menu > li > a:hover,
body.nav-sticky #snapped-header ul.sf-menu > li:hover > a {
    color: var(--c-blue) !important;
    background: transparent !important;
}

/* Active-State: 3px BDL-Blau-Unterstrich */
body.nav-sticky #snapped-header a.nav_active,
body.nav-sticky #snapped-header a.gradient-blau1,
body.nav-sticky #snapped-header > ul > li.active > a,
body.nav-sticky #snapped-header > ul > li.current > a {
    color: var(--c-blue) !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: inset 0 -3px 0 var(--c-blue) !important;
}

/* BDL Intern im sticky: nur Text orange, kein Hintergrund */
body.nav-sticky #snapped-header a.gradient-orange {
    background: transparent !important;
    background-image: none !important;
    color: var(--c-orange) !important;
}

body.nav-sticky #snapped-header a.gradient-orange:hover {
    color: var(--c-orange-dark) !important;
    background: transparent !important;
}

/* ---- Submenu-Nachrand entschaerfen ----
 * bdl.css setzt #header { border-top: 1px solid #fff; border-bottom: 1px solid #1C4F9C; }
 * Das sind die beiden 1px-Linien direkt unter dem Submenu, die wir nicht wollen. */
#header {
    border-top: 0 !important;
    border-bottom: 0 !important;
}

/* ---- Sticky-Header: aktiver Punkt sauber ohne alte .gradient-blau1-Hintergrundfarbe ----
   Hoehere Spezifitaet damit das Legacy-Theme (all.css .gradient-blau1 mit linear-gradient
   + background-color #1C4F9C) im Snapped-Header nicht als knapper blauer Kasten
   neben den anderen grauen Items erscheint. */
body.nav-sticky #snapped-header-wrap > ul > li > a,
body.nav-sticky #snapped-header-wrap > ul > li > a.gradient-blau1,
body.nav-sticky #snapped-header-wrap > ul > ul > li > a,
body.nav-sticky #snapped-header-wrap > ul > ul > li > a.gradient-blau1 {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    color: #666 !important;
    text-shadow: none !important;
    border: 0 !important;
    padding: 18px 14px !important;
    line-height: 1.2 !important;
}
body.nav-sticky #snapped-header-wrap > ul > li > a:hover,
body.nav-sticky #snapped-header-wrap > ul > ul > li > a:hover {
    color: var(--c-blue) !important;
    background: transparent !important;
}
body.nav-sticky #snapped-header-wrap > ul > li > a.nav_active,
body.nav-sticky #snapped-header-wrap > ul > ul > li > a.nav_active {
    color: var(--c-blue) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-bottom: 3px solid var(--c-blue) !important;
    padding: 18px 14px 15px !important;
}
body.nav-sticky #snapped-header-wrap > ul > li.bdlintern > a,
body.nav-sticky #snapped-header-wrap a.gradient-orange {
    color: var(--c-orange) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* ---- Inline-Links im Fliesstext dauerhaft als Link erkennbar ----
   Nur fuer Fliesstext-Links (Buttons, Chips, Menues, Teaser-Boxen
   haben eigene Styles und bleiben unangetastet). */
/* Fliesstext-Links: BDL-Blau + Phosphor arrow-up-right als ::after
   (kein Unterstrich, cleaner Look). */
#content .ce-bodytext p a:not([class*="btn"]):not([class*="button"]):not([class*="gradient"]):not(.colorbox),
#content .ce-bodytext li a:not([class*="btn"]):not([class*="button"]):not([class*="gradient"]):not(.colorbox),
#content p a:not([class*="btn"]):not([class*="button"]):not([class*="gradient"]):not(.colorbox),
#content li a:not([class*="btn"]):not([class*="button"]):not([class*="gradient"]):not(.colorbox) {
    color: var(--c-blue) !important;
    text-decoration: none !important;
    font-weight: 500;
    border-bottom: 0 !important;
}
#content .ce-bodytext p a:not([class*="btn"]):not([class*="button"]):not([class*="gradient"]):not(.colorbox):visited,
#content .ce-bodytext li a:not([class*="btn"]):not([class*="button"]):not([class*="gradient"]):not(.colorbox):visited {
    color: #5a4480 !important;
}
#content .ce-bodytext p a:not([class*="btn"]):not([class*="button"]):not([class*="gradient"]):not(.colorbox):hover,
#content .ce-bodytext li a:not([class*="btn"]):not([class*="button"]):not([class*="gradient"]):not(.colorbox):hover,
#content p a:not([class*="btn"]):not([class*="button"]):not([class*="gradient"]):not(.colorbox):hover,
#content li a:not([class*="btn"]):not([class*="button"]):not([class*="gradient"]):not(.colorbox):hover {
    color: var(--c-blue-dark) !important;
}
#content .ce-bodytext p a:not([class*="btn"]):not([class*="button"]):not([class*="gradient"]):not(.colorbox)::after,
#content .ce-bodytext li a:not([class*="btn"]):not([class*="button"]):not([class*="gradient"]):not(.colorbox)::after,
#content p a:not([class*="btn"]):not([class*="button"]):not([class*="gradient"]):not(.colorbox)::after,
#content li a:not([class*="btn"]):not([class*="button"]):not([class*="gradient"]):not(.colorbox)::after {
    content: "";
    display: inline-block;
    width: .7em;
    height: .7em;
    margin-left: .15em;
    vertical-align: baseline;
    background-color: currentColor;
    -webkit-mask: url("/sys/img/icons/btn/arrow-up-right.svg") no-repeat center / contain;
            mask: url("/sys/img/icons/btn/arrow-up-right.svg") no-repeat center / contain;
    opacity: .7;
    transition: opacity .15s ease, transform .15s ease;
}
#content .ce-bodytext p a:not([class*="btn"]):not([class*="button"]):not([class*="gradient"]):not(.colorbox):hover::after,
#content .ce-bodytext li a:not([class*="btn"]):not([class*="button"]):not([class*="gradient"]):not(.colorbox):hover::after,
#content p a:not([class*="btn"]):not([class*="button"]):not([class*="gradient"]):not(.colorbox):hover::after,
#content li a:not([class*="btn"]):not([class*="button"]):not([class*="gradient"]):not(.colorbox):hover::after {
    opacity: 1;
    transform: translate(1px, -1px);
}
/* Ausnahmen: Buttons/Chips/Pills/Phone-Links/Email-Buttons sollen die
   Unterstreichung NICHT bekommen - haben eigene Styles. */
#content a.bdl-chip,
#content a.bdl-chip--link,
#content a.btn-light-blue,
#content a.btn-dark-blue,
#content .bdl-alphabar a,
#content .frame-type-header a,
#content .frame-layout-24 a,
#content .frame-layout-25 a,
#content .frame-layout-28 a,
#content .frame-layout-29 a {
    text-decoration: none !important;
}

/* Chip-Pills NIE unterstreichen - hoechste Spezifitaet gegen die
   Fliesstext-Link-Regel von weiter oben */
body #content ul.bdl-chip-grid > li > a,
body #content ul.bdl-chip-grid > li > a.bdl-chip,
body #content ul.bdl-chip-grid > li > a.bdl-chip--link,
body #content ul.bdl-chip-grid > li > a:link,
body #content ul.bdl-chip-grid > li > a:visited,
body #content ul.bdl-chip-grid > li > a:hover,
body #content ul.bdl-chip-grid > li > a:active,
body #content .frame-type-menu_subpages > ul > li > a,
body #content .frame-type-menu_subpages > ul > li > a:hover,
body #content ul.bdl-chips > li > a,
body #content ul.bdl-chips > li > a.bdl-chip,
body #content ul.bdl-chips > li > a:hover {
  text-decoration: none !important;
}

/* Hauptmenue: Textfarbe explizit dunkel, inkl. span.nav */
#mainmenu ul li a,
#mainmenu ul li a span.nav,
#mainmenu ul li a > span {
  color: #333 !important;
}
#mainmenu ul li a:hover,
#mainmenu ul li a:hover span.nav,
#mainmenu ul li a:focus,
#mainmenu ul li a:focus span.nav {
  color: var(--c-blue) !important;
}
/* Aktiver Punkt: weiss auf blau - Spezifitaet gegen span.nav-Override */
#mainmenu ul li a.nav_active,
#mainmenu ul li a.nav_active span.nav,
#mainmenu ul li a.gradient-blau1,
#mainmenu ul li a.gradient-blau1 span.nav {
  color: #ffffff !important;
}
/* BDL Intern bleibt weiss auf orange */
#mainmenu ul li a.gradient-orange,
#mainmenu ul li a.gradient-orange span.nav {
  color: #ffffff !important;
}

/* Top-Abstand verlaesslich auf allen Mitgliederverzeichnis-Pages */
body.mitgliederverzeichnis-site #content {
  margin-top: 20px !important;
}
body.mitgliederverzeichnis-site #right {
  margin-top: 20px !important;
}
body.mitgliederverzeichnis-site #content > .frame:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body.mitgliederverzeichnis-site #content > .frame:first-child header h1,
body.mitgliederverzeichnis-site #content > .frame:first-child header h2 {
  margin-top: 0 !important;
}

/* Sidebar-Buttons: 6px border-radius (einheitlich zum Button-System) */
#right .frame-type-header a,
#right .frame .frame-type-header a {
  border-radius: 6px !important;
}

/* Submenu auf Mitgliederverzeichnis-Sub-Site: wenn 80+ Laender eine mehrzeilige
   Reihe erzeugen und das #headmenu auffuellen (scrollHeight 254), die Hoehe
   hart begrenzen und ueberlaufende Items ausblenden. */
body.mitgliederverzeichnis-site #submenu {
  max-height: 34px !important;
  overflow: hidden !important;
}
body.mitgliederverzeichnis-site #submenu ul {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 34px;
}
body.mitgliederverzeichnis-site #headmenu {
  max-height: 84px !important;
  overflow: hidden !important;
}

/* Hauptmenue mit erhoehter Spezifitaet (gegen 'div#mainmenu ul li a' aus all.css) */
body div#mainmenu ul li a,
body div#mainmenu ul li a span,
body div#mainmenu ul li a span.nav {
    color: #333333 !important;
}
body div#mainmenu ul li a:hover,
body div#mainmenu ul li a:hover span,
body div#mainmenu ul li a:hover span.nav {
    color: var(--c-blue) !important;
}
body div#mainmenu ul li a.nav_active,
body div#mainmenu ul li a.nav_active span,
body div#mainmenu ul li a.nav_active span.nav,
body div#mainmenu ul li a.gradient-blau1,
body div#mainmenu ul li a.gradient-blau1 span {
    color: #ffffff !important;
    background: var(--c-blue) !important;
    background-color: var(--c-blue) !important;
    background-image: none !important;
}
body div#mainmenu ul li.bdlintern a,
body div#mainmenu ul li a.gradient-orange,
body div#mainmenu ul li a.gradient-orange span {
    color: #ffffff !important;
}

/* Teaser-Boxen Links dauerhaft sichtbar — Buttons ausgenommen */
body #content .ce-bodytext a:not([class*="btn"]):not([class*="button"]):not([class*="gradient"]):not(.colorbox),
body #content p a[href^="/"]:not([class*="btn"]):not([class*="button"]):not([class*="gradient"]):not(.colorbox),
body #content p a[href^="http"]:not([class*="btn"]):not([class*="button"]):not([class*="gradient"]):not(.colorbox) {
    color: var(--c-blue) !important;
    text-decoration: none !important;
}

/* Legacy-Buttons: Textfarbe weiss sicherstellen — hoehere Spezifitaet */
body #content a.btn-light-blue,
body #content a.btn-dark-blue,
body #content .ce-bodytext a.btn-light-blue,
body #content .ce-bodytext a.btn-dark-blue {
    color: #ffffff !important;
}
body #content a.bdl-chip,
body #content a.bdl-chip--link,
body #content ul.bdl-chip-grid a,
body #content ul.bdl-chips a,
body #content .bdl-alphabar a,
body #content .frame-type-header a,
body #content .frame-type-menu_subpages a,
body #content a[class^="button_"],
body #content a.btn-light-blue,
body #content a.btn-dark-blue {
    text-decoration: none !important;
}

/* Druckansicht-Button + Sidebar/Content Teaser: 6px */
#right .frame-type-header a,
#right .frame .frame-type-header a,
#content .frame-layout-24 a,
#content .frame-layout-25 a,
#content .frame-layout-28 a,
#content .frame-layout-29 a {
    border-radius: 6px !important;
}

/* ===========================================================
 * Q1 Bold: all.css setzt 'b, strong { font-weight: 500 }' -
 * 500 ist in Source Sans Pro kaum sichtbar fetter als 400.
 * Auf echtes bold hochziehen fuer alle Fliesstext-Stellen.
 * =========================================================== */
#content strong,
#content b,
#content .ce-bodytext strong,
#content .ce-bodytext b,
#content p strong,
#content p b,
#content li strong,
#content li b {
    font-weight: 700 !important;
}

/* ===========================================================
 * Q8 Verlinkte Ueberschriften: Unterstrich damit Klickbarkeit
 * erkennbar wird (analog Fliesstext-Links).
 * =========================================================== */
/* Verlinkte Headlines: BDL-Blau, Icon rechts, kein Unterstrich */
#content h2 > a,
#content h3 > a,
#content h4 > a,
#content h5 > a,
#content .ce-headline-left a {
    text-decoration: none !important;
    color: var(--c-blue) !important;
}
#content h2 > a:hover,
#content h3 > a:hover,
#content h4 > a:hover,
#content h5 > a:hover {
    color: var(--c-blue-dark) !important;
}
/* Headline-Icons weg (Susanne 2026-11-05): Headline-Links bleiben,
   aber kein Icon mehr - sind durch Farbe/Unterstrich erkennbar */
#content h1 > a::after,
#content h2 > a::after,
#content h3 > a::after,
#content h4 > a::after,
#content h5 > a::after,
#content h6 > a::after,
#content .ce-headline-left a::after,
#content header > a::after {
    content: none !important;
    -webkit-mask: none !important;
            mask: none !important;
    background: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    display: none !important;
}
/* Nicht-Ausnahme: Teaser-Boxen (frame-type-header) + Buttons bleiben wie sie sind */
#content .frame-type-header h2 > a,
#content .frame-type-header h3 > a,
#content h2 > a.btn-light-blue,
#content h2 > a.btn-dark-blue {
    text-decoration: none !important;
}

/* ===========================================================
 * Footer-RSS-Links komplett unterdruecken (Susanne 2026-11-04)
 * Legacy-TypoScript rendert noch die zwei button_rss und
 * #rss-links. Visuell schon weg (display:none vorhanden),
 * zusaetzlich hier als Safety-Net.
 * =========================================================== */
#functions .button_rss,
#rss-links,
footer .rss {
    display: none !important;
}

/* ===========================================================
 * Fachthemen-Button: Schrift besser lesbar
 * =========================================================== */
#content .frame-type-text .fachthema_more a,
#content .fachthema_more a,
#content a.fachthema_more {
    color: #ffffff !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.3);
}

/* News Singleview: Datum war ausgeblendet (news.css Zeile 146) */
.news.news-single .article .footer {
    display: block !important;
    color: #666;
    font-size: 13px;
    margin: 10px 0 20px !important;
    padding-top: 10px !important;
    border-top: 1px solid #e3e8ef;
}
.news.news-single .article .footer p { margin: 0; }
.news.news-single .article .footer .news-list-date,
.news.news-single .article .footer time {
    color: #666;
}

/* ===========================================================
 * News "Mehr"-Pill (Ghost) und BDL-Paginierung
 * - a.more: Ghost-Pill mit BDL-Blau Rahmen, Caret-right, Hover fuellt sich
 * - .bdl-pagination: Pills statt Unterstrich-Links, "Seite X von Y" statt "Page X of Y"
 * =========================================================== */

/* "Mehr"-Pill — Ghost-Variante */
#content a.more,
#content .teaser-text a.more {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 14px !important;
    margin-top: 6px;
    border: 1px solid var(--c-blue) !important;
    border-radius: 999px !important;
    color: var(--c-blue) !important;
    background: transparent !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: background-color .15s ease, color .15s ease;
}
#content a.more::after,
#content .teaser-text a.more::after {
    content: "";
    display: inline-block;
    width: .7em;
    height: .7em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path d='M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path d='M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z'/></svg>") no-repeat center / contain;
    transition: transform .15s ease;
    opacity: .85;
}
#content a.more:hover,
#content .teaser-text a.more:hover {
    background: var(--c-blue) !important;
    color: #ffffff !important;
}
#content a.more:hover::after,
#content .teaser-text a.more:hover::after {
    transform: translateX(2px);
}

/* BDL-Paginierung — ersetzt die alte page-navigation */
.bdl-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
    margin: 24px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
}
.bdl-pagination__info {
    color: #888;
    font-size: 13px;
    margin-right: 6px;
}
.bdl-pagination__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.bdl-pagination__list li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
}
.bdl-pagination__list li::before {
    display: none !important;
}
.bdl-pagination__page,
.bdl-pagination__nav {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #d4d9e0;
    border-radius: 6px;
    color: var(--c-blue) !important;
    background: #ffffff;
    font-weight: 500;
    text-decoration: none !important;
    transition: all .15s ease;
}
a.bdl-pagination__page:hover,
a.bdl-pagination__nav:hover {
    background: var(--c-blue) !important;
    color: #ffffff !important;
    border-color: var(--c-blue) !important;
}
.bdl-pagination__page--current {
    background: var(--c-blue) !important;
    color: #ffffff !important;
    border-color: var(--c-blue) !important;
    cursor: default;
}
.bdl-pagination__nav {
    gap: 6px;
}
.bdl-pagination__nav::after,
.bdl-pagination__nav--prev::before {
    content: "";
    width: 10px;
    height: 10px;
    display: inline-block;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path d='M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path d='M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z'/></svg>") no-repeat center / contain;
}
.bdl-pagination__nav--prev::before { transform: rotate(180deg); }
.bdl-pagination__nav--prev::after { display: none; }
.bdl-pagination__ellipsis {
    color: #888;
    padding: 0 4px;
}

/* Alte .f3-widget-paginator ausblenden, falls irgendwo noch gerendert */
.page-navigation ul.f3-widget-paginator { gap: 0; }

/* Pagination-Links duerfen keinen Fliesstext-Arrow bekommen */
#content a.bdl-pagination__page::after { content: none !important; -webkit-mask: none !important; mask: none !important; background: none !important; width: 0 !important; height: 0 !important; margin: 0 !important; }
/* nav-Links behalten ihren eigenen Pfeil aus der bdl-pagination-Regel */
#content a.bdl-pagination__nav::after {
    content: "" !important;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path d='M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z'/></svg>") no-repeat center / contain !important;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path d='M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z'/></svg>") no-repeat center / contain !important;
    background-color: currentColor !important;
    width: 10px !important;
    height: 10px !important;
    opacity: 1 !important;
    margin: 0 !important;
    transform: none !important;
}
#content a.bdl-pagination__nav--prev::after { display: none !important; }
#content a.bdl-pagination__nav--prev::before {
    content: "" !important;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path d='M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z'/></svg>") no-repeat center / contain !important;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path d='M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z'/></svg>") no-repeat center / contain !important;
    background-color: currentColor !important;
    width: 10px !important;
    height: 10px !important;
    transform: rotate(180deg);
    display: inline-block !important;
}

/* ===========================================================
 * Zitate groesser + mehr Spacing (Susannes Wunsch /leasing-forschung)
 * Gilt fuer alle italic-Absaetze (blockquote-artig) im Fliesstext
 * =========================================================== */
#content .ce-bodytext p em:only-child,
#content .ce-bodytext p i:only-child,
#content .ce-bodytext blockquote,
#content .ce-bodytext p[style*="italic"] {
    display: block;
    font-style: italic;
    font-size: 1.15em;
    line-height: 1.55;
    color: var(--c-blue);
    padding: 1em 0 1em 1.25em;
    margin: 1.5em 0;
    border-left: 3px solid var(--c-blue);
    background: transparent;
    quotes: "\201E" "\201C";
}
/* Zitate ohne doppelte Anfuehrungszeichen (Susanne 2026-11-05):
   Content hat oft bereits " drin, daher keine automatischen quotes
   via ::before/::after */

/* ===========================================================
 * Mediacenter-Teaser: einheitliche Kachelhoehe
 * Problem: h6.title-img mit <br> macht Zeile mehrzeilig,
 * flexbox-Reihe zieht alle Items mit -> Doppelhoehe
 * Fix: Headline auf 2 Zeilen fixieren (min-height), gleichmaessig
 * =========================================================== */
#content .frame-type-image .title-img.pattern {
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
/* Bei sehr kurzen Headlines: trotzdem min-height damit alle Kacheln ausgerichtet sind */
#content .ce-row > .ce-column > .frame-type-image {
    display: flex;
    flex-direction: column;
}
#content .ce-row > .ce-column > .frame-type-image > header {
    flex: 0 0 auto;
}

/* ===========================================================
 * Susanne 2026-11-05:
 * - Zurueck/Drucken/RSS-Buttons + Chips + Mehr-Pills kein Icon
 * - Chip-Pills (bdl-chip*) in Fliesstext-Regel auch explizit raus
 * =========================================================== */
#content a.button_back::after,
#content a.button_print::after,
#content a.button_rss::after,
#content a[class^="button_"]::after,
#content a.colorbox::after,
#content a.bdl-chip::after,
#content a.bdl-chip--link::after,
#content ul.bdl-chip-grid a::after,
#content ul.bdl-chips a::after,
#content .bdl-alphabar a::after,
#content a.more::after,
#content .frame-type-menu_subpages a::after,
#content .frame-type-shortcut a::after {
    /* Diese Elemente haben eigenes Icon oder sollen keins bekommen */
}

/* Tatsaechlich durchsetzen: ::after weg bei den Button-Varianten */
#content a.button_back::after,
#content a.button_print::after,
#content a.button_rss::after,
#content a[class^="button_"]::after,
#content a.colorbox::after,
#content a.bdl-chip::after,
#content a.bdl-chip--link::after,
#content ul.bdl-chip-grid > li > a::after,
#content ul.bdl-chips > li > a::after,
#content .bdl-alphabar a::after,
#content .frame-type-menu_subpages > ul a::after {
    content: none !important;
    -webkit-mask: none !important;
            mask: none !important;
    background: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    display: none !important;
}
/* ===========================================================
 * Nach-oben-Button (Susanne 2026-11-05)
 * =========================================================== */
#bdl-scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    background: var(--c-blue);
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, background-color .15s ease;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
#bdl-scroll-top svg { width: 20px; height: 20px; fill: currentColor; }
#bdl-scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#bdl-scroll-top:hover { background: var(--c-blue-dark); }
@media print { #bdl-scroll-top { display: none !important; } }

/* ===========================================================
 * Zitate in dunklen Bereichen weiss (Hero, Teaser-Gradient)
 * (Susanne 2026-11-05: Zitat auf Startseite braucht weisse Schrift)
 * =========================================================== */
.hero blockquote,
.hero p em:only-child,
.hero p i:only-child,
.slick-slide blockquote,
.slick-slide p em:only-child,
[class*="gradient-blau"] blockquote,
[class*="gradient-blau"] p em:only-child,
[class*="gradient-blau"] p i:only-child,
#hero blockquote,
#hero p em:only-child {
    color: #ffffff !important;
    border-left-color: #ffffff !important;
}

/* Chart-Quelle als HTML-Element unter Container (Susanne 2026-11-05) */
.bdl-chart-source {
    font-size: 11px;
    color: #666;
    margin: 4px 0 24px;
    padding: 0 8px;
    line-height: 1.4;
}
.chartFooter + .bdl-chart-source { margin-top: 0; }

/* Sidebar-Button-Frames: 6px-Radius auch auf dem umschliessenden .frame
   (sonst ueberdeckt der blaue Frame-Hintergrund die gerundeten a-Ecken)
   Susanne 2026-11-05 */
#right .frame.frame-type-header,
#right .frame.frame-type-header header,
#right .frame.frame-type-header a {
    border-radius: 6px !important;
    overflow: hidden;
}

/* Zitate in blauen Frame-Layouts (Hero, Image-Box) weiss faerben
   (Susanne 2026-11-05 - Dr. Conen Zitat auf Startseite: frame-layout-36) */
.frame-layout-36 blockquote,
.frame-layout-36 p em:only-child,
.frame-layout-36 p i:only-child,
.frame-layout-36 p,
.frame-layout-36 .ce-bodytext,
.frame-layout-36 h1,
.frame-layout-36 h2,
.frame-layout-36 h3,
.frame-layout-36 h4 {
    color: #ffffff !important;
    border-left-color: #ffffff !important;
}

/* ===========================================================
 * Zitat-Box (frame-layout-36): Portrait-Zitat mit dekorativem
 * Anführungszeichen, alles linksbündig weiss auf BDL-Blau
 * (Susanne 2026-11-05)
 * =========================================================== */
.frame-layout-36 {
    padding: 2.5rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}
.frame-layout-36 .ce-bodytext {
    text-align: left !important;
    position: relative;
    z-index: 1;
}
.frame-layout-36 .ce-bodytext > * {
    text-align: left !important;
}
.frame-layout-36 blockquote {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 0 1.5rem !important;
    background: transparent !important;
    font-style: italic !important;
    font-size: 1.1em !important;
    line-height: 1.55 !important;
    position: relative;
    text-align: left !important;
    color: #ffffff !important;
}
.frame-layout-36 blockquote::before,
.frame-layout-36 blockquote::after {
    content: none !important;
}
.frame-layout-36 blockquote p:first-child:empty,
.frame-layout-36 blockquote p:first-child:has(> br:only-child) { display: none; }
/* Grosses Deko-Anfuehrungszeichen oben links (hinter dem Text) */
.frame-layout-36 .ce-bodytext::before {
    content: "\201E"; /* „ */
    position: absolute;
    left: -0.8rem;
    top: -4rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: normal;
    font-weight: 700;
    font-size: 14em;
    line-height: 1;
    color: rgba(255,255,255,0.22);
    pointer-events: none;
    z-index: 0;
}
/* Name und "Mehr zum Thema"-Link */
.frame-layout-36 .ce-bodytext > p {
    color: #ffffff !important;
    margin: 0 0 0.6rem !important;
    text-align: left !important;
    position: relative;
    z-index: 1;
}
body #content .frame-layout-36.frame-layout-36.frame-layout-36.frame-layout-36 .ce-bodytext > p strong a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    margin-top: 0.75rem;
    border: 1px solid #ffffff !important;
    border-radius: 999px;
    color: #ffffff !important;
    background: transparent !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.95em;
    transition: background-color .15s ease, color .15s ease;
}
body #content .frame-layout-36.frame-layout-36.frame-layout-36.frame-layout-36 .ce-bodytext > p strong a::after {
    content: "" !important;
    display: inline-block !important;
    background: currentColor !important;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path d='M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z'/></svg>") no-repeat center / contain !important;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path d='M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z'/></svg>") no-repeat center / contain !important;
    width: .75em !important;
    height: .75em !important;
    margin: 0 !important;
    opacity: 1 !important;
    transition: transform .15s ease !important;
}
body #content .frame-layout-36.frame-layout-36.frame-layout-36.frame-layout-36 .ce-bodytext > p strong a:hover {
    background: #ffffff !important;
    color: var(--c-blue) !important;
}
body #content .frame-layout-36.frame-layout-36.frame-layout-36.frame-layout-36 .ce-bodytext > p strong a:hover::after {
    transform: translateX(2px);
}


/* ===========================================================
 * "Mehr"-Ghost-Pill fuer Startseiten-Key-Figures-Link
 * "Zu den Marktdaten ..." — Susanne 2026-11-05/06
 * =========================================================== */
body #content .key-figures-link {
    text-align: center;
    margin-top: .5rem;
}
body #content .key-figures-link a {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid var(--c-blue) !important;
    border-radius: 999px;
    color: var(--c-blue) !important;
    background: transparent !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: .95em;
    transition: background-color .15s ease, color .15s ease;
}
body #content .key-figures-link a::after {
    content: "" !important;
    display: inline-block !important;
    width: .75em;
    height: .75em;
    background: currentColor !important;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path d='M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z'/></svg>") no-repeat center / contain !important;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path d='M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z'/></svg>") no-repeat center / contain !important;
    transition: transform .15s ease !important;
}
body #content .key-figures-link a:hover {
    background: var(--c-blue) !important;
    color: #ffffff !important;
}
body #content .key-figures-link a:hover::after { transform: translateX(2px); }

/* ===========================================================
 * News + PM Single-Views: Back-Links entfernen
 * (Susanne 2026-11-06, redundant zu Browser-Back und Sharing-Bar)
 * =========================================================== */

body:has(.news-single) .news-backlink-wrap {
    display: none !important;
}

/* ===========================================================
 * TYPO3 Form Submit-Button (Newsletter-Anmeldung etc.)
 * (Susanne 2026-11-06: schwarzer Buttontext weiss machen)
 * =========================================================== */
#content form button.btn.btn-primary,
#content form input.btn.btn-primary {
    background: var(--c-blue) !important;
    color: #ffffff !important;
    border: 1px solid var(--c-blue) !important;
    border-radius: 6px;
    font-weight: 500;
    padding: 12px 22px;
    cursor: pointer;
}
#content form button.btn.btn-primary:hover,
#content form input.btn.btn-primary:hover {
    background: #15407e !important;
    border-color: #15407e !important;
}

/* ===========================================================
 * Fachveranstaltungen: Bilder-Zuschnitte sanitizen
 * (Susanne 2026-11-06)
 * Viele CE-Bilder haben keinen crop-JSON und wuerden deshalb mit
 * originaler Hochformat-Proportion rendern (z.B. 300x636). Bis die
 * Redaktion die Bilder im BE croppt, max-height so beschraenken,
 * dass extreme Hochformate abgeschnitten werden - Breite bleibt
 * wie vom TYPO3-ImageProcessor berechnet.
 * =========================================================== */
/* nur ce-intext (Thumbnail neben Text) - ce-center (Hero-Bild) bleibt */
body #content .ce-textpic.ce-intext .ce-column img.image-embed-item {
    /* Breite vom HTML-Attribut behalten, Hoehe auf max 300px deckeln -
       Portraits (300x636) werden zu 300x300 gecropped, Landscape bleibt. */
    max-height: 300px !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* ===========================================================
 * Leasing A-Z (Glossary)
 * (Susanne 2026-11-06)
 * (a) Alphabar: nicht belegte Buchstaben ausgrauen
 * (b) Begriffs-Headlines klar und gross (kein Button, kein Popup)
 * =========================================================== */
.bdl-alphabar a.is-disabled,
.bdl-alphabar span.is-disabled {
    color: #bbb !important;
    cursor: default !important;
    pointer-events: none !important;
    text-decoration: none !important;
    background: transparent !important;
}
.bdl-glossary__term {
    display: block;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--c-blue);
    margin: 1.5rem 0 .4rem 0;
    padding: 0;
    border: none !important;
    background: transparent !important;
    text-align: left;
    cursor: default;
}

/* FAQ-Akkordeon (bdl-faq-accordion.js) */
.bdl-faq{
  border-bottom:1px solid #d8d8d8;
  margin:0;
  padding:0;
}
.bdl-faq:first-of-type{border-top:1px solid #d8d8d8;}
.bdl-faq__summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:16px 0;
  font-weight:700;
  font-size:1.05rem;
  color:#1a4784;
  line-height:1.3;
}
.bdl-faq__summary::-webkit-details-marker{display:none;}
.bdl-faq__summary::after{
  content:"";
  flex:0 0 18px;
  width:18px;
  height:18px;
  margin-top:4px;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path fill='%231a4784' d='M213.7 101.7l-80 80a8 8 0 0 1-11.3 0l-80-80a8 8 0 0 1 11.3-11.3L128 164.7l74.3-74.3a8 8 0 0 1 11.3 11.3Z'/></svg>") no-repeat center/18px;
  transition:transform .2s;
}
.bdl-faq[open] > .bdl-faq__summary::after{transform:rotate(180deg);}
.bdl-faq__summary:hover{color:#15386d;}
.bdl-faq__body{padding:0 0 18px 0;}
.bdl-faq__body > :first-child{margin-top:0;}
.bdl-faq__body > :last-child{margin-bottom:0;}

/* #148 Nuclear override: Hauptmenue-Textfarbe zwingend dunkelgrau,
   ausser bei nav_active (dann weiss auf blau).
   Trigger: beobachtet weisse Schrift auf 'Der BDL' ohne nav_active-Klasse. */
html body div#mainmenu div#menu-content > ul > li > a:not(.nav_active):not(.gradient-blau1):not(.gradient-orange),
html body div#mainmenu div#menu-content > ul > li > a:not(.nav_active):not(.gradient-blau1):not(.gradient-orange) > span.nav {
    color: #333333 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #333333 !important;
}
html body div#mainmenu div#menu-content > ul > li > a:not(.nav_active):not(.gradient-blau1):not(.gradient-orange):hover,
html body div#mainmenu div#menu-content > ul > li > a:not(.nav_active):not(.gradient-blau1):not(.gradient-orange):hover > span.nav {
    color: var(--c-blue) !important;
    -webkit-text-fill-color: var(--c-blue) !important;
}


/* #151 Paginierung (v2 09.11. Nachmittag) — die generische Regel
   #content li a:not(...)[x4]  hat Spezifitaet 0,1,4,2 und killt border-bottom.
   Wir brauchen hoehere Klassenzahl: chain .bdl-pagination 3x + .bdl-pagination__page 2x
   → 0,1,5,2. */
#content .bdl-pagination.bdl-pagination.bdl-pagination li a.bdl-pagination__page.bdl-pagination__page,
#content .bdl-pagination.bdl-pagination.bdl-pagination li a.bdl-pagination__nav.bdl-pagination__nav {
    border: 1px solid #d4d9e0 !important;
    border-bottom: 1px solid #d4d9e0 !important;
    color: var(--c-blue) !important;
    background: #ffffff !important;
}
#content .bdl-pagination.bdl-pagination.bdl-pagination li a.bdl-pagination__page.bdl-pagination__page:hover,
#content .bdl-pagination.bdl-pagination.bdl-pagination li a.bdl-pagination__nav.bdl-pagination__nav:hover {
    background: var(--c-blue) !important;
    color: #ffffff !important;
    border-color: var(--c-blue) !important;
    border-bottom-color: var(--c-blue) !important;
}
#content .bdl-pagination.bdl-pagination.bdl-pagination li a.bdl-pagination__page--current.bdl-pagination__page--current {
    background: var(--c-blue) !important;
    color: #ffffff !important;
    border-color: var(--c-blue) !important;
    border-bottom-color: var(--c-blue) !important;
}

/* ===========================================================
 * Suche (ke_search) — Filter-Box aufhuebschen + Ergebnisse
 * (Susanne 2026-11-09)
 * =========================================================== */
html body .tx-kesearch-pi1 #kesearch_filters {
    background: #f6f8fb !important;
    border: 1px solid #e3e7ee !important;
    border-radius: 8px !important;
    padding: 18px 22px !important;
    margin: 12px 0 24px !important;
}
html body .tx-kesearch-pi1 #kesearch_filters .list {
    margin-bottom: 4px;
}
html body .tx-kesearch-pi1 #kesearch_filters .list span.head {
    color: #666 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    padding-bottom: 8px !important;
}
html body .tx-kesearch-pi1 #kesearch_filters ul.checkboxList {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}
html body .tx-kesearch-pi1 #kesearch_filters ul.checkboxList li.optionCheckBox {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    background: none !important;
}
html body .tx-kesearch-pi1 #kesearch_filters ul.checkboxList li.optionCheckBox::before {
    display: none !important;
}
html body .tx-kesearch-pi1 #kesearch_filters ul.checkboxList li.optionCheckBox input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: var(--c-blue);
    cursor: pointer;
    margin: 0 !important;
}
html body .tx-kesearch-pi1 #kesearch_filters ul.checkboxList li.optionCheckBox label {
    padding: 0 !important;
    cursor: pointer;
    color: #333 !important;
    font-weight: 400;
}
html body .tx-kesearch-pi1 #kesearch_filters ul.checkboxList li.optionCheckBox input:checked + label {
    color: var(--c-blue) !important;
    font-weight: 600;
}
html body .tx-kesearch-pi1 #kesearch_filters ul.checkboxList li.clearer { display: none !important; }

/* Ergebniszeilen: hover + Abstand */
html body .tx-kesearch-pi1 div.result-list-item {
    border-bottom: 1px solid #ececec;
    padding: 18px 10px !important;
    transition: background .15s;
}
html body .tx-kesearch-pi1 div.result-list-item:hover {
    background: #f6f8fb;
}
html body .tx-kesearch-pi1 .result-title a {
    color: var(--c-blue) !important;
    font-weight: 600;
    text-decoration: none !important;
    font-size: 1.05rem;
}
html body .tx-kesearch-pi1 .result-title a:hover {
    text-decoration: underline !important;
}

/* Suche: Pagebrowser unten */
html body .tx-kesearch-pi1 #kesearch_pagebrowser_bottom .pages_total,
html body .tx-kesearch-pi1 #kesearch_pagebrowser_top .pages_total {
    margin: 24px 0;
}
html body .tx-kesearch-pi1 .kesearch_pagebrowser ul.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none !important;
    padding: 0 !important;
    margin: 12px 0 0 !important;
    justify-content: center;
}
html body .tx-kesearch-pi1 .kesearch_pagebrowser li.page-item {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
}
html body .tx-kesearch-pi1 .kesearch_pagebrowser li.page-item::before { display: none !important; }
html body .tx-kesearch-pi1 .kesearch_pagebrowser .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d4d9e0 !important;
    border-radius: 6px;
    color: var(--c-blue) !important;
    background: #ffffff;
    text-decoration: none !important;
    font-weight: 500;
    cursor: pointer;
}
html body .tx-kesearch-pi1 .kesearch_pagebrowser .page-link:hover {
    background: var(--c-blue) !important;
    color: #ffffff !important;
    border-color: var(--c-blue) !important;
}
html body .tx-kesearch-pi1 .kesearch_pagebrowser .page-item.active .page-link,
html body .tx-kesearch-pi1 .kesearch_pagebrowser .page-item.active span.page-link {
    background: var(--c-blue) !important;
    color: #ffffff !important;
    border-color: var(--c-blue) !important;
    cursor: default;
}
html body .tx-kesearch-pi1 .kesearch_pagebrowser .page-item.disabled .page-link {
    opacity: .4;
    pointer-events: none;
}
html body .tx-kesearch-pi1 .result_txt {
    color: #666;
    font-size: 13px;
    text-align: center;
}

/* Pagebrowser: kein automatisches arrow-up-right nach Pagination-Links */
html body .tx-kesearch-pi1 .kesearch_pagebrowser .page-link::after,
html body .tx-kesearch-pi1 .kesearch_pagebrowser .page-link::before {
    content: none !important;
    display: none !important;
    -webkit-mask: none !important;
    mask: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    margin: 0 !important;
}

/* Suche v2 - Chip-style Checkboxen + Lupe Hover + Autosubmit */
html body .tx-kesearch-pi1 #kesearch_filters .list span.head {
    display: block;
    margin-bottom: 10px;
}
html body .tx-kesearch-pi1 #kesearch_filters ul.checkboxList li.optionCheckBox input[type="checkbox"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip: rect(0,0,0,0);
}
html body .tx-kesearch-pi1 #kesearch_filters ul.checkboxList li.optionCheckBox { padding: 0 !important; }
html body .tx-kesearch-pi1 #kesearch_filters ul.checkboxList li.optionCheckBox label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px !important;
    border: 1px solid #d4d9e0;
    border-radius: 20px;
    background: #ffffff;
    color: #333 !important;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s ease;
    user-select: none;
}
html body .tx-kesearch-pi1 #kesearch_filters ul.checkboxList li.optionCheckBox label:hover {
    border-color: var(--c-blue);
    color: var(--c-blue) !important;
    background: #f0f4fb;
}
html body .tx-kesearch-pi1 #kesearch_filters ul.checkboxList li.optionCheckBox input:checked + label {
    background: var(--c-blue);
    border-color: var(--c-blue);
    color: #ffffff !important;
    font-weight: 600;
}
html body .tx-kesearch-pi1 #ke_search_sword {
    padding: 10px 50px 10px 16px !important;
    border: 1px solid #d4d9e0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    width: 100% !important;
    background: #ffffff;
    box-sizing: border-box;
}
html body .tx-kesearch-pi1 #ke_search_sword:focus {
    outline: none;
    border-color: var(--c-blue) !important;
    box-shadow: 0 0 0 3px rgba(26,71,132,.15);
}
html body .tx-kesearch-pi1 .kesearchbox { position: relative; }
html body .tx-kesearch-pi1 #kesearch_submit {
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    transform: translateY(-50%);
    width: 36px !important;
    height: 36px !important;
    padding: 6px !important;
    border-radius: 6px !important;
    background: transparent !important;
    cursor: pointer;
    transition: background .15s;
}
html body .tx-kesearch-pi1 #kesearch_submit:hover {
    background: var(--c-blue) !important;
    filter: brightness(0) invert(1);
}

/* Suche v3 (09.11. abends): Gesamtkasten weg, Pills enger, Lupen-Hover */
html body .tx-kesearch-pi1 #kesearch_filters {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 16px 0 24px !important;
}
html body .tx-kesearch-pi1 fieldset.kesearch_searchbox {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}
html body .tx-kesearch-pi1 #kesearch_filters ul.checkboxList {
    gap: 8px !important;
}
html body .tx-kesearch-pi1 #kesearch_filters ul.checkboxList li.optionCheckBox label {
    padding: 6px 14px !important;
    font-size: 14px;
}
html body .tx-kesearch-pi1 #kesearch_submit {
    position: absolute !important;
    top: 50% !important;
    right: 6px !important;
    transform: translateY(-50%);
    width: 36px !important;
    height: 36px !important;
    padding: 6px !important;
    border-radius: 6px !important;
    background: transparent !important;
    cursor: pointer;
    filter: none !important;
    transition: background .15s, filter .15s;
}
html body .tx-kesearch-pi1 #kesearch_submit:hover {
    background: var(--c-blue) !important;
    filter: brightness(0) invert(1) !important;
}

/* Suche v4 (09.11. spaet): Lupe-Icon sichtbar (PNG ist weiss), Pills gleicher Abstand */
html body .tx-kesearch-pi1 #kesearch_submit {
    position: absolute !important;
    top: 50% !important;
    right: 6px !important;
    transform: translateY(-50%);
    width: 36px !important;
    height: 36px !important;
    padding: 8px !important;
    border-radius: 6px !important;
    background: transparent !important;
    cursor: pointer;
    /* PNG ist weiss; brightness(0) macht alle Pixel schwarz, opacity 0.55 abdämpft */
    filter: brightness(0) opacity(0.55) !important;
    transition: filter .15s, background .15s;
}
html body .tx-kesearch-pi1 #kesearch_submit:hover,
html body .tx-kesearch-pi1 #kesearch_submit:focus {
    background: var(--c-blue) !important;
    /* zurueck zu weiss: brightness(0) invert(1) */
    filter: brightness(0) invert(1) opacity(1) !important;
}

/* Chips gleichmaessiger Abstand UND gleiche Breite */
html body .tx-kesearch-pi1 #kesearch_filters ul.checkboxList {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 10px !important;
}
html body .tx-kesearch-pi1 #kesearch_filters ul.checkboxList li.optionCheckBox label {
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

/* =====================================================================
 * Klaro Overrides (BDL): Kontrast + X-Position im Datenschutz-Modal
 * =================================================================== */

/* Header-Text (Beschreibung ganz oben im Modal) voll weiss statt dunkelgrau */
.klaro .cookie-modal .cm-header p,
.klaro .cookie-modal .cm-header p span,
.klaro .cookie-modal .cm-header p span span {
    color: #ffffff !important;
    opacity: 1 !important;
}
.klaro .cookie-modal .cm-header p a {
    color: var(--klaro-accent) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

/* Service-Purpose-Zeile (.purposes) sichtbar machen (vorher #111 schwarz) */
.klaro .cookie-modal .cm-services .cm-service .purposes,
.klaro .cookie-modal p.purposes,
.klaro .cm-services .cm-service .purposes {
    color: rgba(255,255,255,.85) !important;
    opacity: 1 !important;
    font-size: 12px !important;
}

/* Close-X: neutrale Flaeche statt Orange-Kasten, kleiner, sauber im Eck */
.klaro .cookie-modal button.hide {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,.35) !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    top: 18px !important;
    right: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
}
.klaro .cookie-modal button.hide svg {
    width: 14px !important;
    height: 14px !important;
    display: block !important;
}
.klaro .cookie-modal button.hide svg line {
    stroke: #ffffff !important;
    stroke-width: 1.8 !important;
}
.klaro .cookie-modal button.hide:hover {
    background: rgba(255,255,255,.12) !important;
    border-color: #ffffff !important;
}

/* Header-Container: rechts genug Platz lassen, damit Text nie unter dem X klebt */
.klaro .cookie-modal .cm-header {
    padding-right: 64px !important;
    position: relative !important;
}
.klaro .cookie-modal .cm-header h1,
.klaro .cookie-modal .cm-header .title {
    padding-right: 0 !important;
}

/* Cookie-Notice (unten links): OK-Button lesbar machen - vorher nur Rahmen auf dunkelblau */
.klaro .cookie-notice:not(.cookie-modal-notice) .cn-buttons button.cm-btn-accept,
.klaro .cookie-notice:not(.cookie-modal-notice) button.cm-btn-accept-all {
    background: var(--klaro-accent) !important;
    border-color: var(--klaro-accent) !important;
    color: #ffffff !important;
}
.klaro .cookie-notice:not(.cookie-modal-notice) .cn-buttons button.cm-btn-accept:hover,
.klaro .cookie-notice:not(.cookie-modal-notice) button.cm-btn-accept-all:hover {
    background: var(--klaro-accent-hover) !important;
    border-color: var(--klaro-accent-hover) !important;
}
/* Decline-Button: weisser Rahmen bleibt, aber mit mehr Kontrast */
.klaro .cookie-notice:not(.cookie-modal-notice) button.cm-btn-decline {
    background: transparent !important;
    border-color: rgba(255,255,255,.85) !important;
    color: #ffffff !important;
}
.klaro .cookie-notice:not(.cookie-modal-notice) button.cm-btn-decline:hover {
    background: rgba(255,255,255,.1) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}
/* "Auswahl treffen"-Link im Notice (Learn-More): heller fuer besseren Kontrast */
.klaro .cookie-notice .cn-learn-more {
    color: #ffd98a !important;
    text-decoration: underline !important;
}

/* Modal: Fliesstext im Body ohne Opacity-Dimming (voll lesbar) */
.klaro .cookie-modal .cm-body p,
.klaro .cookie-modal .cm-body li,
.klaro .cm-list-description,
.klaro .cm-services .cm-service .cm-list-description {
    color: #ffffff !important;
    opacity: 0.95 !important;
}
.klaro .cookie-modal h1,
.klaro .cookie-modal .title,
.klaro .cookie-modal .cm-caption {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Klaro Notice: Inline-Links im Fliesstext voll lesbar - vorher stumpf-dunkelblau */
html body .klaro .cookie-notice .cn-body p a,
html body .klaro .cookie-notice .cn-body p a.cn-learn-more,
html body .klaro .cookie-notice:not(.cookie-modal-notice) p a {
    color: #ffd98a !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}
html body .klaro .cookie-notice .cn-body p a:hover {
    color: #ffffff !important;
}

/* OK-Button im Notice: klarer blauer Hintergrund wird zu transparentem Button mit kraeftigem weissen Rahmen */
html body .klaro .cookie-notice:not(.cookie-modal-notice) button.cm-btn-success,
html body .klaro .cookie-notice:not(.cookie-modal-notice) button.cm-btn-accept-all {
    background: transparent !important;
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
}
html body .klaro .cookie-notice:not(.cookie-modal-notice) button.cm-btn-success:hover,
html body .klaro .cookie-notice:not(.cookie-modal-notice) button.cm-btn-accept-all:hover {
    background: rgba(255,255,255,.14) !important;
}

/* Ablehnen-Button (cm-btn-danger) bleibt orange als Primaer-Aktion */
html body .klaro .cookie-notice:not(.cookie-modal-notice) button.cm-btn-danger,
html body .klaro .cookie-notice:not(.cookie-modal-notice) button.cn-decline {
    background: var(--klaro-accent) !important;
    border-color: var(--klaro-accent) !important;
    color: #ffffff !important;
}
html body .klaro .cookie-notice:not(.cookie-modal-notice) button.cm-btn-danger:hover,
html body .klaro .cookie-notice:not(.cookie-modal-notice) button.cn-decline:hover {
    background: var(--klaro-accent-hover) !important;
    border-color: var(--klaro-accent-hover) !important;
}

/* =====================================================================
 * Overflow-Schutz für lange E-Mails + URLs in Sidebars und Kontaktboxen
 * ===================================================================*/
#right a[href^="mailto:"],
#right a[href^="http"],
.frame-type-shortcut a[href^="mailto:"],
.frame-type-shortcut a[href^="http"],
aside a[href^="mailto:"],
aside a[href^="http"],
footer a[href^="mailto:"] {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ===========================================================
 * Datum-Pill für News-Shortcut auf der Startseite
 * Vorschlag Susanne/Stefan 2026-11-10
 * Variante B: Ghost-Pill (BDL-Blau, transparent)
 * =========================================================== */
#c687 .frame-type-text > header,
#c687 .frame-type-text > header > p.h4 {
    margin: 0 0 10px;
    padding: 0;
    text-transform: none;
    letter-spacing: 0;
}
#c687 .frame-type-text > header > p.h4 {
    display: inline-block;
    background: transparent;
    color: #1C4F9B;
    border: 1px solid #1C4F9B;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    padding: 3px 10px 4px;
    border-radius: 999px;
    font-family: inherit;
}

/* ===========================================================
 * Ghost-Pill fuer News-Datum - konsistent ueber Startseite,
 * News-Uebersicht und News-Single. 2026-11-10.
 * =========================================================== */
.news .news-list-view .article .news-list-date,
.news .article .news-list-date,
.news-list-view .article .news-list-date,
.news.news-single .article .footer .news-list-date {
    display: inline-block;
    background-image: none;
    background: transparent;
    color: #1C4F9B;
    border: 1px solid #1C4F9B;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    padding: 3px 10px 4px;
    border-radius: 999px;
    text-decoration: none;
    letter-spacing: 0;
    margin: 0 0 8px;
    font-style: normal;
}
.news .news-list-view .article .news-list-date time,
.news .article .news-list-date time,
.news-list-view .article .news-list-date time,
.news.news-single .article .footer .news-list-date time {
    color: inherit;
    font-weight: inherit;
    font-size: inherit;
    font-style: normal;
}
.news.news-single .article .footer p { margin: 0 0 14px; }

/* ===========================================================
 * Burger-Menu-Breakpoint erweitert auf iPad (<=1023px)
 * Stefan 2026-11-10: auf iPad schon Hamburger statt umbrechender Nav.
 * =========================================================== */
@media all and (max-width: 1023.9px) {
    html.mainmenu-open {
        position: fixed;
        overflow: hidden;
    }
    div#mainmenu div#menu-icon {
        background: url(/sys/img/icons/menu.jpg) no-repeat center;
        display: block !important;
        font-size: 0;
        line-height: 0;
        width: 50px;
        height: 50px;
    }
    div#headmenu.open div#mainmenu div#menu-icon {
        background: url(/sys/img/icons/menu-active.jpg) no-repeat center;
    }
    div#mainmenu ul {
        display: none !important;
        text-align: left;
    }
    div#headmenu.open div#mainmenu ul {
        display: flex !important;
        flex-direction: column;
        height: auto;
    }
    div#headmenu.open div#mainmenu div#menu-content {
        width: 100%;
        height: calc(100vh - 134px);
        overflow-y: scroll;
        position: absolute;
        top: 134px;
        z-index: 100;
    }
    div#mainmenu div#menu-content {
        background: #fff;
    }
    div#mainmenu ul li {
        width: 100% !important;
        display: block;
    }
    div#mainmenu ul li a {
        display: block;
        padding: 15px 20px;
    }
}

/* ===========================================================
 * Ghost-Pills für Links in Hero-Teasern (Startseite)
 * Stefan 2026-11-10: dezent, BDL-Blau.
 * =========================================================== */
#header .ce-textpic.text-on-img .ce-bodytext a {
    display: inline-block;
    background: transparent;
    color: #1C4F9B !important;
    border: 1px solid #1C4F9B;
    padding: 6px 14px 7px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    line-height: 1.2;
    margin-top: 8px;
    transition: background .15s ease, color .15s ease;
}
#header .ce-textpic.text-on-img .ce-bodytext a:hover {
    background: #1C4F9B;
    color: #ffffff !important;
}
/* Weiße Pills, wenn der Teaser-Bodytext auf dunklem Pattern-Hintergrund sitzt */
#header .ce-textpic.text-on-img .ce-bodytext {
    color: #fff;
}
#header .ce-textpic.text-on-img .ce-bodytext a {
    color: #ffffff !important;
    border-color: #ffffff;
    background: rgba(255,255,255,0.08);
}
#header .ce-textpic.text-on-img .ce-bodytext a:hover {
    background: #ffffff;
    color: #1C4F9B !important;
    border-color: #ffffff;
}

/* ===========================================================
 * Hero-Teaser auf schmalen Viewports: Bodytext unter das Bild
 * statt Overlay. Ab < 1024px (Burger-Menu-Breakpoint) wird
 * das Bild so niedrig, dass der Overlay-Bodytext oben
 * abgeschnitten würde. Deshalb layouten wir hier Image oben,
 * Text als Block darunter.
 * Stefan 2026-11-10
 * =========================================================== */
@media all and (max-width: 1023.9px) {
    #header .ce-textpic.text-on-img {
        height: auto !important;
        overflow: visible !important;
    }
    #header .ce-textpic.text-on-img .ce-gallery {
        position: relative !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    #header .ce-textpic.text-on-img .ce-bodytext {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        background: #1C4F9B;
        color: #fff;
        padding: 20px 24px 22px;
        box-sizing: border-box;
    }
    #header .ce-textpic.text-on-img .ce-bodytext h1,
    #header .ce-textpic.text-on-img .ce-bodytext h2,
    #header .ce-textpic.text-on-img .ce-bodytext h3,
    #header .ce-textpic.text-on-img .ce-bodytext h4,
    #header .ce-textpic.text-on-img .ce-bodytext h5,
    #header .ce-textpic.text-on-img .ce-bodytext h6,
    #header .ce-textpic.text-on-img .ce-bodytext .h6 {
        padding-left: 0;
        padding-right: 0;
        margin-top: 0;
        color: #ffffff !important;
    }
    #header .ce-textpic.text-on-img .ce-bodytext p {
        padding-left: 0;
        padding-right: 0;
    }
    /* Slider-Höhe nicht hart auf 400 limitieren */
    #header .slick-slide,
    #header .slick-track,
    #header .slick-list {
        height: auto !important;
    }
}

/* ===========================================================
 * Highcharts-Charts auf schmalen Viewports in den Container
 * zwingen. Original-CSS setzt min-width: 690px fürs Lesen auf
 * Desktop — auf Mobile erzwingt das horizontalen Scroll
 * (schlechte UX). Reflow passiert via JS (bdl-chart-reflow).
 * Stefan 2026-11-10
 * =========================================================== */
@media all and (max-width: 767.9px) {
    .chart,
    .chart.barChart,
    .chart.lineChart,
    .chart.pieChart,
    .chart-helper > .chart {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .chart-helper {
        overflow: visible !important;
    }
    .chart .highcharts-container,
    .chart svg {
        max-width: 100% !important;
    }
}

/* ===========================================================
 * BDL Mobile-Navigation v2 (Stefan 2026-11-11)
 * Begleit-CSS zu mobile-nav-v2.js:
 * - Burger-Icon Hamburger<->X mit morph-Animation
 * - Akkordeon: nur Klassen .bdl-sub-open zeigt Submenu
 * - Chevron rechts, dreht bei .bdl-sub-open
 * - Konsistente Top-Level-Darstellung (nicht invertiert)
 * - Padding-bottom 180px fuer Safari-UI
 * =========================================================== */
@media all and (max-width: 1023.9px) {

    /* --- Burger-Button mit morph-Animation --- */
    div#mainmenu div#menu-icon.bdl-icon-morph {
        background: transparent !important;
        width: 44px !important;
        height: 44px !important;
        margin: 8px 12px !important;
        padding: 0 !important;
        border-radius: 6px;
        position: relative;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: background .2s ease;
    }
    div#mainmenu div#menu-icon.bdl-icon-morph:hover,
    div#mainmenu div#menu-icon.bdl-icon-morph:focus {
        background: rgba(28,79,155,0.08) !important;
    }
    div#mainmenu div#menu-icon.bdl-icon-morph .bdl-bar {
        position: absolute;
        left: 11px;
        right: 11px;
        height: 2px;
        background: #1C4F9B;
        border-radius: 2px;
        transform-origin: center;
        transition: transform .28s ease, top .28s ease, opacity .18s ease;
    }
    div#mainmenu div#menu-icon.bdl-icon-morph .bdl-bar-1 { top: 14px; }
    div#mainmenu div#menu-icon.bdl-icon-morph .bdl-bar-2 { top: 21px; }
    div#mainmenu div#menu-icon.bdl-icon-morph .bdl-bar-3 { top: 28px; }
    /* Open: morph zu X */
    div#headmenu.open div#mainmenu div#menu-icon.bdl-icon-morph {
        background: rgba(28,79,155,0.08) !important;
    }
    div#headmenu.open div#mainmenu div#menu-icon.bdl-icon-morph .bdl-bar-1 {
        top: 21px; transform: rotate(45deg);
    }
    div#headmenu.open div#mainmenu div#menu-icon.bdl-icon-morph .bdl-bar-2 {
        opacity: 0;
    }
    div#headmenu.open div#mainmenu div#menu-icon.bdl-icon-morph .bdl-bar-3 {
        top: 21px; transform: rotate(-45deg);
    }

    /* --- Menu-Panel: Scrollraum fuer Safari-UI --- */
    html body div#headmenu.open div#mainmenu div#menu-content {
        padding-bottom: 180px !important;
        box-sizing: border-box !important;
    }

    /* --- Top-Level konsistent (ueberschreibt Legacy invert) --- */
    html body div#mainmenu > div#menu-content > ul > li > a,
    html body div#mainmenu > div#menu-content > ul > li > a.nav_active,
    html body div#mainmenu > div#menu-content > ul > li > a.gradient-blau1,
    html body div#mainmenu > div#menu-content > ul > li > a.gradient-grau2 {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 9px 16px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #1C4F9B !important;
        background: #ffffff !important;
        background-image: none !important;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        text-decoration: none !important;
        text-shadow: none !important;
        border-left: 4px solid transparent !important;
        border-bottom: 1px solid #eef1f5 !important;
        transition: background .15s ease, border-color .15s ease;
    }
    html body div#mainmenu > div#menu-content > ul > li.bdl-sub-open > a,
    html body div#mainmenu > div#menu-content > ul > li > a.nav_active,
    html body div#mainmenu > div#menu-content > ul > li > a.nav_active.sf-with-ul {
        background: #1C4F9B !important;
        color: #ffffff !important;
        border-left-color: #1C4F9B !important;
    }
    /* BDL Intern als orangener Button */
    html body div#mainmenu > div#menu-content > ul > li > a.gradient-orange {
        color: #ffffff !important;
        background: #e38a16 !important;
        background-image: none !important;
        border-left-color: transparent !important;
    }
    html body div#mainmenu > div#menu-content > ul > li > a.gradient-orange:hover,
    html body div#mainmenu > div#menu-content > ul > li > a.gradient-orange:focus {
        background: #c8640c !important;
        color: #ffffff !important;
    }

    /* --- Chevron rechts bei Items mit Submenu --- */
    html body div#mainmenu > div#menu-content > ul > li.bdl-has-sub > a::after {
        content: "";
        display: inline-block;
        width: 10px; height: 10px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        margin-right: 4px;
        transition: transform .25s ease;
        flex: 0 0 auto;
        opacity: 0.7;
    }
    html body div#mainmenu > div#menu-content > ul > li.bdl-sub-open > a::after {
        transform: rotate(-135deg);
        opacity: 1;
    }
    /* Legacy sf-arrows killen */
    html body div#mainmenu > div#menu-content > ul > li.sf-arrows > a.sf-with-ul::before {
        display: none !important;
    }

    /* --- Akkordeon: Submenu nur offen bei .bdl-sub-open ---
       Hohe Specificity um Legacy @max-width:767 von all.css zu schlagen */
    html.mainmenu-open body div#headmenu div#mainmenu > div#menu-content > ul > li:not(.bdl-sub-open) > ul.sub,
    html.mainmenu-open body div#headmenu div#mainmenu > div#menu-content > ul > li:not(.bdl-sub-open) > div.sub,
    html body div#headmenu div#mainmenu > div#menu-content > ul > li:not(.bdl-sub-open) > ul.sub,
    html body div#headmenu div#mainmenu > div#menu-content > ul > li:not(.bdl-sub-open) > div.sub {
        display: none !important;
    }
    html.mainmenu-open body div#headmenu div#mainmenu > div#menu-content > ul > li.bdl-sub-open > ul.sub,
    html.mainmenu-open body div#headmenu div#mainmenu > div#menu-content > ul > li.bdl-sub-open > div.sub,
    html body div#headmenu div#mainmenu > div#menu-content > ul > li.bdl-sub-open > ul.sub,
    html body div#headmenu div#mainmenu > div#menu-content > ul > li.bdl-sub-open > div.sub {
        display: block !important;
        background: #1C4F9B !important;
        padding: 6px 0 12px !important;
        margin: 0 !important;
    }

    /* --- Submenu-Items weiss auf blau --- */
    html body div#mainmenu div.sub li,
    html body div#mainmenu ul.sub li {
        width: 100% !important;
        display: block !important;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    html body div#mainmenu div.sub li:last-child,
    html body div#mainmenu ul.sub li:last-child {
        border-bottom: 0;
    }
    html body div#mainmenu div.sub li > a,
    html body div#mainmenu ul.sub li > a {
        display: block !important;
        padding: 7px 16px 7px 30px !important;
        font-size: 13.5px !important;
        font-weight: 400 !important;
        color: #ffffff !important;
        background: transparent !important;
        background-image: none !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        text-decoration: none !important;
        text-shadow: none !important;
        border-left: 4px solid transparent !important;
        border-bottom: none !important;
    }
    html body div#mainmenu div.sub li > a:hover,
    html body div#mainmenu ul.sub li > a:hover,
    html body div#mainmenu div.sub li > a:focus,
    html body div#mainmenu ul.sub li > a:focus {
        background: rgba(255,255,255,0.08) !important;
        color: #ffffff !important;
    }
    html body div#mainmenu div.sub li > a.nav_active,
    html body div#mainmenu ul.sub li > a.nav_active,
    html body div#mainmenu div.sub li > a.cur,
    html body div#mainmenu ul.sub li > a.cur {
        background: rgba(255,255,255,0.14) !important;
        border-left-color: #ffffff !important;
        font-weight: 600 !important;
        color: #ffffff !important;
    }
    /* Sub-Sub-Items tiefer */
    html body div#mainmenu ul.sub ul.sub li > a {
        padding-left: 50px !important;
        font-size: 13px !important;
        opacity: 0.9;
    }
}

/* ===========================================================
 * Sammel-Fixes 13.11.2026 (Stefan)
 * #194 Suche-Pagination: Umgebender Rahmen wie bei News
 * #195 Hover/Visited auf dunklem BG
 * #198 News-Datum zurück wie Live (Ghost-Pills raus)
 * #199 Button im Text: nicht bold
 * #202 Newsletter-Button-Schrift weiß
 * =========================================================== */

/* #194 Suche-Pagination: dezenter Trenn-Strich oben wie News */
html body .tx-kesearch-pi1 .kesearch_pagebrowser {
    border-top: 1px solid #e4e7ec;
    padding-top: 20px;
    margin-top: 28px;
}

/* #195 Hover/Visited auf dunklem BG - Footer, blaue Boxen, Submenu */
footer a,
footer a:link,
footer a:visited,
.frame-layout-36 .ce-bodytext a:visited,
.frame-layout-36 .ce-bodytext a:link {
    color: rgba(255,255,255,0.92);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.3);
}
footer a:hover,
footer a:focus,
.frame-layout-36 .ce-bodytext a:hover,
.frame-layout-36 .ce-bodytext a:focus {
    color: #ffffff !important;
    text-decoration-color: #ffffff !important;
}
/* Allgemein auf dunklen Blöcken (BDL-Blue Container): */
[style*="background-color: rgb(28, 79, 155)"] a,
[style*="background:#1C4F9B"] a,
.bg-bdl-blue a,
.kontakt-box a {
    color: #ffffff !important;
}
[style*="background-color: rgb(28, 79, 155)"] a:hover,
[style*="background:#1C4F9B"] a:hover,
.bg-bdl-blue a:hover,
.kontakt-box a:hover {
    color: #ffffff !important;
    opacity: 0.85;
}

/* #198 News-Datum: Ghost-Pills raus, kleines Datum als Text */
html body .news-list-view .article .news-list-date,
html body .news .article .news-list-date,
html body #content .news .article .news-list-date {
    display: inline-block;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    color: #666 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    border-radius: 0 !important;
    margin-bottom: 4px;
}

/* #199 Button im Fliesstext: nicht bold */
#content .ce-bodytext p a.btn,
#content .ce-bodytext p a[class*="btn-"],
#content .ce-bodytext p a[class*="button"],
#content .ce-bodytext p a.gradient-blau1,
#content .ce-bodytext p a.gradient-orange,
#content .ce-bodytext li a.btn,
#content .ce-bodytext li a[class*="btn-"] {
    font-weight: 400 !important;
}
#content .ce-bodytext p a.btn strong,
#content .ce-bodytext p a[class*="btn-"] strong {
    font-weight: 400 !important;
}

/* #202 Newsletter-Anmelde-Formular: Submit-Button-Schrift weiss */
.newsletter-form button[type=submit],
.newsletter-form input[type=submit],
form[id*="newsletter"] button[type=submit],
form[id*="newsletter"] input[type=submit],
#content form button[type=submit].gradient-blau1,
#content form input[type=submit].gradient-blau1 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: #1C4F9B !important;
}

/* ===========================================================
 * #193 Druckansicht Mitglieder - Logos einheitlich, Struktur
 * (print.css hat die Regeln nur in @media print, Browser-Preview
 * muss ohne Media-Query gezaehmt werden)
 * =========================================================== */
.bdl-member-print__logo {
    max-width: 120px !important;
    max-height: 70px;
    height: auto;
    width: auto;
    display: block;
    margin: 0 0 12px;
    object-fit: contain;
}
.bdl-member-print__item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #e4e7ec;
    page-break-inside: avoid;
    break-inside: avoid;
}
.bdl-member-print__item > .bdl-member-print__logo {
    grid-column: 1;
    align-self: start;
}
.bdl-member-print__item > .bdl-member-print__head,
.bdl-member-print__item > .bdl-member-print__cols,
.bdl-member-print__item > .bdl-member-print__topics,
.bdl-member-print__item > .bdl-member-print__footer,
.bdl-member-print__item > .bdl-member-print__meta,
.bdl-member-print__item > .bdl-member-print__desc,
.bdl-member-print__item > .bdl-member-print__title {
    grid-column: 2;
}
.bdl-member-print__title {
    font-size: 17px;
    font-weight: 600;
    color: #1C4F9B;
    margin: 0 0 8px;
}

/* ===========================================================
 * #203 Pressemitteilungs-Dateline (Susanne-Feedback 12.11.):
 *   In News-Singles wird die Stadt+Datum-Zeile (z.B. "Paris,
 *   8. Oktober 2026") oft als Zitat/italic ausgezeichnet und
 *   landet dadurch im Forschungs-Zitat-Stil - viel zu prominent.
 *   Fix: In .news-text-wrap wird ein fuehrender italic-Absatz
 *   bzw. blockquote bzw. explizit markiertes p.pm-dateline als
 *   schlichte Ghost-Pill gerendert (wie News-Datum in der Liste).
 *   Die Zitat-Stilierung fuer Forschungsseiten bleibt davon
 *   unberuehrt (die liegen nicht in .news-text-wrap).
 * =========================================================== */
html body .news-text-wrap > blockquote,
html body .news-text-wrap > p.pm-dateline,
html body .news-text-wrap > p[style*="italic"]:first-child,
html body .news-text-wrap > p em:only-child:where(:first-child) {
    display: inline-block !important;
    font-style: normal !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    color: #666 !important;
    border: 1px solid #d0d5dd !important;
    background: #fff !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    margin: 0 0 20px !important;
    border-left-width: 1px !important;
}

/* ===========================================================
 * #203 Nachtrag: Dateline auch in ce-bodytext-CEs
 *   /newsroom/news-aus-der-branche nutzt frame-type-textpic
 *   mit <p><em>Paris, 8. Oktober 2026</em></p> als erstem
 *   Absatz. Greift die generische Zitat-Regel aus #127 und
 *   landet im Forschungs-Zitat-Stil. Fix: Genau dieses
 *   Muster (p:first-child > em:only-child) als Ghost-Pill.
 *   Gilt generisch, sodass Redakteur*innen Pattern "Ort, Datum"
 *   einfach als führenden italic-Absatz pflegen können.
 * =========================================================== */
html body #content .ce-bodytext > p:first-child > em:only-child,
html body #content .ce-bodytext > p.pm-dateline,
html body #content .ce-bodytext > p.pm-dateline > em,
html body #content .ce-bodytext > p[style*="italic"]:first-child {
    display: inline-block !important;
    font-style: normal !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    color: #666 !important;
    border: 1px solid #d0d5dd !important;
    background: #fff !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    margin: 0 0 20px !important;
    border-left-width: 1px !important;
}
/* Wenn em in p:first-child liegt, darf der umschließende <p>
   nicht selbst die Zitat-Darstellung tragen - also auf default. */
html body #content .ce-bodytext > p:first-child:has(> em:only-child) {
    display: block !important;
    font-style: normal !important;
    font-size: 1rem !important;
    color: inherit !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin: 0 0 12px !important;
}

/* ===========================================================
 * #203c Dateline auch bei Sub-Headline davor
 *   Bei manchen News steht vor der "Stadt, Datum"-Zeile noch
 *   ein <p><strong>Subheadline</strong></p>. Dadurch ist die
 *   Dateline nicht :first-child und greift nicht bei #203b.
 *   Fix: innerhalb .ce-bodytext wird jeder em-only-child-p in
 *   den ersten drei Positionen als Ghost-Pill gerendert.
 * =========================================================== */
html body #content .ce-bodytext > p:nth-of-type(-n+3) > em:only-child {
    display: inline-block !important;
    font-style: normal !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    color: #666 !important;
    border: 1px solid #d0d5dd !important;
    background: #fff !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    margin: 0 0 20px !important;
    border-left-width: 1px !important;
}
html body #content .ce-bodytext > p:nth-of-type(-n+3):has(> em:only-child) {
    display: block !important;
    font-style: normal !important;
    font-size: 1rem !important;
    color: inherit !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin: 0 0 12px !important;
}
