/* =====================================================================
   Theme "Berlin" — angelehnt an das Lunikpark-Design.
   Eigenstaendige, mit "bb-" praefixierte Klassen, damit es NICHT mit
   Bootstrap/ci.css der Fallback-Seiten kollidiert.
   ===================================================================== */

:root {
    --bb-primary: #1f5c8b;
    --bb-primary-dark: #12405f;
    --bb-primary-light: #eaf2f8;
    --bb-accent: #14a394;
    --bb-text: #23303a;
    --bb-muted: #5c6b76;
    --bb-border: #dde3e8;
    --bb-bg-soft: #f5f7f9;
    --bb-radius: 12px;
    --bb-radius-sm: 8px;
    --bb-shadow: 0 2px 8px rgba(20,40,60,.06);
    --bb-shadow-lg: 0 8px 28px rgba(20,40,60,.10);
    --bb-container: 1360px;
    --bb-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

body.theme-berlin { font-family: var(--bb-font); color: var(--bb-text); background: #fff; }
.theme-berlin img { max-width: 100%; height: auto; }
.bb-container { width: 100%; max-width: var(--bb-container); margin: 0 auto; padding: 0 1.25rem; }
.bb-muted { color: var(--bb-muted); }
.bb-center { text-align: center; }
.bb-topgap { margin-top: 1.5rem; }

/* Buttons */
.bb-btn { display: inline-block; padding: .7rem 1.4rem; border-radius: var(--bb-radius-sm); font-weight: 600;
    font-size: 1rem; cursor: pointer; border: 2px solid transparent; transition: .2s ease; text-decoration: none; line-height: 1.2; }
.bb-btn:hover { text-decoration: none; }
.bb-btn-primary { background: var(--bb-primary); color: #fff; }
.bb-btn-primary:hover { background: var(--bb-primary-dark); color: #fff; }
.bb-btn-outline { background: transparent; color: var(--bb-primary); border-color: var(--bb-primary); }
.bb-btn-outline:hover { background: var(--bb-primary); color: #fff; }
.bb-btn-accent { background: var(--bb-accent); color: #fff; }
.bb-btn-accent:hover { filter: brightness(.94); color: #fff; }

/* =====================================================================
   Header — zweistufig:
   1) super_top  : Logo links, Servicelinks + Konto rechts (weiß)
   2) header_menu: Hauptnavigation als farbiges Band, rechtsbündig
   ===================================================================== */
.bb-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: var(--bb-shadow); }
.bb-brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--bb-primary-dark); text-decoration: none; }
.bb-brand-logo { height: 70px; width: auto; max-height: 70px; display: block; }
.bb-brand-text { font-size: 1.15rem; white-space: nowrap; }

/* super_top */
.bb-supertop { background: #fff; border-bottom: 1px solid var(--bb-border); }
.bb-supertop-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 86px; }
.bb-supertop-right { display: flex; align-items: center; gap: 1.1rem; }
.bb-supertop-nav ul { list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0; }
.bb-supertop-nav a { color: var(--bb-muted); text-decoration: none; font-size: .9rem; font-weight: 600; }
.bb-supertop-nav a:hover { color: var(--bb-primary-dark); }
.bb-account { display: flex; align-items: center; gap: .5rem; }
.bb-btn-sm { padding: .45rem .8rem; font-size: .85rem; border-width: 2px; white-space: nowrap; line-height: 1.2; }
.bb-btn-ghost { background: transparent; color: var(--bb-muted); border-color: transparent; }
.bb-btn-ghost:hover { color: var(--bb-primary-dark); background: var(--bb-bg-soft); }

/* Hamburger — nur mobil sichtbar */
.bb-nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer; }
.bb-nav-toggle span { width: 26px; height: 3px; background: var(--bb-primary-dark); border-radius: 2px; transition: .25s ease; }
.bb-nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.bb-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.bb-nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* header_menu — farbiges Band, rechtsbündig */
.bb-headerbar { background: var(--bb-primary-dark); }
.bb-headerbar-inner { display: flex; justify-content: flex-end; }
.bb-nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: .15rem; }
.bb-nav-list > li > a { display: flex; align-items: center; padding: .9rem 1.15rem; color: rgba(255,255,255,.9);
    font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; transition: .15s ease; }
.bb-nav-list > li > a:hover { color: #fff; background: rgba(255,255,255,.10); }
.bb-nav-list > li > a[aria-current] { color: #fff; border-bottom-color: var(--bb-accent); }

/* Mobiles Ausklappmenü */
.bb-mobile-menu { display: none; background: #fff; border-top: 1px solid var(--bb-border); box-shadow: var(--bb-shadow-lg); }
.bb-mobile-menu.bb-open { display: block; }
.bb-mobile-list { list-style: none; margin: 0; padding: .4rem 0; }
.bb-mobile-list a { display: block; padding: .8rem 1.25rem; color: var(--bb-text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--bb-border); }
.bb-mobile-list a:hover { background: var(--bb-primary-light); color: var(--bb-primary-dark); }
.bb-mobile-sub a { color: var(--bb-muted); font-weight: 500; font-size: .92rem; }
.bb-mobile-account { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1rem 1.25rem; }

@media (max-width: 991.98px) {
    .bb-supertop-nav, .bb-account { display: none; }
    .bb-headerbar { display: none; }
    .bb-supertop-inner { min-height: 66px; }
    .bb-brand-logo { height: 52px; }
}
@media (min-width: 992px) {
    .bb-nav-toggle { display: none; }
    .bb-mobile-menu { display: none !important; }
    /* Header + Hero über die volle Breite: Inhalt ganz links statt zentriert im schmalen Container */
    .bb-supertop-inner.bb-container,
    .bb-headerbar-inner.bb-container,
    .bb-hero-content.bb-container { max-width: none; padding-left: 2.5rem; padding-right: 2.5rem; }
    /* Hero-mit-Carousel setzt padding:5rem 0 -> horizontales Padding hier wieder auf 2.5rem angleichen */
    .bb-hero-has-carousel .bb-hero-content.bb-container { padding-left: 2.5rem; padding-right: 2.5rem; }
}

/* Sections */
.bb-section { padding: 3.5rem 0; }
.bb-section-soft { background: var(--bb-bg-soft); }
.bb-section-primary { background: var(--bb-primary); color: #fff; }
.bb-section-primary h2 { color: #fff; }
/* CTA-Abschnitt hat navy Hintergrund → Outline-Button MUSS weiß sein, sonst
   ist er unsichtbar (navy auf navy). .theme-berlin-Präfix schlägt die späteren
   Theme-Regeln (Spezifität). */
.bb-section-primary .bb-btn-outline,
.theme-berlin .bb-section-primary .bb-btn-outline { color: #fff; border-color: rgba(255,255,255,.7); }
.bb-section-primary .bb-btn-outline:hover,
.theme-berlin .bb-section-primary .bb-btn-outline:hover { background: #fff; color: var(--bb-primary-dark); }
.bb-section-head { max-width: 720px; margin: 0 auto 2rem; }
.bb-section-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 .5rem; color: var(--bb-primary-dark); }

/* Hero */
.bb-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--bb-primary-dark), var(--bb-primary)); color: #fff; padding: 4.5rem 0; }
.bb-hero-kicker { display:inline-block; align-self:flex-start; width:auto; max-width:max-content; margin:0 0 1rem; padding:.4rem .95rem; border-radius:999px; background:rgba(20,163,148,.22); border:1px solid rgba(255,255,255,.28); color:#fff; font-weight:800; font-size:.8rem; letter-spacing:.03em; }
.bb-hero p { font-size:1.15rem; max-width:56ch; color:rgba(255,255,255,.92); }
.bb-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 18ch; margin: 0 0 1rem; line-height: 1.2; }
.bb-hero p { font-size: 1.2rem; max-width: 60ch; opacity: .95; margin: 0; }
.bb-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.bb-hero .bb-btn-outline { color: #fff; border-color: rgba(255,255,255,.7); }
.bb-hero .bb-btn-outline:hover { background: #fff; color: var(--bb-primary-dark); }

/* Grid + cards */
.bb-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .bb-grid-3 { grid-template-columns: repeat(2,1fr); } .bb-grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 980px) { .bb-grid-3 { grid-template-columns: repeat(3,1fr); } .bb-grid-4 { grid-template-columns: repeat(4,1fr); } }
.bb-card { background: #fff; border: 1px solid var(--bb-border); border-radius: var(--bb-radius); box-shadow: var(--bb-shadow);
    overflow: hidden; display: flex; flex-direction: column; transition: .2s ease; }
.bb-card:hover { box-shadow: var(--bb-shadow-lg); transform: translateY(-2px); }
.bb-card-media { aspect-ratio: 16/9; background: var(--bb-primary-light); display: flex; align-items: center; justify-content: center; color: var(--bb-primary); font-weight: 800; font-size: 1.6rem; }
.bb-card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.bb-card-title { font-size: 1.15rem; margin: 0; }
.bb-card-title a { color: var(--bb-primary-dark); text-decoration: none; }
.bb-card-title a:hover { text-decoration: underline; }
.bb-card-meta { font-size: .85rem; color: var(--bb-muted); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.bb-card-foot { margin-top: auto; padding-top: .75rem; }
.bb-badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--bb-primary-light); color: var(--bb-primary-dark); }
.bb-badge-accent { background: #e2f4f1; color: var(--bb-accent); }
.bb-price { font-weight: 800; color: var(--bb-primary-dark); }

/* Quickselect */
.bb-quickselect { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width:680px){ .bb-quickselect { grid-template-columns: repeat(2,1fr); } }
@media (min-width:980px){ .bb-quickselect { grid-template-columns: repeat(4,1fr); } }
.bb-quickselect a { display: block; padding: 1.4rem; border-radius: var(--bb-radius); background: #fff; border: 1px solid var(--bb-border);
    font-weight: 600; color: var(--bb-text); box-shadow: var(--bb-shadow); text-decoration: none; }
.bb-quickselect a:hover { border-color: var(--bb-primary); }

/* Icon grid */
.bb-icons { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width:680px){ .bb-icons { grid-template-columns: repeat(2,1fr); } }
@media (min-width:980px){ .bb-icons { grid-template-columns: repeat(4,1fr); } }
.bb-icon { text-align: center; }
.bb-icon-glyph { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--bb-primary-light); color: var(--bb-primary); margin-bottom: .6rem; }
.bb-icon-glyph svg { width: 34px; height: 34px; }
.bb-icon h3 { font-size: 1.05rem; margin: .4rem 0; }

/* Stats */
.bb-stats { display: grid; gap: 1rem; grid-template-columns: repeat(2,1fr); }
@media (min-width:768px){ .bb-stats { grid-template-columns: repeat(4,1fr); } }
.bb-stat { text-align: center; }
.bb-stat-value { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.bb-stat-label { opacity: .9; margin-top: .25rem; }

/* Footer — professionelles, mehrspaltiges Layout */
.bb-footer { position: relative; background: linear-gradient(180deg, var(--bb-primary-dark) 0%, #0c2c42 100%); color: #c3d3df; margin-top: 4rem; }
.bb-footer-accent { height: 4px; background: linear-gradient(90deg, var(--bb-primary) 0%, var(--bb-accent) 100%); }
.bb-footer a { text-decoration: none; }

/* Nach-oben-Button (wird per JS ab 400px Scroll eingeblendet) */
#btnBackTop { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 300;
  width: 48px; height: 48px; align-items: center; justify-content: center;
  font-size: 1.4rem; line-height: 1; cursor: pointer; }
/* Cookie-Reopen-Button links unten, damit er den Nach-oben-Button nicht überlagert */
#cw-reopen { transition: opacity .2s ease; }

.bb-footer-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; padding: 3.5rem 0 2.4rem; }
@media (min-width: 620px){ .bb-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px){ .bb-footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1.5fr; gap: 2rem; } }
.bb-footer-brand { font-size: 1.35rem; font-weight: 800; color: #fff; margin-bottom: .7rem; letter-spacing: -.01em; }
.bb-footer-desc { max-width: 42ch; opacity: .82; line-height: 1.6; margin: 0; font-size: .95rem; }
.bb-footer-col h3 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 1.1rem; padding-bottom: .55rem; position: relative; }
.bb-footer-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--bb-accent); border-radius: 2px; }
.bb-footer-col ul { list-style: none; margin: 0; padding: 0; }
.bb-footer-col li { margin-bottom: .6rem; }
.bb-footer-col a { transition: color .15s ease, padding-left .15s ease; }
.bb-footer-col a:hover { padding-left: 3px; }
.bb-footer-contact ul li { display: flex; gap: .65rem; align-items: flex-start; line-height: 1.5; margin-bottom: .8rem; }
.bb-footer-contact svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: .15rem; color: var(--bb-accent); }
.bb-footer-bottom { border-top: 1px solid rgba(255,255,255,.13); padding: 1.3rem 0; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .84rem; opacity: .85; }
.bb-footer-legal { display: flex; gap: 1.4rem; flex-wrap: wrap; }

.bb-empty { text-align: center; padding: 3rem 1rem; color: var(--bb-muted); }

/* =====================================================================
   PROFESSIONELLES SKIN — gilt für ALLE Berlin-Seiten (auch Innenseiten,
   die Bootstrap/FiHH-Markup nutzen). Alles unter .theme-berlin gescoped,
   damit der Adminbereich unberührt bleibt. Modernes v1.0-Design.
   ===================================================================== */
.theme-berlin { font-family: var(--bb-font); background: #fff; }
/* Nur Schriftgewicht/Abstände für Überschriften — KEINE Farbe (sonst würde das
   weiße Hero/CTA-Heading überschrieben). Farben kommen aus bb-* bzw. ci.css. */
.theme-berlin h1, .theme-berlin h2, .theme-berlin h3, .theme-berlin h4 { font-weight: 800; letter-spacing: -.01em; }
.theme-berlin .text-muted { color: var(--bb-muted) !important; }
.theme-berlin main { background: #fff; }

/* Buttons (Bootstrap) im v1.0-Stil: dezent gerundet, kräftig, weiche Hover */
.theme-berlin .btn { border-radius: var(--bb-radius-sm); font-weight: 600; padding: .6rem 1.3rem; border-width: 2px; box-shadow: none; transition: .2s ease; }
.theme-berlin .btn:hover { transform: translateY(-1px); }
.theme-berlin .btn-lg { padding: .8rem 1.7rem; font-size: 1.05rem; }
.theme-berlin .btn-sm { padding: .4rem .85rem; font-size: .88rem; }
.theme-berlin .btn-primary { background: var(--bb-primary); border-color: var(--bb-primary); color: #fff; }
.theme-berlin .btn-primary:hover, .theme-berlin .btn-primary:focus { background: var(--bb-primary-dark); border-color: var(--bb-primary-dark); color: #fff; }
.theme-berlin .btn-outline-primary, .theme-berlin .btn-outline-secondary { color: var(--bb-primary); border-color: var(--bb-primary); background: transparent; }
.theme-berlin .btn-outline-primary:hover, .theme-berlin .btn-outline-secondary:hover { background: var(--bb-primary); border-color: var(--bb-primary); color: #fff; }
.theme-berlin .btn-secondary, .theme-berlin .btn-success, .theme-berlin .btn-warning { background: var(--bb-accent); border-color: var(--bb-accent); color: #fff; }
.theme-berlin .btn-secondary:hover, .theme-berlin .btn-success:hover, .theme-berlin .btn-warning:hover { filter: brightness(.94); color: #fff; }
.theme-berlin .btn-danger { background: var(--color-error-fg, #9b2c2c); border-color: var(--color-error-fg, #9b2c2c); }

/* Cards */
.theme-berlin .card { border: 1px solid var(--bb-border); border-radius: var(--bb-radius); box-shadow: var(--bb-shadow); overflow: hidden; }
.theme-berlin .card:hover { box-shadow: var(--bb-shadow-lg); }
.theme-berlin .card-header { background: var(--bb-primary-light); border-bottom: 1px solid var(--bb-border); font-weight: 700; color: var(--bb-primary-dark); }
.theme-berlin .card-title { color: var(--bb-primary-dark); font-weight: 700; }

/* Formulare */
.theme-berlin .form-label { font-weight: 600; color: var(--bb-text); margin-bottom: .35rem; }
.theme-berlin .form-control, .theme-berlin .form-select { border: 1px solid var(--bb-border); border-radius: var(--bb-radius-sm); padding: .6rem .85rem; font-size: 1rem; color: var(--bb-text); }
.theme-berlin .form-control:focus, .theme-berlin .form-select:focus { border-color: var(--bb-primary); box-shadow: 0 0 0 3px var(--bb-primary-light); }
.theme-berlin .form-check-input:checked { background-color: var(--bb-primary); border-color: var(--bb-primary); }
.theme-berlin .input-group-text { border-radius: var(--bb-radius-sm); background: var(--bb-bg-soft); border-color: var(--bb-border); }

/* Tabellen */
.theme-berlin .table { --bs-table-hover-bg: var(--bb-primary-light); }
.theme-berlin .table > thead th { color: var(--bb-primary-dark); background: var(--bb-bg-soft); border-bottom: 2px solid var(--bb-border); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.theme-berlin .table > tbody td { border-color: var(--bb-border); vertical-align: middle; }

/* Alerts + Badges */
.theme-berlin .alert { border: 0; border-radius: var(--bb-radius-sm); }
.theme-berlin .alert-success { background: var(--color-success-bg, #e7f4ec); color: var(--color-success-fg, #1e6b3a); }
.theme-berlin .alert-danger  { background: var(--color-error-bg, #fbeaea); color: var(--color-error-fg, #9b2c2c); }
.theme-berlin .alert-info    { background: var(--bb-primary-light); color: var(--bb-primary-dark); }
.theme-berlin .badge.bg-primary { background: var(--bb-primary) !important; }
.theme-berlin .badge.bg-secondary { background: var(--bb-muted) !important; }

/* Abschnitte auf Innenseiten (NICHT die bb-* Home-Sektionen anfassen) */
.theme-berlin section:not([class*="bb-"]) { padding: 2.5rem 0; }
.theme-berlin.page-inner main { padding-top: 1.5rem; }

/* Karten-Raster (FiHH Kursliste) etwas moderner */
.theme-berlin .course-card, .theme-berlin .home-stat-card, .theme-berlin .legal-card { border-radius: var(--bb-radius) !important; border: 1px solid var(--bb-border) !important; box-shadow: var(--bb-shadow) !important; }
.theme-berlin .course-card:hover { box-shadow: var(--bb-shadow-lg) !important; transform: translateY(-2px); transition: .2s ease; }

/* Breadcrumbs / Pagination */
.theme-berlin .breadcrumb { background: transparent; padding-left: 0; }
.theme-berlin .page-link { color: var(--bb-primary); border-radius: var(--bb-radius-sm); }
.theme-berlin .page-item.active .page-link { background: var(--bb-primary); border-color: var(--bb-primary); }

/* =====================================================================
   WICHTIG: Home-Sektionen mit dunklem Hintergrund MÜSSEN weiße Schrift
   behalten. Höhere Spezifität, damit das globale Skin (.theme-berlin h1/a)
   sie NICHT überschreibt.
   ===================================================================== */
.theme-berlin .bb-hero h1,
.theme-berlin .bb-hero p,
.theme-berlin .bb-section-primary h2,
.theme-berlin .bb-section-primary p,
.theme-berlin .bb-stats .bb-stat-value,
.theme-berlin .bb-stats .bb-stat-label { color: #fff; }
.theme-berlin .bb-hero .bb-btn-outline { color: #fff; }
.theme-berlin .bb-hero .bb-btn-outline:hover { color: var(--bb-primary-dark); }
.theme-berlin .bb-footer { color: #c3d3df; }
.theme-berlin .bb-footer a { color: #c3d3df; }
.theme-berlin .bb-footer a:hover { color: #fff; }
/* Footer-Überschriften (Navigation/Mein Bereich/Kontakt): weiß + weit.
   !important nötig, weil classic app.css `h1..h6 { color:#12405f !important }` setzt
   und die Überschriften sonst dunkelblau auf dunklem Grund (unsichtbar) blieben. */
.theme-berlin .bb-footer h3 { color: #fff !important; letter-spacing: .1em; }
.theme-berlin .bb-footer .bb-footer-brand { color: #fff !important; }

/* =====================================================================
   Home-Carousel als Hero-Hintergrund (Lunikpark-Stil, Cross-Fade)
   ===================================================================== */
.bb-hero-has-carousel { padding: 0; }
.bb-hero-content { position: relative; z-index: 3; }
/* padding-top/-bottom statt shorthand `padding:5rem 0`, damit das horizontale
   Padding des .bb-container (0 1.25rem) NICHT auf 0 gesetzt wird — sonst klebte
   der Hero-Text auf Mobil an den Rändern (Desktop wurde per min-width:992px kompensiert). */
.bb-hero-has-carousel .bb-hero-content { padding-top: 5rem; padding-bottom: 5rem; min-height: clamp(400px, 30vw, 520px); display: flex; flex-direction: column; justify-content: center; }
/* Tamaño de la banda del slider (SELECT del admin por slide; el JS aplica el
   del slide activo). normal = pequeña · mitte = media (como antes) · full = pantalla. */
.bb-hero--size-normal .bb-hero-content { min-height: clamp(300px, 24vw, 400px); }
.bb-hero--size-mitte  .bb-hero-content { min-height: clamp(400px, 30vw, 520px); }
.bb-hero--size-full   .bb-hero-content { min-height: calc(100svh - var(--bb-hdr, 143px)); }
@media (max-width: 767.98px) {
    .bb-hero-has-carousel .bb-hero-content { padding-top: 2.4rem; padding-bottom: 2.4rem; }
    /* Startseite-Hero auf Mobil aufräumen: nur Titel + Suche zeigen
       (Untertitel, Aktions-Buttons und Trust-Punkte ausblenden). */
    .bb-hero-content > p,
    .bb-hero-content .bb-hero-actions,
    .bb-hero-content .hr-hero-trust { display: none; }
    .bb-hero-search { margin-top: 1.1rem; }
    /* La altura la define la clase de tamaño (normal/mitte/full); en móvil el
       clamp cae a su mínimo (normal 300 · mitte 400) y full sigue a pantalla. */
}
.bb-hero-carousel { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
/* La imagen SIEMPRE rellena la banda (cover, centrada) → nunca deja huecos. */
.bb-hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0; transition: opacity .9s ease; }
.bb-hero-slide.is-active { opacity: 1; }
/* Hintergrund-Video füllt das Slide (cover) wie ein Bild. */
.bb-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-hero-scrim { position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(120deg, rgba(18,64,95,.88), rgba(18,64,95,.66) 52%, rgba(18,64,95,.44)); }
.bb-hero-dots { position: absolute; z-index: 4; bottom: 1rem; left: 0; right: 0; display: flex; justify-content: center; gap: .5rem; }
.bb-hero-dots button { width: .7rem; height: .7rem; border-radius: 999px; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; transition: .2s ease; }
.bb-hero-dots button.is-active { background: #fff; width: 1.7rem; }

/* Kurs-Suchfeld im Hero */
.bb-hero-search { display: flex; gap: .55rem; margin-top: 1.7rem; max-width: 640px; flex-wrap: wrap; }
.bb-hero-search-field { position: relative; flex: 1 1 320px; }
.bb-hero-search-icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--bb-muted); pointer-events: none; }
.bb-hero-search input { width: 100%; padding: .9rem 1rem .9rem 2.7rem; border-radius: var(--bb-radius-sm); border: 0; font-size: 1rem; background: #fff; color: var(--bb-text); box-shadow: var(--bb-shadow); }
.bb-hero-search input:focus { outline: 3px solid rgba(255,255,255,.55); }
.bb-hero-search .bb-btn { flex: 0 0 auto; }
.bb-hero-suggest { position: absolute; top: calc(100% + .35rem); left: 0; right: 0; background: #fff; border-radius: var(--bb-radius-sm); box-shadow: var(--bb-shadow-lg); overflow: hidden; z-index: 20; text-align: left; }
.bb-hero-suggest a { display: block; padding: .6rem .9rem; color: var(--bb-text); text-decoration: none; font-size: .95rem; border-bottom: 1px solid var(--bb-border); }
.bb-hero-suggest a:last-child { border-bottom: 0; }
.bb-hero-suggest a:hover, .bb-hero-suggest a.is-active { background: var(--bb-primary-light); color: var(--bb-primary-dark); }

/* =====================================================================
   CMS-Seiten (Theme "Berlin")
   ===================================================================== */
.bb-page-head { background: var(--bb-bg-soft); border-bottom: 1px solid var(--bb-border); padding: 2.2rem 0; }
.bb-page-head h1 { color: var(--bb-primary-dark); font-size: clamp(1.6rem, 3vw, 2.3rem); margin: .35rem 0 0; }
.bb-page-hero { position: relative; background-size: cover; background-position: center; padding: 4rem 0 2.5rem; color: #fff; }
.bb-page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,64,95,.35), rgba(18,64,95,.78)); }
.bb-page-hero .bb-container { position: relative; z-index: 2; }
.bb-page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: .35rem 0 0; }
.bb-crumbs { font-size: .85rem; color: var(--bb-muted); }
.bb-crumbs a { color: var(--bb-primary); text-decoration: none; }
.bb-crumbs a:hover { text-decoration: underline; }
.bb-crumbs > span { margin: 0 .2rem; }
.bb-crumbs-onhero, .bb-crumbs-onhero a { color: rgba(255,255,255,.92); }

.bb-prose { font-size: 1.05rem; line-height: 1.75; color: var(--bb-text); }
.bb-prose h2 { color: var(--bb-primary-dark); font-size: 1.5rem; margin: 2rem 0 .8rem; }
.bb-prose h3 { color: var(--bb-primary-dark); font-size: 1.2rem; margin: 1.5rem 0 .6rem; }
.bb-prose p { margin: 0 0 1rem; }
.bb-prose ul, .bb-prose ol { margin: 0 0 1rem 1.3rem; }
.bb-prose li { margin-bottom: .4rem; }
.bb-prose img { max-width: 100%; height: auto; border-radius: var(--bb-radius-sm); margin: 1rem 0; }
.bb-prose a { color: var(--bb-primary); }
.bb-prose blockquote { border-left: 4px solid var(--bb-accent); margin: 1.2rem 0; padding: .3rem 0 .3rem 1.1rem; color: var(--bb-muted); }
.bb-prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.bb-prose th, .bb-prose td { border: 1px solid var(--bb-border); padding: .6rem .8rem; text-align: left; }
.bb-prose th { background: var(--bb-bg-soft); color: var(--bb-primary-dark); }

/* =====================================================================
   Button-Textfarben festhalten. Auf Innenseiten färbt `.theme-berlin a`
   (frontend-refine.css, Spezifität 0,1,1) ALLE Links blau — das würde die
   weiße Schrift auf gefüllten Buttons überschreiben. Diese Regeln haben
   0,2,0 und gewinnen, ohne die Footer-Links (0,2,1) anzufassen.
   ===================================================================== */
.theme-berlin .bb-btn-primary { color: #fff; }
.theme-berlin .bb-btn-primary:hover { color: #fff; }
.theme-berlin .bb-btn-accent { color: #fff; }
.theme-berlin .bb-btn-accent:hover { color: #fff; }
.theme-berlin .bb-btn-outline { color: var(--bb-primary); }
.theme-berlin .bb-btn-outline:hover { color: #fff; }
.theme-berlin .bb-btn-ghost { color: var(--bb-muted); }
.theme-berlin .bb-btn-ghost:hover { color: var(--bb-primary-dark); }
