/* Lokale Schriften (A1 Livegang) — ersetzt Google Fonts */
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:600 800;font-stretch:100%;font-display:swap;src:url('../fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:600 800;font-stretch:100%;font-display:swap;src:url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 700;font-stretch:100%;font-display:swap;src:url('../fonts/instrument-sans-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 700;font-stretch:100%;font-display:swap;src:url('../fonts/instrument-sans-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* Bildungsakademie Hannover — shared styles
   Implemented from the Claude Design project "Bildungsakademie Hannover Redesign".
   Fonts: Bricolage Grotesque (display), Instrument Sans (text). */

:root {
  --bg: #FAF8F4;
  --ink: #0E1B26;
  --ink-soft: #3E4E5E;
  --muted: #5A6B7C;
  --faint: #8A99A8;
  --teal: #0F5E70;
  --teal-dark: #0B4553;
  --sky: #8FD3E0;
  --sky-mid: #4FAEC4;
  --wash: #E9F4F7;
  --wash-2: #EFF7F9;
  --amber: #F2A73B;
  --amber-dark: #E8981F;
  --green: #2FA167;
  --navy: #0E1B26;
  --navy-deep: #0A1420;
  --navy-2: #16283C;
  --navy-line: #26405A;
  --navy-line-2: #3A5470;
  --on-navy: #9FB2C4;
  --on-navy-bright: #DCE8F2;
  --line-10: rgba(14, 27, 38, .1);
  --line-12: rgba(14, 27, 38, .12);
  --line-14: rgba(14, 27, 38, .14);
  --header-h: 78px;
  --font-display: 'Bricolage Grotesque', 'Instrument Sans', sans-serif;
  --font-text: 'Instrument Sans', system-ui, sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
::selection { background: var(--sky); color: var(--ink); }
summary::-webkit-details-marker { display: none; }
*:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }
/* hidden must win over class/inline display values (e.g. form success card) */
[hidden] { display: none !important; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff;
  padding: 12px 20px; z-index: 100; border-radius: 0 0 10px 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Responsive helpers (from the design prototype) ---------- */
@media (max-width: 1020px) {
  .bh-navdesk { display: none !important; }
  .bh-burger { display: inline-flex !important; }
}
@media (min-width: 1021px) {
  .bh-burger { display: none !important; }
  .bh-stickycta { display: none !important; }
}
@media (max-width: 880px) {
  .bh-2col { grid-template-columns: 1fr !important; }
  .bh-formgrid { grid-template-columns: 1fr !important; }
}

/* ---------- Hover/focus utilities (design's pseudo-style vocabulary) ---------- */
.hov-amber:hover{ background: var(--amber-dark) !important; }
.hov-wash:hover{ background: var(--wash) !important; }        /* #E9F4F7 */
.hov-wash2:hover{ background: var(--wash-2) !important; }     /* #EFF7F9 */
.hov-teal-border:hover{ border-color: var(--teal) !important; }
.hov-teal:hover{ border-color: var(--teal) !important; color: var(--teal) !important; }
.hov-navy:hover{ background: #1E3247 !important; }
.hov-sky:hover{ border-color: var(--sky) !important; color: var(--sky) !important; }
.hov-sky-text:hover{ color: var(--sky) !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 244, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-10);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 20px; height: var(--header-h);
}
.header-logo { display: flex; flex-shrink: 0; }
.header-logo img { height: 56px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-item {
  text-decoration: none; padding: 10px 14px; border-radius: 10px;
  font-weight: 600; font-size: 15.5px; color: var(--ink);
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 7px;
}
.nav-item:hover { background: var(--wash); color: var(--ink); }
.nav-item.is-current { box-shadow: inset 0 -3px 0 var(--sky); }
.dd-caret { font-size: 9px; opacity: .55; transform: translateY(1px); }

.nav-dd { position: relative; }
.nav-panel {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: #fff; border: 1px solid var(--line-10); border-radius: 16px;
  box-shadow: 0 18px 48px var(--line-14);
  padding: 8px; min-width: 320px;
  display: flex; flex-direction: column; gap: 2px;
}
.nav-card { text-decoration: none; padding: 12px 14px; border-radius: 11px; display: block; }
.nav-card:hover, .nav-card.is-current { background: var(--wash-2); }
.nav-card-t { display: block; font-weight: 700; font-size: 15.5px; color: var(--ink); }
.nav-card-s { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.nav-sep { border-top: 1px solid rgba(14, 27, 38, .08); margin: 6px 8px; }
.badge-neu {
  background: var(--amber); color: var(--ink); font-size: 11px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px; margin-left: 6px;
}

.header-phone {
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: var(--ink);
  padding: 10px 6px; white-space: nowrap;
}
.header-phone:hover { color: var(--ink); }
.dot-green { width: 9px; height: 9px; border-radius: 50%; background: var(--green); display: inline-block; }

.btn-header {
  text-decoration: none; background: var(--amber); color: var(--ink);
  font-weight: 700; font-size: 15.5px; padding: 13px 22px; border-radius: 12px;
  white-space: nowrap; box-shadow: 0 2px 0 rgba(14, 27, 38, .18);
}
.btn-header:hover { background: var(--amber-dark); color: var(--ink); }

.bh-burger {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  border: 1.5px solid rgba(14, 27, 38, .18); background: #fff; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.bh-burger span { width: 20px; height: 2px; background: var(--ink); display: block; }

/* Mobile menu: vollflächiges Overlay UNTER dem Header (z-index 55 < 60).
   Die Menüfläche läuft hinter dem Header durch (padding-top) — dadurch kann
   nie ein Spalt mit durchscheinendem Seiteninhalt entstehen. Hintergrund-
   Scroll wird per html.menue-offen gesperrt (main.js). */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding-top: calc(var(--header-h) + 1px);
}
.mobile-menu[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu { animation: mm-ein .16s ease-out; }
  @keyframes mm-ein { from { opacity: 0; transform: translateY(-8px); } }
}
html.menue-offen { overscroll-behavior: none; }
.mm-scroll {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px;
}
/* Akkordeon-Kacheln (Apple/Samsung-Muster): einheitliches 10px-Raster über gap,
   keine Sonderabstände — Gruppen als <details>, Direktlinks als .mm-kachel */
.mm-acc, .mm-kachel { background: #fff; border: 1.5px solid var(--line-12); border-radius: 14px; }
.mm-acc-kopf {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16.5px; color: var(--ink);
  padding: 15px 16px; cursor: pointer; list-style: none; border-radius: 14px;
}
.mm-acc-kopf::-webkit-details-marker { display: none; }
.mm-acc-pfeil { display: flex; color: var(--muted); transition: transform .18s ease; }
.mm-acc[open] > .mm-acc-kopf .mm-acc-pfeil { transform: rotate(180deg); }
.mm-acc[open] > .mm-acc-kopf { padding-bottom: 8px; }
.mm-acc-inhalt { display: flex; flex-direction: column; gap: 2px; padding: 0 8px 10px; }
.mm-link {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15.5px;
  padding: 11px 12px; border-radius: 10px;
}
.mm-link:hover { background: var(--wash); color: var(--ink); }
.mm-link.is-current { background: var(--wash); font-weight: 700; }
.mm-kachel {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; font-size: 16.5px; color: var(--ink);
  padding: 15px 16px; border-radius: 14px;
}
.mm-kachel:hover { background: var(--wash-2); }
.mm-kachel.is-current { background: var(--wash); }
.mm-tel {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px;
  padding: 4px 6px 0; display: flex; gap: 9px; align-items: center;
}
.mm-fuss {
  flex-shrink: 0; padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-12); background: var(--bg);
}
.mm-cta {
  display: block; text-decoration: none; background: var(--amber); color: var(--ink);
  font-weight: 700; font-size: 17px; padding: 15px 22px; border-radius: 12px;
  text-align: center;
}
.mm-cta:hover { background: var(--amber-dark); color: var(--ink); }
/* Offenes Mobilmenü: FAB weicht, damit er den CTA-Fuß nicht überdeckt */
body:has(#mobil-menu:not([hidden])) .bh-fab { display: none; }

/* ---------- Buttons ---------- */
.btn {
  text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-family: inherit; border-radius: 14px; cursor: pointer; border: none;
}
.btn--primary {
  background: var(--amber); color: var(--ink); font-size: 17px; padding: 17px 28px;
  box-shadow: 0 2px 0 rgba(14, 27, 38, .18);
}
.btn--primary:hover { background: var(--amber-dark); color: var(--ink); }
.btn--primary.btn--md { font-size: 16.5px; padding: 16px 26px; box-shadow: none; }
.btn--primary.btn--sm { font-size: 16px; padding: 15px 24px; border-radius: 13px; box-shadow: none; }
.btn--outline {
  background: #fff; border: 1.5px solid rgba(14, 27, 38, .22); color: var(--ink);
  font-size: 17px; padding: 16px 26px;
}
.btn--outline:hover { border-color: var(--teal); color: var(--teal); }
.btn--dark { background: var(--navy); color: #fff; font-size: 16.5px; padding: 16px 26px; }
.btn--dark:hover { background: #1E3247; color: #fff; }
.btn--dark.btn--sm { font-size: 15.5px; padding: 13px 22px; border-radius: 12px; }
.btn--ghost {
  background: transparent; border: 1.5px solid var(--navy-line-2); color: #fff;
  font-size: 17px; padding: 16px 26px;
}
.btn--ghost:hover { border-color: var(--sky); color: var(--sky); }
.btn--ghost.btn--sm { font-size: 15.5px; padding: 14px 22px; border-radius: 13px; }
.btn--ghost.btn--md { font-size: 16px; padding: 14px 22px; border-radius: 13px; }
.btn--hero-ghost {
  background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(255, 255, 255, .42);
  color: #fff; font-size: 17px; padding: 16px 26px;
}
.btn--hero-ghost:hover { border-color: var(--sky); color: var(--sky); }

/* ---------- Kicker (bars + uppercase label) ---------- */
.kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.kicker-bars { display: flex; align-items: flex-end; gap: 3px; }
.kicker-bars span:nth-child(1) { width: 5px; height: 8px; background: var(--sky); border-radius: 1px; }
.kicker-bars span:nth-child(2) { width: 5px; height: 13px; background: var(--sky-mid); border-radius: 1px; }
.kicker-bars span:nth-child(3) { width: 5px; height: 18px; background: var(--teal); border-radius: 1px; }
.kicker-label {
  font-size: 13.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal);
}
.kicker--dark .kicker-bars span:nth-child(1) { background: #31485E; }
.kicker--dark .kicker-bars span:nth-child(2) { background: var(--sky-mid); }
.kicker--dark .kicker-bars span:nth-child(3) { background: var(--sky); }
.kicker--dark .kicker-label { color: var(--sky); }

/* ---------- Badges ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.badge { font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; }
.badge--dark { background: var(--navy); color: #fff; }
.badge--sky { background: var(--sky); color: var(--ink); }
.badge--outline {
  background: #fff; border: 1.5px solid var(--line-14); color: var(--ink);
  padding: 6px 13px;
}

/* Highlight mark in headings */
.mark {
  background: var(--sky); color: var(--ink);
  padding: .02em .16em; border-radius: 8px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ---------- Headings ---------- */
.h-display, .h-sub { font-family: var(--font-display); margin: 0; }
.h-display { font-weight: 800; letter-spacing: -0.015em; line-height: 1.08; }
.h-sub { font-weight: 700; line-height: 1.1; }

/* ---------- Facts strip (dark stats band) ---------- */
.facts-strip { background: var(--navy); }
.facts-grid {
  max-width: 1240px; margin: 0 auto; padding: 34px 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px;
}
.fact { display: flex; flex-direction: column; gap: 3px; border-left: 3px solid var(--sky); padding-left: 18px; }
.fact-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3vw, 40px); color: #fff; }
.fact-label { font-size: 15px; color: var(--on-navy); font-weight: 500; }

/* ---------- Cards & accordions ---------- */
.card { background: #fff; border: 1.5px solid var(--line-12); border-radius: 16px; }

.acc { background: #fff; border: 1.5px solid var(--line-12); border-radius: 16px; padding: 0 24px; }
.acc-sum {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 0; font-weight: 700; font-size: 17px;
}
.acc-plus { color: var(--teal); font-size: 22px; font-weight: 600; flex-shrink: 0; }
.acc-body { margin: 0; padding: 0 0 22px; font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); max-width: 68ch; }

/* Steps (numbered card list) */
.step-num {
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  background: var(--navy); color: #fff; width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step-num--amber { background: var(--amber); color: var(--ink); }

/* ---------- Dark panels ---------- */
.dark-panel { background: var(--navy); border-radius: 26px; padding: clamp(30px, 5vw, 58px); }
.subcard { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 20px; }
.speclist { margin: 0; display: flex; flex-direction: column; }
.speclist > div {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 11px 0;
  border-bottom: 1px solid var(--navy-line);
}
.speclist > div:last-child { border-bottom: none; }
.speclist dt { font-size: 14.5px; color: var(--on-navy); }
.speclist dd { margin: 0; font-size: 14.5px; font-weight: 700; color: #fff; text-align: right; }

/* Callout (light teal wash box) */
.callout {
  background: var(--wash); border: 1.5px solid rgba(15, 94, 112, .16); border-radius: 26px;
  padding: clamp(28px, 4.5vw, 48px);
}

/* ---------- CTA section (dark, centered) ---------- */
.cta-dark { background: var(--navy); }
.cta-dark-inner {
  max-width: 1240px; margin: 0 auto; padding: 76px 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

/* ---------- Contact FAB ---------- */
.bh-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.fab-panel {
  background: #fff; border: 1.5px solid var(--line-14); border-radius: 18px;
  box-shadow: 0 24px 56px rgba(14, 27, 38, .24);
  padding: 10px; display: flex; flex-direction: column; gap: 2px; min-width: 264px;
}
.fab-panel[hidden] { display: none; }
.fab-note {
  margin: 4px 6px 8px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--teal);
}
.fab-item {
  text-decoration: none; padding: 11px 14px; border-radius: 12px;
  display: flex; flex-direction: column; gap: 1px;
}
.fab-item:hover { background: var(--wash-2); }
.fab-item-t { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.fab-item-s { font-size: 12.5px; color: var(--muted); }
.fab-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 15.5px;
  font-family: inherit; padding: 15px 22px; border-radius: 999px; border: none;
  cursor: pointer; box-shadow: 0 14px 34px rgba(14, 27, 38, .32); min-height: 48px;
}
.fab-btn:hover { background: #1E3247; }

/* ---------- Sticky mobile CTA (course pages) ---------- */
.bh-stickycta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(250, 248, 244, .96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1.5px solid var(--line-14);
  padding: 12px 16px; display: flex; gap: 10px;
}

/* ---------- Google rating stars (fill derived from the rating value) ---------- */
.gstars { position: relative; display: inline-block; line-height: 1; letter-spacing: 1px; color: rgba(14, 27, 38, .25); font-size: 14px; }
.gstars--dark { color: rgba(255, 255, 255, .35); }
.gstars-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--amber); }

/* ---------- Cert gallery (Neu im Programm) ---------- */
.cert-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr); gap: 16px; align-items: stretch; }
.car-viewport {
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.car-viewport::-webkit-scrollbar { display: none; }
.car-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; height: 100%; }
.car-track > * { scroll-snap-align: start; }
.car-nav { display: flex; gap: 8px; }
.car-btn {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1.5px solid rgba(14, 27, 38, .18); background: #fff; color: var(--ink);
  font-size: 17px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.car-btn:hover { border-color: var(--teal); color: var(--teal); }
.car-btn:disabled { opacity: .35; cursor: default; border-color: rgba(14, 27, 38, .18); color: var(--ink); }
@media (max-width: 1020px) {
  .cert-row { grid-template-columns: 1fr; }
  .car-track { grid-auto-columns: min(78%, 300px); }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 14px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.breadcrumbs a { text-decoration: none; }
.breadcrumbs .bc-current { color: var(--ink); font-weight: 600; }
.breadcrumbs .bc-muted { color: var(--muted); }

/* ---------- Forms (dark card style) ---------- */
.form-dark { background: var(--navy); border-radius: 22px; display: flex; flex-direction: column; gap: 16px; }
.form-dark label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--on-navy); }
.form-dark input[type="text"], .form-dark input:not([type]), .form-dark input[type="email"], .form-dark input[type="tel"],
.form-dark select, .form-dark textarea {
  border: 1.5px solid var(--navy-line); border-radius: 11px; padding: 13px 14px;
  font-size: 16px; font-family: inherit; background: #fff; color: var(--ink);
  width: 100%; min-width: 0; box-sizing: border-box;
}
.form-check { flex-direction: row !important; gap: 10px !important; align-items: flex-start; font-size: 13.5px !important; font-weight: 400 !important; line-height: 1.5; cursor: pointer; }
.form-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--sky); }
main h1, main h2, main h3, main h4 { overflow-wrap: break-word; }
.rechtstext p { overflow-wrap: anywhere; }

.form-dark textarea { resize: vertical; min-height: 74px; }

/* Honeypot (Formular-Vertrag §3): per CSS unsichtbar, bewusst NICHT type=hidden */
.hp { display: none !important; position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Fehlerbox der Vertragsformulare */
[data-formular-fehler] ul { margin: 6px 0 0; padding-left: 18px; }
[data-formular-fehler] li { margin: 2px 0; }

/* ---------- Image placeholder (unfilled design slots) ---------- */
.img-slot {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, #DCE8ED 0%, #C9DAE1 100%);
  color: var(--muted); font-size: 13px; font-weight: 600; padding: 12px;
}
.img-slot--dark { background: linear-gradient(135deg, #16283C 0%, #1E3247 100%); color: var(--on-navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy); }
.foot-wrap { max-width: 1240px; margin: 0 auto; padding: 60px 24px 30px; }
.foot-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.foot-brand { display: flex; flex-direction: column; gap: 16px; }
.foot-brand img { height: 44px; width: auto; align-self: flex-start; }
.foot-brand p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.foot-contact { line-height: 1.8 !important; }
.foot-contact a { color: var(--on-navy-bright); text-decoration: none; font-weight: 600; }
.foot-h {
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; margin: 0 0 16px;
}
.foot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.foot-list a { color: var(--on-navy); text-decoration: none; }
.foot-list a:hover { color: var(--sky); }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
  align-items: center; padding-top: 24px; font-size: 13.5px;
}
.foot-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-legal a { color: var(--on-navy); text-decoration: none; }
.foot-legal a:hover { color: var(--sky); }

/* Symmetrisches 5er-Raster: 3 Kacheln oben, 2 zentriert darunter */
.bh-raster-32 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.bh-raster-32 > * { grid-column: span 2; }
.bh-raster-32 > *:nth-child(4) { grid-column: 2 / span 2; }
.bh-raster-32 > *:nth-child(5) { grid-column: 4 / span 2; }
@media (max-width: 880px) {
  .bh-raster-32 { grid-template-columns: 1fr; }
  .bh-raster-32 > * { grid-column: auto !important; }
}

/* Kachel flächig klickbar: der innere Link dehnt sich unsichtbar über die
   Kachel (Screenreader behalten den kurzen Linknamen). Hover nur auf
   Hover-Geräten; Ring als box-shadow, damit er nicht mit Inline-Borders
   kollidiert; Tastatur-Fokus liegt auf der ganzen Kachel. */
.kachel-klick { position: relative; }
.kachel-klick .kachel-ziel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
@media (hover: hover) {
  .kachel-klick:hover { box-shadow: 0 0 0 1.5px var(--teal); }
}
.kachel-klick:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
.kachel-klick .kachel-ziel:focus { outline: none; }

/* DM-Hero: Neonschild („All you need is love & … digital marketing") soll
   direkt lesbar sein — Position wird breitenabhängig gesteuert. */
.dm-hero-bild { object-position: 72% 38%; }
@media (max-width: 880px) { .dm-hero-bild { object-position: 62% center; } }

/* ---------- Schmale Geräte: Header-Kompression (MUSS nach den Basisregeln stehen) ---------- */
@media (max-width: 460px) {
  :root { --header-h: 64px; }
  .header-inner { padding: 0 14px; gap: 12px; }
  .header-logo img { height: 42px; }
  .btn-header { font-size: 13.5px; padding: 10px 12px; margin-left: auto; }
  .bh-burger { width: 44px; height: 44px; flex-shrink: 0; }
}
@media (max-width: 460px) {
  main :is(h1, h2, h3, h4, p, li, dt, dd, span, blockquote, figcaption, summary, a, button) { overflow-wrap: anywhere; }
}
@media (max-width: 340px) {
  .btn-header .cta-lang { display: none; }  /* „Kostenlose Beratung" → „Beratung" */
}
