/* ═══════════════════════════════════════════════════════════════════════
   BERGSTRASSE DIGITAL — DESIGN-SYSTEM 2.0 „Tiefglas"
   Fundament, 23.11.2026. Bindend für alle Seiten (siehe VISION.md).

   Diese Datei lädt als LETZTES Stylesheet (header.php, nach tailwind.css).
   Sie ist in vier Teile gegliedert:

     1  TOKENS        Farbe, Licht, Glas, Typo, Raum, Radius, Motion
     2  BÜHNE         html/body, Lichtschicht (#bsd-licht) + CSS-Rückfall
     3  BAUSTEINE     neue, saubere Klassen mit Präfix .b2-
                      Glas M1/M2/M3 · Typo · Buttons · Karten · Formular ·
                      Chips · Sektion · Reveal „Scharfstellen" · Kantenlicht
     4  BRÜCKE        hebt die BESTEHENDEN Klassen des Live-Themes
                      (.btn-gold, .p-card, .svc-card, .f-input …) auf das
                      neue Material, damit jede Seite schon vor ihrem Umbau
                      im neuen System steht. Seiten-Threads ersetzen die
                      Brücke Stück für Stück durch .b2-Bausteine.

   Regeln, die hier technisch durchgesetzt werden:
   · Die Website ist dunkel. Es gibt kein helles Farbschema.
   · Glas nur aus M1/M2/M3 — nie freihändig. Kein Glas in Glas.
   · backdrop-filter nie auf bewegten Elementen (.b2-ohne-blur erzwingt es).
   · Jede Bewegung hat einen reduced-motion-Zweig (ganz unten, EIN Block).
   ═══════════════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────────────
   1  TOKENS
   ───────────────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;

  /* Nacht (Graphit) — unverändert die Marke, nur zu Ende gestuft */
  --d-base:   #07080A;
  --d-soft:   #0C0E12;
  --d-raise:  #12151B;
  --d-elev:   #191D25;
  --d-footer: #050608;
  --d-ink:    #0B101C;
  --d-ink2:   #121A2B;

  /* Text — alle drei Stufen bestehen AA auf --d-base UND auf M2-Glas
     (gemessen, siehe LIES-MICH.md „Kontrast").  */
  --d-text:   #F4F6FA;   /* 18,6 : 1 */
  --d-muted:  #B4BBC6;   /* 10,2 : 1 — Fließtext */
  --d-faint:  #8C94A1;   /*  6,4 : 1 — Meta, Hinweise; kleinste erlaubte Stufe */
  --d-line:   rgba(255,255,255,0.08);
  --d-line-2: rgba(255,255,255,0.16);

  /* Gold = Handlung. EIN Metall für die ganze Seite (vorher zwei: #C8A24A
     im System, #E9B44C in der Navigation). */
  --gold:      #D8AC50;
  --gold-hi:   #F2D08A;
  --gold-deep: #A67C28;
  --gold-ink:  #1A1204;                      /* Schrift AUF Gold: 9,6 : 1 */
  --gold-glow: rgba(216,172,80,0.16);
  --gold-ring: rgba(242,208,138,0.55);
  --metall: linear-gradient(180deg, #F6D996 0%, #E0B65C 46%, #C2963A 100%);
  --goldguss: linear-gradient(135deg, #F2D08A 0%, #D8AC50 55%, #A67C28 100%);

  /* Eis = Licht, das atmet. Nie Text, nie Button. */
  --ice:      #7DC4E8;
  --ice-glow: rgba(125,196,232,0.12);
  --ice-edge: rgba(125,196,232,0.22);

  /* Zustände */
  --ok:    #6FD3A4;
  --fehl:  #FF8A80;      /* 8,0 : 1 auf Basis */

  /* Licht: EINE Quelle, oben links, 165° */
  --lit: 165deg;

  /* ── Glas ────────────────────────────────────────────────────────────
     Drei Materialien. Jedes besteht aus: Scheibe (Füllung) + Weichzeichner
     + Lichtkante (1 px, oben hell, unten warm) + Schattenstapel.
     M1 dünn    Kontrollen: Chips, Eingabefelder, Sekundär-Knöpfe
     M2 normal  Inhalt: Karten, Kästen, Fußzeilen-Bogen
     M3 dick    Über allem: Navigation, Klappmenü, Dialoge, die EINE
                hervorgehobene Karte einer Sektion                        */
  --m1-fill: linear-gradient(var(--lit), rgba(255,255,255,0.085), rgba(255,255,255,0.035));
  --m1-blur: blur(14px) saturate(1.6);
  --m1-opak: #14171D;                         /* ohne backdrop-filter */

  --m2-fill: linear-gradient(var(--lit), rgba(255,255,255,0.075) 0%, rgba(255,255,255,0.030) 46%, rgba(255,255,255,0.018) 100%);
  --m2-blur: blur(28px) saturate(1.8) brightness(1.04);
  --m2-opak: #101318;

  --m3-fill: linear-gradient(180deg, rgba(26,30,39,0.66), rgba(13,15,20,0.74));
  --m3-blur: blur(40px) saturate(1.9);
  --m3-opak: #0E1015;

  /* Lichtkante — der Verlauf, der als 1-px-Rahmen um jedes Glas läuft */
  --kante: linear-gradient(var(--lit),
             rgba(255,255,255,0.38) 0%, rgba(255,255,255,0.10) 28%,
             rgba(255,255,255,0.04) 60%, rgba(242,208,138,0.20) 100%);
  --kante-gold: linear-gradient(var(--lit),
             rgba(246,217,150,0.85) 0%, rgba(216,172,80,0.32) 34%,
             rgba(255,255,255,0.05) 66%, rgba(216,172,80,0.42) 100%);

  /* Schatten — gestapelt, nie EIN großer Schlagschatten */
  --sh-1: 0 1px 1px rgba(0,0,0,0.30), 0 6px 14px -6px rgba(0,0,0,0.45);
  --sh-2: 0 1px 1px rgba(0,0,0,0.30), 0 10px 22px -10px rgba(0,0,0,0.55),
          0 32px 64px -28px rgba(0,0,0,0.65);
  --sh-3: 0 2px 4px rgba(0,0,0,0.35), 0 18px 36px -14px rgba(0,0,0,0.60),
          0 56px 110px -36px rgba(0,0,0,0.75);
  /* Feinschliff 23.11.: dritte Lage. Unter der oberen Kante läuft das Licht ein Stück in die
     Scheibe hinein (wie bei dickem Glas), unten bleibt der Schatten. Kein Fleck: es ist die Kante. */
  --innen: inset 0 1px 0 rgba(255,255,255,0.12), inset 0 22px 30px -26px rgba(255,255,255,0.10),
           inset 0 -10px 24px -14px rgba(0,0,0,0.45);

  --korn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");

  /* ── Typo ────────────────────────────────────────────────────────────
     Zwei Stimmen und EIN Akzent. Poppins, Manrope und Caveat laufen aus
     (Seiten-Threads lösen sie ab; die Dateien bleiben bis dahin liegen). */
  --f-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --f-text:    'Inter', 'Segoe UI', system-ui, sans-serif;
  --f-akzent:  'Instrument Serif', Georgia, serif;   /* nur kursiv, nur als Gold-Zeile */

  --fs-display: clamp(2.5rem, 1.55rem + 4.3vw, 4.75rem);   /* H1 Startseite */
  --fs-h1:      clamp(2.125rem, 1.5rem + 2.9vw, 3.5rem);    /* H1 Unterseite */
  --fs-h2:      clamp(1.75rem, 1.35rem + 1.9vw, 2.75rem);
  --fs-h3:      clamp(1.1875rem, 1.1rem + 0.45vw, 1.4375rem);
  --fs-lead:    clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body:    1.0625rem;      /* 17 px */
  --fs-klein:   0.9375rem;      /* 15 px */
  --fs-meta:    0.8125rem;      /* 13 px — kleinste Schrift der Website */
  --fs-price:   clamp(2.5rem, 2rem + 2vw, 3.25rem);

  --lh-display: 1.04;
  --lh-titel:   1.14;
  --lh-text:    1.65;
  --ls-display: -0.035em;
  --ls-titel:   -0.022em;
  --ls-h3:      -0.012em;
  --ls-eyebrow: 0.16em;
  --mass:       50ch;           /* Prüfer 23.11. (S2): war 62ch = 77 Zeichen gemessen. 50ch ergibt die 62 Zeichen der Vision. */

  /* ── Raum ── 4-Punkt-Raster. Alles, was Abstand ist, kommt von hier. */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 136px;
  --sek-y:   clamp(72px, 4.5rem + 4.4vw, 136px);  /* Sektion oben/unten */
  --sek-y-s: clamp(48px, 3rem + 2.4vw, 80px);     /* enge Sektion */
  --rand:    clamp(20px, 4vw, 40px);              /* Seitenrand */
  --breite:  1200px;                              /* Inhaltsbreite */
  --karte-p: clamp(22px, 1.1rem + 1vw, 32px);     /* Karten-Innenabstand */

  /* ── Radius ── */
  --r-pill: 9999px; --r-modal: 28px; --r-card: 22px; --r-field: 14px; --r-chip: 10px;

  /* ── Geometrie ── */
  --hdr-h: 76px;                                  /* 14 px Luft + 62 px Kapsel */
  --anchor-off: calc(var(--hdr-h) + 12px);
  --sticky-off: calc(var(--hdr-h) + 24px);

  /* ── Motion ── Größe bestimmt Dauer. */
  --e-hero:   cubic-bezier(0.16, 1, 0.3, 1);
  --e-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --e-glas:   cubic-bezier(0.32, 0.72, 0, 1);     /* Flächen, die gleiten */
  --e-inout:  cubic-bezier(0.65, 0, 0.35, 1);
  --e-exit:   cubic-bezier(0.4, 0, 1, 1);
  --e-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-micro: 160ms; --t-small: 260ms; --t-card: 420ms;
  --t-section: 700ms; --t-hero: 1000ms;

  --hover-lift: translateY(-2px);
  --active-press: translateY(0) scale(0.975);

  /* CSS-Rückfall der Lichtschicht (dasselbe Bild wie der Shader bei u_s = 0) */
  --licht-fallback:
    /* Prüfer 23.11. (S3): zwei große weiche Felder wie im Shader. Vorher eine harte
       Ellipse und ein Keil, der als Schrägstreifen sichtbar war. */
    radial-gradient(95% 85% at 74% 6%, rgba(125,196,232,0.115) 0%, rgba(125,196,232,0.07) 28%, rgba(125,196,232,0.028) 56%, transparent 82%),
    radial-gradient(85% 75% at 20% 102%, rgba(216,172,80,0.085) 0%, rgba(216,172,80,0.05) 30%, rgba(216,172,80,0.02) 58%, transparent 82%);
}

/* Kleine Bildschirme: weniger Weichzeichner (Kosten), gleiche Optik */
@media (max-width: 767px) {
  :root {
    --m1-blur: blur(10px) saturate(1.5);
    --m2-blur: blur(18px) saturate(1.7);
    --m3-blur: blur(26px) saturate(1.8);
    --r-card: 20px; --r-modal: 24px;
    --hdr-h: 72px;
  }
}


/* ─────────────────────────────────────────────────────────────────────
   2  BÜHNE
   ───────────────────────────────────────────────────────────────────── */
html {
  background-color: var(--d-base);
  background-image: var(--licht-fallback);
  background-attachment: fixed;
  scroll-padding-top: var(--anchor-off);
  scrollbar-color: #2B303B var(--d-base);       /* Feinschliff: kein heller Rollbalken neben der Nacht */
}
body {
  background: transparent;
  color: var(--d-text);
  font-family: var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Die alte Ambient-Stage (4 feste Radial-Lichter) ist durch Berglicht 2.0
   ersetzt. Zwei Lichtsysteme übereinander wären die „vierte Nebelschicht",
   die der Brand-Guide verbietet. */
body::before { content: none !important; }

#bsd-licht {
  position: fixed; inset: 0; z-index: -1;
  width: 100vw; height: 100vh; height: 100lvh;
  display: block; pointer-events: none;
  opacity: 0;
  transition: opacity 1200ms var(--e-out);
  /* 1/3 Auflösung, weich hochgezogen — genau das soll es */
  image-rendering: auto;
}
#bsd-licht.is-an { opacity: 1; }
@media print { #bsd-licht { display: none; } html { background: #fff; } }

::selection { background: rgba(216,172,80,0.32); color: #fff; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 6px;
}


/* ─────────────────────────────────────────────────────────────────────
   3  BAUSTEINE (.b2-)
   ───────────────────────────────────────────────────────────────────── */

/* Die Bausteine rechnen mit border-box. Im Theme liefert das der Tailwind-
   Preflight; hier steht es noch einmal, damit .b2- auch ohne ihn stimmt. */
[class^="b2-"], [class*=" b2-"], [class^="b2-"]::before, [class*=" b2-"]::before,
[class^="b2-"]::after, [class*=" b2-"]::after { box-sizing: border-box; }

/* ── 3.1 Glas ─────────────────────────────────────────────────────── */
.b2-glas, .b2-m1, .b2-m2, .b2-m3 {
  position: relative;
  isolation: isolate;
  border-radius: var(--r-card);
}
.b2-m1 {
  background: var(--m1-fill);
  -webkit-backdrop-filter: var(--m1-blur); backdrop-filter: var(--m1-blur);
  box-shadow: var(--sh-1), inset 0 1px 0 rgba(255,255,255,0.08);
}
.b2-m2 {
  background: var(--korn), var(--m2-fill);
  -webkit-backdrop-filter: var(--m2-blur); backdrop-filter: var(--m2-blur);
  box-shadow: var(--sh-2), var(--innen);
}
.b2-m3 {
  background: var(--korn), var(--m3-fill);
  -webkit-backdrop-filter: var(--m3-blur); backdrop-filter: var(--m3-blur);
  box-shadow: var(--sh-3), var(--innen);
}
/* Lichtkante: 1 px Verlaufsrahmen, liegt über der Scheibe, fängt keine Klicks */
.b2-m1::before, .b2-m2::before, .b2-m3::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  border-radius: inherit; padding: 1px;
  background: var(--kante);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.b2-m1::before { opacity: 0.7; }
.b2-m2::before, .b2-m3::before { opacity: 0.9; transition: opacity var(--t-card) var(--e-out); }
.b2-gold-kante::before { background: var(--kante-gold); }

/* Prüfer 23.11. (B1): Auf Glas ist der Grund heller als die Nacht. Die schwächste
   Textstufe kam dort am Handy nur auf 4,22 : 1. Auf Glas gilt deshalb ein hellerer
   Wert derselben Stufe; frei auf der Nacht bleibt #8C94A1 aus der Vision. */
.b2-m1, .b2-m2, .b2-m3, body .svc-card, body .ben-card, body .p-card, body .wissen-card,
body .tpl-card, body .bsd-ho-step, body .bsd-hub-card { --d-faint: #A0A8B5; }

/* Kein Weichzeichner verfügbar → Scheibe wird deckend, Kante und Schatten bleiben */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .b2-m1 { background: var(--m1-opak); }
  .b2-m2 { background: var(--m2-opak); }
  .b2-m3 { background: var(--m3-opak); }
}
/* Für alles, was sich bewegt (Laufband, Karussell, Scroll-Transform):
   gleiche Optik, aber ohne backdrop-filter. */
.b2-ohne-blur {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  background: linear-gradient(var(--lit), #171B22, #0F1217) !important;
}

/* Kantenlicht — die EINE zeiger-reaktive Ebene. Das Licht sitzt im Rahmen,
   nicht in der Fläche: die Karte bleibt ruhig lesbar, nur ihre Kante
   antwortet. --kx/--ky setzt footer.php (ein delegierter Zuhörer). */
.b2-kantenlicht::after {
  content: ''; position: absolute; inset: 0; z-index: 3;
  border-radius: inherit; padding: 1px;
  background: radial-gradient(260px circle at var(--kx, 50%) var(--ky, 0%),
              rgba(246,217,150,0.95), rgba(216,172,80,0.28) 42%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity var(--t-small) var(--e-out);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .b2-kantenlicht:hover::after { opacity: 1; }
}

/* ── 3.2 Typo ─────────────────────────────────────────────────────── */
.b2-display, .b2-h1, .b2-h2, .b2-h3 {
  font-family: var(--f-display); color: var(--d-text);
  margin: 0; text-wrap: balance;
  /* Prüfer 23.11.: lange deutsche Wörter („Suchmaschinenoptimierung") liefen bei
     320–390 px aus dem Bild. Trennen erst ab 14 Zeichen, damit normale Wörter ganz bleiben. */
  overflow-wrap: break-word;
  -webkit-hyphens: auto; hyphens: auto;
  -webkit-hyphenate-limit-before: 6; -webkit-hyphenate-limit-after: 5;
  hyphenate-limit-chars: 14 6 5;
}
.b2-display { font-size: var(--fs-display); font-weight: 800; line-height: var(--lh-display); letter-spacing: var(--ls-display); }
@media (max-width: 359px) { .b2-display { font-size: 2.125rem; } }   /* Prüfer 23.11. (S10): 34 statt 40 px */
.b2-h1      { font-size: var(--fs-h1);      font-weight: 800; line-height: 1.08;              letter-spacing: -0.03em; }
.b2-h2      { font-size: var(--fs-h2);      font-weight: 700; line-height: var(--lh-titel);   letter-spacing: var(--ls-titel); }
.b2-h3      { font-size: var(--fs-h3);      font-weight: 700; line-height: 1.25;              letter-spacing: var(--ls-h3); }
/* Der Akzent: EINE kursive Gold-Zeile je Überschrift, höchstens eine je Sektion */
.b2-akzent {
  font-family: var(--f-akzent); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em; font-size: 1.06em;
  background: var(--goldguss); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold-hi);
  padding-right: 0.06em;             /* kursive Oberlängen nicht abschneiden */
}
.b2-lead { font-family: var(--f-text); font-size: var(--fs-lead); line-height: 1.55; color: var(--d-muted); max-width: var(--mass); margin: 0; text-wrap: pretty; }
.b2-text { font-family: var(--f-text); font-size: var(--fs-body); line-height: var(--lh-text); color: var(--d-muted); max-width: var(--mass); margin: 0; text-wrap: pretty; }
.b2-klein { font-size: var(--fs-klein); line-height: 1.55; color: var(--d-muted); max-width: var(--mass); }
.b2-meta { font-size: var(--fs-meta); line-height: 1.45; color: var(--d-faint); max-width: var(--mass); }
.b2-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-size: 0.75rem; font-weight: 700;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--gold-hi); margin: 0;
}
.b2-eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }
.b2-zahl { font-variant-numeric: tabular-nums; }
.b2-goldguss {
  background: var(--goldguss); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold-hi);
}
/* Konturschrift — Tiefe, nie Inhalt. Immer aria-hidden. */
.b2-kontur {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -0.04em; line-height: 0.9;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.10);
  user-select: none; pointer-events: none;
}

/* ── 3.3 Sektion + Raster ─────────────────────────────────────────── */
.b2-sek   { padding-block: var(--sek-y); position: relative; }
.b2-sek--eng { padding-block: var(--sek-y-s); }
.b2-innen { width: 100%; max-width: calc(var(--breite) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }
/* Sektionskopf: Eyebrow → 16 → Titel → 20 → Lead → 48/64 → Inhalt. Immer. */
.b2-kopf { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: clamp(40px, 2rem + 2vw, 64px); }
.b2-kopf > .b2-eyebrow { margin-bottom: var(--s-4); }
.b2-kopf > .b2-lead    { margin-top: 20px; }
.b2-kopf--mitte { justify-items: center; text-align: center; }
.b2-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 0.6rem + 1vw, 24px); }
@media (min-width: 720px)  { .b2-raster--2, .b2-raster--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .b2-raster--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── 3.4 Buttons ──────────────────────────────────────────────────────
   Alles, was man drücken kann, ist eine Kapsel. Drei Stufen, nicht mehr:
   .b2-btn--gold   die EINE Haupthandlung je Ansicht — Metall, kein Glas
   .b2-btn--glas   Nebenhandlung — Glas M1
   .b2-btn--text   dritter Rang — nur Text + Pfeil                     */
.b2-btn {
  --bh: 52px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh); padding: 0 26px;
  border: 0; border-radius: var(--r-pill);
  font-family: var(--f-display); font-size: 1rem; font-weight: 700;
  letter-spacing: -0.005em; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform var(--t-small) var(--e-out), box-shadow var(--t-small) var(--e-out),
              background-color var(--t-small) var(--e-out), color var(--t-micro) linear;
  -webkit-tap-highlight-color: transparent;
}
/* Prüfer 23.11.: bis 400 px darf ein Knopf umbrechen, sonst wird „Kostenloses Erstgespräch →" abgeschnitten */
@media (max-width: 400px) {
  .b2-btn { white-space: normal; text-align: center; line-height: 1.2; padding-block: 12px; max-width: 100%; }
  .b2-btn--text { text-align: left; }
}
.b2-btn--klein { --bh: 44px; padding: 0 20px; font-size: 0.9375rem; }
.b2-btn--gross { --bh: 58px; padding: 0 32px; font-size: 1.0625rem; }
/* Icon-Set 23.11.: In Knöpfen gelten die Set-Größen. Symbole aus bsd_icon() bringen ihre Größe
   selbst mit (20 px, allein stehend 24 px) und behalten 1,5 px Strich. Roh eingesetzte Zeichnungen
   bekommen dasselbe 20er Feld, damit keine Seite den Unterschied ausgleichen muss (vorher 18 px). */
.b2-btn svg { flex: none; }
.b2-btn svg:not(.bsd-ic) { width: 20px; height: 20px; }
.b2-btn .b2-pfeil { transition: transform var(--t-small) var(--e-out); }
.b2-btn:active { transform: var(--active-press); transition-duration: 90ms; }
/* Feinschliff: Drücken ist auch Licht. Das Metall verliert unter dem Finger seinen Schein
   und bekommt ihn beim Loslassen in 260 ms zurück. */
.b2-btn--gold:active {
  box-shadow: 0 1px 1px rgba(0,0,0,0.45), 0 4px 10px -6px rgba(216,172,80,0.45),
              inset 0 1px 0 rgba(255,255,255,0.45), inset 0 2px 6px rgba(120,84,18,0.40);
}
.b2-btn--glas:active { box-shadow: inset 0 0 0 1px var(--gold-ring), inset 0 2px 6px rgba(0,0,0,0.40); }
.b2-btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: var(--r-pill); }

.b2-btn--gold {
  background: var(--metall); color: var(--gold-ink);
  box-shadow: 0 1px 1px rgba(0,0,0,0.45),
              0 10px 24px -8px rgba(216,172,80,0.50),
              0 26px 52px -18px rgba(216,172,80,0.28),
              inset 0 1px 0 rgba(255,255,255,0.65),
              inset 0 -2px 5px rgba(120,84,18,0.45);
}
/* Lichtlauf: EIN Durchgang beim Berühren, nie im Leerlauf */
.b2-btn--gold::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 42%; z-index: 1;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: translateX(-140%) skewX(-18deg);
  pointer-events: none;
}
.b2-btn--glas {
  color: var(--d-text);
  background: var(--m1-fill);
  -webkit-backdrop-filter: var(--m1-blur); backdrop-filter: var(--m1-blur);
  box-shadow: var(--sh-1), inset 0 0 0 1px rgba(255,255,255,0.14), inset 0 1px 0 rgba(255,255,255,0.16);
}
.b2-btn--text {
  --bh: 44px; padding: 0 4px; border-radius: 8px; overflow: visible;
  /* Prüfer 23.11. (S11): Text weiß, nur der Pfeil ist Gold. Mit Symbol, Haken und
     Textknopf standen in einer Dreierreihe zwölf Gold-Elemente. */
  color: var(--d-text); font-weight: 600; background: none;
}
.b2-btn--text .b2-pfeil { color: var(--gold-hi); }
/* Feinschliff: Die Linie wird beim Zeigen von links her Gold (ein kleiner Lichtlauf, 420 ms).
   Vorher wurde sie nur heller. */
.b2-btn--text::before {
  content: ''; position: absolute; left: 4px; right: 4px; bottom: 9px; height: 1px;
  background: linear-gradient(90deg, var(--gold-hi) 0 50%, currentColor 50% 100%) 100% 0 / 200% 100% no-repeat;
  opacity: 0.45;
  transition: opacity var(--t-small) var(--e-out), background-position var(--t-card) var(--e-out);
}
/* Feinschliff: Glas-Knopf bekommt beim Zeigen einen Hauch mehr Scheibe (eigene Lage, weil
   ein Verlauf nicht gleiten kann). */
.b2-btn--glas::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(var(--lit), rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  opacity: 0; transition: opacity var(--t-small) var(--e-out); pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .b2-btn--gold:hover {
    transform: var(--hover-lift);
    box-shadow: 0 1px 1px rgba(0,0,0,0.45),
                0 16px 32px -8px rgba(216,172,80,0.62),
                0 36px 70px -18px rgba(216,172,80,0.36),
                inset 0 1px 0 rgba(255,255,255,0.75),
                inset 0 -2px 5px rgba(120,84,18,0.45);
  }
  .b2-btn--gold:hover::after { transform: translateX(340%) skewX(-18deg); transition: transform 900ms var(--e-inout); }
  .b2-btn--glas:hover {
    transform: var(--hover-lift);
    box-shadow: var(--sh-2), inset 0 0 0 1px var(--gold-ring), inset 0 1px 0 rgba(255,255,255,0.22);
  }
  .b2-btn--glas:hover::before { opacity: 1; }
  .b2-btn--text:hover::before { opacity: 1; background-position: 0 0; }
  .b2-btn:hover .b2-pfeil, a.b2-karte:hover .b2-pfeil { transform: translateX(4px); }
}
/* Prüfer 23.11. (S9): eigene Fläche statt halber Deckkraft. Gold wurde sonst oliv (3,3 : 1). */
.b2-btn[disabled], .b2-btn[aria-disabled="true"] {
  cursor: not-allowed; transform: none !important;
  background: #1B1F27; color: #A0A8B5;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10);
}
.b2-btn[disabled]::after, .b2-btn[aria-disabled="true"]::after { display: none; }
.b2-btn.is-loading { color: transparent !important; pointer-events: none; }
.b2-btn.is-loading::before {
  content: ''; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; z-index: 2;
  border-radius: 50%; border: 2px solid rgba(26,18,4,0.25); border-top-color: var(--gold-ink);
  background: none; opacity: 1;
  animation: b2Dreh 700ms linear infinite;
}
.b2-btn--glas.is-loading::before { border-color: rgba(255,255,255,0.2); border-top-color: #fff; }
@keyframes b2Dreh { to { transform: rotate(360deg); } }

/* ── 3.5 Karten ───────────────────────────────────────────────────── */
.b2-karte {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--karte-p);
  transition: transform var(--t-card) var(--e-out), box-shadow var(--t-card) var(--e-out);
}
.b2-karte > .b2-h3 + .b2-klein, .b2-karte > .b2-h3 + .b2-text { margin-top: -2px; }
.b2-karte .b2-btn--text { margin-top: auto; align-self: flex-start; white-space: normal; text-align: left; line-height: 1.25; max-width: 100%; padding-block: 12px; }   /* Prüfer 23.11.: lange Handlungszeile lief aus der Karte. R2: padding-block, damit die Linie bei zwei Zeilen unter dem Text bleibt statt hindurchzulaufen (einzeilig unverändert 44 px) */
.b2-karte > .b2-chip, .b2-karte > .b2-symbol { align-self: flex-start; }
@media (hover: hover) and (pointer: fine) {
  a.b2-karte:hover, .b2-karte--hebt:hover { transform: translateY(-4px); box-shadow: var(--sh-3), var(--innen); }
  /* Feinschliff: beim Heben antwortet auch das Material. Die Lichtkante wird voll,
     das Symbolfeld fängt mehr Gold. Die Fläche selbst bleibt ruhig. */
  a.b2-karte:hover::before, .b2-karte--hebt:hover::before, .b2-kantenlicht:hover::before { opacity: 1; }
  a.b2-karte:hover .b2-symbol, .b2-karte--hebt:hover .b2-symbol {
    box-shadow: inset 0 0 0 1px rgba(242,208,138,0.55), inset 0 1px 0 rgba(255,255,255,0.22), 0 8px 18px -10px rgba(216,172,80,0.55);
    transform: translateY(-2px);
  }
}
a.b2-karte { text-decoration: none; color: inherit; }
a.b2-karte:active { transform: translateY(-1px); transition-duration: 90ms; }
a.b2-karte:focus-visible { border-radius: var(--r-card); outline-offset: 4px; }
.b2-karte .b2-pfeil { transition: transform var(--t-small) var(--e-out); }
/* Symbolfeld: Glas M1, Gold-Strich. Symbole sind Linie 1,5 px, nie gefüllt. */
.b2-symbol {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border-radius: 14px; color: var(--gold-hi);
  background: linear-gradient(var(--lit), rgba(242,208,138,0.16), rgba(242,208,138,0.04));
  box-shadow: inset 0 0 0 1px rgba(242,208,138,0.26), inset 0 1px 0 rgba(255,255,255,0.14);
  margin-bottom: var(--s-2);
  transition: transform var(--t-card) var(--e-out), box-shadow var(--t-card) var(--e-out);
}
.b2-symbol svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* Die EINE hervorgehobene Karte je Sektion: M3 + Goldkante + Glut von oben */
.b2-karte--krone {
  background: var(--korn),
    radial-gradient(120% 70% at 50% -20%, rgba(216,172,80,0.20), transparent 62%),
    var(--m3-fill);
}
.b2-liste { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: 10px; }
.b2-liste li { position: relative; padding-left: 28px; font-size: var(--fs-klein); line-height: 1.5; color: var(--d-muted); }
.b2-liste li::before {
  content: ''; position: absolute; left: 0; top: 0.2em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,0.09) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.2 9.3l2.5 2.4 5.1-5.4' fill='none' stroke='%23DDE2EA' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ── 3.6 Chips ────────────────────────────────────────────────────── */
.b2-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 32px; padding: 0 14px; border-radius: var(--r-pill);
  font-family: var(--f-display); font-size: var(--fs-meta); font-weight: 600; letter-spacing: 0.01em;
  color: var(--d-text); white-space: nowrap;
  background: var(--m1-fill);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), inset 0 1px 0 rgba(255,255,255,0.12);
}
.b2-chip--gold { color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(242,208,138,0.34); background: rgba(216,172,80,0.10); }
@media (max-width: 400px) { .b2-chip { white-space: normal; padding-block: 6px; line-height: 1.3; } }   /* Prüfer 23.11. */
.b2-chip > i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(111,211,164,0.18); }

/* ── 3.7 Formular ─────────────────────────────────────────────────────
   Felder sind MULDEN, keine Scheiben: dunkler als die Karte, in der sie
   liegen, mit Schatten nach innen. So liegt nie Glas in Glas.          */
.b2-feld { display: grid; gap: 8px; }
.b2-label { font-family: var(--f-display); font-size: var(--fs-meta); font-weight: 600; letter-spacing: 0.02em; color: var(--d-text); }
.b2-label em { font-style: normal; color: var(--gold-hi); margin-left: 2px; }
.b2-eingabe {
  width: 100%; min-height: 54px; padding: 14px 16px;
  font-family: var(--f-text); font-size: 1rem; line-height: 1.4; color: var(--d-text);
  background: rgba(4,5,7,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-field);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color var(--t-small) var(--e-out), box-shadow var(--t-small) var(--e-out), background-color var(--t-small) var(--e-out);
  -webkit-appearance: none; appearance: none;
  caret-color: var(--gold-hi);
}
/* Feinschliff: Chrome und Safari färben selbst ausgefüllte Felder hellgelb bzw. weiß.
   Die Mulde bleibt dunkel, die Schrift hell. */
.b2-eingabe:-webkit-autofill, .b2-eingabe:-webkit-autofill:hover, .b2-eingabe:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--d-text); caret-color: var(--gold-hi);
  -webkit-box-shadow: inset 0 0 0 100px #0B0D11, 0 0 0 4px rgba(216,172,80,0);
          box-shadow: inset 0 0 0 100px #0B0D11, 0 0 0 4px rgba(216,172,80,0);
  transition: background-color 9999s linear 9999s;
}
.b2-eingabe:-webkit-autofill:focus { -webkit-box-shadow: inset 0 0 0 100px #0B0D11, 0 0 0 4px rgba(216,172,80,0.22); box-shadow: inset 0 0 0 100px #0B0D11, 0 0 0 4px rgba(216,172,80,0.22); }
/* Feinschliff: das Label zeigt, welches Feld gerade schreibt */
.b2-label { transition: color var(--t-small) var(--e-out); }
.b2-feld:focus-within > .b2-label { color: var(--gold-hi); }
textarea.b2-eingabe { min-height: 140px; resize: vertical; }
.b2-eingabe::placeholder { color: #8D95A3; opacity: 1; }       /* Prüfer 23.11.: war #7F8794, am Handy nur 4,85 : 1 */
@media (hover: hover) { .b2-eingabe:hover { border-color: rgba(255,255,255,0.26); } }
.b2-eingabe:focus, .b2-eingabe:focus-visible {
  outline: none; border-color: var(--gold-hi);
  background: rgba(4,5,7,0.70);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.45), 0 0 0 4px rgba(216,172,80,0.22);
}
.b2-eingabe:user-invalid, .b2-eingabe[aria-invalid="true"] { border-color: var(--fehl); box-shadow: inset 0 2px 6px rgba(0,0,0,0.45), 0 0 0 4px rgba(255,138,128,0.16); }
/* Prüfer 23.11.: Ein Feld mit Fehler sah mit und ohne Fokus gleich aus */
.b2-eingabe:user-invalid:focus-visible, .b2-eingabe[aria-invalid="true"]:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
select.b2-eingabe {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23F2D08A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px;
}
.b2-hinweis { font-size: var(--fs-meta); line-height: 1.45; color: var(--d-faint); }
.b2-hinweis--fehl { color: var(--fehl); animation: b2Hinweis var(--t-card) var(--e-out) both; }
@keyframes b2Hinweis { from { opacity: 0; transform: translateY(-4px); } }
.b2-haken { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-klein); line-height: 1.5; color: var(--d-muted); cursor: pointer; }
.b2-haken input {
  -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0;
  border-radius: 7px; border: 1px solid rgba(255,255,255,0.28); background: rgba(4,5,7,0.55);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5); cursor: pointer;
  transition: background-color var(--t-micro) linear, border-color var(--t-micro) linear, box-shadow var(--t-small) var(--e-out), transform var(--t-small) var(--e-out);
}
@media (hover: hover) { .b2-haken:hover input { border-color: rgba(255,255,255,0.5); } }
.b2-haken input:active { transform: scale(0.92); transition-duration: 90ms; }
.b2-haken input:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 7px; }
.b2-haken input:checked {
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 4px 10px -4px rgba(216,172,80,0.5);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.4l3.4 3.3L16 7.8' fill='none' stroke='%231A1204' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat, var(--metall);
}

/* ── 3.8 Trenner ──────────────────────────────────────────────────── */
.b2-haarlinie { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--d-line-2) 18%, var(--d-line-2) 82%, transparent); }

/* ── 3.9 Reveal „Scharfstellen" ───────────────────────────────────────
   Inhalte kommen nicht angeflogen, sie werden SCHARF — wie durch Glas,
   das man klar wischt: 12 px Weg, 8 px Unschärfe, einmal.
   Klassen setzt nur JS (html.js) → ohne JS ist alles sichtbar.        */
html.js .b2-reveal {
  opacity: 0; transform: translateY(12px); filter: blur(8px);
  transition: opacity var(--t-section) var(--e-out), transform var(--t-section) var(--e-hero), filter var(--t-section) var(--e-out);
  transition-delay: calc(var(--i, 0) * 70ms);
  will-change: opacity, transform, filter;
}
html.js .b2-reveal.is-da { opacity: 1; transform: none; filter: none; will-change: auto; }


/* ─────────────────────────────────────────────────────────────────────
   4  BRÜCKE — bestehende Klassen des Live-Themes auf das neue Material
   Reihenfolge und !important sind Absicht: das Live-Theme ist eine
   Override-Kaskade, diese Datei ist ihr letztes Glied.
   ───────────────────────────────────────────────────────────────────── */

/* 4.1 Schrift: zwei Stimmen. (Hero „Atelier" der Startseite behält bis zu
       seinem Umbau seine eigenen Familien — das regelt der Startseiten-Thread.) */
body .font-heading { font-family: var(--f-display) !important; }
body .font-body    { font-family: var(--f-text) !important; }

/* 4.2 Gold-Knopf: überall dasselbe Metall, überall Kapsel */
body .btn-gold {
  background: var(--metall) !important; color: var(--gold-ink) !important;
  border: 0 !important; border-radius: var(--r-pill) !important;
  font-family: var(--f-display) !important; font-weight: 700 !important; letter-spacing: -0.005em !important;
  box-shadow: 0 1px 1px rgba(0,0,0,0.45), 0 10px 24px -8px rgba(216,172,80,0.50),
              0 26px 52px -18px rgba(216,172,80,0.28),
              inset 0 1px 0 rgba(255,255,255,0.65), inset 0 -2px 5px rgba(120,84,18,0.45) !important;
  transition: transform var(--t-small) var(--e-out), box-shadow var(--t-small) var(--e-out) !important;
}
body .btn-gold:active { transform: var(--active-press) !important; }
@media (hover: hover) and (pointer: fine) {
  body .btn-gold:hover { transform: var(--hover-lift) !important; filter: none !important; }
}
/* 4.3 Sekundär-Knöpfe: Glas M1, Kapsel */
body .btn-outline-w, body .btn-outline-navy, body .btn-navy {
  color: var(--d-text) !important; border: 0 !important; border-radius: var(--r-pill) !important;
  background: var(--m1-fill) !important;
  -webkit-backdrop-filter: var(--m1-blur) !important; backdrop-filter: var(--m1-blur) !important;
  box-shadow: var(--sh-1), inset 0 0 0 1px rgba(255,255,255,0.14), inset 0 1px 0 rgba(255,255,255,0.16) !important;
  font-family: var(--f-display) !important; font-weight: 700 !important;
}
@media (hover: hover) and (pointer: fine) {
  body .btn-outline-w:hover, body .btn-outline-navy:hover, body .btn-navy:hover {
    transform: var(--hover-lift) !important;
    box-shadow: var(--sh-2), inset 0 0 0 1px var(--gold-ring), inset 0 1px 0 rgba(255,255,255,0.22) !important;
  }
}

/* 4.4 Karten: Glas M2 mit Lichtkante (als Inset-Schatten — die Pseudo-
       Elemente der alten Karten sind vergeben) */
body .svc-card, body .ben-card, body .p-card, body .wissen-card, body .tpl-card,
body .bsd-ho-step, body .bsd-hub-card {
  border-radius: var(--r-card) !important;
  border: 1px solid transparent !important;
  background: var(--korn), var(--m2-fill) !important;
  -webkit-backdrop-filter: var(--m2-blur) !important; backdrop-filter: var(--m2-blur) !important;
  box-shadow: var(--sh-2), inset 0 0 0 1px rgba(255,255,255,0.09),
              inset 0 1px 0 rgba(255,255,255,0.20), inset 0 -10px 24px -14px rgba(0,0,0,0.45) !important;
}
body .p-card--featured {
  background: var(--korn), radial-gradient(120% 70% at 50% -20%, rgba(216,172,80,0.20), transparent 62%), var(--m3-fill) !important;
  -webkit-backdrop-filter: var(--m3-blur) !important; backdrop-filter: var(--m3-blur) !important;
  box-shadow: var(--sh-3), inset 0 0 0 1px rgba(242,208,138,0.42), inset 0 1px 0 rgba(255,255,255,0.24) !important;
}
@media (hover: hover) and (pointer: fine) {
  body .svc-card:hover, body .ben-card:hover, body .p-card:hover, body .wissen-card:hover,
  body .tpl-card:hover, body .bsd-ho-step:hover, body .bsd-hub-card:hover {
    transform: translateY(-4px) !important;
    background: var(--korn), var(--m2-fill) !important;
    box-shadow: var(--sh-3), inset 0 0 0 1px rgba(242,208,138,0.34),
                inset 0 1px 0 rgba(255,255,255,0.24), inset 0 -10px 24px -14px rgba(0,0,0,0.45) !important;
  }
}
/* Laufband-Karten bewegen sich → kein backdrop-filter (Regel) */
body .bsd-rev-card {
  border-radius: var(--r-card) !important;
  background: linear-gradient(var(--lit), #171B22, #0F1217) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: var(--sh-2), inset 0 1px 0 rgba(255,255,255,0.14) !important;
}

/* 4.5 Formularfelder: Mulde */
body .f-input, body .f-select, body select.f-input, body .f-input:not(select) {
  min-height: 54px; font-family: var(--f-text) !important; font-size: 1rem !important;
  color: var(--d-text) !important;
  background-color: rgba(4,5,7,0.55) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: var(--r-field) !important;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.05) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
body .f-input::placeholder { color: #8D95A3 !important; opacity: 1; }
body .f-input:focus, body .f-select:focus {
  border-color: var(--gold-hi) !important;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.45), 0 0 0 4px rgba(216,172,80,0.22) !important;
}

/* 4.6 Reveal: das Live-Reveal (.reveal → .visible) bekommt das Scharfstellen dazu */
html.js .reveal { filter: blur(6px); transition-property: opacity, transform, filter; }
html.js .reveal.visible { filter: none; }

/* 4.7 Typo-Tokens greifen über die bestehenden Attribut-Selektoren des
       Themes (--fs-h2, --fs-h3). Zusätzlich: Zeilenlänge für Fließtext. */
body .article-body p, body .article-body li { max-width: var(--mass); }


/* Prüfer 23.11.: Bei geringer Fensterhöhe (200 % Zoom am Laptop = 720 × 450, Handy quer)
   nahmen Kopfzeile und feste Leiste unten zusammen 128 von 450 px. Unter 500 px Höhe
   entfällt die Leiste ganz. Das Erstgespräch bleibt über das Menü und die Knöpfe der
   Seite erreichbar. display: none nimmt sie auch aus Tab-Folge und Vorlesebaum. */
@media (max-height: 499.98px) { body .bsd-sticky-bar { display: none !important; } }

/* ─────────────────────────────────────────────────────────────────────
   5  FUSSZEILE „Abspann" (footer.php 2.0)
   ───────────────────────────────────────────────────────────────────── */
body footer.b2-fuss {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: var(--sek-y-s);
  padding: clamp(40px, 2rem + 3vw, 72px) 0 calc(28px + env(safe-area-inset-bottom, 0px)) !important;
  border-radius: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0 0;
  background: var(--korn), linear-gradient(180deg, rgba(20,23,30,0.72) 0%, rgba(7,8,10,0.90) 62%, #050608 100%) !important;
  /* Prüfer 23.11. (S6): kein Weichzeichner mehr. Die Fläche deckt zu 72 bis 100 %,
     er war nicht zu sehen und kostete auf rund 1440 × 820 px. */
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 -30px 80px -40px rgba(0,0,0,0.8);
}
/* Prüfer 23.11. (S3): Ohne Shader (kein WebGL, reduzierte Bewegung, Datensparen) kommt
   das Gold am Seitenende sonst nie an. Dann wärmt die Fußzeile den Abschnitt über ihr. */
html:not(.b2-licht-an) body footer.b2-fuss {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 -30px 80px -40px rgba(0,0,0,0.8),
              0 -120px 240px -60px rgba(216,172,80,0.16);
}
.b2-fuss::before {                       /* Lichtkante nur oben */
  content: ''; position: absolute; left: 6%; right: 6%; top: 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45) 22%, rgba(242,208,138,0.55) 50%, rgba(255,255,255,0.30) 78%, transparent);
}
.b2-fuss-kontur {                        /* Signatur 3: Konturschrift als Tiefe */
  position: absolute; left: 50%; bottom: -0.16em; transform: translateX(-50%); z-index: -1;
  font-size: clamp(3rem, 17.5vw, 17rem); white-space: nowrap;   /* FAQ-Prüfer 23.11.: Untergrenze 5rem ragte von 320 bis 390 px über den Rand */
  -webkit-text-stroke-color: rgba(255,255,255,0.085);
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 92%);
          mask-image: linear-gradient(180deg, #000 20%, transparent 92%);
}
.b2-fuss-raster { display: grid; gap: 40px 32px; grid-template-columns: 1fr; margin-bottom: clamp(36px, 2rem + 2vw, 56px); }
@media (min-width: 640px)  { .b2-fuss-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } .b2-fuss-marke { grid-column: 1 / -1; } }
@media (min-width: 1040px) { .b2-fuss-raster { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.4fr)); gap: 32px 48px; } .b2-fuss-marke { grid-column: auto; } }
.b2-fuss-marke { max-width: 380px; }
/* Prüfer 23.11.: Am Handy war die Fußzeile rund 2,25 Bildschirme hoch. Unter 640 px
   stehen die zwölf Angebots-Links in zwei Spalten, Standorte und Branchen nebeneinander.
   Kein Inhalt entfällt, jede Zeile bleibt 44 px hoch, die Schrift bleibt wie sie ist. */
@media (max-width: 639.98px) {
  .b2-fuss-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; margin-bottom: 20px; }
  .b2-fuss-raster > .b2-fuss-marke, .b2-fuss-raster > :nth-child(2) { grid-column: 1 / -1; }
  .b2-fuss-raster > :nth-child(2) .b2-fuss-liste { columns: 2; column-gap: 16px; }
  .b2-fuss-liste li { break-inside: avoid; }
  .b2-fuss-liste a, .b2-fuss .bsd-hier { overflow-wrap: break-word; hyphens: auto; }
  .b2-fuss-satz { margin-bottom: 14px; }
  .b2-fuss-draht { margin: 14px 0 12px; }
  .b2-fuss-kopf { margin-bottom: 4px; }
  .b2-fuss-boden { gap: 2px; margin-top: 12px; }
  body footer.b2-fuss .bsd-rating-badge { min-height: 44px; }
  .b2-fuss .bd-ridge { height: 28px; }
}
.b2-fuss-satz { font-family: var(--f-text); font-size: var(--fs-klein); line-height: 1.55; color: var(--d-muted) !important; margin: 0 0 20px; }
body footer.b2-fuss address { font-family: var(--f-text); font-style: normal; font-size: var(--fs-klein); line-height: 1.6; color: var(--d-muted) !important; }
.b2-fuss-draht { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }
body footer.b2-fuss a.b2-fuss-knopf {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px !important;
  border-radius: var(--r-pill); text-decoration: none; background-image: none;
  font-family: var(--f-display); font-size: 0.9375rem; font-weight: 600; color: var(--d-text) !important;
  background: var(--m1-fill);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), inset 0 1px 0 rgba(255,255,255,0.14);
  transition: box-shadow var(--t-small) var(--e-out), color var(--t-micro) linear, transform var(--t-small) var(--e-out);
}
body footer.b2-fuss a.b2-fuss-knopf::after { content: none; }
body footer.b2-fuss a.b2-fuss-knopf svg { width: 16px; height: 16px; color: var(--gold-hi); flex: none; }
@media (hover: hover) { body footer.b2-fuss a.b2-fuss-knopf:hover { box-shadow: inset 0 0 0 1px var(--gold-ring), inset 0 1px 0 rgba(255,255,255,0.2); } }
/* Prüfer 23.11.: kein Glas in Glas — das Bewertungs-Abzeichen bringt aus style.css einen eigenen Weichzeichner mit */
body footer.b2-fuss .bsd-rating-badge { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.b2-fuss-zeit { display: block; font-size: var(--fs-meta); line-height: 1.45; color: var(--d-faint) !important; }
.b2-fuss-kopf { font-family: var(--f-display); font-size: 0.75rem; font-weight: 700; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--gold-hi) !important; margin: 0 0 10px; }
.b2-fuss-liste { list-style: none; margin: 0; padding: 0; }
body footer.b2-fuss .b2-fuss-liste a,
body footer.b2-fuss .b2-fuss-recht a {
  font-family: var(--f-display); font-size: 0.9375rem; font-weight: 500;
  color: var(--d-muted) !important; text-decoration: none;
  transition: color var(--t-micro) linear, transform var(--t-small) var(--e-out);
}
/* Feinschliff: ein Link der Fußzeile rückt beim Zeigen 3 px auf einen zu */
@media (hover: hover) and (pointer: fine) { body footer.b2-fuss .b2-fuss-liste a:hover { transform: translateX(3px); } }
body footer.b2-fuss a.b2-fuss-knopf:active { transform: scale(0.975); }
body footer.b2-fuss .b2-fuss-liste a { display: inline-block; padding-block: 0.6875rem; line-height: 1.375rem; }  /* 44 px Trefferhöhe */
body footer.b2-fuss .b2-fuss-liste a:hover, body footer.b2-fuss .b2-fuss-recht a:hover { color: #fff !important; }
body footer.b2-fuss .bsd-hier { display: inline-block; padding-block: 0.6875rem; line-height: 1.375rem; font-family: var(--f-display); font-size: 0.9375rem; font-weight: 500; color: var(--d-faint); cursor: default; }
body footer.b2-fuss .bsd-hier-marke { margin-left: 0.5rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-hi); }
.b2-fuss-hier-zeile { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--d-line); }
.b2-fuss-boden { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
@media (min-width: 768px) { .b2-fuss-boden { flex-direction: row; align-items: center; justify-content: space-between; } }
.b2-fuss-boden p { margin: 0; font-family: var(--f-text); font-size: var(--fs-meta); color: var(--d-faint) !important; }
.b2-fuss-recht { display: flex; flex-wrap: wrap; gap: 4px 22px; }
body footer.b2-fuss .b2-fuss-recht a { font-family: var(--f-text); font-size: var(--fs-meta); color: var(--d-faint) !important; display: inline-block; padding-block: 0.8125rem; line-height: 1.125rem; }


/* ─────────────────────────────────────────────────────────────────────
   6  REDUCED MOTION — ein Block für die ganze Datei
   Bewegung fällt weg, Zustände bleiben: Farbe/Schatten wechseln sofort.
   ───────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #bsd-licht { display: none; }
  html.js .b2-reveal, html.js .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .b2-btn, .b2-karte, .b2-eingabe, .b2-btn .b2-pfeil, body .btn-gold,
  body .svc-card, body .ben-card, body .p-card, body .wissen-card { transition-duration: 0.01ms !important; }
  .b2-btn:hover, .b2-btn:active, .b2-karte:hover, body .btn-gold:hover,
  body .svc-card:hover, body .ben-card:hover, body .p-card:hover, body .wissen-card:hover,
  body .tpl-card:hover, body .bsd-ho-step:hover, body .bsd-hub-card:hover, body .btn-gold:active,
  body .btn-outline-w:hover, body .btn-outline-navy:hover, body .btn-navy:hover { transform: none !important; }   /* Prüfer 23.11.: Liste vervollständigt */
  .b2-btn--gold::after { display: none; }
  .b2-symbol, .b2-label, .b2-haken input, .b2-btn--text::before, .b2-btn--glas::before,
  .b2-m2::before, .b2-m3::before, .b2-karte .b2-pfeil,
  body footer.b2-fuss .b2-fuss-liste a, body footer.b2-fuss a.b2-fuss-knopf { transition-duration: 0.01ms !important; }
  a.b2-karte:hover .b2-symbol, .b2-karte--hebt:hover .b2-symbol, a.b2-karte:active, a.b2-karte:hover .b2-pfeil,
  .b2-btn:hover .b2-pfeil, .b2-haken input:active,
  body footer.b2-fuss .b2-fuss-liste a:hover, body footer.b2-fuss a.b2-fuss-knopf:active { transform: none !important; }
  .b2-hinweis--fehl { animation: none; }
  .b2-btn.is-loading::before { animation-duration: 1400ms; }   /* Ladezeichen bleibt: es ist Information */
}
