/* ═══════════════════════════════════════════════════════════════════════════
   Midnight Garage – Auftritt seit 06.11.2026 (Haus-Stil wie Midnight Compass).
   Erzeugt von werkzeuge-garage-seite/bauen.py aus quellen/css/*.css – nicht von Hand ändern.

   ── FARBREGEL ─────────────────────────────────────────────────────────────
   Schwarz und Weiß tragen die Seite. Bernstein (#E8913C, die Farbe der App) NUR an
   dem, was man bedient: Verweise, Hauptknopf beim Überfahren, Fokus, Linien beim
   Überfahren. Rot NUR in Zeichnungen und kleinen Marken (offene Arbeit = rote Marke,
   wie in der App): genau EINE Akzentfläche je Zeichnung. Bänder und Striche über die
   Seite (Lesefortschritt, Wegstrich der Chronik) sind keine Marken: gedämpftes Weiß. Kein Blau. Zustand nie
   allein über Farbe: immer ein Wort oder ein Zeichen dazu.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;
  --ink:   #07070A;  /* Grund */
  --ink-2: #0F0F13;  /* Bänder */
  --ink-3: #16161B;  /* Karte */
  --forest:#26262B;  /* aktiver Sprachknopf */
  --olive: #9A948A;  /* gedämpfte Beschriftung */
  --sage:  #C4C1BC;  /* Fließtext */
  --paper: #F6F4EF;  /* Überschriften, Weiß */

  --bern:      #E8913C; /* Bedienung (die Farbe der App) */
  --bern-hell: #F2AE6A; /* Bernstein als Schrift auf Schwarz */
  --rot:       #E04A4A; /* nur Zeichnungen und Marken */
  --rot-hell:  #EA6A62;
  --akzent-flaeche: var(--rot);

  --line:   rgba(244,242,238,.10);
  --line-2: rgba(244,242,238,.20);

  /* Namen, die registrieren.html und die alten Stile kennen */
  --bg: var(--ink); --surface: var(--ink-3); --surface-2: #1F1F26; --text: var(--paper); --text-2: var(--sage); --text-3: var(--olive);
  --border: var(--line); --border-2: var(--line-2); --gold: var(--bern); --gold-soft: var(--bern-hell);

  --font: 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Noto Sans', sans-serif;
  --font-jp: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', Meiryo, 'Noto Sans JP', sans-serif;
  --mono: 'M PLUS 1 Code', ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  --page: 1180px;
  --nav-h: 68px;
  /* Ränder: nie schmaler als die Aussparung des Geräts (viewport-fit=cover) */
  --rand: 28px;
  --rand-l: max(var(--rand), env(safe-area-inset-left, 0px));
  --rand-r: max(var(--rand), env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); background: var(--ink); color: var(--sage);
  line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
html[lang="ja"] body { font-family: var(--font-jp); line-height: 1.85; }
/* Sprachwechsel vor dem ersten Zeichnen: kurz verbergen, bis das Skript die Texte getauscht hat (Zeitgeber im Kopf räumt auf). */
html.lang-wechsel body { visibility: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--bern); outline-offset: 3px; }
::selection { background: rgba(232,145,60,.30); color: var(--paper); }
/* ⚠️ Versatz für Anker NUR über scroll-padding-top am html (oben). Ein zusätzliches scroll-margin-top an den Abschnitten
   addiert sich dazu (gemessen: doppelter Versatz). */
.anker { display: block; position: relative; top: calc(-1 * (var(--nav-h) + 12px)); height: 0; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--rand-r) 0 var(--rand-l); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); top: 10px; z-index: 300; padding: 10px 18px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 700;
        transform: translateY(-160%); transition: transform .15s var(--ease); }
.skip:focus, .skip:focus-visible { transform: none; }
main:focus { outline: none; }

/* ── Leiste ──────────────────────────────────────────────────────────────── */
.navbar { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100; border-bottom: 1px solid transparent;
          transition: background .3s, border-color .3s; }
.navbar.scrolled, .navbar.offen { background: rgba(7,7,10,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-inner { max-width: var(--page); margin: 0 auto; height: 100%; padding: 0 var(--rand-r) 0 var(--rand-l); display: flex; align-items: center; gap: 22px; }
.nav-logo { display: flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: -.4px; color: var(--paper); font-size: 16px; flex: none; white-space: nowrap; }
.nav-mark { width: 28px; height: 28px; flex: none; color: var(--paper); }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.nav-item { position: relative; }
.nav-link { font-size: 13.5px; font-weight: 500; color: var(--sage); transition: color .15s; white-space: nowrap; }
.nav-flach { display: inline-block; padding: 9px 12px; }
.nav-top { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; }
.nav-top::after { content: ''; width: 5px; height: 5px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
                  transform: rotate(45deg); opacity: .55; transition: transform .2s var(--ease), opacity .2s; }
.nav-item.open > .nav-top { color: var(--paper); }
.nav-item.open > .nav-top::after { opacity: 1; transform: rotate(225deg) translate(-2px, -2px); }
.nav-link:hover { color: var(--paper); }
.nav-menu { position: absolute; top: 100%; left: -6px; z-index: 60; min-width: 230px; display: flex; flex-direction: column; padding: 8px 0;
            background: rgba(15,15,19,.97); border: 1px solid var(--line-2); box-shadow: 0 22px 44px rgba(0,0,0,.6);
            opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s var(--ease), visibility .18s; }
.nav-menu::before, .nav-menu::after { content: ''; position: absolute; pointer-events: none; background: var(--line-2); }
.nav-menu::before { left: -11px; top: -1px; width: 30px; height: 1px; }
.nav-menu::after  { left: -1px; top: -11px; width: 1px; height: 30px; }
.nav-item::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.nav-item.open > .nav-menu { opacity: 1; visibility: visible; transform: translateY(8px); }
/* Überfahren und Fokus öffnen nur mit feinem Zeiger (Maus). Auf Touch bliebe :hover nach dem Tipp hängen und das Menü
   ginge beim zweiten Tipp nicht mehr zu – dort gilt nur .open (garage-neu.js, dieselbe Abfrage). */
@media (hover: hover) and (pointer: fine) {
  .nav-item:hover > .nav-top, .nav-item:focus-within > .nav-top { color: var(--paper); }
  .nav-item:hover > .nav-top::after, .nav-item:focus-within > .nav-top::after { opacity: 1; transform: rotate(225deg) translate(-2px, -2px); }
  .nav-item:hover > .nav-menu, .nav-item:focus-within > .nav-menu { opacity: 1; visibility: visible; transform: translateY(8px); }
}
.nav-item.zu > .nav-menu { opacity: 0; visibility: hidden; transform: translateY(-4px); }
.nav-menu .nav-link { display: block; padding: 10px 20px; position: relative; transition: color .15s, padding .2s var(--ease); }
.nav-menu .nav-link::before { content: ''; position: absolute; left: 0; top: 50%; width: 0; height: 1px; background: var(--bern); transition: width .25s var(--ease); }
.nav-menu .nav-link:hover::before { width: 12px; }
.nav-menu .nav-link:hover { color: var(--paper); padding-left: 26px; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-actions .btn { padding: 8px 18px; font-size: 13px; }
.lang-toggle { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-btn { font-size: 11px; font-weight: 700; letter-spacing: .6px; padding: 4px 10px; border-radius: 999px; color: var(--olive); transition: background .15s, color .15s; line-height: 1.4; font-family: var(--font); }
.lang-btn:hover { color: var(--paper); }
.lang-btn.lang-active { background: var(--forest); color: var(--paper); }
.btn-icon { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center;
            color: var(--sage); border: 1px solid var(--line); border-radius: 10px; transition: color .15s, border-color .15s; }
.btn-icon:hover { color: var(--paper); border-color: var(--bern); }
.hamburger { display: none; }
.mobile-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
              background: rgba(7,7,10,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
              border-bottom: 1px solid var(--line); padding: 6px 0 calc(18px + env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; }
.mobile-nav.open { display: flex; }
.mobile-nav-head { padding: 16px var(--rand-r) 4px var(--rand-l); font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--olive); }
.mobile-nav-link { display: block; padding: 11px var(--rand-r) 11px var(--rand-l); font-size: 15.5px; color: var(--sage); }
.mobile-nav-link:hover { color: var(--bern-hell); }
.nav-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: rgba(244,242,238,.55); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* ── Knöpfe, Eyebrow, Verweise ───────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px; border-radius: 999px;
       font-size: 14.5px; font-weight: 700; line-height: 1.3; white-space: nowrap; transition: transform .15s, background .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary:hover { background: var(--bern); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--paper); }
.btn-ghost:hover { border-color: var(--bern); background: rgba(244,242,238,.05); }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn .nav-mark, .btn-mark { width: 20px; height: 20px; color: currentColor; }
.btn-dl-ver { font-size: .84em; opacity: .66; font-weight: 700; }
.link { color: var(--bern-hell); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link:hover { text-decoration-thickness: 2px; }
.pfeil::after { content: ' →'; content: ' →' / ''; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase;
           color: var(--olive); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 10px; margin-bottom: 28px; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--rot-hell); display: block; flex: none; }
.mg-status { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1px dashed var(--line-2); border-radius: 999px;
             font-size: 14px; color: var(--sage); }
.mg-status i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--rot-hell); display: block; flex: none; }
/* Fester Platz für den Download-Zustand: alle Zustände liegen übereinander (Größe = der größte), nur einer ist sichtbar.
   So verschiebt die Antwort von version.json nichts (kein Layout-Sprung, kein Fehlklick auf „Zugang anfordern“). */
.dl-slot { display: grid; align-items: start; justify-items: start; min-height: 50px; }
.dl-slot > * { grid-area: 1 / 1; visibility: hidden; }
.dl-slot[data-dl-zustand="ok"] > .dl-wrap, .dl-slot[data-dl-zustand="leer"] > .status-wrap,
.dl-slot[data-dl-zustand="fehler"] > .fehler-wrap, .dl-slot .mg-noscript { visibility: visible; }
/* Der Fehlerhinweis bestimmt die Breite NICHT mit (width 0, min-width 100 %): er bricht in der Breite des Knopfs um. */
.dl-slot > .fehler-wrap { width: 0; min-width: 100%; }
.mg-fehler, .mg-noscript { white-space: normal; max-width: 330px; border-radius: 18px; padding: 8px 16px; font-size: 12.5px; line-height: 1.45; display: block; }
.mg-fehler a { color: var(--bern-hell); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.note { border-left: 1px solid var(--line-2); padding: 2px 0 2px 16px; color: var(--olive); font-size: 13.5px; line-height: 1.7; margin: 26px 0 0; max-width: 70ch; }
.note a { color: var(--bern-hell); text-decoration: underline; text-underline-offset: 4px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; padding: calc(var(--nav-h) + 76px) 0 150px; overflow: hidden;
  background: radial-gradient(120% 90% at 88% 16%, #1D1C1A 0%, #121211 48%, #0A0A0C 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
  --cut: 96px;
}
/* Die schräge Kante bekommt eine feine Linie, wie ein Schnitt auf der Bauzeichnung. */
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--cut); pointer-events: none;
  background: linear-gradient(to bottom right, transparent calc(50% - 2px), rgba(244,242,238,.22) calc(50% - 2px), rgba(244,242,238,.22) 50%, transparent 50%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg svg { position: absolute; right: -6%; top: -8%; width: 90%; min-width: 760px; height: auto; opacity: .2; color: var(--olive); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,0) 55%, rgba(10,10,12,.6)); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.hero-in { position: relative; max-width: 640px; }
.hero-title { font-size: clamp(44px, 6.4vw, 84px); line-height: .98; letter-spacing: -3px; font-weight: 900; color: var(--paper); margin-bottom: 26px; }
/* Zweite Zeile als Linienschrift (Konstruktionszeichnung) – Weiß, kein Bernstein: der gehört der Bedienung. */
.hero-title .hero-accent { display: block; color: transparent; -webkit-text-stroke: 1.6px var(--paper); }
@supports not (-webkit-text-stroke: 1px #fff) { .hero-title .hero-accent { color: var(--paper); } }
.hero-sub { font-size: clamp(16px, 1.55vw, 18.5px); max-width: 54ch; color: var(--sage); }
.hero-btns { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 34px; }
.hero-hint { margin-top: 18px; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--olive); max-width: 62ch; }
html[lang="ja"] .hero-hint { font-family: var(--font-jp); letter-spacing: .02em; }
.hero-emblem { position: relative; width: min(540px, 100%); justify-self: end; }
.hero-emblem .emb { width: 100%; height: auto; aspect-ratio: 1; }
.emb-cap { margin: 10px auto 0; max-width: 50ch; text-align: center; font-size: 12.5px; line-height: 1.65; color: var(--olive); }

/* ── Das Emblem: das Podest von oben, das Auto, die 15 Bereiche ───────────── */
.emb text { font-family: var(--mono); fill: var(--olive); font-size: 9.5px; letter-spacing: .6px; }
html[lang="ja"] .emb text { font-family: var(--font-jp); letter-spacing: .04em; }
.emb .z-linie { fill: none; stroke: var(--paper); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.emb .z-fein { stroke-width: .8; stroke: var(--olive); }
.emb .e-r0 { opacity: .55; }
.emb .e-tk-min { stroke: var(--olive); stroke-width: .9; }
.emb .e-tk-maj { stroke: var(--paper); stroke-width: 1.6; opacity: .8; }
.emb .e-achsen { fill: none; stroke: var(--paper); stroke-opacity: .09; stroke-width: 1; stroke-dasharray: 3 6; }
.emb .e-bem { stroke: var(--olive); }
.emb .e-podest-f { fill: rgba(244,242,238,.025); }
.emb .e-podest { stroke-width: 1.8; }
.emb .e-podest-i { opacity: .8; }
.emb .e-spur { fill: none; stroke: var(--olive); stroke-opacity: .45; stroke-width: 1; stroke-dasharray: 1.5 7; stroke-linecap: round; }
.emb .e-spur-t { opacity: .7; }
.emb .e-auto-f { fill: #0B0B0E; }
.emb .e-a-body { stroke-width: 1.8; }
.emb .e-a-glas { stroke: var(--paper); stroke-opacity: .7; }
.emb .e-a-rad { stroke-width: 1.4; }
.e-dreh { transform-box: view-box; transform-origin: 240px 240px; }
/* Marken: Raute mit Hof. Leuchtet eine (Klasse .an), wird sie weiß; die eine rote ist offene Arbeit. */
.e-mk-r { fill: var(--ink); stroke: var(--paper); stroke-width: 1.4; transition: fill .45s, stroke .45s; }
.e-mk-halo { fill: var(--paper); opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .45s, transform .6s var(--ease); transform: scale(.4); }
.e-mk.an .e-mk-r { fill: var(--paper); }
.e-mk.an .e-mk-halo { opacity: .18; transform: scale(1); }
.e-mk-offen .e-mk-r { fill: var(--rot); stroke: var(--rot); }
.e-mk-offen .e-mk-halo { fill: var(--rot); }
.e-mk-offen.an .e-mk-r { fill: var(--rot); }
.e-mk-offen.an .e-mk-halo { opacity: .32; }
.e-mk-x .e-mk-r { stroke-dasharray: 2.4 2; }
.emb .e-x-rahmen { fill: none; stroke: var(--olive); stroke-opacity: .6; stroke-width: .8; stroke-dasharray: 3 4; }
.emb .e-anz-box { fill: rgba(7,7,10,.75); stroke: var(--line-2); stroke-width: 1; }
.emb .e-anz-t { fill: var(--paper); font-size: 10.5px; text-anchor: middle; letter-spacing: 1.2px; }
.emb .e-meta-t { fill: var(--olive); font-size: 9.5px; }
.emb .e-rot { fill: var(--rot-hell); }
/* Bewegung anhalten (WCAG 2.2.2) */
/* unter dem Zeichen neben der Bildunterschrift – nichts im Zeichen wird verdeckt */
.emb-fuss { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.emb-fuss .emb-cap { flex: 1; margin-top: 0; }
.emb-pause { flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
             border: 1px solid var(--line-2); border-radius: 50%; background: rgba(7,7,10,.6); color: var(--sage); transition: color .15s, border-color .15s; }
.emb-pause:hover { color: var(--paper); border-color: var(--bern); }
.emb-pause svg { width: 16px; height: 16px; }
.emb-pause .i-pause { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.emb-pause .i-play { fill: currentColor; display: none; }
.emb-pause[aria-pressed="true"] .i-pause { display: none; }
.emb-pause[aria-pressed="true"] .i-play { display: block; }
.emb-pause[hidden] { display: none; }
.emb-angehalten .emb, .emb-angehalten .emb * { animation-play-state: paused !important; }

/* Ablauf beim Laden (≈ 3 s), danach dreht das Podest langsam (Zierde) */
@media (prefers-reduced-motion: no-preference) {
  .hero-in > * { animation: einblenden .9s var(--ease) backwards; }
  .hero-in > :nth-child(2) { animation-delay: .1s; }
  .hero-in > :nth-child(3) { animation-delay: .2s; }
  .hero-in > :nth-child(4) { animation-delay: .3s; }
  .hero-in > :nth-child(5) { animation-delay: .4s; }
  .hero-emblem { animation: einblenden 1.1s var(--ease) .1s backwards; }
  /* Auf dem Telefon steht das Zeichen unter dem Text: der Aufbau wartet, bis es im Bild ist (garage-neu.js setzt .ist-sichtbar). */
  .reveal-an .hero-emblem:not(.ist-sichtbar) .emb, .reveal-an .hero-emblem:not(.ist-sichtbar) .emb * { animation-play-state: paused; }
  .emb .e-r0, .emb .e-tk, .emb .e-bem, .emb .e-podest, .emb .e-podest-i, .emb .e-spur-t, .emb .e-auto .z-linie { stroke-dasharray: 1; }
  .emb .e-r0     { animation: zeichnen 1.4s var(--ease) .1s backwards; }
  .emb .e-tk-min { animation: zeichnen 1.5s var(--ease) .2s backwards; }
  .emb .e-tk-maj { animation: zeichnen 1.5s var(--ease) .4s backwards; }
  .emb .e-bem    { animation: zeichnen 1s var(--ease) 1.2s backwards; }
  .emb .e-achsen { animation: aufblenden 1s ease 1s backwards; }
  .emb .e-podest { animation: zeichnen 1.6s var(--ease) .3s backwards; }
  .emb .e-podest-i { animation: zeichnen 1.6s var(--ease) .6s backwards; }
  .emb .e-podest-f { animation: aufblenden 1s ease .8s backwards; }
  .emb .e-spur-t { animation: zeichnen 1.4s var(--ease) 1s backwards; }
  .emb .e-auto .z-linie { animation: zeichnen 1.8s var(--ease) .9s backwards; }
  .emb .e-auto-f { animation: aufblenden 1s ease 1.2s backwards; }
  .emb .e-marken .e-mk { animation: markersetzen .6s var(--ease) backwards; }
  .emb .e-x-rahmen, .emb .e-anz, .emb .e-meta { animation: aufblenden .9s ease 2.4s backwards; }
  .emb .e-dreh { animation: drehen 120s linear 3s infinite; }
}
@keyframes zeichnen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes aufblenden { from { opacity: 0; } }
@keyframes markersetzen { from { opacity: 0; } }
@keyframes drehen { to { transform: rotate(360deg); } }
@keyframes einblenden { from { opacity: 0; transform: translateY(24px); } }
@keyframes aufbauen { from { opacity: 0; transform: scaleY(.15); } to { opacity: 1; transform: none; } }

/* ── Leiste unter dem Hero: Stand der App aus version.json ───────────────── */
.ribbon { border-block: 1px solid var(--line); background: var(--ink-2); position: relative; z-index: 2; }
.ribbon-in { display: flex; flex-wrap: wrap; gap: 8px 38px; padding-block: 15px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--olive); }
html[lang="ja"] .ribbon-in { font-family: var(--font-jp); letter-spacing: .06em; }
.ribbon-in b { font-weight: 400; color: var(--olive); margin-right: 8px; }
.ribbon-in em { font-style: normal; color: var(--paper); }
.ribbon-in .rb-live b::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: var(--rot-hell); vertical-align: 1px; }

/* ── Abschnitte ──────────────────────────────────────────────────────────── */
.sec { padding: 100px 0; position: relative; }
.sec.alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.sec-label { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 12px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--olive); }
/* der kurze Strich vor der Überschrift: Weiß (Zierde), wächst im aktiven Abschnitt */
.sec-label::before { content: ''; width: 28px; height: 1px; background: var(--paper); flex: none; transition: width .5s var(--ease); }
.sec-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sec-label .n { font-family: var(--mono); font-weight: 400; letter-spacing: 1px; }
body { counter-reset: sec; }
.sec-label { counter-increment: sec; }
.sec-label .n::before { content: counter(sec, decimal-leading-zero); }
.section-active .sec-label::before { width: 56px; }
.sec-head { margin-bottom: 52px; }
.sec-title { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -1.5px; font-weight: 900; color: var(--paper); max-width: 26ch; }
.sec-sub { margin-top: 16px; font-size: 16.5px; max-width: 62ch; color: var(--sage); }
.sub-h { font-size: 20px; font-weight: 900; letter-spacing: -.5px; color: var(--paper); margin: 64px 0 4px; }
.sub-p { font-size: 15px; color: var(--sage); max-width: 60ch; }
h2, h3, .sec-title { text-wrap: balance; }
html[lang="ja"] .sec-title, html[lang="ja"] .card h3, html[lang="ja"] .sub-h, html[lang="ja"] .ms-name, html[lang="ja"] .hero-title { letter-spacing: -.01em; line-height: 1.35; }
html[lang="ja"] .hero-title { line-height: 1.02; }
html[lang="ja"] .sec-label, html[lang="ja"] .eyebrow, html[lang="ja"] .mobile-nav-head { letter-spacing: .06em; }
html[lang="ja"] .sec-sub, html[lang="ja"] .card p, html[lang="ja"] .hero-sub { line-height: 1.9; }
/* Japanisch: an Wortgrenzen umbrechen (nicht mitten in „支払い“), auch im Fließtext; strenge Regeln für kleine Kana und
   Satzzeichen am Zeilenanfang; „pretty“ gegen ein einzelnes Zeichen in der letzten Zeile. */
html[lang="ja"] h2, html[lang="ja"] h3 { word-break: auto-phrase; }
html[lang="ja"] :is(p, li, figcaption, dd, .hero-hint, .hero-sub, .sec-sub, .card p, span.t, .emb-cap, .note, .mg-status, .ms-legal, .foot-lead, .dv-lead, .dv-note) {
  word-break: auto-phrase; line-break: strict; text-wrap: pretty;
}
/* schmale Zellen: lange Wörter dürfen notfalls brechen, statt überzulaufen */
html[lang="ja"] :is(.b-liste li, .house span.t, .ms-list li) { overflow-wrap: anywhere; }

/* ── Karten (Grammatik von mi-su.me / Compass) ───────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 30px); }
.cards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--ink-3); border: 1px solid var(--line);
        padding: clamp(22px, 2.2vw, 30px); transition: border-color .35s, box-shadow .35s, transform .35s var(--ease); }
.card::before, .card::after { content: ''; position: absolute; pointer-events: none; background: var(--line-2);
  transition: width .45s var(--ease), height .45s var(--ease), background-color .35s; }
.card::before { left: -11px; top: -1px; width: 46px; height: 1px; }
.card::after  { left: -1px; top: -11px; width: 1px; height: 46px; }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 14px 34px -14px rgba(0,0,0,.7); }
.card:hover::before { width: 96px; background: var(--bern); }
.card:hover::after  { height: 96px; background: var(--bern); }
a.card:focus-visible { outline: 2px solid var(--bern); outline-offset: 4px; }
.card-icon { display: block; width: 52px; height: 52px; flex: none; color: var(--paper); }
.card-icon svg { width: 100%; height: 100%; }
.card h3 { font-size: clamp(17px, 1.6vw, 20px); font-weight: 900; letter-spacing: -.4px; line-height: 1.25; color: var(--paper); }
.card p { font-size: 14.5px; color: var(--sage); }
.card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
/* Der geschlossene Kreislauf: der Satz, der die Zahlungskarten einordnet – über die ganze Breite, Symbol links */
.card.kreis { grid-column: 1 / -1; border-color: var(--line-2); display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 6px 22px; align-items: center; }
.card.kreis .card-icon { grid-row: 1 / 3; }
.card.kreis p { max-width: 80ch; }
.kunden-split { margin-top: clamp(48px, 6vw, 72px); }
.kunden-split .sub-h { margin-top: 0; }

.zeichnung { --strich: 2.2; --strich-fein: 1.2; overflow: visible; }
.zeichnung .z-linie { fill: none; stroke: currentColor; stroke-width: var(--strich); stroke-linecap: square; stroke-linejoin: miter; }
.zeichnung .z-fein { stroke-width: var(--strich-fein); }
.zeichnung .e-gestr { stroke-dasharray: 3 3; }
.zeichnung .z-akzent { fill: var(--akzent-flaeche); }

/* Einblenden beim Scrollen: nur, wenn das Skript .reveal-an gesetzt hat */
.reveal-an [data-reveal]:not(.ist-sichtbar) { opacity: 0; transform: translateY(24px); }
.reveal-an [data-reveal].ist-sichtbar { opacity: 1; animation: einblenden .8s var(--ease) var(--verzug, 0ms) backwards; }
@media (prefers-reduced-motion: no-preference) {
  .reveal-an .ist-sichtbar .zeichnung .z-linie:not(.e-gestr) { stroke-dasharray: 1; animation: zeichnen 1.1s var(--ease) calc(var(--verzug, 0ms) + 200ms) both; }
  .reveal-an .ist-sichtbar .zeichnung .z-flaeche { transform-box: fill-box; transform-origin: 50% 100%; animation: aufbauen .9s var(--ease) calc(var(--verzug, 0ms) + 650ms) both; }
}

/* ── Geräteaufnahmen ─────────────────────────────────────────────────────── */
/* Auf breiten Fenstern eine Reihe (Handy und Tablet etwa gleich hoch), schmaler darf geschrumpft und umgebrochen werden */
.shots { display: flex; flex-wrap: nowrap; justify-content: center; align-items: flex-start; gap: clamp(22px, 3.4vw, 48px); margin: 0 0 clamp(56px, 7vw, 88px); }
.shot { margin: 0; position: relative; min-width: 0; }
.shot.hoch { flex: 0 1 240px; }
.shot.tablet { flex: 0 1 340px; }
/* Ausschnitt (nur die Karte): mittig neben den Geräten, wie eine herausgezogene Vergrößerung */
.shot.karte { flex: 0 1 300px; align-self: center; margin-top: 0 !important; }
.shot.karte .rahmen { border-radius: 18px; padding: 6px; }
.shot.karte .rahmen img { border-radius: 13px; }
.shot:nth-child(2) { margin-top: 48px; }
.rahmen { position: relative; padding: 8px; border-radius: 34px; background: linear-gradient(160deg, #202025 0%, #0E0E11 60%);
          border: 1px solid var(--line-2); box-shadow: 0 34px 70px -22px rgba(0,0,0,.85), inset 0 0 0 1px rgba(0,0,0,.65); }
.shot.tablet .rahmen { padding: 12px; border-radius: 26px; }
.rahmen img { display: block; width: 100%; height: auto; border-radius: 26px; background: #0B0B0E; }
.shot.tablet .rahmen img { border-radius: 14px; }
.rahmen::before, .rahmen::after { content: ''; position: absolute; pointer-events: none; background: var(--line-2); }
.rahmen::before { left: -12px; top: -1px; width: 46px; height: 1px; }
.rahmen::after  { left: -1px; top: -12px; width: 1px; height: 46px; }
.shot figcaption { margin-top: 16px; font-size: 13.5px; line-height: 1.55; color: var(--sage); }
.shot figcaption::before { content: ''; display: block; width: 22px; height: 1px; background: var(--line-2); margin-bottom: 10px; }

/* Text + Bild nebeneinander (Besitzer und Kunden) */
.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split .shots { margin: 0; justify-content: flex-start; }
.split .shot:nth-child(2) { margin-top: 0; }

/* ── Die 15 Bereiche: Liste wie im Bauplan ───────────────────────────────── */
.bereiche { margin-top: 56px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); gap: 20px 48px; align-items: start; }
.bereiche h3 { font-size: 20px; font-weight: 900; letter-spacing: -.5px; color: var(--paper); }
.bereiche > div > p { font-size: 14.5px; color: var(--sage); margin-top: 8px; }
.b-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); counter-reset: bl; }
.b-liste li { counter-increment: bl; display: flex; gap: 12px; align-items: baseline; padding: 11px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
              font-size: 14px; color: var(--paper); line-height: 1.4; }
.b-liste li::before { content: counter(bl, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--olive); letter-spacing: .8px; flex: none; }
.b-liste li.x { color: var(--sage); background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(244,242,238,.025) 7px 8px); }
.formen { margin-top: 30px; }

/* ── Schritte der Kasse ──────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 30px); counter-reset: st; }
.step { counter-increment: st; }
.step::marker { content: none; }
.step .num { font-family: var(--mono); font-size: 13px; color: var(--paper); width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; }
.box { margin-top: clamp(24px, 3vw, 34px); padding: clamp(22px, 2.6vw, 32px); border: 1px solid var(--line-2); background: transparent; position: relative; }
.box h3 { font-size: 17px; font-weight: 900; color: var(--paper); margin-bottom: 8px; }
.box p { font-size: 14.5px; color: var(--sage); max-width: 80ch; }
.box::before { content: ''; position: absolute; left: -1px; top: -1px; width: 22px; height: 2px; background: var(--rot-hell); }

/* ── Häuser (ein Konto, vier Häuser) und Familie ─────────────────────────── */
.houses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 28px); margin-top: 22px; }
.house { flex-direction: row; align-items: center; gap: 16px; padding: 20px 22px; }
.house .card-icon { width: 44px; height: 44px; }
.house b { display: block; font-size: 15px; font-weight: 900; color: var(--paper); letter-spacing: -.2px; }
.house span.t { display: block; font-size: 12.5px; line-height: 1.5; color: var(--olive); }
.family { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 28px); }
.family .card { gap: 10px; }
.family .card b { font-size: 17px; font-weight: 900; color: var(--paper); letter-spacing: -.3px; }
.family .card p { font-size: 14px; }
.family .card .mehr { margin-top: auto; font-size: 13.5px; color: var(--bern-hell); }

/* ── Download ────────────────────────────────────────────────────────────── */
.dl { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.dl-card { gap: 18px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px 26px; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--olive); }
html[lang="ja"] .dl-meta { font-family: var(--font-jp); letter-spacing: .06em; }
.dl-meta em { font-style: normal; color: var(--paper); margin-left: 8px; }
.dl-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dl-links { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.dl-links a { padding: 6px 0; font-size: 14.5px; color: var(--paper); border-bottom: 1px solid var(--line-2); transition: color .15s, border-color .2s; }
.dl-links a:hover { color: var(--bern-hell); border-color: var(--bern); }

/* ── Geplant ─────────────────────────────────────────────────────────────── */
.plan { margin-top: 10px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.plan li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--paper); }
.plan li::before { content: ''; position: absolute; left: 2px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border: 1px dashed var(--olive); transform: rotate(45deg); }

/* ── Mitgliedschaft ──────────────────────────────────────────────────────── */
.ms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 32px); margin-top: 8px; }
.ms-card { gap: 0; }
.ms-card--best { border-color: var(--paper); }
.ms-card--best::before, .ms-card--best::after { background: var(--paper); }
.ms-band { position: absolute; top: -13px; right: 22px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; padding: 4px 11px; background: var(--paper); color: var(--ink); }
html[lang="ja"] .ms-band { font-family: var(--font-jp); }
.ms-name { font-size: 18px; font-weight: 900; letter-spacing: -.3px; color: var(--paper); margin: 0 0 8px; }
.ms-price { font-size: 40px; font-weight: 900; letter-spacing: -1.6px; line-height: 1.05; color: var(--paper); }
.ms-per { font-size: 13px; color: var(--olive); margin: 4px 0 18px; }
.ms-coins { display: flex; align-items: baseline; gap: 10px; padding: 13px 15px; margin-bottom: 18px; border: 1px solid var(--line); background: var(--ink-2); }
.ms-coins b { font-family: var(--mono); font-size: 22px; font-weight: 400; color: var(--paper); }
.ms-coins span { font-size: 12.5px; color: var(--olive); }
.ms-list { display: grid; gap: 9px; margin: 0 0 24px; }
.ms-list li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 22px; color: var(--paper); }
.ms-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 11px; height: 2px; background: var(--rot-hell); }
.ms-card .btn { margin-top: auto; width: 100%; }
.ms-how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 32px); margin-top: 32px; }
.ms-how p { font-size: 14px; line-height: 1.7; color: var(--sage); margin-top: 6px; }
.ms-legal { font-size: 13px; line-height: 1.75; color: var(--olive); max-width: 80ch; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ── Fuß ─────────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 54px 0 calc(40px + env(safe-area-inset-bottom, 0px)); background: var(--ink); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 36px 60px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot-brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.3px; color: var(--paper); font-size: 17px; }
.foot-lead { margin-top: 12px; max-width: 36ch; font-size: 13.5px; line-height: 1.7; color: var(--olive); }
.foot-fam .foot-h { font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--olive); margin-bottom: 14px; }
html[lang="ja"] .foot-fam .foot-h { font-family: var(--font-jp); }
.foot-fam ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 24px; }
.foot-fam a { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 0; font-size: 14px; color: var(--sage); transition: color .15s; }
.foot-fam a:hover { color: var(--bern-hell); }
.foot-fam a[aria-current] { color: var(--paper); font-weight: 700; }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; padding-top: 24px; font-size: 13px; color: var(--olive); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--sage); display: inline-flex; align-items: center; min-height: 32px; padding: 6px 0; }
.foot-links a:hover { color: var(--bern-hell); }
.foot-copy { font-family: var(--mono); font-size: 11.5px; letter-spacing: .6px; }
html[lang="ja"] .foot-copy { font-family: var(--font-jp); }

/* ── Chronik (entwicklung.html) ──────────────────────────────────────────── */
.nav-zurueck { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 13.5px; color: var(--sage); }
.nav-zurueck:hover { color: var(--bern-hell); }
.pg-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 64px) 0 calc(var(--cut) + 34px); --cut: 56px;
           background: radial-gradient(120% 90% at 88% 16%, #1D1C1A 0%, #121211 48%, #0A0A0C 100%);
           clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
.pg-hero::before { content: ''; position: absolute; right: -10%; top: -20%; width: 80%; height: 140%; background: url(kontur.svg) center / cover no-repeat; opacity: .16; pointer-events: none; }
.pg-hero-in { position: relative; max-width: 880px; }
.pg-title { font-size: clamp(36px, 5vw, 62px); line-height: 1.02; letter-spacing: -2.2px; font-weight: 900; color: var(--paper); margin-bottom: 18px; }
.dv-lead { max-width: 60ch; font-size: 17px; color: var(--sage); }
.dv-note { max-width: 62ch; font-size: 13.5px; line-height: 1.7; color: var(--olive); margin-top: 16px; padding-left: 16px; border-left: 1px solid var(--line-2); }
.dv-wrap { max-width: 880px; margin: 0 auto; padding: 56px var(--rand-r) 110px var(--rand-l); position: relative; }
.dv-rail { position: relative; padding-left: 46px; }
.dv-rail:empty { display: none; }
.dv-rail::before { content: ''; position: absolute; left: 10px; top: 8px; bottom: 30px; width: 1px; background: var(--line-2); }
/* Wegstrich: wächst mit dem Lesen (garage-neu.js setzt --dv-prog). Gedämpftes Weiß – Rot bleibt Zeichnungen und Marken. */
.dv-rail::after { content: ''; position: absolute; left: 9px; top: 8px; width: 3px; height: var(--dv-prog, 0px); max-height: calc(100% - 38px); background: rgba(244,242,238,.55); pointer-events: none; }
.dv-entry { position: relative; margin-bottom: 52px; }
.dv-entry::before { content: ''; position: absolute; left: -43px; top: 6px; width: 11px; height: 11px; background: var(--ink); border: 2px solid var(--paper); transform: rotate(45deg); }
.dv-when { font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--olive); }
.dv-entry .dv-title { font-size: clamp(20px, 2.3vw, 25px); font-weight: 900; letter-spacing: -.6px; line-height: 1.25; color: var(--paper); margin: 6px 0 12px; text-wrap: balance; }
.dv-body { color: var(--sage); font-size: 15px; line-height: 1.7; max-width: 68ch; }
.dv-body p { margin: 0 0 11px; }
.dv-body b { color: var(--paper); font-weight: 700; }
.dv-body code, .dv-apk code { font-family: var(--mono); font-size: .9em; color: var(--paper); background: var(--ink-3); border: 1px solid var(--line); padding: 1px 6px; }
.dv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.dv-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase; padding: 3px 9px; color: var(--olive); border: 1px solid var(--line); }
.dv-tag.v { color: var(--paper); border-color: var(--line-2); }
.dv-apk { margin-top: 10px; font-size: 12.5px; color: var(--olive); }
.dv-ja { font-size: 13px; color: var(--olive); margin: 0 0 30px; }
/* Freigabe-Hinweis (das Skript baut ihn als .login-gate) */
.login-gate { background: var(--ink-3); border: 1px solid var(--line-2); position: relative; }
.login-gate h2 { color: var(--paper); font-weight: 900; font-size: 20px; line-height: 1.3; }
.login-gate p { color: var(--sage) !important; }
.login-gate::before { content: ''; position: absolute; left: -1px; top: -1px; width: 22px; height: 2px; background: var(--rot-hell); }
html[lang="ja"] .dv-when, html[lang="ja"] .dv-tag { letter-spacing: .06em; }

/* ── Schmale Fenster ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
  .cards, .cards.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .houses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-emblem { justify-self: center; width: min(440px, 88vw); }
  .hero { padding-bottom: 120px; }
  .emb .e-meta-t, .emb .e-anz-t { font-size: 12px; }
  .bereiche, .split, .dl { grid-template-columns: 1fr; }
  .ms-grid { grid-template-columns: 1fr; max-width: 560px; }
  .ms-how { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; max-width: 620px; }
  .cards.c2 { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .split .shots { justify-content: center; }
  .shots { flex-wrap: wrap; }
  .shot.hoch { flex: 0 1 calc(50% - 24px); max-width: 260px; }
  .shot.tablet { flex: 0 1 380px; }
  .shot.karte { flex: 0 1 380px; }
}
@media (max-width: 760px) {
  .sec { padding: 72px 0; }
  .hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 64px; --cut: 44px; }
  .hero-bg svg { right: -40%; opacity: .18; }
  :root { --rand: 20px; }
  .cards, .cards.c4, .cards.c2, .houses, .family { grid-template-columns: 1fr; }
  .b-liste { grid-template-columns: 1fr; }
  .sec-head { margin-bottom: 38px; }
  .emb .e-meta-d { display: none; }
  /* Emblem-Schrift: das Zeichen ist min(440px, 88vw) breit (viewBox 480) – die Stufen halten ≥ 10,5 px auf dem Schirm */
  .emb .e-meta-t, .emb .e-anz-t { font-size: 14px; }
  .shots { gap: 26px 18px; }
  .shot.hoch { flex: 0 1 calc(50% - 9px); max-width: 230px; }
  .shot.tablet, .shot.karte { flex: 0 1 100%; max-width: 340px; }
  .shot:nth-child(2) { margin-top: 0; }
  .shot figcaption { font-size: 12.5px; }
  .rahmen { padding: 5px; border-radius: 24px; }
  .rahmen img { border-radius: 19px; }
  .rahmen::before, .rahmen::after { display: none; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .pg-hero { padding-top: calc(var(--nav-h) + 34px); --cut: 30px; }
  .dv-wrap { padding-top: 40px; padding-bottom: 80px; }
  .dv-rail { padding-left: 38px; }
  .dv-entry::before { left: -35px; }
}
@media (max-width: 600px) {
  .nav-logo span { display: none; }
  .nav-inner { gap: 10px; padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { display: none; }
  /* Tippflächen: Sprachknöpfe mindestens 36 × 36 px, 4 px Abstand */
  .lang-toggle { gap: 4px; }
  .lang-btn { min-width: 36px; min-height: 36px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; }
  .hero-btns > .btn, .hero-btns > .dl-slot, .dl-btns > .dl-slot { flex: 1 1 100%; justify-content: center; }
  .dl-slot { justify-items: stretch; }
  .dl-slot .btn, .dl-slot .mg-status { width: 100%; justify-content: center; }
  .dl-slot > .fehler-wrap { width: auto; min-width: 0; }
  .mg-fehler, .mg-noscript { max-width: none; text-align: center; }
  .hero-title { letter-spacing: -2px; }
  .ribbon-in { gap: 6px 22px; font-size: 11.5px; }
  .nav-zurueck .rest { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 500px) { .emb .e-meta-t, .emb .e-anz-t { font-size: 15px; } }
@media (max-width: 380px) { .emb .e-meta-t, .emb .e-anz-t { font-size: 16px; } }
@media (max-width: 350px) { .emb .e-meta-t, .emb .e-anz-t { font-size: 17px; } }
@media (max-width: 335px) { .emb .e-meta-t, .emb .e-anz-t { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print { [data-reveal] { opacity: 1 !important; transform: none !important; } .navbar { display: none; } .hero { clip-path: none; } }
