/* =========================================================================
   WL2D Studio App
   Ein Stylesheet, ein Token-System. Dunkles Cinematic Editorial.
   Reihenfolge: Schriften, Tokens, Grundlagen, Bausteine, Screens, Ausnahmen.
   ========================================================================= */

/* --- 1 · Schriften ------------------------------------------------------
   Fraunces ist eine Variable Font. Ohne den Gewichtsbereich im @font-face
   nimmt der Browser sie als Schnitt 400 und rechnet alles andere künstlich
   fett. Der Bereich ist der Unterschied zwischen Gestaltung und Notbehelf. */

@font-face {
  font-family: Fraunces;
  src: url('../fonts/Fraunces-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: Fraunces;
  src: url('../fonts/Fraunces-italic-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: Barlow;
  src: url('../fonts/Barlow-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: Barlow;
  src: url('../fonts/Barlow-600-latin.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* --- 2 · Tokens --------------------------------------------------------- */

:root {
  color-scheme: dark;

  /* Grund und Flächen */
  --ink:      #0b0908;
  --ink-lift: #110e0c;
  --card:     #17130f;
  --card-2:   #1d1815;

  /* Text. Alle Werte liegen über 4,5:1 auf --ink, auch die kleinen. */
  --text:     #f4ede4;
  --muted:    #b3a89d;   /* 8,5:1 */
  --quiet:    #a2968b;   /* 6,9:1 */

  /* Marke */
  --red:       #b23a36;
  --red-lift:  #c9433d;
  --coral:     #df6f60;
  --ok:        #83bb92;
  --warn:      #e0a95f;

  /* Linien */
  --line:   rgba(244, 237, 228, .12);
  --line-2: rgba(244, 237, 228, .22);

  /* Raster */
  --shell:  780px;
  --pad:    20px;
  --radius: 18px;
  --radius-lg: 24px;

  /* Sichere Bereiche des Geräts */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);

  /* Höhen */
  --bar-h:  60px;
  --nav-h:  58px;
  --nav-total: calc(var(--nav-h) + var(--safe-b));

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- 3 · Grundlagen ----------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

/* Das Attribut hidden muss jede display-Regel schlagen. Sonst bleibt ein
   Element mit display:grid sichtbar, obwohl es ausgeblendet sein soll. */
[hidden] { display: none !important; }

html {
  background: #050403;
  /* Kein touch-action-Verbot: Zwei-Finger-Zoom bleibt möglich (WCAG 1.4.4). */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(120% 60% at 82% -8%, rgba(178, 58, 54, .22) 0%, transparent 60%),
    var(--ink);
  background-attachment: fixed;
  color: var(--text);
  font-family: Barlow, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-family: Fraunces, Georgia, serif; letter-spacing: -.025em; text-wrap: balance; }
p, ul, ol, figure { margin: 0; }
/* height:auto ist Pflicht, sonst schlaegt das height-Attribut aus dem HTML
   jede aspect-ratio aus dem Stylesheet und das Bild rendert falsch. */
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
a { color: var(--text); text-decoration-color: var(--line-2); text-underline-offset: 4px; }
a:hover, a:focus-visible { color: var(--coral); }

/* Ein einziger, konsequenter Fokusring. Nirgends outline:none ohne Ersatz. */
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}
:focus:not(:focus-visible) { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 12px; top: -100px; z-index: 60;
  background: var(--red); color: var(--text);
  padding: 12px 18px; border-radius: 12px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip:focus { top: calc(12px + var(--safe-t)); color: var(--text); }

/* Filmkorn. Rein dekorativ, fängt keine Klicks ab. */
.grain {
  position: fixed; inset: -40px; z-index: 40; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- 4 · Hülle --------------------------------------------------------- */

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  min-height: 100dvh;
  position: relative;
  padding-left: var(--safe-l);
  padding-right: var(--safe-r);
}

/* Kopfleiste. Sie berücksichtigt die Statusleiste des Geräts, sonst liegt
   sie im installierten Modus unter der Dynamic Island. */
.appbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  height: calc(var(--bar-h) + var(--safe-t));
  padding: var(--safe-t) var(--pad) 0;
  background: linear-gradient(var(--ink) 62%, rgba(11, 9, 8, .82) 88%, transparent);
  backdrop-filter: blur(14px);
  transition: transform .32s var(--ease);
}
.appbar[data-hidden="true"] { transform: translateY(-100%); }

.brand { display: flex; align-items: center; gap: 9px; margin-right: auto; min-height: 44px; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.brand span { font-weight: 600; letter-spacing: .2em; font-size: .78rem; }

.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 13px;
  background: linear-gradient(150deg, rgba(244, 237, 228, .055), rgba(244, 237, 228, .012));
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.icon-btn:hover, .icon-btn:focus-visible { border-color: rgba(223, 111, 96, .5); background: rgba(178, 58, 54, .12); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .fill { fill: currentColor; stroke: none; }
.icon-btn.insta { color: var(--coral); }
.icon-btn.insta:hover, .icon-btn.insta:focus-visible { color: var(--text); }
/* Auf sehr schmalen Geraeten bleibt oben nur das Noetigste. */
@media (max-width: 340px) { .icon-btn.insta { display: none; } }

.lang-btn {
  height: 42px; min-width: 44px; padding: 0 11px;
  display: flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); border-radius: 13px;
  background: rgba(244, 237, 228, .03);
  font-size: .68rem; font-weight: 600; letter-spacing: .1em;
}
.lang-btn .on { color: var(--coral); }
.lang-btn .off { color: var(--quiet); }
.lang-btn i { width: 1px; height: 12px; background: var(--line-2); }

.dot {
  position: absolute; right: 8px; top: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--coral); box-shadow: 0 0 0 3px var(--ink);
}

/* --- 5 · Screens -------------------------------------------------------- */

.screen { display: none; padding: 4px var(--pad) calc(var(--nav-total) + 40px); }
.screen[data-active] { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .screen[data-active] { animation: rise .4s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
}

.screen > h1[tabindex] { outline-offset: 6px; }

/* --- 6 · Typografische Bausteine ---------------------------------------- */

.eyebrow {
  font-size: .68rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--coral);
}

/* Die Display-Klassen tragen die Serife selbst, weil sie auch auf p und
   span sitzen und dort nicht von der h1-Regel erben. */
.display, .title, .subtitle {
  font-family: Fraunces, Georgia, serif;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.display {
  font-weight: 560;
  font-size: clamp(2.7rem, 11.5vw, 4.6rem);
  line-height: .94;
  letter-spacing: -.038em;
}
.display em { font-weight: 420; }

.title    { font-weight: 520; font-size: clamp(1.75rem, 6vw, 2.3rem); line-height: 1.04; }
.subtitle { font-weight: 520; font-size: 1.35rem; line-height: 1.18; }

.lead { color: var(--muted); max-width: 46ch; line-height: 1.62; text-wrap: pretty; }
.small { font-size: .82rem; color: var(--quiet); }

.intro { padding: 22px 0 30px; display: grid; gap: 14px; }
.intro.tight { padding-bottom: 22px; }

.section { padding: 46px 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head > div { display: grid; gap: 8px; }

.rule { height: 1px; background: var(--line); border: 0; margin: 46px 0 0; }

/* --- 7 · Schaltflächen -------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .96rem;
  transition: transform .18s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(.985); }
.btn--primary { background: var(--red); color: var(--text); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--red-lift); color: var(--text); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--coral); color: var(--coral); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.link {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; color: var(--coral); font-size: .88rem; font-weight: 600;
}
.link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.link:hover, .link:focus-visible { color: var(--text); }

.back {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; color: var(--quiet); font-size: .86rem;
}
.back:hover, .back:focus-visible { color: var(--text); }
.back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* --- 8 · Hero ------------------------------------------------------------ */

/* Vollflaechig: kein Rahmen, keine Ecken, ueber die volle Breite des Screens.
   Der negative Innenabstand hebt die Seitenpolsterung des Screens auf. */
.hero {
  position: relative; overflow: hidden;
  border: 0; border-radius: 0;
  margin: -4px calc(var(--pad) * -1) 0;
  padding: 30px var(--pad) 34px;
  min-height: 430px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
  background:
    radial-gradient(80% 60% at 78% 14%, rgba(178, 58, 54, .28), transparent 62%),
    linear-gradient(158deg, #1b1411 0%, #0b0908 68%);
}
.hero-mark {
  position: absolute; right: -64px; top: 6%; width: 270px;
  opacity: .1; filter: grayscale(1) brightness(2.4); pointer-events: none;
}
.hero > * { position: relative; }
.hero .lead { max-width: 34ch; }
.hero .btn { align-self: flex-start; margin-top: 6px; }
.hero-tag {
  position: absolute; right: var(--pad); top: 20px;
  font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--quiet);
}

/* --- 9 · Karten und Listen ----------------------------------------------- */

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 20px;
}

.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%;
  gap: 13px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.strip::-webkit-scrollbar { display: none; }
.strip > * { scroll-snap-align: start; }

.tile { display: grid; gap: 10px; text-align: left; }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; filter: saturate(.86); transition: filter .3s var(--ease); }
.tile:hover img, .tile:focus-visible img { filter: saturate(1); }
.tile b { font-family: Fraunces, serif; font-weight: 500; font-size: 1.2rem; }
.tile small { display: block; color: var(--quiet); font-size: .74rem; margin-top: 2px; }

/* Portfolio-Raster */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 17px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: .88rem;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--ink); font-weight: 600; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.work {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 250px; text-align: left; border: 1px solid var(--line);
}
.work.tall { grid-row: span 2; min-height: 512px; }
.work img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.work::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 42%, rgba(6, 5, 4, .92)); }
.work:hover img, .work:focus-visible img { transform: scale(1.04); }
.work span { position: absolute; z-index: 1; left: 15px; right: 12px; bottom: 14px; display: grid; gap: 3px; }
.work small { color: #d9cec3; font-size: .68rem; letter-spacing: .04em; }
.work strong { font-family: Fraunces, serif; font-weight: 500; font-size: 1.25rem; line-height: 1.1; }

.empty {
  display: grid; gap: 10px; justify-items: center; text-align: center;
  padding: 54px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius);
  color: var(--quiet);
}
.empty svg { width: 30px; height: 30px; fill: none; stroke: var(--quiet); stroke-width: 1.3; }
.empty b { font-family: Fraunces, serif; font-weight: 500; font-size: 1.15rem; color: var(--text); }

/* Leistungen */
.services { border-top: 1px solid var(--line); }
.service {
  width: 100%; display: grid; grid-template-columns: 30px 1fr 20px; gap: 12px;
  align-items: start; text-align: left; padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.service > i { font-family: Fraunces, serif; font-style: italic; color: var(--coral); font-size: 1rem; line-height: 1.5; }
.service h2 { font-weight: 520; font-size: 1.5rem; margin-bottom: 6px; }
.service p { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.service > svg { width: 18px; height: 18px; margin-top: 6px; fill: none; stroke: var(--quiet); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service:hover > svg, .service:focus-visible > svg { stroke: var(--coral); }

.bullets { display: grid; gap: 12px; margin-top: 22px; padding: 0; }
.bullets li { list-style: none; display: grid; grid-template-columns: 18px 1fr; gap: 12px; color: var(--muted); }
.bullets svg { width: 16px; height: 16px; margin-top: 6px; fill: none; stroke: var(--coral); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Studio-Abschnitte */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.stats div { border-top: 1px solid var(--line); padding-top: 12px; }
.stats b { display: block; font-family: Fraunces, serif; font-style: italic; font-weight: 400; font-size: 2rem; color: var(--coral); }
.stats span { display: block; font-size: .72rem; color: var(--quiet); margin-top: 4px; }

.principles article { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.principles i { font-family: Fraunces, serif; font-style: italic; color: var(--coral); }
.principles h3 { font-weight: 520; font-size: 1.35rem; margin-bottom: 5px; }
.principles p { color: var(--muted); font-size: .95rem; line-height: 1.5; }

.person { display: grid; gap: 22px; align-items: center; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: var(--radius-lg); filter: saturate(.85); }
.person > div { display: grid; gap: 14px; justify-items: start; }

.contact { display: grid; margin: 26px 0; }
.contact a {
  display: grid; gap: 4px; padding: 15px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; min-height: 44px;
}
.contact small { color: var(--coral); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; }
.contact strong { font-weight: 500; transition: transform .2s var(--ease); }
.contact a:hover strong, .contact a:focus-visible strong { transform: translateX(4px); }

/* Große Aktionskarte */
.cta-card {
  position: relative; overflow: hidden; width: 100%; text-align: left;
  display: grid; grid-template-columns: 52px 1fr 42px; align-items: center; gap: 16px;
  padding: 26px 22px; margin-top: 34px;
  border: 1px solid rgba(244, 237, 228, .24); border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 18%, rgba(244, 237, 228, .16), transparent 55%),
    linear-gradient(134deg, #c44742, #7c2320);
  box-shadow: 0 18px 44px rgba(95, 24, 21, .34);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cta-card:hover, .cta-card:focus-visible { transform: translateY(-3px); box-shadow: 0 24px 56px rgba(95, 24, 21, .46); }
.cta-card .orbit {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(244, 237, 228, .6);
  box-shadow: inset 0 0 0 8px rgba(244, 237, 228, .08);
  display: grid; place-items: center;
}
.cta-card .orbit svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; }
.cta-card small { display: block; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(244, 237, 228, .78); }
.cta-card strong { display: block; font-family: Fraunces, serif; font-weight: 520; font-size: clamp(1.5rem, 5.6vw, 1.95rem); line-height: 1.06; margin: 6px 0 4px; }
.cta-card em { display: block; font-style: normal; font-size: .8rem; color: rgba(244, 237, 228, .8); line-height: 1.35; }
.cta-card > .arrow { width: 42px; height: 42px; border-radius: 50%; background: var(--text); color: var(--red); display: grid; place-items: center; }
.cta-card > .arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --- 10 · Formulare ------------------------------------------------------ */

.field { display: grid; gap: 8px; margin: 16px 0; }
.field > span { font-size: .82rem; color: var(--muted); }
input, textarea, select {
  width: 100%; min-height: 52px; padding: 14px 16px;
  background: var(--ink-lift); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .2s var(--ease);
}
textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
input:hover, textarea:hover, select:hover { border-color: var(--line-2); }
input::placeholder, textarea::placeholder { color: #7d7368; }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: var(--red-lift); }
.field-error { font-size: .78rem; color: var(--coral); }
.field-error:empty { display: none; }

.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.options label { position: relative; }
.options input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.options span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 72px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 14px;
  font-size: .92rem; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.options input:checked + span { border-color: var(--coral); background: rgba(178, 58, 54, .2); font-weight: 600; }
/* Der Fokus muss am sichtbaren Feld sichtbar werden, nicht an der Box dahinter. */
.options input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 3px; }

.steps { display: flex; gap: 6px; margin-bottom: 26px; }
.steps i { flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.steps i[data-done] { background: var(--red); }

.step { display: none; border: 0; padding: 0; margin: 0; }
.step[data-active] { display: block; }
.step legend { font-family: Fraunces, serif; font-weight: 520; font-size: 1.5rem; margin-bottom: 18px; padding: 0; }

.row { display: flex; gap: 10px; margin-top: 22px; }
.row .btn { flex: 1; }

/* Echte Schalter statt gestreckter Systemhaken */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); min-height: 60px; }
.switch > span { display: grid; gap: 3px; }
.switch b { font-weight: 600; font-size: .95rem; }
.switch small { color: var(--quiet); font-size: .78rem; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i {
  flex: none; width: 50px; height: 30px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--line-2); position: relative;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.switch i::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--quiet); transition: transform .22s var(--ease), background .2s var(--ease);
}
.switch input:checked + i { background: rgba(178, 58, 54, .55); border-color: var(--red-lift); }
.switch input:checked + i::after { transform: translateX(20px); background: var(--text); }
.switch input:focus-visible + i { outline: 2px solid var(--coral); outline-offset: 3px; }

/* --- 11 · Vorteile, Markencheck, Werkzeugkasten, Kontakt ----------------- */

.perks { display: grid; gap: 12px; }
.perk {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 46px 1fr; gap: 15px; align-items: start;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.perk:hover, .perk:focus-visible { border-color: rgba(223, 111, 96, .45); background: var(--card-2); transform: translateY(-2px); }
.perk-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; color: var(--coral);
  border: 1px solid rgba(223, 111, 96, .3); background: rgba(178, 58, 54, .12);
}
.perk-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.perk-body { display: grid; gap: 7px; }
.perk-body b { font-family: Fraunces, serif; font-weight: 520; font-size: 1.2rem; line-height: 1.15; }
.perk-body p { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.perk-action { display: inline-flex; align-items: center; gap: 7px; color: var(--coral); font-size: .84rem; font-weight: 600; }
.perk-action svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Markencheck */
.answers { display: grid; gap: 10px; }
.answer {
  width: 100%; text-align: left; min-height: 62px; padding: 15px 18px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  color: var(--text); line-height: 1.4;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.answer:hover, .answer:focus-visible { border-color: var(--coral); background: rgba(178, 58, 54, .14); }
.answer[aria-pressed="true"] { border-color: var(--coral); background: rgba(178, 58, 54, .2); font-weight: 600; }

.result-ring { width: 148px; height: 148px; margin: 8px auto 0; position: relative; }
.result-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.result-ring circle { fill: none; stroke-width: 6; }
.result-ring .track { stroke: var(--line); }
.result-ring .value { stroke: var(--coral); stroke-linecap: round; }
/* Flex mit gemeinsamer Grundlinie, sonst rutscht das Prozentzeichen in
   eine eigene Zeile unter die Zahl. */
.result-ring b {
  position: absolute; inset: 0;
  display: grid; grid-auto-flow: column;
  justify-content: center;   /* nebeneinander statt untereinander */
  align-content: center;     /* die eine Zeile mittig im Ring */
  align-items: baseline;     /* Zahl und Prozentzeichen auf einer Grundlinie */
  font-family: Fraunces, serif; font-weight: 500; font-size: 2.6rem;
  font-variant-numeric: tabular-nums;
}
.result-ring b::after { content: '%'; font-size: 1.05rem; margin-left: 3px; color: var(--muted); }
#quiz-copy { max-width: 44ch; }

/* Checklisten */
.checklist { list-style: none; counter-reset: c; margin: 8px 0 0; padding: 0; }
.checklist li {
  counter-increment: c;
  display: grid; grid-template-columns: 34px 1fr; gap: 14px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.checklist li::before {
  content: counter(c, decimal-leading-zero);
  font-family: Fraunces, serif; font-style: italic; color: var(--coral);
  font-size: 1.05rem; font-variant-numeric: tabular-nums;
}
/* Titel und Text gehoeren in die zweite Spalte. Ohne diese Zeile landet der
   Absatz in der 34 Pixel schmalen Nummernspalte und bricht Wort fuer Wort. */
.checklist li > b, .checklist li > p { grid-column: 2; }
.checklist b { display: block; font-weight: 600; font-size: 1.02rem; margin-bottom: 5px; }
.checklist p { color: var(--muted); font-size: .93rem; line-height: 1.55; }

/* Ordner und Listenzeilen */
.folders { display: grid; }
.folder {
  width: 100%; display: grid; grid-template-columns: 46px 1fr 18px; align-items: center; gap: 13px;
  padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; min-height: 64px;
}
.folder > span:first-child {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--coral);
}
.folder > span:first-child svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.folder b { display: block; font-weight: 600; font-size: .98rem; }
.folder small { display: block; color: var(--quiet); font-size: .8rem; margin-top: 2px; }
.folder > svg { width: 16px; height: 16px; fill: none; stroke: var(--quiet); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Direkter Draht */
.reach { display: grid; gap: 10px; }
.reach-item {
  display: grid; grid-template-columns: 46px 1fr 18px; align-items: center; gap: 14px;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); text-decoration: none; color: var(--text); min-height: 72px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.reach-item:hover, .reach-item:focus-visible { border-color: rgba(223, 111, 96, .45); background: var(--card-2); color: var(--text); }
.reach-item > span:first-child {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: var(--coral);
  border: 1px solid rgba(223, 111, 96, .3); background: rgba(178, 58, 54, .12);
}
.reach-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.reach-item .fill { fill: currentColor; stroke: none; }
.reach-item b { display: block; font-weight: 600; font-size: .98rem; }
.reach-item small { display: block; color: var(--quiet); font-size: .8rem; margin-top: 3px; }
.reach-item > svg { width: 16px; height: 16px; stroke: var(--quiet); }

/* Einfachauswahl im Briefing: große Zeilen zum Antippen statt Tippen. */
.picks { display: grid; gap: 10px; }
.picks label { position: relative; display: block; }
.picks input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.picks span {
  display: flex; align-items: center; min-height: 60px; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 16px; line-height: 1.35;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.picks input:hover + span { border-color: var(--line-2); }
.picks input:checked + span { border-color: var(--coral); background: rgba(178, 58, 54, .2); font-weight: 600; }
.picks input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 3px; }

/* Zusammenfassung vor dem Absenden */
.summary {
  display: grid; gap: 11px; margin: 0 0 22px; padding: 17px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
.summary div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: baseline; }
.summary b { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--quiet); }
.summary span { font-size: .93rem; line-height: 1.45; }
.summary button {
  justify-self: start; color: var(--coral); font-size: .82rem; font-weight: 600;
  min-height: 44px; margin-top: -6px;
}

/* Bestätigung nach dem Absenden */
.done { display: grid; gap: 16px; justify-items: center; text-align: center; padding: 26px 0 8px; }
.done-mark {
  width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(131, 187, 146, .5); background: rgba(131, 187, 146, .12);
}
.done-mark svg { width: 34px; height: 34px; stroke: var(--ok); }
.done .lead { max-width: 34ch; }

/* Bild mit sichtbarer KI-Kennzeichnung */
.shot { position: relative; margin: 0; }
.shot img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
}
.shot--flush img { border: 0; border-radius: 0; aspect-ratio: 16 / 10; }
.shot figcaption {
  position: absolute; right: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(6, 5, 4, .72); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px);
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.shot figcaption svg { width: 11px; height: 11px; fill: none; stroke: var(--coral); stroke-width: 1.6; stroke-linejoin: round; }

/* Bild-Check */
.bc-preview {
  width: 100%; max-height: 46dvh; object-fit: contain;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: #000; margin-top: 8px;
}
.bc-rows { display: grid; }
.bc-row {
  display: grid; grid-template-columns: 12px 1fr; gap: 13px;
  padding: 17px 0; border-bottom: 1px solid var(--line);
}
.bc-row > i { width: 9px; height: 9px; border-radius: 50%; margin-top: 8px; background: var(--quiet); }
.bc-row[data-state="ok"]   > i { background: var(--ok); }
.bc-row[data-state="warn"] > i { background: var(--warn); }
.bc-row[data-state="bad"]  > i { background: var(--red-lift); }
.bc-row b { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--quiet); }
.bc-row strong { display: block; font-weight: 600; font-size: 1rem; margin: 6px 0 4px; }
.bc-row p { color: var(--muted); font-size: .92rem; line-height: 1.5; }

.bc-palette { display: flex; gap: 8px; margin-top: 24px; }
.bc-palette div { flex: 1; display: grid; gap: 7px; }
.bc-palette span { display: block; height: 56px; border-radius: 11px; border: 1px solid var(--line-2); }
.bc-palette small { display: block; font-size: .62rem; color: var(--quiet); font-variant-numeric: tabular-nums; text-align: center; }

/* Das Dateifeld ist unsichtbar, die Beschriftung ist der Knopf. */
label.btn { cursor: pointer; }
#bc-file:focus-visible + p, #bc-file:focus-visible ~ label.btn { outline: 2px solid var(--coral); outline-offset: 3px; }

/* --- 12 · Untere Navigation ---------------------------------------------- */

.tabbar {
  position: fixed; z-index: 30; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: min(var(--shell), 100%);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px calc(8px + var(--safe-l)) calc(4px + var(--safe-b)) calc(8px + var(--safe-r));
  background: rgba(11, 9, 8, .93);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.tabbar button {
  position: relative;
  min-height: 52px; padding: 6px 2px 4px;
  display: grid; justify-items: center; gap: 3px;
  color: var(--quiet); font-size: .68rem;
  transition: color .2s var(--ease);
}
.tabbar svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button[aria-current="page"] { color: var(--text); }
.tabbar button[aria-current="page"]::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 22px; height: 2px; border-radius: 2px; background: var(--coral);
}
.tabbar .tab-dot { position: absolute; top: 5px; right: calc(50% - 17px); width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }

/* --- 13 · Dialoge und Meldungen ------------------------------------------ */

dialog {
  width: min(520px, calc(100% - 28px));
  max-height: min(88dvh, 780px);
  padding: 0; overflow: auto; position: relative;
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  background: var(--card); color: var(--text);
}
dialog::backdrop { background: rgba(4, 3, 3, .78); backdrop-filter: blur(6px); }
dialog > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.dialog-body { padding: 22px; display: grid; gap: 12px; justify-items: start; }
.dialog-body h2 { font-weight: 520; font-size: 1.9rem; }
.dialog-body p { color: var(--muted); line-height: 1.55; }
.dialog-body .row { width: 100%; }
.dialog-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(6, 5, 4, .72); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.dialog-close svg { width: 17px; height: 17px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; }

.toast {
  position: fixed; z-index: 50; left: 50%; bottom: calc(var(--nav-total) + 16px);
  transform: translate(-50%, 14px);
  max-width: calc(100% - 40px);
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--text); color: var(--ink);
  font-size: .88rem; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast[data-show] { opacity: 1; transform: translate(-50%, 0); }
.toast svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--red); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Hinweis auf eine neue Version */
.update {
  position: fixed; z-index: 45; left: 50%; bottom: calc(var(--nav-total) + 16px);
  transform: translateX(-50%);
  width: min(var(--shell), calc(100% - 32px));
  display: none; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 16px;
  background: var(--card-2); border: 1px solid var(--line-2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.update[data-show] { display: flex; }
.update p { flex: 1; font-size: .88rem; }
.update .btn { min-height: 44px; padding: 0 16px; font-size: .85rem; }

/* Installation */
.install-card { display: grid; gap: 14px; justify-items: start; margin-top: 28px; }
.install-card ol { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; font-size: .92rem; }

/* --- 14 · Fußzeile ------------------------------------------------------ */

.foot { margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.foot p { font-size: .78rem; color: var(--quiet); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot nav button, .foot nav a {
  display: inline-flex; align-items: center;
  font-size: .8rem; color: var(--muted); min-height: 44px; text-decoration: none;
}
.foot nav button:hover, .foot nav button:focus-visible,
.foot nav a:hover, .foot nav a:focus-visible { color: var(--coral); }

/* --- 15 · Größere Schirme ----------------------------------------------- */

@media (min-width: 700px) {
  .perks { grid-template-columns: 1fr 1fr; }
  .reach { grid-template-columns: 1fr 1fr; }
  .person { grid-template-columns: .82fr 1.18fr; }
  .strip { grid-auto-columns: 45%; }
  .options { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 781px) {
  body { padding: 22px 0; }
  .shell {
    min-height: auto;
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: clip;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
  }
  .appbar { border-radius: 28px 28px 0 0; }
  .tabbar { bottom: 22px; border-radius: 0 0 28px 28px; }
  .hero { min-height: 480px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .work, .work.tall { min-height: 320px; grid-row: auto; }
}

/* --- 16 · Bewegung sparsam ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .grain { display: none; }
  .appbar[data-hidden="true"] { transform: none; }
}

/* --- 17 · Drucken --------------------------------------------------------- */

@media print {
  .appbar, .tabbar, .grain, .toast, .update { display: none !important; }
  body { background: #fff; color: #000; }
  .screen { display: block !important; }
}
