/* =========================================================================
   PAQ8 für Clarios - Design-System und Layout

   Zwei Welten auf einer Seite, bewusst getrennt:
   - Die Seite spricht Clarios: Montserrat, Überschriften 600 kursiv in
     Versalien, Violett #310B55, Cyan-Verlauf, dunkle Bänder mit Lichtbahnen.
   - Die Software spricht PAQ8: Roboto, Teal, weiße Karten. Alles, was man
     bedienen kann (App, Masken, Auswertung), trägt diesen Look - wie auf
     dem Screenshot „Bericht und Palettenlabel“ (material/app-screens/3).
   ========================================================================= */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Italic-var.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-var.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 75% 100%; font-style: normal; font-display: swap;
}

:root {
  /* Clarios - von clarios.com ausgelesen */
  --violet: #310B55;
  --violet-2: #490E6F;
  --night: #0E0219;
  --night-2: #1A0530;
  --cyan: #00C2EC;
  --cyan-2: #0099C6;
  --cyan-3: #007F9A;          /* Cyan als Text auf Weiß: 4,6:1 */
  --orange: #FFA100;
  --red: #E31628;
  --grad: linear-gradient(90deg, #FFA100, #E31628 38%, #310B55 80%);
  --grad-cyan: linear-gradient(90deg, #007F9A, #0099C6 48%, #00C2EC);

  --ink: #1E1E1E;
  --ink-2: #4E4757;           /* Sekundärtext auf Weiß: 8,6:1 */
  --ink-d: #FFFFFF;
  --ink-d2: #C9BEDA;          /* Sekundärtext auf Dunkel: 10:1 auf --night */
  --line: #E4DFEA;
  --line-d: rgba(255, 255, 255, .14);
  --paper: #FFFFFF;
  --soft: #F5F3F8;

  /* PAQ8-Software */
  --teal: #0F6B6D;
  --teal-2: #0B5153;
  --teal-bg: #E9F3F3;
  --teal-line: #A8CDCE;
  --app-bg: #F3F5F7;
  --app-line: #E2E6E9;
  --app-ink: #1E232B;
  --app-ink2: #5B6670;
  --warn: #E2662B;
  --warn-ink: #A93A0A;
  --err: #C8281E;
  --ok: #1E8A5A;

  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 48px);
  --stack: clamp(64px, 8vw, 120px);
  --top: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--top); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 "Montserrat", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.band { padding-block: var(--stack); position: relative; }
.band--soft { background: var(--soft); }
.dark { background: radial-gradient(120% 90% at 80% 0%, #3A0E66 0%, var(--night-2) 42%, var(--night) 100%); color: var(--ink-d); }

/* ---------- Typografie (Clarios) ---------- */
.kicker {
  margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan-3);
}
.kicker--dark, .dark .kicker { color: var(--cyan); }
.h2 {
  margin: 0 0 22px; max-width: 22ch;
  /* Untergrenze nach dem längsten Wort: „AUTOMATISIERBAR.“ ist 10,3 em breit
     und muss auf 320 px (288 px Satzbreite) in eine Zeile passen. */
  font-size: clamp(26px, calc(3.6vw + 14px), 60px); line-height: 1.08; font-weight: 600; font-style: italic;
  text-transform: uppercase; letter-spacing: -.005em; color: var(--violet); overflow-wrap: break-word;
}
.dark .h2 { color: #fff; }
.h2 em, .h3 em { font-style: italic; color: var(--cyan-3); }
.dark .h2 em { color: var(--cyan); }
.h3 { margin: 0 0 28px; font-size: clamp(26px, 3vw, 38px); line-height: 1.12; font-weight: 600; font-style: italic; text-transform: uppercase; color: var(--violet); }
.lead { max-width: 62ch; margin: 0 0 clamp(36px, 5vw, 64px); font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); }
.dark .lead { color: var(--ink-d2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 0; cursor: pointer; text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--cyan { background: var(--cyan); color: var(--night); }
.btn--cyan:hover { background: #3FD3F2; }
.btn--violet { background: var(--violet); color: #fff; }
.btn--violet:hover { background: var(--violet-2); }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

.link {
  display: inline-flex; gap: 8px; align-items: center; padding: 6px 0; border: 0; background: none; cursor: pointer;
  font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 2px solid currentColor; color: var(--cyan-3);
}
.link--dark { color: var(--cyan); }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal].rise { opacity: 1; transform: none; }
.rise .w { display: inline-block; max-width: 100%; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; padding-right: .06em; margin-right: -.06em; line-height: 1; }
.rise .w > span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease-out); transition-delay: calc(var(--i) * 45ms); }
.rise.in .w > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .rise .w > span { transform: none; transition: none; }
}

/* =========================================================================
   Tür
   ========================================================================= */
.gate { display: none; }
.js.is-locked .gate {
  display: grid; justify-items: center; position: fixed; inset: 0; z-index: 100; padding: var(--gut); overflow-y: auto;
  background: radial-gradient(90% 80% at 70% 10%, #3A0E66, var(--night) 70%); color: #fff;
  transition: opacity .62s var(--ease), transform .62s var(--ease);
}
.js.is-opening .gate { opacity: 0; transform: scale(1.03); pointer-events: none; }
.js.is-locked .page { visibility: hidden; }
.js.is-locked .page * { animation-play-state: paused !important; }
.js.is-opening .page { visibility: visible; }
/* min-width: 0 - sonst wächst die Karte auf die Breite der Logozeile (432 px)
   und der Knopf „Öffnen“ ragt auf dem Telefon aus dem Bild. */
.gate__card { width: min(520px, 100%); min-width: 0; margin-block: auto; }  /* mittig, bei wenig Höhe oben und scrollbar */
.gate__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: clamp(32px, 8vh, 56px); }
.gate__h { margin: 0 0 10px; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 600; font-style: italic; text-transform: uppercase; }
.gate__d { margin: 0 0 28px; color: var(--ink-d2); }
.gate__form { display: flex; gap: 10px; }
.gate__form input {
  flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 1px solid rgba(255,255,255,.3); border-radius: 0;
  background: rgba(255,255,255,.06); color: #fff; font: 600 20px/1 "Montserrat", sans-serif; letter-spacing: .3em;
}
.gate__form input:focus { outline: none; border-color: var(--cyan); background: rgba(0,194,236,.08); }
.gate[data-state="wrong"] .gate__form { animation: shake .42s; }
.gate[data-state="wrong"] input { border-color: #FF6B78; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.gate__msg { min-height: 1.6em; margin: 10px 0 0; color: #FF9AA4; font-weight: 500; }
.gate__note { margin: 40px 0 0; font-size: 13px; color: var(--ink-d2); letter-spacing: .04em; }

/* =========================================================================
   Kopfzeile
   ========================================================================= */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--top);
  background: rgba(14, 2, 25, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-d); color: #fff;
}
.topbar__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1360px, 100% - 2 * var(--gut)); margin-inline: auto; }
.brands { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; color: #fff; }
.brands__paq8 { height: 22px; width: auto; }
.brands__clarios { height: 17px; width: auto; filter: brightness(0) invert(1); }
.brands__for { font-size: 13px; color: var(--ink-d2); letter-spacing: .04em; }
.lang { display: flex; padding: 3px; border: 1px solid var(--line-d); border-radius: 999px; }
.lang button { min-width: 40px; height: 34px; padding: 0 10px; border: 0; border-radius: 999px; background: none; cursor: pointer; color: var(--ink-d2); font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--night); }
@media (max-width: 420px) {
  .brands__for { display: none; }
  .brands { gap: 10px; }
  .brands__paq8 { height: 19px; }
  .brands__clarios { height: 14px; }
}

/* =========================================================================
   Lichtbahnen (Hero und Abschluss)
   ========================================================================= */
.streams { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
/* Bewegt wird die umgebende Ebene, nicht die SVG-Gruppe: eine Transformation
   auf <g> zwingt die ganze Zeichnung in jedem Frame neu durch den Rasterer. */
.streams__l { position: absolute; inset: -10% -6%; will-change: transform; }
.streams__l svg { width: 100%; height: 100%; }
.streams__l path { fill: none; stroke: url(#gStream); vector-effect: non-scaling-stroke; }
.streams__a { animation: drift-a 26s ease-in-out infinite alternate; }
.streams__b { animation: drift-b 34s ease-in-out infinite alternate; opacity: .55; }
.streams[data-run="0"] .streams__a, .streams[data-run="0"] .streams__b { animation-play-state: paused; }
@keyframes drift-a { from { transform: translate3d(-3%, 2%, 0) scaleY(.92); } to { transform: translate3d(3%, -3%, 0) scaleY(1.08); } }
@keyframes drift-b { from { transform: translate3d(4%, -2%, 0) scaleY(1.1) rotate(-2deg); } to { transform: translate3d(-4%, 3%, 0) scaleY(.9) rotate(2deg); } }
.streams__glow { position: absolute; width: 46vw; height: 46vw; right: -8vw; top: 6vh; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,194,236,.18), transparent); filter: blur(10px); }
.streams--close .streams__l { opacity: .5; }
.film__sticky { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .streams__a, .streams__b { animation: none; } }

/* =========================================================================
   Hero
   ========================================================================= */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vh, 110px) 0 clamp(32px, 5vh, 56px); min-height: calc(100svh - var(--top)); display: flex; flex-direction: column; justify-content: center; }
.hero > .wrap { position: relative; }
.hero__intro { margin: 0 0 18px; font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-d2); animation: up .7s var(--ease-out) both; }
/* Die Größe hängt auch an der Höhe: auf 1440 × 900 passen Zeichen,
   Services und Fall zusammen auf den ersten Schirm. */
/* „AUTOMATISIEREN.“ ist 9,6 em breit. Die Schrift richtet sich deshalb
   nach der Satzbreite (÷ 9,8) und nach der Höhe - die kleinere gewinnt.
   Vorher war die Untergrenze 44 px: auf 375 px fehlte das Ende des Worts. */
.sign { margin: 0 0 clamp(32px, 6vh, 64px); font-weight: 600; font-style: italic; text-transform: uppercase; font-size: max(26px, min((100vw - 2 * var(--gut)) / 9.8, 10.5vh, 112px)); line-height: .98; letter-spacing: -.01em; }
.sign__l { display: block; animation: up .8s var(--ease-out) both; }
.sign__l:nth-child(1) { animation-delay: .16s; }
.sign__l:nth-child(2) { animation-delay: .27s; }
.sign__l:nth-child(3) { animation-delay: .38s; }
.sign__l:nth-child(4) { animation-delay: .49s; }
.sign__l--hl { background: var(--grad-cyan); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
@keyframes up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.svc__i { padding: 22px 24px 22px 0; display: grid; gap: 4px; animation: up .7s var(--ease-out) both; animation-delay: calc(1.05s + var(--n, 0) * 90ms); }
.svc__i + .svc__i { padding-left: 24px; border-left: 1px solid var(--line-d); }
.svc__i:nth-child(2) { --n: 1; } .svc__i:nth-child(3) { --n: 2; }
.svc__i b { font-size: 19px; font-weight: 600; }
.svc__i b em { font-style: normal; color: var(--cyan); }
.svc__i span { font-size: 15px; color: var(--ink-d2); }
.hero__case { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; margin-top: 26px; animation: up .7s var(--ease-out) both; animation-delay: 1.5s; }
.hero__case p { margin: 0; max-width: 64ch; color: var(--ink-d2); font-size: 16px; }
@media (max-width: 760px) {
  .svc { grid-template-columns: 1fr; }
  .svc__i, .svc__i + .svc__i { padding: 16px 0; border-left: 0; }
  .svc__i + .svc__i { border-top: 1px solid var(--line-d); }
}
@media (prefers-reduced-motion: reduce) { .hero *, .sign__l { animation: none !important; } }

/* =========================================================================
   Blättern: Wettlauf, Wendekarten, Rechnung
   Zwei Bahnen mit derselben Aufgabe. Die linke ist Papier - hell, staubig,
   rot gezählt. Die rechte ist Clarios-Nacht mit Cyan. Der Zustand jeder Bahn
   steht als data-old / data-new an .race; das CSS hängt nur daran.
   ========================================================================= */
.h2 em.num { white-space: nowrap; }
@media (max-width: 480px) { .h2 em.num { white-space: normal; } }

.race { margin-top: clamp(8px, 2vw, 24px); }
.race__task { margin: 0 0 18px; font-size: 16px; color: var(--ink-2); }
.race__task b { color: var(--violet); font-weight: 600; }
.race__lanes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 22px); }
.lane { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; border-radius: 22px; overflow: hidden; }
.lane--old { background: linear-gradient(180deg, #F8F5FA, #EEE8F3); box-shadow: inset 0 0 0 1px #E6E0EC; }
.lane--new { background: radial-gradient(120% 100% at 70% 0%, #3A0E66 0%, #1A0530 48%, #0E0219 100%); color: #fff; }
.lane__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 0; }
.lane__head b { font-size: 16px; font-weight: 600; }
.lane--old .lane__head b { color: var(--violet); }
.lane__tag { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.lane--old .lane__tag { background: #FBE3E5; color: #A8121F; }
.lane--new .lane__tag { background: rgba(0,194,236,.16); color: var(--cyan); }
.lane__clock { margin-left: auto; font: 600 italic 32px/1 "Montserrat", sans-serif; font-variant-numeric: tabular-nums; }
.lane--old .lane__clock { color: #B3121F; }
.lane--new .lane__clock { color: var(--cyan); }
.lane__stage { position: relative; height: 330px; display: grid; place-items: center; overflow: hidden; }
.lane__status { min-height: 3.2em; margin: 0; padding: 0 20px 20px; font-size: 15px; line-height: 1.45; transition: color .3s; }
.lane--old .lane__status { color: var(--ink-2); }
.lane--new .lane__status { color: var(--ink-d2); }
.race[data-old="found"] .lane--old .lane__status { color: #A8121F; font-weight: 500; }
.race[data-new="done"] .lane--new .lane__status { color: #fff; font-weight: 500; }

/* ---------- Bahn 1: der Ordner ---------- */
/* 20 px nach rechts, weil der Deckel links 40 px übersteht */
.binder2 { position: relative; width: 360px; height: 236px; perspective: 1600px; transform: translateX(20px) rotate(-2deg); }
.race[data-old="search"] .binder2 { animation: rummage .42s ease-in-out infinite alternate; }
@keyframes rummage { to { transform: translateX(20px) rotate(-1deg) translateY(-3px); } }
/* Der Deckel ist 40 px breiter als die Seiten - links bleibt ein Streifen mit
   dem Rückenschild sichtbar, auch wenn alle Seiten umgeblättert darauf liegen. */
.binder2__cover {
  position: absolute; left: -40px; top: 0; width: calc(50% + 40px); height: 100%; border-radius: 12px 3px 3px 12px;
  background: linear-gradient(135deg, #4A1580, #2A0A49 70%);
  box-shadow: 0 24px 40px -22px rgba(49,11,85,.75), inset -8px 0 12px -8px rgba(0,0,0,.55);
}
.binder2__label {
  position: absolute; left: 7px; top: 50%; width: 28px; padding: 10px 0; border-radius: 3px; background: #F5F1E8; color: #3B2A1A;
  font: 600 italic 11px/28px "Montserrat", sans-serif; text-align: center; white-space: nowrap;
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); box-shadow: 0 1px 0 rgba(0,0,0,.2);
}
.binder2__stain { position: absolute; right: 10px; bottom: 14px; width: 64px; height: 64px; border-radius: 50%; border: 5px solid rgba(176,120,66,.34); border-left-color: rgba(176,120,66,.1); border-top-color: rgba(176,120,66,.22); }
.binder2__note { position: absolute; left: 79%; top: -22px; z-index: 50; width: 64px; height: 54px; display: grid; place-items: center; background: #FFE873; color: #4A3B00; font: 600 italic 15px "Montserrat", sans-serif; transform: rotate(5deg); box-shadow: 0 8px 10px -6px rgba(0,0,0,.4); }
.binder2__block { position: absolute; left: 50%; top: 6px; width: calc(50% - 6px); height: calc(100% - 12px); transform-style: preserve-3d; }
.binder2__page, .fp__f, .fp__b { position: absolute; inset: 0; border-radius: 2px 6px 6px 2px; background: #FFFEFC; }
.binder2__page, .fp__f { padding: 16px 16px 0 22px; display: flex; flex-direction: column; gap: 7px; font-family: "Roboto", sans-serif; }
.binder2__page--found { box-shadow: 2px 2px 0 #ECE7F0, 4px 4px 0 #E2DCE8, 6px 6px 0 #D8D1E0, 0 20px 30px -18px rgba(49,11,85,.6); }
.binder2__page--found::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.8) 42%, transparent 54%); opacity: .55; pointer-events: none; }
.binder2__page b, .fp__f b { font-size: 15px; color: #2A2230; }
.binder2__page small, .fp__f small { margin-top: -4px; font-size: 11px; color: #8A8090; }
.binder2__page i, .fp__f i, .fp__b i { display: block; height: 6px; border-radius: 3px; background: #ECE8F0; }
.binder2__page i:nth-of-type(2n), .fp__f i:nth-of-type(2n), .fp__b i:nth-of-type(2n) { width: 78%; }
.binder2__page i:nth-of-type(3n), .fp__f i:nth-of-type(3n), .fp__b i:nth-of-type(3n) { width: 60%; }
.fp { position: absolute; inset: 0; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform .34s cubic-bezier(.45,.05,.55,.95); }
.fp.is-over { transform: rotateY(-178deg); }
.fp__f, .fp__b { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fp__f { box-shadow: inset 1px 0 0 #E8E3EC; }
.fp__b { transform: rotateY(180deg); padding: 44px 22px 0 16px; display: flex; flex-direction: column; gap: 7px; background: #F7F5F2; }
.binder2__rings { position: absolute; left: calc(50% - 12px); top: 34px; bottom: 34px; z-index: 40; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.binder2__rings i { width: 28px; height: 15px; border-radius: 8px; border: 3px solid #BDB8C5; border-left-color: #8E8896; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.binder2__tabs { position: absolute; right: -10px; top: 24px; z-index: -1; display: flex; flex-direction: column; gap: 10px; }
.binder2__tabs i { width: 20px; height: 30px; border-radius: 0 5px 5px 0; }
.binder2__tabs i:nth-child(1) { background: var(--cyan); }
.binder2__tabs i:nth-child(2) { background: var(--orange); }
.binder2__tabs i:nth-child(3) { background: #9B6BD6; }
.binder2__tabs i:nth-child(4) { background: var(--red); }
.binder2__stamp {
  position: absolute; left: 50%; top: 56%; z-index: 60; padding: 7px 12px; border: 3px solid #D0142A; border-radius: 6px;
  background: rgba(255,255,255,.75); color: #D0142A; font: 700 italic 14px/1.1 "Montserrat", sans-serif; text-transform: uppercase; white-space: nowrap;
  opacity: 0; transform: translate3d(-50%, -50%, 2px) rotate(-12deg) scale(1.9); transition: opacity .16s, transform .36s cubic-bezier(.2,1.6,.4,1);
}
.race[data-old="found"] .binder2__stamp { opacity: 1; transform: translate3d(-50%, -50%, 2px) rotate(-12deg) scale(1); }

/* ---------- Bahn 2: der Scan ---------- */
.foil {
  position: absolute; left: 7%; right: 7%; top: 10%; bottom: -12%; border-radius: 12px;
  background: repeating-linear-gradient(112deg, rgba(255,255,255,.07) 0 2px, transparent 2px 26px), linear-gradient(160deg, #2C313A, #15181E 70%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}
.foil::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(100deg, transparent 22%, rgba(0,194,236,.12) 42%, transparent 62%); }
.let {
  position: relative; z-index: 1; width: 236px; padding: 12px 16px 12px; border-radius: 4px; background: #fff; color: #111;
  transform: translate(-34px, -20px) rotate(-1.5deg); box-shadow: 0 18px 30px -12px rgba(0,0,0,.65);
  transition: transform .55s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.let__k { font: 600 12px "Roboto", sans-serif; letter-spacing: .16em; color: #555; vertical-align: 6px; }
.let__n { margin-left: 6px; font: 800 34px/1 "Roboto", sans-serif; }
.let__bars { display: block; width: 100%; height: 54px; margin: 6px 0 6px; fill: #111; }
.let__no { font: 500 12px "Roboto", sans-serif; letter-spacing: .06em; color: #333; }
.let__laser { position: absolute; left: -8%; right: -8%; top: 52%; height: 2px; background: #FF2A3D; box-shadow: 0 0 10px 3px rgba(255,42,61,.75); opacity: 0; }
.race[data-new="scan"] .let__laser { opacity: 1; animation: laser .5s ease-in-out infinite alternate; }
@keyframes laser { from { transform: translateY(-24px); } to { transform: translateY(18px); } }
.let__ok { position: absolute; right: -14px; top: -14px; width: 38px; height: 38px; border-radius: 50%; background: var(--cyan); display: grid; place-items: center; transform: scale(0); transition: transform .35s cubic-bezier(.2,1.6,.4,1); }
.let__ok svg { width: 22px; fill: none; stroke: var(--night); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.race[data-new="ok"] .let__ok, .race[data-new="done"] .let__ok { transform: scale(1); }
.race[data-new="ok"] .let { box-shadow: 0 0 0 3px var(--cyan), 0 0 34px 6px rgba(0,194,236,.55); }
.race[data-new="done"] .let { transform: translate(-34px, -86px) rotate(-1.5deg) scale(.84); }
.gun { position: absolute; right: 3%; bottom: 0; z-index: 2; width: 132px; transform: translate(80%, 70%) rotate(-26deg); transition: transform .5s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 18px 18px rgba(0,0,0,.55)); }
.race[data-new="aim"] .gun, .race[data-new="scan"] .gun, .race[data-new="ok"] .gun { transform: translate(0, -18%) rotate(-10deg); }
.race[data-new="done"] .gun { transform: translate(80%, 70%) rotate(-26deg); }
.gun svg { display: block; width: 100%; height: auto; overflow: visible; }
.gun__body { fill: #2B2F37; }
.gun__hi { fill: none; stroke: #4C525C; stroke-width: 2; stroke-linecap: round; }
.gun__win { fill: #FF2A3D; }
.gun__trig { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linecap: round; }
.gun__led { fill: #59606B; transition: fill .2s; }
.race[data-new="ok"] .gun__led { fill: #2BC27A; }
.tab2 {
  position: absolute; left: 7%; right: 7%; bottom: 12px; z-index: 3; overflow: hidden; border-radius: 12px;
  background: #F3F5F7; color: var(--app-ink); font-family: "Roboto", sans-serif;
  box-shadow: 0 0 0 6px #22252C, 0 -12px 40px -8px rgba(0,0,0,.7);
  transform: translateY(130%); transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.race[data-new="done"] .tab2 { transform: none; }
.tab2__bar { display: flex; align-items: center; gap: 12px; height: 30px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--app-line); color: var(--teal); font-size: 11px; font-weight: 600; }
.tab2__bar img { width: auto; height: 11px; }
.tab2__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; margin: 8px 10px 0; padding: 7px 10px; border: 1px solid var(--teal-line); border-radius: 8px; background: var(--teal-bg); font-size: 12px; }
.tab2__head b { color: var(--teal-2); }
.tab2__head span { color: var(--app-ink2); }
.tab2__body { display: grid; grid-template-columns: 50px 80px 1fr; align-items: center; gap: 10px; padding: 8px 10px 10px; }
.tab2__schema { width: 50px; height: auto; padding: 3px; border-radius: 6px; background: #fff; }
.tab2__schema > rect { fill: #FFF6F6; stroke: #E06A6A; stroke-width: 1.4; }
.tab2__schema g rect { fill: none; stroke: #E06A6A; stroke-width: 1.2; }
.tab2__body img { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; }
.tab2__ok { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 600; }
.tab2__ok svg { width: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.race__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 48px; margin-top: 16px; }
.race__result { margin: 0; max-width: 72ch; color: var(--violet); font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .45s, transform .45s; }
.race[data-state="done"] .race__result { opacity: 1; transform: none; }
.race__replay { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 1px solid #D5CCE0; border-radius: 999px; background: #fff; color: var(--violet); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s, opacity .2s; }
.race__replay svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.race__replay:hover { border-color: var(--violet); }
.race[data-state="run"] .race__replay { opacity: .4; pointer-events: none; }

@media (max-width: 900px) { .race__lanes { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  /* zoom statt scale: verkleinert auch den Platz im Layout, der Ordner bleibt mittig */
  .binder2 { zoom: .74; }
  .lane__stage { height: 280px; }
  .lane__clock { font-size: 26px; }
  .let { transform: translate(-14px, -16px) rotate(-1.5deg) scale(.88); }
  .race[data-new="done"] .let { transform: translate(-14px, -74px) rotate(-1.5deg) scale(.74); }
  .gun { width: 104px; }
  .tab2 { left: 4%; right: 4%; }
}
@media (max-width: 360px) { .binder2 { zoom: .64; } }
@media (prefers-reduced-motion: reduce) {
  .binder2, .fp, .let, .gun, .tab2, .binder2__stamp, .let__ok { animation: none !important; transition: none !important; }
}

/* ---------- Wendekarten ---------- */
.habits { margin-top: clamp(56px, 7vw, 96px); }
.habits__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.habits__head .h3 { margin: 0; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--violet); color: #fff; }
.seg button[data-v="new"][aria-pressed="true"] { background: var(--cyan); color: var(--night); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; perspective: 1400px; }
.card__in {
  display: grid; width: 100%; height: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,.7,.2,1); transition-delay: var(--d, calc(var(--i) * 90ms));
}
.card[data-side="new"] .card__in { transform: rotateY(180deg); }
.card__f {
  grid-area: 1 / 1; display: grid; grid-template-columns: 32px 1fr; align-content: start; column-gap: 14px; row-gap: 4px;
  min-height: 136px; padding: 22px 22px 24px; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.card__f--old { background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.card__f--new { background: linear-gradient(150deg, #2A0A49, #12031F); color: #fff; transform: rotateY(180deg); box-shadow: inset 0 0 0 1px rgba(0,194,236,.25); }
.card__f > svg { grid-row: span 2; width: 28px; height: 28px; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card__f--old > svg { stroke: var(--violet); }
.card__f--new > svg { stroke: var(--cyan); }
.card__f > b { font-size: 17px; font-weight: 600; }
.card__f--old > b { color: var(--violet); }
.card__f > span { font-size: 15px; }
.card__f--old > span { color: var(--ink-2); }
.card__f--new > span { color: var(--ink-d2); }
.card__in:hover .card__f--old { box-shadow: inset 0 0 0 1px #CFC4DD; }
.card__in:focus-visible { outline: none; }
.card__in:focus-visible .card__f { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .card__in { transition: none; } }

/* ---------- Rechnung ---------- */
.tally { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(56px, 7vw, 96px); padding: clamp(22px, 3.4vw, 44px); border-radius: 24px; background: var(--soft); }
.tally__in .h3 { margin-bottom: 26px; }
.tally__note { max-width: 46ch; margin: 22px 0 0; font-size: 14px; color: var(--ink-2); }
.tally__bars { display: grid; align-content: center; gap: 16px; }
.bar { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 12px; }
.bar > span { font-size: 15px; color: var(--ink-2); }
.bar > b { font: 600 italic 24px/1 "Montserrat", sans-serif; font-variant-numeric: tabular-nums; }
.bar > i { grid-column: 1 / -1; height: 12px; overflow: hidden; border-radius: 6px; background: #E4DEEA; }
.bar s { display: block; height: 100%; border-radius: 6px; transform-origin: 0 50%; transform: scaleX(var(--s, 0)); transition: transform .6s var(--ease-out); }
.bar--old > b { color: #B3121F; }
.bar--old s { background: linear-gradient(90deg, #FFA100, #E31628); }
.bar--save > b { color: var(--cyan-3); }
.bar--save s { background: var(--grad-cyan); }
.bar--paq8 > b { color: var(--violet); }
.bar--paq8 s { background: var(--violet); }
.tally__net { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin: 8px 0 0; padding-top: 16px; border-top: 2px solid var(--violet); }
.tally__net span { font-weight: 600; color: var(--violet); }
.tally__net b { font: 600 italic clamp(36px, 4.4vw, 56px)/1 "Montserrat", sans-serif; color: var(--violet); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .tally { grid-template-columns: 1fr; } }

/* =========================================================================
   Flow: Szene und App
   ========================================================================= */
.scene { margin: clamp(28px, 4vw, 48px) 0 0; position: relative; }
.scene__media { position: relative; aspect-ratio: 21 / 9; border-radius: 14px; overflow: hidden; background: var(--night-2); }
.scene__media img, .scene__media video { width: 100%; height: 100%; object-fit: cover; }
/* Halle: Standbild mit langsamem Zoom und einem Lichtstreif, der alle
   neun Sekunden durchs Bild läuft. Beides transform - kein Neuzeichnen. */
.scene__media img { transform-origin: 38% 55%; animation: kenburns 28s ease-in-out infinite alternate; }
.scene__media::after {
  content: ""; position: absolute; inset: -20% auto -20% 0; width: 22%;
  background: linear-gradient(100deg, transparent, rgba(0,194,236,.16) 45%, rgba(123,63,196,.12) 60%, transparent);
  transform: translateX(-120%) skewX(-12deg); animation: sweep 9s ease-in-out infinite; pointer-events: none;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07) translate(-1%, -.5%); } }
@keyframes sweep { 0%, 15% { transform: translateX(-120%) skewX(-12deg); } 60%, 100% { transform: translateX(560%) skewX(-12deg); } }
.scene:not(.in) .scene__media img, .scene:not(.in) .scene__media::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .scene__media img, .scene__media::after { animation: none; } }
.scene__cap { max-width: 64ch; margin: 16px 0 0; color: var(--ink-d2); font-size: 15px; }

.tryout { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin: clamp(36px, 5vw, 56px) 0 22px; padding: 18px 22px; border-left: 3px solid var(--cyan); background: rgba(0,194,236,.07); }
.tryout p { margin: 0; color: var(--ink-d2); }
.tryout b { color: #fff; font-weight: 600; }
.tryout--light { background: #F1FAFC; }
.tryout--light p { color: var(--ink-2); }
.tryout--light b { color: var(--violet); }
.tryout--slim { margin-top: 0; padding: 12px 18px; font-size: 15px; }
.tryout__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tryout--light .tryout__icon svg { stroke: var(--cyan-3); }
.tryout__dot { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--cyan); color: var(--night); display: grid; place-items: center; font: 600 22px/1 "Roboto", sans-serif; }
.tryout__dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--cyan); animation: ring 2.2s var(--ease) infinite; }

.steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ink-d2); }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 600; border: 1px solid rgba(255,255,255,.35); }
.steps li[aria-current="step"] { color: #fff; }
.steps li[aria-current="step"] i { background: var(--cyan); border-color: var(--cyan); color: var(--night); }
.steps li[data-done] i { background: rgba(0,194,236,.18); border-color: var(--cyan); color: var(--cyan); }

/* ---------- App (PAQ8-Look) ---------- */
.app, .sheet, .board { font-family: "Roboto", system-ui, sans-serif; color: var(--app-ink); }
.app { background: var(--app-bg); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); }
.app__bar { display: flex; align-items: center; gap: 28px; padding: 0 22px; height: 60px; background: #fff; border-bottom: 1px solid var(--app-line); }
.app__logo { height: 18px; width: auto; }
.app__nav { display: flex; gap: 26px; font-size: 15px; white-space: nowrap; overflow: hidden; }
.app__nav span { padding: 18px 0 16px; border-bottom: 2px solid transparent; }
.app__nav .is-on { color: var(--teal); font-weight: 600; border-bottom-color: var(--teal); }
.app__me { margin-left: auto; width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #FDE8DD; color: #B5400F; font-weight: 600; font-size: 13px; }
.app__scr { padding: 20px 22px 22px; animation: scr .45s var(--ease-out); }
@keyframes scr { from { opacity: 0; transform: translateY(8px); } }
.app h3 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 600; }
.app h4 { margin: 0 0 10px; font-size: 16px; font-weight: 600; }

.abtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border-radius: 8px; border: 1px solid transparent; cursor: pointer; font: 600 15px/1 "Roboto", sans-serif; white-space: nowrap;
  transition: background-color .15s, border-color .15s, opacity .15s, transform .1s;
}
.abtn:active:not(:disabled) { transform: translateY(1px); }
.abtn--teal { background: var(--teal); color: #fff; }
.abtn--teal:hover:not(:disabled) { background: var(--teal-2); }
.abtn--ghost { background: #fff; border-color: #AEB7BE; color: var(--app-ink); }
.abtn--ghost:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.abtn--dark { background: var(--app-ink); color: #fff; }
.abtn--sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.abtn--wide { width: 100%; }
.abtn:disabled { background: #E3E7EA; border-color: #E3E7EA; color: #7F8A93; cursor: not-allowed; }
/* Gesperrt, aber klickbar: ein Klick zeigt, was noch fehlt */
.abtn[aria-disabled="true"] { background: #E3E7EA; border-color: #E3E7EA; color: #7F8A93; cursor: not-allowed; }
.check li.is-missing label { border-radius: 8px; background: #FFF4EC; box-shadow: inset 3px 0 0 var(--warn); animation: nudge .45s ease-in-out; }
.check li.is-missing i { border-color: var(--warn); }
.qs.is-missing { border-color: var(--warn); animation: nudge .45s ease-in-out; }
.qs.is-missing .qs__reason { border-style: solid; background: #FFF1E6; }
#ckCount.is-warn { color: var(--warn-ink); font-weight: 500; }
@keyframes nudge { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .check li.is-missing label, .qs.is-missing { animation: none; } }
.pill { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.pill--teal { background: var(--teal); color: #fff; }
.pill--dark { background: var(--app-ink); color: #fff; }

.va-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--teal-line); border-radius: 12px; background: var(--teal-bg); }
.va-head h3 { color: var(--teal-2); font-size: 19px; }
.va-head p { margin: 4px 0 0; font-size: 15px; }
.va-body { display: grid; grid-template-columns: minmax(0, 1fr) 170px 170px; gap: 14px; margin: 14px 0; }
.bom { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; font-size: 15px; }
.bom th { text-align: left; padding: 10px 12px; background: #E9ECEF; font-weight: 600; }
.bom td { padding: 8px 12px; border-top: 1px solid #F0F2F4; }
.bom td:first-child, .bom th:first-child { width: 52px; }
.va-fig { margin: 0; padding: 12px; background: #fff; border-radius: 10px; display: grid; justify-items: center; align-content: start; gap: 10px; }
.va-fig figcaption { font-weight: 600; font-size: 15px; }
.schema { width: 100%; max-width: 110px; height: auto; }
.schema__pal { fill: #FFF6F6; stroke: #E06A6A; stroke-width: 1.4; }
.schema__bats rect { fill: none; stroke: #E06A6A; stroke-width: 1.1; }
.schema__bats circle { fill: none; stroke: #E06A6A; stroke-width: 1; }
.va-photo { width: 100%; height: auto; border-radius: 6px; }
.va-start { display: flex; gap: 14px; }
.va-ref { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; min-height: 46px; background: #fff; border: 1px solid #CFD6DB; border-radius: 10px; }
.va-ref:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,107,109,.15); }
.va-ref > svg { width: 20px; flex: none; fill: none; stroke: #6B7680; stroke-width: 1.8; stroke-linecap: round; }
.va-ref input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; font: 400 16px "Roboto", sans-serif; color: var(--app-ink); }
.va-scan { width: 36px; height: 36px; border: 0; border-radius: 8px; background: var(--teal-bg); cursor: pointer; display: grid; place-items: center; }
.va-scan svg { width: 20px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; }

.pk-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 14px; }
.pk-ref { margin: 0; color: var(--app-ink2); }
.pk-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 14px; }
.pk-card { background: #fff; border-radius: 12px; padding: 16px 18px; }
.pk-side { display: grid; gap: 14px; align-content: start; }
.check { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.check label, .ack, .qs__flag { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 16px; line-height: 1.35; }
.check input, .ack input, .qs__flag input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check i, .ack i, .qs__flag i { flex: none; width: 26px; height: 26px; border-radius: 6px; border: 1.5px solid #9AA5AE; background: #fff; display: grid; place-items: center; transition: background-color .15s, border-color .15s; }
.check i::after, .ack i::after, .qs__flag i::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease-out); }
.check input:checked + i, .ack input:checked + i { background: var(--teal); border-color: var(--teal); }
.check input:checked + i::after, .ack input:checked + i::after, .qs__flag input:checked + i::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:checked ~ span { color: var(--app-ink2); }
.check input:focus-visible + i, .ack input:focus-visible + i, .qs__flag input:focus-visible + i { outline: 2px solid var(--teal); outline-offset: 2px; }
.check label { padding: 4px 0; }
.pk-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--app-line); color: var(--app-ink2); }
.scans { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.scans li > span, .scans__btn > span { flex: 1; }
.scans li, .scans__btn { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.scans__btn { width: 100%; padding: 2px 0; border: 0; background: none; cursor: pointer; text-align: left; }
.scans i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #9AA5AE; }
.scans li[data-done="1"] i { border-color: var(--teal); background: radial-gradient(circle, var(--teal) 0 3px, transparent 3.5px); }
.scans b { font-weight: 500; color: var(--teal); }
.scans li[data-done="0"] b { color: var(--app-ink2); }
.scans__btn:hover b { color: var(--teal); text-decoration: underline; }

.qs { border: 1.5px solid transparent; transition: border-color .2s; }
.qs[data-state="need"], .qs[data-state="skip"] { border-color: var(--warn); }
.qs__flag i { border-color: #9AA5AE; }
.qs__flag input:checked + i { background: var(--warn); border-color: var(--warn); }
.qs__need { display: none; margin-top: 12px; }
.qs[data-state="need"] .qs__need, .qs[data-state="skip"] .qs__need { display: block; }
.qs__h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--warn-ink); font-weight: 600; }
.qs__h svg { width: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qs__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.qs__reason { width: 100%; margin-top: 10px; height: 42px; padding: 0 12px; border: 1.5px dashed var(--warn); border-radius: 8px; font: 400 15px "Roboto", sans-serif; background: #FFF9F5; }
.qs__reason:focus { outline: none; border-style: solid; }
.qs__shot { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 14px; }
.qs__shot p { margin: 0; color: var(--app-ink2); }
.qs__shot b { color: var(--app-ink); }
.qs__thumb {
  flex: none; width: 64px; height: 48px; border-radius: 6px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #5A5F66 0 22%, #2D3238 22% 68%, #9C7B4E 68% 80%, #3B3F45 80%);
  animation: shutter .5s var(--ease-out);
}
.qs__thumb::after { content: ""; position: absolute; left: 30%; top: 30%; width: 30%; height: 36%; border: 2px solid #FF7A45; border-radius: 3px; }
.qs__thumb--truck { background: linear-gradient(180deg, #D9DDE1 0 18%, #6E747B 18% 24%, #B48A55 24% 74%, #4A4F55 74%); }
.qs__thumb--truck::after { display: none; }
@keyframes shutter { from { filter: brightness(3); transform: scale(.9); } }

.app__scr--done { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 16px; }
.app__scr--done[hidden] { display: none; }
.rp-card { background: #fff; border-radius: 14px; padding: 20px 22px; }
.rp-no { margin: 6px 0 14px; font-size: 19px; font-weight: 600; color: var(--teal); }
.kv { width: 100%; border-collapse: collapse; font-size: 15px; }
.kv th { text-align: left; padding: 9px 12px; background: #EEF1F3; font-weight: 600; }
.kv td { padding: 8px 12px; border-top: 1px solid #F0F2F4; }
.kv td:first-child { width: 40%; color: var(--app-ink2); }
.rp-side { display: grid; gap: 14px; align-content: start; }
.label { display: grid; justify-items: center; gap: 6px; margin: 10px 0 14px; padding: 16px; border: 1.5px dashed #AEB7BE; border-radius: 8px; }
.label__bars { width: 100%; height: 70px; }
.label b { font-size: 20px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.label span { color: var(--app-ink2); font-size: 14px; }
.lb-msg { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; color: var(--teal); }
.numlogic { margin: 0; padding: 14px 16px; border: 1.5px solid var(--cyan); border-radius: 12px; background: var(--night-2); color: #fff; font-size: 15px; }
#nextPallet { justify-self: start; }

@media (max-width: 1000px) {
  .va-body { grid-template-columns: 1fr 1fr; }
  .va-body .bom { grid-column: 1 / -1; }
  .pk-body, .app__scr--done { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .app__bar { gap: 14px; padding: 0 14px; }
  .app__nav span:not(.is-on) { display: none; }
  .app__scr { padding: 14px; }
  .va-head { flex-direction: column; align-items: flex-start; }
  .va-start { flex-direction: column; }
  .bom { font-size: 13px; }
  .bom td, .bom th { padding: 7px 8px; }
  .bom td:nth-child(3), .bom th:nth-child(3) { display: none; }
  .app h3 { font-size: 17px; }
}

/* =========================================================================
   Move: der Film
   ========================================================================= */
.journey { padding-top: var(--stack); background: var(--paper); }
.journey__head .tryout { margin-bottom: 28px; }
.film { position: relative; height: 320svh; }
.film__sticky { position: sticky; top: var(--top); height: calc(100svh - var(--top)); display: grid; place-items: center; padding: 12px var(--gut) 20px; }
.film__frame {
  /* höchstens 1680 px: darüber wirkt das 1440er-Video weich */
  position: relative; width: min(100%, calc((100svh - var(--top) - 32px) * 16 / 9), 1680px); aspect-ratio: 16 / 9;
  border-radius: 18px; overflow: hidden; background: var(--night); isolation: isolate;
  box-shadow: 0 30px 70px -40px rgba(49,11,85,.7);
}
.film__layer { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform; }
.film__layer[data-layer="tor"] { opacity: 1; }
.film__layer video, .film__layer img { width: 100%; height: 100%; object-fit: cover; }
.film__head { position: absolute; left: 0; right: 0; top: 0; padding: clamp(14px, 2.4vw, 28px) clamp(16px, 2.6vw, 32px) 60px; background: linear-gradient(180deg, rgba(14,2,25,.82), rgba(14,2,25,.4) 65%, transparent); pointer-events: none; z-index: 2; }
.film__stage { position: absolute; left: clamp(16px, 2.6vw, 32px); top: clamp(14px, 2.4vw, 28px); margin: 0; max-width: min(46ch, 52%); color: #fff; opacity: 0; transition: opacity .4s; }
.film__stage b { display: block; font: 600 italic clamp(20px, 2.2vw, 30px)/1.1 "Montserrat", sans-serif; text-transform: uppercase; margin-bottom: 6px; }
.film__stage span { font-size: clamp(13px, 1.1vw, 15px); line-height: 1.45; color: #E7DFF2; }
.film[data-stage="tor"] .film__stage[data-stage="tor"], .film[data-stage="rampe"] .film__stage[data-stage="rampe"] { opacity: 1; }

.hs { position: absolute; inset: 0; z-index: 3; opacity: var(--o, 0); pointer-events: none; transition: opacity .25s; }
.hs[data-live="1"] { pointer-events: auto; }
.hs__b {
  position: absolute; left: var(--x); top: var(--y); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  border: 0; cursor: pointer; background: var(--cyan); color: var(--night); box-shadow: 0 6px 18px -6px rgba(0,0,0,.6);
  transition: transform .2s var(--ease), background-color .2s, opacity .2s;
}
.hs__b::before { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font: 500 28px/1 "Roboto", sans-serif; transition: transform .25s var(--ease); }
.hs__b::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--cyan); animation: ring 2.2s var(--ease) infinite; }
.hs__b:hover { transform: scale(1.08); }
.hs__b[aria-expanded="true"] { background: #fff; }
.hs__b[aria-expanded="true"]::before { transform: rotate(45deg); }
.hs__b[aria-expanded="true"]::after { animation: none; opacity: 0; }
.hs__b[data-covered="true"] { opacity: 0; pointer-events: none; }
.hs__b[data-ping="1"]::after { border-color: var(--orange); animation-duration: 1.1s; }
@keyframes ring { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hs__b::after, .tryout__dot::after { animation: none; opacity: .5; } }

/* ---------- Masken ---------- */
.sheet {
  position: absolute; z-index: 5; top: 16px; width: 360px; max-height: calc(100% - 32px); overflow: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .24s var(--ease), transform .24s var(--ease);
}
.sheet.is-on { opacity: 1; transform: none; }
.sheet__top { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 10px 18px; background: #fff; border-bottom: 1px solid var(--app-line); }
.sheet__top h3 { margin: 0; font-size: 17px; font-weight: 600; }
.sheet__x { width: 34px; height: 34px; border: 0; border-radius: 8px; background: var(--app-bg); cursor: pointer; font-size: 22px; line-height: 1; color: var(--app-ink2); }
.sheet__body { padding: 14px 18px 18px; display: grid; gap: 14px; font-size: 15px; }
.sheet h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.sheet__foot { margin: 0; font-size: 13px; color: var(--app-ink2); line-height: 1.45; }
.sheet--phone { width: 340px; }

.pass { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--teal-bg); }
.pass div { display: grid; }
.pass dt { font-size: 12px; color: var(--app-ink2); }
.pass dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.pass--sum { grid-template-columns: repeat(3, 1fr); background: var(--app-bg); }
.flowstep { display: grid; gap: 8px; transition: opacity .2s; }
.flowstep[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.flowstep__ok { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 500; }
.flowstep__ok::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.langs { display: flex; flex-wrap: wrap; gap: 6px; }
.langs button { height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid #C7CED3; background: #fff; cursor: pointer; font-size: 13px; }
.langs button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rules li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; background: var(--app-bg); font-size: 14px; line-height: 1.35; animation: scr .4s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); }
.pic { width: 44px; height: 44px; border-radius: 8px; background: #fff; display: grid; place-items: center; }
.pic svg { width: 32px; height: 32px; fill: none; stroke: var(--app-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.pic .hl { stroke: var(--warn); }
.pic--vest .hl { animation: glint 2.4s ease-in-out infinite; }
.pic--speed .rim { stroke: var(--err); stroke-width: 2.4; animation: pulse 2s ease-in-out infinite; transform-origin: 16px 16px; }
.pic--zone .who { animation: step 3s var(--ease) infinite; }
.pic--fire .fl { stroke: var(--warn); animation: flick .9s ease-in-out infinite alternate; transform-origin: 16px 26px; }
.pic--fire .x { stroke: var(--err); stroke-width: 2.4; stroke-dasharray: 34; animation: cross 3s var(--ease) infinite; }
@keyframes glint { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes step { 0%, 20% { transform: translateX(-9px); } 50%, 100% { transform: none; } }
@keyframes flick { from { transform: scaleY(.85); } to { transform: scaleY(1.08); } }
@keyframes cross { 0%, 20% { stroke-dashoffset: 34; } 45%, 100% { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .pic * { animation: none !important; stroke-dashoffset: 0 !important; } }
.ack { font-size: 15px; }

.sigpad { position: relative; width: 100%; height: 96px; padding: 0; border: 1.5px dashed #AEB7BE; border-radius: 10px; background: #FBFCFC; cursor: pointer; }
.sigpad svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sigpad path { fill: none; stroke: #1D2D6B; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); }
.sigpad.is-signed path { transition: stroke-dashoffset 1.5s ease-in-out; stroke-dashoffset: 0; }
.sigpad span { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 13px; color: var(--app-ink2); }
.sigpad.is-signed { border-style: solid; border-color: var(--teal-line); cursor: default; }
.sigpad.is-signed span { opacity: 0; }

.push { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--app-bg); }
.push p { margin: 0; line-height: 1.45; }
.push__dot { flex: none; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: #AEB7BE; }
.push[data-state="ready"] { background: #FFF4EC; }
.push[data-state="ready"] .push__dot { background: var(--warn); box-shadow: 0 0 0 0 rgba(226,102,43,.6); animation: dot 1.4s infinite; }
.push[data-state="open"] { background: #EAF6EF; }
.push[data-state="open"] .push__dot { background: var(--ok); }
@keyframes dot { 70% { box-shadow: 0 0 0 10px rgba(226,102,43,0); } 100% { box-shadow: 0 0 0 0 rgba(226,102,43,0); } }
.barrier { width: 100%; max-width: 190px; height: auto; margin: 0 auto; overflow: visible; }
.barrier__post { fill: #3B4148; }
.barrier__bar { fill: #fff; stroke: #C8281E; stroke-width: 1.6; }
.barrier__stripes { stroke: #C8281E; stroke-width: 7; }
.barrier__arm { transform-box: view-box; transform-origin: 25px 30.5px; transition: transform 1.3s cubic-bezier(.5, 0, .2, 1); }
.barrier.is-open .barrier__arm { transform: rotate(-80deg); }
.barrier__lamp { fill: #C8281E; }
.barrier.is-open .barrier__lamp { fill: #2BC27A; }
.barrier__ground { stroke: #C7CED3; stroke-width: 2; }

.ldbar { position: relative; height: 34px; border-radius: 8px; background: var(--app-bg); overflow: hidden; }
.ldbar__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--teal-bg); border-right: 2px solid var(--teal); transition: width .12s linear; }
.ldbar span { position: relative; display: grid; place-items: center; height: 100%; font-weight: 600; font-variant-numeric: tabular-nums; }
.ldlist { list-style: none; margin: 0; padding: 0; max-height: 132px; overflow: auto; display: grid; gap: 2px; font-size: 13px; font-variant-numeric: tabular-nums; }
.ldlist li { display: flex; justify-content: space-between; padding: 4px 8px; border-radius: 6px; background: #F7F9FA; animation: scr .25s var(--ease-out); }
.ldlist li.is-flag { background: #FFF1E8; color: var(--warn-ink); font-weight: 500; }
.ldlist li.is-out { text-decoration: line-through; color: var(--app-ink2); }
.ldflag { padding: 12px 14px; border: 1.5px solid var(--warn); border-radius: 10px; background: #FFF9F5; }
.ldflag p { margin: 0 0 10px; }
.ldflag__btns { display: flex; flex-wrap: wrap; gap: 8px; }

.sheet--exit .sheet__body { padding-top: 0; }
.farewell { position: relative; margin: 0 -18px; padding: 30px 22px 26px; overflow: hidden; text-align: center; color: #fff; background: radial-gradient(110% 90% at 80% 0%, #3A0E66, var(--night) 75%); }
.farewell__streams { position: absolute; inset: 0; }
.farewell__streams i { position: absolute; left: -40%; width: 180%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--cyan), #7B3FC4, transparent); opacity: .55; animation: lane 3.4s linear infinite; }
.farewell__streams i:nth-child(1) { top: 22%; animation-delay: -.4s; }
.farewell__streams i:nth-child(2) { top: 38%; animation-delay: -1.6s; opacity: .35; }
.farewell__streams i:nth-child(3) { top: 56%; animation-delay: -2.4s; }
.farewell__streams i:nth-child(4) { top: 72%; animation-delay: -.9s; opacity: .3; }
.farewell__streams i:nth-child(5) { top: 86%; animation-delay: -2.9s; opacity: .45; }
@keyframes lane { from { transform: translateX(-30%); } to { transform: translateX(30%); } }
.farewell[data-state="wait"] .farewell__streams i { animation-play-state: paused; opacity: .15; }
.farewell__logo { position: relative; width: 150px; height: auto; margin: 0 auto 10px; filter: brightness(0) invert(1); }
.farewell__msg { position: relative; margin: 0; font: 600 italic 22px/1.2 "Montserrat", sans-serif; text-transform: uppercase; }
.farewell__sub { position: relative; min-height: 1.4em; margin: 8px 0 0; color: #E7DFF2; font-size: 14px; }
.farewell[data-state="wait"] .farewell__msg, .farewell[data-state="wait"] .farewell__sub { opacity: .35; }
.farewell[data-state="go"] .farewell__msg { animation: up .7s var(--ease-out) both; }

/* Masken auf schmalen Schirmen (bis Tablet hochkant): unten angedockt statt im
   Bild. Bis 900 px ist der Filmrahmen höchstens 506 px hoch - zu knapp für eine
   Maske im Bild. Die Schwelle steht genauso in site.js (dock). */
@media (max-width: 900px), (max-height: 520px) and (orientation: landscape) {
  .film { height: 260svh; }
  /* Tablet: Maske über die volle Breite wäre zu breit - mittig, höchstens 560 px */
  .sheet, .sheet--phone { margin-inline: auto; max-width: 560px; }
  /* Die Masken öffnen hier auch beim Scrollen. Ist eine am Ende ihres
     Inhalts, scrollt die Seite weiter - sonst hinge der Daumen fest. */
  .sheet, .sheet--phone {
    position: fixed; left: 0 !important; right: 0; top: auto; bottom: 0; width: auto; max-height: 78svh;
    border-radius: 16px 16px 0 0; transform: translateY(24px); overscroll-behavior: auto;
  }
  .sheet.is-on { transform: none; }
}
/* Telefon: kleinerer Rahmen, die Beschriftung nur mit Titel */
@media (max-width: 600px), (max-height: 520px) and (orientation: landscape) {
  .film__frame { border-radius: 12px; }
  .film__stage { max-width: 70%; }
  .film__stage span { display: none; }
  .hs__b { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .hs__b::before { font-size: 24px; }
}
/* Hochformat: Rahmen oben, Maske darunter - beides bleibt sichtbar */
@media (max-width: 900px) and (orientation: portrait) {
  .film__sticky { place-items: start center; padding-top: 10px; }
  .sheet, .sheet--phone { max-height: calc(100svh - var(--top) - 56.25vw - 6px); }
}

/* =========================================================================
   Nachweis und Reporting
   ========================================================================= */
.board { display: grid; grid-template-columns: minmax(0, 1fr) 300px; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -40px rgba(49,11,85,.45), 0 0 0 1px var(--app-line); }
.board__main { padding: 18px 22px 22px; min-width: 0; }
.board__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.board__date { color: var(--app-ink2); font-size: 14px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--app-bg); }
.tabs button { height: 36px; padding: 0 14px; border: 0; border-radius: 7px; background: none; cursor: pointer; font-weight: 500; font-size: 15px; color: var(--app-ink2); display: flex; align-items: center; gap: 6px; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--teal); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tabs__n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--warn); color: #fff; font-size: 12px; display: grid; place-items: center; }
.tabs__n[data-zero] { background: var(--ok); }
.board__panel { animation: scr .35s var(--ease-out); }
.board__h { margin: 22px 0 10px; font-size: 15px; font-weight: 600; }
.tourhead { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-bottom: 14px; }
.tourhead b { font-size: 19px; color: var(--teal); }
.tourhead span { color: var(--app-ink2); }
.timeline { list-style: none; margin: 0 0 18px; padding: 0 0 0 14px; border-left: 2px solid var(--app-line); display: grid; gap: 6px; font-size: 14px; }
.timeline li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 8px; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); }
.timeline li.is-flag::before { border-color: var(--warn); background: var(--warn); }
.timeline time { color: var(--app-ink2); font-variant-numeric: tabular-nums; }
.lets { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.lets th { text-align: left; padding: 8px 10px; background: #EEF1F3; font-weight: 600; }
.lets td { padding: 7px 10px; border-top: 1px solid #F0F2F4; }
.lets tr.is-flag td { background: #FFF6EF; }
.lets__more td { color: var(--app-ink2); font-style: italic; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot--ok { background: var(--ok); } .dot--warn { background: var(--warn); } .dot--err { background: var(--err); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpis div { padding: 14px; border-radius: 10px; background: var(--app-bg); display: grid; }
.kpis b { font-size: 26px; font-weight: 600; color: var(--teal); font-variant-numeric: tabular-nums; }
.kpis span { font-size: 13px; color: var(--app-ink2); line-height: 1.3; }
.shifts { display: grid; gap: 8px; }
.shifts div, .times li { display: grid; grid-template-columns: 70px 1fr 48px; gap: 12px; align-items: center; font-size: 14px; }
.shifts i, .times i { height: 14px; border-radius: 4px; background: var(--teal); transform-origin: 0 50%; width: calc(var(--v) / 180 * 100%); }
.times { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.times li { grid-template-columns: minmax(0, 220px) 1fr 40px; }
.times i { width: calc(var(--v) / 32 * 100%); min-width: 4px; background: #5FA3A4; }
.shifts b, .times b { font-variant-numeric: tabular-nums; text-align: right; }
.board.in .shifts i, .board.in .times i { animation: grow .9s var(--ease-out) both; }
@keyframes grow { from { transform: scaleX(0); } }
.issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.issues li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--app-bg); }
.issues li[data-open="1"] { background: #FFF6EF; }
.issues li div { display: grid; }
.issues li div span { font-size: 13px; color: var(--app-ink2); }
.issues__done { font-size: 13px; color: var(--ok); font-weight: 600; }
.close-shift { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--app-line); }
.close-shift p { margin: 0; max-width: 52ch; font-size: 14px; color: var(--app-ink2); }
.close-shift[data-done] p { color: var(--ok); font-weight: 500; }
.mind { padding: 22px; background: var(--night); color: #fff; font-family: "Roboto", sans-serif; }
.mind__k { margin: 0 0 6px; font: 600 14px "Montserrat", sans-serif; letter-spacing: .04em; }
.mind__k em { font-style: normal; color: var(--cyan); }
.mind h4 { margin: 0 0 14px; font-size: 18px; font-weight: 600; }
.mind ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.mind li { padding-left: 14px; border-left: 2px solid var(--cyan); font-size: 14px; line-height: 1.5; color: #E5DDF0; }
.mind__foot { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line-d); font-size: 13px; color: var(--ink-d2); }
@media (max-width: 1000px) {
  .board { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .board__main { padding: 14px; }
  .lets th:nth-child(3), .lets td:nth-child(3) { display: none; }
  .times li { grid-template-columns: minmax(0, 1fr) 70px 34px; }
}

/* =========================================================================
   Regler
   ========================================================================= */
.cal { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); }
.cal__sliders { display: grid; gap: 26px; align-content: start; }
.sl { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: baseline; }
.sl__k { font-weight: 600; color: var(--violet); }
.sl output { font: 600 italic 30px/1 "Montserrat", sans-serif; color: var(--violet); font-variant-numeric: tabular-nums; }
.sl input { grid-column: 1 / -1; width: 100%; margin: 0; height: 28px; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.sl input::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--cyan-2) var(--p, 0%), #E0DAE7 var(--p, 0%)); }
.sl input::-moz-range-track { height: 4px; background: #E0DAE7; }
.sl input::-moz-range-progress { height: 4px; background: var(--cyan-2); }
.sl input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--violet); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--violet); }
.sl input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--violet); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--violet); }
.sl input:focus-visible { outline: none; }
.sl input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--violet), 0 0 0 6px rgba(0,194,236,.4); }
.sl__scale { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: -4px; font-size: 13px; color: var(--ink-2); }
.cal__basis { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.models { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.model { position: relative; display: grid; gap: 6px; align-content: start; padding: 22px 22px 52px; text-align: left; cursor: pointer; background: var(--soft); border: 2px solid transparent; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.model:hover { border-color: #CFC4DD; }
.model[aria-checked="true"] { background: #fff; border-color: var(--violet); box-shadow: 0 20px 40px -28px rgba(49,11,85,.5); }
.model__k { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-3); }
.model__t { font-weight: 600; color: var(--violet); }
.model__sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 6px 0 10px; }
.model__sum b { font: 600 italic clamp(32px, 3.6vw, 46px)/1 "Montserrat", sans-serif; color: var(--violet); font-variant-numeric: tabular-nums; }
.model__sum span { font-size: 14px; color: var(--ink-2); }
.model__rows { margin: 0; display: grid; gap: 4px; font-size: 14px; }
.model__rows div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); }
.model__rows dt { color: var(--ink-2); }
.model__rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.model__tag { position: absolute; left: 22px; bottom: 16px; padding: 4px 10px; background: var(--cyan); color: var(--night); font-size: 12px; font-weight: 600; letter-spacing: .04em; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.model[data-best] .model__tag { opacity: 1; transform: none; }
.cal__out { grid-column: 1 / -1; display: grid; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.onb, .roi { margin: 0; max-width: 90ch; color: var(--ink-2); }
.onb b { color: var(--violet); }
.roi b { color: var(--violet); }
.cal__act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 12px; }
.cal__hint { font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) { .cal { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .models { grid-template-columns: 1fr; } }

/* =========================================================================
   Vertrauensteil, Warum wir, Abschluss
   ========================================================================= */
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: clamp(28px, 4vw, 48px) 0; }
.qa > div { padding-right: clamp(20px, 4vw, 56px); }
.qa > div + div { padding: 0 0 0 clamp(20px, 4vw, 56px); border-left: 1px solid var(--line); }
.qa h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; color: var(--violet); }
.qa p { margin: 0; color: var(--ink-2); }
.triad { list-style: none; margin: 0 0 clamp(56px, 8vw, 96px); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.triad li { padding: 20px 0; text-align: center; font: 600 italic clamp(24px, 3.6vw, 48px)/1.1 "Montserrat", sans-serif; text-transform: uppercase; color: var(--violet); }
.triad li + li { border-left: 1px solid var(--line); }
.refs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 56px); }
.refs .h3 { grid-column: 1 / -1; }
.ref { padding-top: 22px; border-top: 2px solid var(--violet); }
.ref__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ref__logo { height: var(--h); width: auto; align-self: center; }
.ref__tag { padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(15,107,109,.36); color: var(--teal); font-size: 13px; font-weight: 600; white-space: nowrap; }
.ref h4 { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: var(--violet); }
.ref p { margin: 0; color: var(--ink-2); }
.ref__k { margin-top: 18px !important; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.logorow { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.logorow img { height: var(--h); width: auto; filter: grayscale(1); opacity: .72; transition: filter .25s, opacity .25s; }
.logorow img:hover { filter: none; opacity: 1; }
@media (max-width: 760px) {
  .qa, .refs { grid-template-columns: 1fr; }
  .qa > div + div { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 24px; }
  .ref + .ref { margin-top: 40px; }
  .triad { grid-template-columns: 1fr; }
  .triad li + li { border-left: 0; border-top: 1px solid var(--line); }
}

.why { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.why li { padding: 26px 26px 30px 0; border-top: 1px solid var(--line); }
.why li:not(:nth-child(3n + 1)) { padding-left: 26px; border-left: 1px solid var(--line); }
.why h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; color: var(--violet); }
.why p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 900px) {
  .why { grid-template-columns: 1fr 1fr; }
  .why li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .why li:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .why { grid-template-columns: 1fr; }
  .why li:nth-child(even) { padding-left: 0; border-left: 0; }
}

.close { overflow: hidden; }
.close__in { position: relative; }
.close .h2 { max-width: 20ch; }
.next { list-style: none; margin: clamp(32px, 5vw, 56px) 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-d); }
.next li { padding: 24px 24px 0 0; display: grid; gap: 6px; }
.next li + li { padding-left: 24px; border-left: 1px solid var(--line-d); }
.next i { font: 600 italic 40px/1 "Montserrat", sans-serif; color: var(--cyan); }
.next b { font-size: 18px; font-weight: 600; }
.next span { color: var(--ink-d2); font-size: 15px; }
.close__act { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
@media (max-width: 760px) {
  .next { grid-template-columns: 1fr; }
  .next li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-d); margin-top: 20px; }
}

.foot { background: var(--night); color: var(--ink-d2); padding: 40px 0 48px; font-size: 14px; border-top: 1px solid var(--line-d); }
.foot__in { display: grid; gap: 14px; }
.foot__logo { height: 20px; width: auto; }
.foot__note { margin: 0; max-width: 80ch; }
.foot__links { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__links a { color: #fff; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 10px; background: var(--app-ink); color: #fff; font: 500 15px "Roboto", sans-serif; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); animation: scr .3s var(--ease-out); }

/* =========================================================================
   Rechtsseiten
   ========================================================================= */
.legal { padding: var(--stack) 0; }
.legal .wrap { max-width: 760px; }
/* „DATENSCHUTZERKLÄRUNG“ ist ein Wort von 14 em - weicher Trennstrich im HTML,
   dazu hyphens als zweite Sicherung */
.legal h1 { margin: 0 0 28px; font: 600 italic clamp(26px, calc(3.6vw + 14px), 48px)/1.1 "Montserrat", sans-serif; text-transform: uppercase; color: var(--violet); hyphens: auto; overflow-wrap: break-word; }
.legal h2 { margin: 36px 0 10px; font-size: 20px; font-weight: 600; color: var(--violet); }
.legal p, .legal li { color: var(--ink-2); }
.legal a { color: var(--cyan-3); }
.legal address { font-style: normal; color: var(--ink-2); line-height: 1.7; }
.legal__back { display: inline-block; margin-bottom: 28px; font-weight: 600; text-decoration: none; }
.legal__table { border-collapse: collapse; width: 100%; font-size: 16px; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.legal__table th { width: 34%; font-weight: 600; color: var(--violet); }
.legal__box { padding: 18px 22px; margin: 0 0 16px; background: var(--soft); border-left: 3px solid var(--cyan); }
.legal__box p { margin: 0 0 10px; }
.legal__box p:last-child { margin: 0; }
.legal__meta { margin-top: 40px; font-size: 14px; }
