/*
 * Tomorrow Jobs Connect
 * Stylesheet der Website
 *
 * Design & Umsetzung: Compiaz Design, https://compiaz-design.ch
 *
 * Aufbau
 *   01 Variablen
 *   02 Grundlagen
 *   03 Typografie
 *   04 Navigation
 *   05 Buttons & Badges
 *   06 Karten & Widgets
 *   07 Hero-Bühne (Schichtbrett + Handy)
 *   08 Tabs, Schritte, Visuals
 *   09 Formulare
 *   10 Footer, Rechtstexte, FAQ
 *   11 Animationen
 *
 * Tailwind (CDN) liefert Abstände und Raster, hier liegen
 * Farben, Komponenten und Bewegung.
 */


/* 01 Variablen ------------------------------------------------------ */

:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --text: #334155;
  --muted: #64748b;
  --canvas: #f4f6f9;
  --surface: #ffffff;
  --line: #e5e9f0;
  --line-strong: #cfd6e2;

  --gold: #d4a629;
  --gold-text: #8a6a10;
  --gold-soft: #fbf5e3;
  --gold-line: rgba(212, 166, 41, .38);

  --ok: #15803d;
  --ok-bg: #e9f8ef;
  --wait: #a16207;
  --wait-bg: #fdf6e3;
  --info: #475569;
  --info-bg: #eef2f6;

  --font: "Plus Jakarta Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;

  --shadow-1: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px -2px rgba(15, 23, 42, .05);
  --shadow-2: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .14);
  --shadow-3: 0 2px 6px rgba(15, 23, 42, .05), 0 32px 64px -24px rgba(15, 23, 42, .28);

  --ease: cubic-bezier(.22, .7, .2, 1);
  --pad-l: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px));
  --pad-r: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right, 0px));

  color-scheme: light;
}


/* 02 Grundlagen ----------------------------------------------------- */

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Streifen über der schwebenden Navigation (iPhone Notch) */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--canvas);
  z-index: 60;
}

img { max-width: 100%; height: auto; }
::selection { background: var(--gold-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
}

.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }

.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; flex: none; }
.icon-lg { width: 24px; height: 24px; flex: none; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 80;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }


/* 03 Typografie ----------------------------------------------------- */

h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -.03em; color: var(--ink); }
p { margin: 0; text-wrap: pretty; }

.display {
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.045em;
}

.accent {
  background: linear-gradient(100deg, #8a6a10 0%, #b98d1c 45%, #d4a629 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h-page { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -.04em; }
.h-section { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -.035em; }
.h-card { font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }

.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--text); max-width: 56ch; }
.copy { font-size: 15.5px; line-height: 1.65; color: var(--muted); }

/* Dachzeile über Überschriften: schlicht, ohne Kapsel */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  color: var(--gold-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.2;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), rgba(212, 166, 41, .25));
}
.kicker.on-dark { color: var(--gold); }


/* 04 Navigation ----------------------------------------------------- */

.nav {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  z-index: 50;
  margin-top: 12px;
}

.nav-bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 70px;
  padding: 0 12px 0 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .85);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .62));
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 0 0 .5px rgba(15, 23, 42, .06),
    0 14px 36px -18px rgba(15, 23, 42, .28);
  transition: height .35s var(--ease), box-shadow .3s ease, background-color .3s ease;
}
/* feine Goldlinie unten, läuft zur Mitte hin aus */
.nav-bar::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 166, 41, .55) 30%, rgba(212, 166, 41, .55) 70%, transparent);
  pointer-events: none;
}
.nav.is-scrolled .nav-bar {
  height: 62px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 0 0 .5px rgba(15, 23, 42, .08),
    0 18px 44px -18px rgba(15, 23, 42, .34);
}

.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; color: inherit; text-decoration: none; }
.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 1px 1px rgba(15, 23, 42, .1), 0 8px 16px -8px rgba(15, 23, 42, .55);
  transition: transform .4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }

/* Wortmarke: Name oben, CONNECT darunter als schräg angeschnittenes Gold-Badge */
.brand-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; white-space: nowrap; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.brand-badge {
  display: inline-block;
  margin-left: 3px;
  padding: 3px 9px 3px 10px;
  border-radius: 3px 6px 3px 6px;
  background: linear-gradient(100deg, #b8891a, #d4a629 45%, #e8c766);
  box-shadow: 0 3px 8px -4px rgba(138, 106, 16, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
  transform: skewX(-16deg);
}
.brand-badge > span {
  display: block;
  transform: skewX(16deg);
  color: var(--ink);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .32em;
  line-height: 1;
}

/* Navigation in einer Kapsel, eine helle Markierung gleitet zum Link */
.nav-center { justify-self: center; }
.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 18px;
  background: rgba(15, 23, 42, .045);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .05);
}
.nav-links a {
  position: relative;
  z-index: 1;
  padding: 9px 15px;
  border-radius: 13px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color .25s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--gold);
}
.nav-glide {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  z-index: 0;
  width: 0;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 6px 16px -8px rgba(15, 23, 42, .3);
  opacity: 0;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s ease;
}
.nav-glide.is-on { opacity: 1; }

.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; justify-self: end; }
.nav-app {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease), box-shadow .25s ease;
}
.nav-app:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.nav-app .icon { width: 20px; height: 20px; }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-sheet {
  margin-top: 8px;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-3);
  animation: sheet-in .35s var(--ease);
}
.nav-sheet a:not(.btn) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.nav-sheet a:not(.btn):hover { background: var(--canvas); }


/* 05 Buttons & Badges ----------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s ease, background-color .2s ease, border-color .2s ease;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn small { font-size: 12.5px; font-weight: 600; opacity: .6; }

.btn-sm { height: 44px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn.is-done { background: var(--ok); color: #fff; box-shadow: 0 10px 24px -12px rgba(21, 128, 61, .7); }

.btn-dark { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 24px -12px rgba(15, 23, 42, .7); }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 16px 30px -14px rgba(15, 23, 42, .7); }

.btn-gold { background: var(--gold); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 24px -12px rgba(138, 106, 16, .9); }
.btn-gold:hover { background: #ddb341; transform: translateY(-2px); }

.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-1); }
.btn-light:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-2); }

.btn-glass { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .16); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 20px 0 16px;
  border-radius: 16px;
  background: #000;
  color: #fff;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .8);
  transition: transform .25s var(--ease);
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge .icon { width: 24px; height: 24px; }
.store-badge span { display: block; line-height: 1.1; }
.store-badge .small { font-size: 10.5px; opacity: .85; }
.store-badge .big { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }

.soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 18px 0 14px;
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, .6);
  color: var(--muted);
}
.soon strong { display: block; color: var(--ink); font-size: 14px; line-height: 1.15; }
.soon span { display: block; font-size: 12px; line-height: 1.2; }
.dark-panel .soon { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); color: #94a3b8; }
.dark-panel .soon strong { color: #fff; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  transition: background-color .4s ease, color .4s ease;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-wait { background: var(--wait-bg); color: var(--wait); }
.pill-info { background: var(--info-bg); color: var(--info); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--canvas);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.tag-gold { border-color: var(--gold-line); background: var(--gold-soft); color: var(--gold-text); }
.tag-lg { padding: 9px 15px; border-radius: 14px; font-size: 14px; background: var(--surface); box-shadow: var(--shadow-1); }
.tag-lg.tag-gold { background: var(--gold-soft); }


/* 06 Karten & Widgets ----------------------------------------------- */

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.card-lift { transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease; }
.card-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }

.panel {
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}

.dark-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-3);
}
.dark-panel h2, .dark-panel h3 { color: #fff; }
.dark-panel .copy { color: #94a3b8; }
.dark-panel .lead { color: #cbd5e1; }
.dark-panel .glow {
  position: absolute;
  inset: auto -10% -40% 30%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(212, 166, 41, .22), transparent 70%);
  pointer-events: none;
  animation: breathe 7s ease-in-out infinite;
}

.app-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(160deg, #fff8e6, #f6e8bf);
  color: var(--gold-text);
  box-shadow: inset 0 0 0 1px var(--gold-line), 0 6px 14px -8px rgba(138, 106, 16, .6);
}
.app-icon.dark { background: linear-gradient(160deg, #1e293b, #0f172a); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(212, 166, 41, .3); }
.app-icon.sm { width: 36px; height: 36px; border-radius: 11px; }

.widget {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.widget-title { font-size: 15.5px; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.widget-sub { font-size: 13.5px; line-height: 1.45; color: var(--muted); }

.mini-ecg { display: block; width: 100%; height: 34px; }
.mini-ecg path { fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .3 .7; animation: ecg-run 2.4s linear infinite; }
.mini-ecg .base { stroke: var(--line); stroke-dasharray: none; animation: none; }

/* Messring (Besetzung) */
.gauge { --p: 0; width: 120px; height: 120px; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 10; }
.gauge .track { stroke: var(--canvas); }
.gauge .value {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--p));
  transition: stroke-dashoffset 1.2s var(--ease);
}


/* 07 Hero-Bühne ----------------------------------------------------- */

.hero { position: relative; overflow: hidden; }

.hero-ecg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 120px;
  pointer-events: none;
}
.ecg-base { fill: none; stroke: rgba(15, 23, 42, .07); stroke-width: 1.5; }
.ecg-beat {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: .12 .88;
  animation: ecg-run 4.8s linear infinite;
  filter: drop-shadow(0 0 6px rgba(212, 166, 41, .6));
}

.stage { position: relative; display: flex; flex-direction: column; }
@media (min-width: 640px) { .stage { display: block; min-height: 590px; } }

.halo {
  position: absolute;
  inset: 6% -8% 0 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(212, 166, 41, .22), transparent 70%);
  pointer-events: none;
  animation: breathe 6s ease-in-out infinite;
}

.board {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-3);
}
@media (min-width: 640px) { .board { width: calc(100% - 150px); margin-top: 8px; } }
@media (min-width: 1024px) { .board { width: calc(100% - 225px); } }

.board-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; }
.board-head p { line-height: 1.25; }
.board-title { font-size: 14.5px; font-weight: 700; }
.board-sub { font-size: 12.5px; color: var(--muted); }

.board-meter { display: flex; align-items: center; gap: 10px; }
.board-meter .gauge { width: 38px; height: 38px; }
.board-meter .gauge circle { stroke-width: 12; }
.board-count { font-size: 15px; font-weight: 600; line-height: 1.1; text-align: right; }
.board-count small { display: block; font-family: var(--font); font-size: 11px; font-weight: 500; color: var(--muted); }

.board-list { list-style: none; margin: 0; padding: 0 8px 4px; }
.board-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px 14px;
  padding: 12px;
  border-radius: 18px;
  transition: background-color .5s ease, box-shadow .5s ease;
}
.board-row + .board-row { margin-top: 2px; }
.board-row.is-active { background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-line); }
.board-row .name { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; }
.board-row .meta { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.board-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 20px 16px; font-size: 12px; color: var(--muted); }

.shift-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; }
.shift-ico.day { background: #fff5dc; color: #b7791f; }
.shift-ico.late { background: #fdede4; color: #c2410c; }
.shift-ico.night { background: #eceefb; color: #4f46e5; }

/* Handy */
.phone {
  position: relative;
  width: 260px;
  max-width: 100%;
  aspect-ratio: 260 / 540;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(150deg, #475069, #0f172a 38%, #2c3447 100%);
  box-shadow: inset 0 0 0 1.5px #59627a, 0 0 0 1px rgba(212, 166, 41, .25), 0 40px 80px -30px rgba(15, 23, 42, .7);
}
.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 35px;
  background: var(--canvas);
  color: var(--ink);
}
.phone-island {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 7;
  width: 84px;
  height: 24px;
  border-radius: 20px;
  background: #05070d;
  transform: translateX(-50%);
}
.phone-status { display: flex; justify-content: space-between; padding: 12px 22px 0; font-size: 11px; font-weight: 700; }

.stage .phone-3d { align-self: flex-end; width: 230px; margin: -80px 4px 0 0; }
@media (min-width: 640px) { .stage .phone-3d, .stage .phone-slot { position: absolute; right: 0; top: 100px; width: 250px; margin: 0; } }

.app-top { padding: 24px 16px 12px; }
.app-hello { font-size: 11.5px; color: var(--muted); }
.app-title { font-size: 17px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }

.app-card {
  margin: 0 12px 10px;
  padding: 12px 13px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: transform .4s var(--ease), box-shadow .4s ease, border-color .4s ease;
}
.app-card.is-focus { transform: scale(1.04); border-color: var(--gold-line); box-shadow: 0 14px 30px -14px rgba(138, 106, 16, .55); }
.app-card .when { font-size: 10.5px; color: var(--muted); }
.app-card .what { margin-top: 4px; font-size: 13px; font-weight: 700; line-height: 1.25; }
.app-card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }

.app-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
  transition: transform .2s ease, background-color .3s ease, color .3s ease;
}
.app-cta.is-press { transform: scale(.88); }
.app-cta.is-done { background: var(--ok); color: #fff; }

.app-tabbar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  justify-content: space-around;
  padding: 10px 6px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #94a3b8;
}
.app-tabbar .on { color: var(--ink); }

/* Push-Benachrichtigung */
.push {
  position: absolute;
  top: 40px;
  left: 8px;
  right: 8px;
  z-index: 6;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 30px -16px rgba(15, 23, 42, .5);
  transform: translateY(-150%);
  opacity: 0;
  transition: transform .6s var(--ease), opacity .4s ease;
}
.push.is-in { transform: none; opacity: 1; }
.push img { width: 30px; height: 30px; flex: none; border-radius: 8px; }
.push b { display: block; font-size: 11.5px; line-height: 1.25; }
.push span { display: block; font-size: 11px; line-height: 1.3; color: var(--muted); }

.toast {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-3);
  font-size: 13px;
  opacity: 0;
  transform: translateY(10px) scale(.96);
  transition: opacity .5s ease, transform .6s var(--ease);
}
.toast.is-in { opacity: 1; transform: none; }
.toast b { display: block; line-height: 1.2; }
.toast span { display: block; font-size: 12px; line-height: 1.3; color: var(--muted); }


/* 08 Tabs, Schritte, Visuals ---------------------------------------- */

.segmented {
  position: relative;
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.segmented button {
  position: relative;
  z-index: 1;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: color .3s ease;
}
.segmented button[aria-selected="true"] { color: #fff; }
.segmented .thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 8px 18px -10px rgba(15, 23, 42, .8);
  transition: transform .45s var(--ease), width .45s var(--ease);
}

.tab-panel { animation: panel-in .5s var(--ease); }

.feature { display: flex; gap: 16px; }
.feature h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -.015em; }
.feature p { margin-top: 3px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.dark-panel .feature p { color: #94a3b8; }

/* Tagesverlauf: Sonne wandert über den Bogen, Früh bis Nacht */
.daycycle { position: relative; width: 100%; max-width: 360px; margin-inline: auto; }
.daycycle > svg { display: block; width: 100%; height: auto; overflow: visible; }
.daycycle-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; font-weight: 700; }
.daycycle-labels span { display: flex; align-items: center; gap: 6px; }
.daycycle-labels .shift-ico { width: 28px; height: 28px; border-radius: 9px; }
.daycycle .arc { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.daycycle .arm { transform-box: view-box; transform-origin: 150px 112px; animation: sweep 10s ease-in-out infinite; }

/* Schritte mit Fortschrittsbalken */
.steps { display: grid; gap: 8px; }
.step-btn {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid transparent;
  border-radius: 24px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.step-btn:hover { background: rgba(255, 255, 255, .7); }
.step-btn[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-2); }
.step-btn h3 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.step-btn p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }

.step-no {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.step-btn[aria-selected="true"] .step-no { background: var(--ink); border-color: var(--ink); color: var(--gold); }

.step-bar { height: 3px; margin-top: 10px; overflow: hidden; border-radius: 3px; background: var(--canvas); }
.step-bar span { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--gold); }
.step-btn[aria-selected="true"] .step-bar span { animation: progress var(--step-time, 6s) linear forwards; }
.steps.is-paused .step-bar span { animation-play-state: paused; }

.step-visual {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 280px at 70% 15%, rgba(212, 166, 41, .16), transparent 70%),
    linear-gradient(165deg, #ffffff, #eef2f7);
  box-shadow: var(--shadow-2);
}
.scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  opacity: 0;
  transform: scale(.97);
  transition: opacity .5s ease, transform .6s var(--ease);
  pointer-events: none;
}
.scene.is-on { opacity: 1; transform: none; }
.scene-label { position: absolute; left: 24px; bottom: 20px; font-size: 12px; color: var(--muted); }

/* Szene 1: Diplom wird geprüft */
.doc {
  position: relative;
  width: min(290px, 100%);
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-3);
}
.doc .line { height: 8px; margin-top: 10px; border-radius: 4px; background: var(--canvas); }
.doc .scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 46px;
  border-bottom: 2px solid var(--gold);
  background: linear-gradient(180deg, transparent, rgba(212, 166, 41, .25));
  animation: scan 2.8s var(--ease) infinite;
}
.seal {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  box-shadow: 0 0 0 6px var(--ok-bg);
  animation: pop 2.8s var(--ease) infinite;
}

/* Szene 2: Bedarf definieren */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(330px, 100%); }
.slot {
  padding: 16px 8px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
}
.slot .shift-ico { margin: 0 auto 8px; }
.slot small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--muted); }
.scene.is-on .slot { animation: rise .6s var(--ease) both; }
.scene.is-on .slot:nth-child(2) { animation-delay: .12s; }
.scene.is-on .slot:nth-child(3) { animation-delay: .24s; }
.slot.picked { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 166, 41, .16), var(--shadow-2); }

/* Szene 3: Matching */
.match { position: relative; width: min(340px, 100%); height: 230px; }
.match svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.match .link { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 5 7; animation: dash 1.1s linear infinite; }
.match .link.idle { stroke: var(--line-strong); animation: none; }
.node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  color: var(--muted);
  transform: translate(-50%, -50%);
}
.node.hit { color: var(--ink); border-color: var(--gold-line); background: var(--gold-soft); }
.node.main { width: 78px; height: 78px; border-color: var(--ink); background: var(--ink); color: var(--gold); border-radius: 26px; }
.node.main::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 32px;
  border: 2px solid var(--gold);
  opacity: 0;
  animation: ripple 2.4s ease-out infinite;
}

/* Szene 4: Abschluss */
.done-check { width: 118px; height: 118px; }
.done-check circle { fill: var(--ok-bg); stroke: var(--ok); stroke-width: 3; }
.done-check path { fill: none; stroke: var(--ok); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.scene.is-on .done-check path { animation: draw .9s .25s var(--ease) forwards; }

.qr-card { display: flex; align-items: center; gap: 16px; padding: 12px 20px 12px 12px; border-radius: 22px; background: #fff; color: var(--ink); }
.qr-card img { width: 96px; height: 96px; border-radius: 10px; }

/* Umlaufbahnen hinter dem Handy */
.orbit { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); pointer-events: none; }
.orbit.one { width: 380px; height: 380px; animation: spin 28s linear infinite; }
.orbit.two { width: 540px; height: 540px; border-color: rgba(255, 255, 255, .05); animation: spin 44s linear infinite reverse; }
.orbit i { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); }

.notif-stack { position: absolute; left: 8px; right: 8px; top: 44px; z-index: 6; display: grid; gap: 8px; }
.notif-stack .push { position: relative; top: auto; left: auto; right: auto; }

/* Formular-Demo (Institutionen) */
.demo-field { padding: 12px 14px; border-radius: 16px; background: var(--canvas); transition: background-color .4s ease, box-shadow .4s ease; }
.demo-field dt { font-size: 11.5px; color: var(--muted); }
.demo-field dd { min-height: 22px; margin: 2px 0 0; font-size: 14px; font-weight: 700; }
.demo-field.is-filled { background: var(--surface); box-shadow: inset 0 0 0 1px var(--gold-line); }
.caret { display: inline-block; width: 2px; height: 15px; margin-left: 1px; vertical-align: -2px; background: var(--gold); animation: blink 1s steps(1) infinite; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week span { padding: 9px 0; border-radius: 12px; background: var(--canvas); color: #94a3b8; font-family: var(--mono); font-size: 11px; text-align: center; transition: background-color .4s ease, color .4s ease, box-shadow .4s ease; }
.week span.on { background: var(--gold-soft); color: var(--gold-text); box-shadow: inset 0 0 0 1px var(--gold-line); }

.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline::before { content: ""; position: absolute; left: 20px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: linear-gradient(var(--gold), var(--line)); }
.timeline li { position: relative; padding: 0 0 30px 64px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .step-no { position: absolute; left: 0; top: 0; }
.timeline h3 { padding-top: 9px; font-size: 17px; font-weight: 700; }
.timeline p { margin-top: 4px; font-size: 15px; color: var(--muted); }


/* 09 Formulare ------------------------------------------------------ */

.field label, .label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field .opt { font-weight: 500; color: var(--muted); }

.input {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input::placeholder { color: #94a3b8; }
.input:hover { border-color: #a8b3c4; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 166, 41, .18); }
textarea.input { min-height: 120px; resize: vertical; }
select.input {
  appearance: none;
  padding-right: 42px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
}

.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.choice-box b { display: block; font-size: 15px; }
.choice-box small { display: block; font-size: 13.5px; color: var(--muted); }
.choice input:checked + .choice-box { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 4px rgba(212, 166, 41, .14); }
.choice input:focus-visible + .choice-box { outline: 2px solid var(--gold); outline-offset: 2px; }

.shift-fields { padding: 20px; border-radius: 22px; border: 1px solid var(--gold-line); background: rgba(251, 245, 227, .6); }

.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--muted); }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); }
.consent a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }

.form-status { padding: 14px 16px; border-radius: 16px; font-size: 14.5px; }
.form-status.ok { background: var(--ok-bg); color: #14532d; }
.form-status.err { background: #fef2f2; color: #7f1d1d; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }


/* 10 Footer, Rechtstexte, FAQ --------------------------------------- */

.footer { margin-top: 24px; background: var(--ink); color: #94a3b8; }
.footer a { color: #cbd5e1; text-decoration: none; transition: color .2s ease; }
.footer a:hover { color: #fff; }
.footer .btn-gold, .footer .btn-gold:hover { color: var(--ink); }
.footer h2 { margin-bottom: 16px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.footer li + li { margin-top: 10px; }

.credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(212, 166, 41, .3);
  background: rgba(212, 166, 41, .06);
  font-size: 13px;
  font-weight: 600;
  transition: border-color .25s ease, background-color .25s ease;
}
.footer .credit { color: #e2e8f0; }
.credit:hover { border-color: var(--gold); background: rgba(212, 166, 41, .12); }
.credit .icon-sm { color: var(--gold); animation: heartbeat 1.8s ease-in-out infinite; }
.credit em { font-style: normal; color: var(--gold); }

.legal { max-width: 72ch; color: var(--text); }
.legal h2 { margin: 44px 0 12px; font-size: 21px; font-weight: 700; scroll-margin-top: 110px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.75; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 16px; padding-left: 1.2em; }
.legal li { margin: 4px 0; }
.legal li::marker { color: var(--gold); }
.legal a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.legal strong { color: var(--ink); }
.todo { padding: 0 4px; border-radius: 4px; background: var(--gold-soft); border-bottom: 1.5px dashed var(--gold); }

.toc { position: sticky; top: 110px; }
.toc a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; text-decoration: none; }
.toc a:hover { background: var(--surface); color: var(--ink); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font-size: 16.5px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 11px; background: var(--canvas); transition: transform .3s var(--ease), background-color .3s ease; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--gold-soft); color: var(--gold-text); }
.faq details > div { max-width: 68ch; padding: 0 4px 22px; color: var(--muted); }


/* 11 Animationen ---------------------------------------------------- */

/* Puls-Punkt: zwei kurze Schläge, dann Pause, wie am Monitor */
.beat { position: relative; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; animation: heartbeat 1.6s ease-in-out infinite; }
.beat::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #22c55e; opacity: 0; animation: ripple 1.6s ease-out infinite; }

.float { animation: float 7s ease-in-out infinite; }

/* Einblenden beim Scrollen. JS markiert nur, was beim Laden unterhalb liegt. */
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0ms); }
.reveal.is-waiting { opacity: 0; transform: translateY(22px); }

@keyframes ecg-run   { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes heartbeat { 0%, 60%, 100% { transform: scale(1); } 10% { transform: scale(1.28); } 20% { transform: scale(1); } 30% { transform: scale(1.18); } }
@keyframes ripple    { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes breathe   { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes float     { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes progress  { from { width: 0; } to { width: 100%; } }
@keyframes scan      { 0% { transform: translateY(-50px); } 70%, 100% { transform: translateY(250px); } }
@keyframes pop       { 0%, 55% { transform: scale(0); } 70% { transform: scale(1.15); } 80%, 100% { transform: scale(1); } }
@keyframes rise      { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dash      { to { stroke-dashoffset: -24; } }
@keyframes draw      { to { stroke-dashoffset: 0; } }
@keyframes spin      { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes blink     { 50% { opacity: 0; } }
@keyframes panel-in  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sheet-in  { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sweep     { 0%, 6% { transform: rotate(0); } 94%, 100% { transform: rotate(180deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal.is-waiting { opacity: 1; transform: none; }
}


/* 12 App-Modus für Smartphone und Tablet ---------------------------- */
/*
 * Unter 1024 px verhält sich die Seite wie eine iOS-App:
 * kompakte Titelleiste oben, schwebende Tab-Leiste aus Glas unten,
 * Karten zum Wischen und ein "Mehr"-Sheet. Die Desktop-Ansicht bleibt unberührt.
 */

html { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }

.tabbar, .sheet, .sheet-backdrop { display: none; }

@media (max-width: 1023.98px) {

  /* Titelleiste */
  .nav { margin-top: 8px; top: calc(env(safe-area-inset-top, 0px) + 8px); }
  .nav-bar, .nav.is-scrolled .nav-bar { grid-template-columns: 1fr auto; height: 60px; padding: 0 8px 0 9px; border-radius: 20px; }
  .nav-bar::after { left: 18px; right: 18px; }
  .nav-app { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .nav-portal { width: 42px; height: 42px; padding: 0; }
  .nav-portal-label { display: none; }

  /* Tab-Leiste, angelehnt an iOS Liquid Glass */
  .tabbar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    padding: 0 max(14px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 10px) max(14px, env(safe-area-inset-left, 0px));
    pointer-events: none;
  }
  .tabbar-inner {
    position: relative;
    display: flex;
    max-width: 460px;
    margin: 0 auto;
    padding: 5px;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, .75);
    background: rgba(250, 251, 253, .66);
    -webkit-backdrop-filter: blur(26px) saturate(200%);
    backdrop-filter: blur(26px) saturate(200%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .95),
      inset 0 -1px 0 rgba(15, 23, 42, .04),
      0 0 0 .5px rgba(15, 23, 42, .1),
      0 18px 40px -14px rgba(15, 23, 42, .38);
    pointer-events: auto;
    transition: transform .45s var(--ease), padding .35s var(--ease);
  }
  .tab {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 0;
    padding: 8px 2px 7px;
    border: 0;
    border-radius: 28px;
    background: none;
    color: #4b5567;
    font: inherit;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: -.01em;
    text-decoration: none;
    cursor: pointer;
    transition: color .25s ease, background-color .3s ease, box-shadow .3s ease, transform .2s ease;
  }
  .tab .icon { width: 24px; height: 24px; }
  .tab:active { transform: scale(.92); }
  .tab[aria-current="page"] {
    color: var(--gold-text);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 0 0 .5px rgba(15, 23, 42, .08), 0 4px 14px -6px rgba(15, 23, 42, .3);
  }
  .tab-label { display: block; max-height: 16px; overflow: hidden; white-space: nowrap; transition: max-height .3s var(--ease), opacity .2s ease; }

  /* Beim Runterscrollen wird die Leiste kleiner, wie in iOS */
  .tabbar.is-compact .tabbar-inner { padding: 3px; transform: scale(.94) translateY(4px); }
  .tabbar.is-compact .tab { padding: 9px 2px; }
  .tabbar.is-compact .tab-label { max-height: 0; opacity: 0; }

  /* Mehr-Sheet von unten */
  .sheet-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(15, 23, 42, .32);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
  }
  .sheet {
    display: block;
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    z-index: 71;
    max-width: 520px;
    margin: 0 auto;
    padding: 8px 14px 14px;
    border-radius: 34px;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow: 0 -10px 50px -10px rgba(15, 23, 42, .35);
    transform: translateY(calc(100% + 40px));
    visibility: hidden;
    transition: transform .5s var(--ease), visibility 0s linear .5s;
  }
  .sheet-open .sheet { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
  .sheet-open .sheet-backdrop { opacity: 1; pointer-events: auto; }
  .sheet-open { overflow: hidden; }
  .sheet-grabber { width: 38px; height: 5px; margin: 2px auto 12px; border-radius: 3px; background: #d5dbe4; }
  .sheet-group { overflow: hidden; border-radius: 20px; background: var(--canvas); }
  .sheet-group + .sheet-group { margin-top: 10px; }
  .sheet-group a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
  }
  .sheet-group a + a { border-top: 1px solid var(--line); }
  .sheet-group a:active { background: #e9edf2; }
  .sheet-group .app-icon { width: 32px; height: 32px; border-radius: 9px; }
  .sheet-group .app-icon .icon { width: 17px; height: 17px; }
  .sheet-group .chev { margin-left: auto; color: #a3adbb; }
  .sheet-close { display: block; width: 100%; margin-top: 10px; padding: 15px; border: 0; border-radius: 20px; background: var(--ink); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }

  /* Platz für die Tab-Leiste */
  .footer .wrap { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 112px); }

  .card-lift:active, .widget:active { transform: scale(.98); }
}


/* 13 Feinschliff Smartphone ----------------------------------------- */

@media (max-width: 639.98px) {

  .section { padding-block: 52px; }
  .section-tight { padding-block: 28px; }

  .display { font-size: clamp(36px, 10.5vw, 44px); }
  .h-page { font-size: clamp(32px, 9.4vw, 40px); }
  .h-section { font-size: clamp(27px, 7.6vw, 32px); }
  .lead { font-size: 16.5px; }
  .copy { font-size: 15px; }

  .btn:not(.btn-sm) { height: 50px; padding: 0 20px; }
  .kicker { font-size: 11.5px; letter-spacing: .16em; }

  /* Kein Zoom von iOS beim Antippen von Feldern */
  .input, select.input, textarea.input { font-size: 16px; }

  .panel, .dark-panel { border-radius: 30px; }

  /* Hero: auf dem Handy zeigt nur das Schichtbrett die Szene */
  .stage .phone-3d, .stage .phone-slot { display: none; }
  .stage .toast { left: 12px; right: 12px; bottom: 12px; }
  .board-row { padding: 10px; gap: 3px 12px; }
  .shift-ico { width: 36px; height: 36px; }
  .halo { inset: 0 -20% 20% -20%; }

  /* Karten zum Wischen */
  .m-scroll {
    display: flex !important;
    gap: 12px;
    margin-left: calc(-1 * var(--pad-l));
    margin-right: calc(-1 * var(--pad-r));
    padding: 4px var(--pad-r) 14px var(--pad-l);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad-l);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .m-scroll::-webkit-scrollbar { display: none; }
  .m-scroll > * { flex: 0 0 82%; scroll-snap-align: start; }
  .m-scroll.narrow > * { flex-basis: 66%; }
  .wrap.m-scroll { margin-left: 0; margin-right: 0; }

  /* QR-Code ergibt auf dem eigenen Handy keinen Sinn */
  .qr-card { display: none; }

  /* Zielgruppen-Umschalter über die ganze Breite */
  .segmented { display: flex; align-self: stretch; }
  .segmented button { flex: 1; padding: 11px 8px; }

  /* Schritte als Akkordeon, Bild oben */
  .step-visual { min-height: 300px; border-radius: 30px; }
  .scene { padding: 24px; }
  .step-btn { padding: 14px 16px; border-radius: 20px; }
  .step-btn[aria-selected="false"] p { display: none; }
  .step-btn h3 { font-size: 16px; padding-top: 10px; }
  .step-btn[aria-selected="true"] h3 { padding-top: 0; }
  .doc { padding: 18px; }
  .match { transform: scale(.9); }

  /* App-Bereich */
  .dark-panel .phone { width: 220px; }
  .orbit.one { width: 300px; height: 300px; }
  .orbit.two { width: 420px; height: 420px; }

  .timeline li { padding-left: 58px; }
  .legal h2 { font-size: 19px; margin-top: 34px; }
  .legal p, .legal li { font-size: 15px; }
  .faq summary { font-size: 15.5px; padding: 18px 2px; }
}


/* 14 Tablet ---------------------------------------------------------- */

@media (min-width: 640px) and (max-width: 1023.98px) {
  .board { width: calc(100% - 205px); }
  .stage .phone-3d, .stage .phone-slot { width: 220px; top: 90px; }
  .stage { min-height: 520px; }
}


/* 15 Portal-Module --------------------------------------------------- */

/* Portal-Fenster im Hero */
.pwin {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-3);
}
.pwin-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.pwin-bar .dots { display: flex; gap: 6px; }
.pwin-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #e2e6ec; }
.pwin-url { display: inline-flex; align-items: center; gap: 6px; margin: 0 auto; padding: 5px 14px; border-radius: 999px; background: var(--canvas); color: var(--muted); font-size: 11.5px; }
.pwin-body { display: grid; grid-template-columns: 190px 1fr; min-height: 360px; }
.pwin-side { padding: 16px 12px; border-right: 1px solid var(--line); background: #fbfcfd; }
.pwin-label { margin: 0 8px 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; }
.pwin-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.mod-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: opacity .5s ease, transform .6s var(--ease), background-color .4s ease, color .3s ease;
}
.mod-item .icon { width: 17px; height: 17px; color: var(--muted); }
.mod-item.is-out { opacity: 0; transform: translateX(-14px); }
.mod-item.is-active { background: var(--ink); color: #fff; }
.mod-item.is-active .icon { color: var(--gold); }
.mod-item.is-new { animation: mod-flash 1.4s ease; }

.pwin-main { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px; min-width: 0; }
.pwin-title { font-size: 15px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; transition: opacity .3s ease; }
.pwin-sub { font-size: 12px; color: var(--muted); }

/* Mini-Dienstplan */
.plan { display: grid; grid-template-columns: 62px repeat(7, 1fr); gap: 4px; font-size: 10.5px; }
.plan .h { padding-bottom: 2px; color: #94a3b8; font-family: var(--mono); text-align: center; }
.plan .who { display: flex; align-items: center; font-weight: 700; color: var(--text); white-space: nowrap; }
.plan .c { height: 26px; border-radius: 8px; background: var(--canvas); display: grid; place-items: center; font-family: var(--mono); font-weight: 600; transition: transform .4s var(--ease), opacity .4s ease; }
.plan .c.f { background: #fff3d6; color: #9a6b0c; }
.plan .c.s { background: #fde6da; color: #b2410c; }
.plan .c.n { background: #e6e8fb; color: #4338ca; }
.plan .c.x { background: #eef7f1; color: var(--ok); }
.plan .c.gap { background: transparent; box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--gold-text); animation: gap-pulse 1.8s ease-in-out infinite; }
.plan.is-refresh .c { animation: cell-in .5s var(--ease) both; }
.plan.is-refresh .c:nth-child(3n) { animation-delay: .08s; }
.plan.is-refresh .c:nth-child(3n+1) { animation-delay: .16s; }

.pwin-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 1px var(--gold-line);
  font-size: 12.5px;
  font-weight: 600;
  transition: opacity .35s ease, transform .45s var(--ease);
}
.pwin-note.is-swap { opacity: 0; transform: translateY(6px); }

/* Dock mit Modulen */
.dock {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: -34px auto 0;
  padding: 10px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 0 0 .5px rgba(15, 23, 42, .08), 0 20px 40px -18px rgba(15, 23, 42, .4);
}
.dock-item { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; }
.dock-item .icon { width: 22px; height: 22px; }
.dock-item.is-launch { animation: dock-hop .9s var(--ease); }
.dock-item.is-live::after { content: ""; position: absolute; bottom: -6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink); }
.dock-item.plus { background: transparent; border: 1.5px dashed var(--gold); color: var(--gold-text); box-shadow: none; }

/* Modul-Karten */
.module { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.module ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 7px; }
.module li { display: flex; gap: 9px; font-size: 14px; color: var(--text); }
.module li .icon-sm { margin-top: 3px; color: var(--gold); }

.wish-card {
  border: 1.5px dashed var(--gold);
  background:
    radial-gradient(500px 240px at 90% 0%, rgba(212, 166, 41, .14), transparent 70%),
    var(--surface);
}

/* Lücke im Plan wird über den Marktplatz besetzt */
.bridge { display: grid; gap: 10px; }
.bridge-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.bridge-text { flex: 1; font-size: 14px; font-weight: 600; color: #fff; }
.bridge-row .pill { transition: background-color .4s ease, color .4s ease; }
.bridge-arrow { display: flex; justify-content: center; color: var(--gold); }
.bridge-arrow .icon { transform: rotate(90deg); animation: nudge 1.6s ease-in-out infinite; }

/* Wunsch wird umgesetzt */
.wish-bubble {
  position: relative;
  padding: 16px 18px;
  border-radius: 22px 22px 22px 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, .6);
}
.wish-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wish-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  transition: background-color .4s ease, color .4s ease, border-color .4s ease;
}
.wish-steps .dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .2); color: transparent; transition: all .4s ease; }
.wish-steps .dot .icon-sm { width: 14px; height: 14px; }
.wish-steps li.is-done { color: #fff; background: rgba(212, 166, 41, .1); border-color: rgba(212, 166, 41, .3); }
.wish-steps li.is-done .dot { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.wish-steps li.is-now .dot { border-color: var(--gold); animation: ripple-soft 1.4s ease-out infinite; }

.grow { position: relative; }
.grow-bar { position: absolute; left: 0; right: 0; top: 21px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--line)); }

@keyframes dock-hop   { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-16px); } 50% { transform: translateY(0); } 70% { transform: translateY(-7px); } }
@keyframes mod-flash  { 0% { box-shadow: 0 0 0 0 rgba(212, 166, 41, .6); } 100% { box-shadow: 0 0 0 12px rgba(212, 166, 41, 0); } }
@keyframes gap-pulse  { 0%, 100% { box-shadow: inset 0 0 0 1.5px var(--gold); } 50% { box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 0 4px rgba(212, 166, 41, .18); } }
@keyframes cell-in    { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes nudge      { 0%, 100% { transform: rotate(90deg) translateX(0); } 50% { transform: rotate(90deg) translateX(5px); } }
@keyframes ripple-soft { 0% { box-shadow: 0 0 0 0 rgba(212, 166, 41, .5); } 100% { box-shadow: 0 0 0 10px rgba(212, 166, 41, 0); } }

@media (max-width: 639.98px) {
  .pwin-body { grid-template-columns: 1fr; min-height: 0; }
  .pwin-side { display: none; }
  .pwin-main { padding: 14px; }
  .plan { grid-template-columns: 48px repeat(7, 1fr); gap: 3px; font-size: 9.5px; }
  .plan .c { height: 24px; border-radius: 7px; }
  .dock { gap: 6px; padding: 8px; margin-top: -26px; border-radius: 22px; }
  .dock-item { width: 40px; height: 40px; border-radius: 12px; }
  .dock-item .icon { width: 19px; height: 19px; }
  .module { padding: 24px; }
}

/* Die zwei Zusatzlinks erscheinen erst auf grossen Bildschirmen */
.nav-links a { white-space: nowrap; }
@media (max-width: 1535.98px) {
  .nav-links .xl-only { display: none; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .nav-links a { padding: 9px 11px; font-size: 14px; }
  .nav-bar { gap: 14px; }
}


/* 16 Wanderndes Handy ------------------------------------------------ */
/*
 * Auf dem Desktop löst sich das Handy aus dem Hero und fliegt beim Scrollen
 * über zwei Etappen bis zu "So funktioniert's". Die Tiefe entsteht aus
 * gestapelten Kantenebenen, so sieht man beim Drehen Rahmen und Tasten.
 */

.phone-3d { --depth: 22px; position: relative; width: 260px; max-width: 100%; transform-style: preserve-3d; }
.phone-turn { position: relative; transform-style: preserve-3d; transform: perspective(1400px) rotateY(-14deg) rotateX(4deg); }
.phone-body { position: relative; transform-style: preserve-3d; }
.phone-3d .phone { width: 100%; transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }

/* Gehäusekante: 11 Ebenen, aussen hell wie gebürstetes Titan */
.phone-edge {
  position: absolute;
  inset: 0;
  border-radius: 44px;
  background: linear-gradient(90deg, #8a93a8 0%, #2a3142 4%, #1a1f2c 50%, #2a3142 96%, #8a93a8 100%);
  transform: translateZ(calc(var(--z) * -1px));
}
.phone-edge::before, .phone-edge::after { content: none; position: absolute; width: 5px; border-radius: 3px; background: linear-gradient(90deg, #6d778d, #3a4256); }
.phone-edge.keys::before { content: ""; left: -3px; top: 23%; height: 9%; box-shadow: 0 54px 0 #4f586d; }
.phone-edge.keys::after { content: ""; right: -3px; top: 28%; height: 15%; }

.phone-back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 44px;
  background:
    linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .08) 45%, transparent 60%),
    radial-gradient(120% 80% at 30% 10%, #48516a, #151a26 60%);
  box-shadow: inset 0 0 0 2px #6d778d, inset 0 0 0 4px #1a1f2c;
  transform: translateZ(calc(var(--depth) * -1)) rotateY(180deg);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.phone-back img { width: 74px; height: 74px; border-radius: 19px; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .7); }
.phone-back .cam {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 82px;
  height: 82px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 14px -6px rgba(0, 0, 0, .6);
}
.phone-back .cam i {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #5a6e96, #05070d 62%);
  box-shadow: 0 0 0 3px #1a2030, 0 0 0 4px #3a4256;
}
.phone-back .cam i:nth-child(1) { left: 9px; top: 9px; }
.phone-back .cam i:nth-child(2) { left: 9px; top: 45px; }
.phone-back .cam i:nth-child(3) { left: 45px; top: 27px; }

/* Glanz auf dem Glas, wandert mit der Drehung */
.phone-glare {
  position: absolute;
  inset: 10px;
  z-index: 8;
  border-radius: 35px;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .22) 48%, rgba(255, 255, 255, .05) 54%, transparent 62%);
  background-size: 260% 100%;
  background-position: calc(var(--glare, 70) * 1%) 0;
  pointer-events: none;
}

.phone-slot { visibility: hidden; aspect-ratio: 260 / 540; }
.aud-slot { width: 250px; max-width: 100%; aspect-ratio: 260 / 540; margin-inline: auto; }

.phone-3d.is-flying { position: absolute; left: 0; top: 0; z-index: 40; margin: 0; will-change: transform; pointer-events: none; }
.phone-3d.is-flying .phone { animation: none; }
.phone-3d.is-flying .phone-turn { transform: none; }
.phone-turn.is-spin { animation: spin-y .8s var(--ease); }
@keyframes spin-y { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }

/* Nur wenn das Handy fliegt: Platzhalter zeigen, die ersetzten Kacheln ausblenden */
.fly-only { display: none; }
.has-flyer .fly-only { display: block; }
.has-flyer .fly-hide { display: none !important; }
.has-flyer .step-visual { min-height: 620px; }
.has-flyer .step-visual .scene { display: none; }
.step-slot { position: absolute; inset: 0; place-items: center; }
.has-flyer .step-slot { display: grid; }

/* Bildschirme im Handy */
.phone[data-screen] .phone-status { position: absolute; top: 0; left: 0; right: 0; z-index: 6; transition: color .3s ease; }
.phone[data-screen="inst"] .phone-status { color: #fff; }
.screen { position: absolute; inset: 0; transition: opacity .35s ease; }
.screen:not(.is-on) { opacity: 0; pointer-events: none; }
.screen-hero { padding-top: 32px; }
.screen-hero .push { top: 40px; }

.screen-inst { padding: 50px 14px 0; background: linear-gradient(170deg, #1e293b, #0f172a); color: #fff; }
.screen-inst .s-label { font-size: 11px; color: #94a3b8; }
.screen-inst .s-title { margin-top: 2px; font-size: 16px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.screen-inst ul { list-style: none; margin: 14px 0 0; padding: 0; }
.screen-inst li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; font-weight: 600; }
.screen-inst li:first-child { border-top: 0; }
.screen-inst li .ok { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--ink); }
.screen-inst li .ok .icon-sm { width: 12px; height: 12px; }
.screen-inst li .t { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: #94a3b8; }
.screen-inst.is-on li { animation: rise .5s var(--ease) both; }
.screen-inst.is-on li:nth-child(2) { animation-delay: .25s; }
.screen-inst.is-on li:nth-child(3) { animation-delay: .5s; }
.screen-inst.is-on li:nth-child(4) { animation-delay: .75s; }
.screen-inst .s-card { margin-top: 12px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: 11.5px; color: #cbd5e1; }

.screen-fach { padding: 50px 14px 0; }
.screen-fach .s-label { font-size: 11px; color: var(--muted); }
.screen-fach .s-title { margin-top: 2px; font-size: 16px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.screen-fach .week { gap: 4px; margin-top: 14px; }
.screen-fach .week span { padding: 7px 0; border-radius: 9px; font-size: 9.5px; }
.screen-fach .slots { gap: 6px; width: 100%; margin-top: 12px; }
.screen-fach .slot { padding: 10px 4px; border-radius: 14px; font-size: 10.5px; }
.screen-fach .slot .shift-ico { width: 28px; height: 28px; border-radius: 9px; margin-bottom: 5px; }
.screen-fach .slot small { font-size: 9px; }
.screen-fach.is-on .slot { animation: rise .5s var(--ease) both; }
.screen-fach.is-on .slot:nth-child(2) { animation-delay: .12s; }
.screen-fach.is-on .slot:nth-child(3) { animation-delay: .24s; }

.phone[data-screen="inst"] .app-tabbar { background: rgba(30, 41, 59, .85); border-color: rgba(255, 255, 255, .08); color: #64748b; }
.phone[data-screen="inst"] .app-tabbar .on { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .phone-turn.is-spin { animation: none; }
}

/* Szenen von "So funktioniert's" im Handy */
.screen-steps { padding: 50px 14px 0; }
.screen-steps .s-label { font-size: 11px; color: var(--muted); }
.screen-steps .s-title { margin-top: 2px; min-height: 40px; font-size: 15px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.screen-steps .dots { display: flex; gap: 5px; margin-top: 10px; }
.screen-steps .dots i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); transition: background-color .4s ease; }
.screen-steps .dots i.on { background: var(--gold); }
.screen-steps .stage-mini { position: absolute; left: 0; right: 0; top: 140px; bottom: 70px; }
.screen-steps .scene { padding: 10px; }
.screen-steps .doc { padding: 14px; border-radius: 18px; }
.screen-steps .doc .line { height: 6px; margin-top: 8px; }
.screen-steps .seal { width: 36px; height: 36px; right: 10px; bottom: 10px; }
.screen-steps .slots { gap: 6px; }
.screen-steps .slot { padding: 10px 4px; border-radius: 14px; font-size: 10.5px; }
.screen-steps .slot .shift-ico { width: 28px; height: 28px; border-radius: 9px; }
.screen-steps .tag-lg { padding: 5px 9px; font-size: 11px; border-radius: 10px; }
.screen-steps .match { flex: none; transform: scale(.6); }
.screen-steps .done-check { width: 92px; height: 92px; }
.screen-steps .scene-label { display: none; }
.step-slot { display: none; }
.has-flyer .step-slot { display: grid; }


/* 17 Safari ---------------------------------------------------------- */
/*
 * Safari schneidet abgerundete Inhalte in 3D-Kontexten nicht zuverlässig ab.
 * Die Maske und eine eigene Ebene für das Display halten den Inhalt im Gehäuse.
 */
.phone-3d .phone { transform-style: flat; -webkit-transform: translateZ(1px); transform: translateZ(1px); }
.phone-3d .phone-screen {
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Portal-Fenster: eigene Ansicht pro Modul, Modul-Leiste für das Handy */
.pwin-main { min-height: 330px; padding-bottom: 56px; }
.pviews { display: grid; }
.pview { display: none; gap: 7px; }
.pview.is-on { display: grid; animation: panel-in .45s var(--ease); }
.prow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 13px;
  background: var(--canvas);
  font-size: 12.5px;
  line-height: 1.3;
}
.prow.block { display: block; }
.prow b { font-weight: 700; color: var(--ink); }
.prow small { display: block; font-size: 11px; color: var(--muted); }
.prow .shift-ico, .prow .app-icon.sm { width: 30px; height: 30px; border-radius: 9px; flex: none; box-shadow: none; }
.pbar { display: block; height: 6px; overflow: hidden; border-radius: 3px; background: var(--line); }
.pbar i { display: block; width: var(--w); height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold), #e3bf55); }
.pview.is-on .pbar i { animation: bar-grow 1s var(--ease) both; }
@keyframes bar-grow { from { width: 0; } }

.pwin-chips { display: none; }
.pchip { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 7px 11px; border-radius: 999px; background: var(--canvas); color: var(--text); font-size: 12px; font-weight: 700; transition: background-color .3s ease, color .3s ease; }
.pchip .icon-sm { width: 14px; height: 14px; }
.pchip.is-active { background: var(--ink); color: #fff; }
.pchip.is-active .icon-sm { color: var(--gold); }

@media (max-width: 639.98px) {
  .pwin-chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; border-bottom: 1px solid var(--line); scrollbar-width: none; scroll-behavior: smooth; }
  .pwin-chips::-webkit-scrollbar { display: none; }
  .pwin-main { min-height: 300px; padding-bottom: 46px; }
}
.pwin, .pwin-chips, .pwin-main { min-width: 0; }
