/* vibeserv – Warteliste
   Flach, technisch, viel Weißraum. Keine Verläufe, Schatten, Glows, Animationen.
   Farben & Schrift laut docs/marketing/farben.md */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FFFFFF;
  --bg-alt: #F5F7FA;
  --ink: #0E294D;
  --ink-2: #4A5568;
  --line: #D3DAE5;
  --line-strong: #0E294D;
  --primary: #1B3A6B;
  --primary-ink: #FFFFFF;
  --link: #1B3A6B;
  --accent: #239FE1;
  --cta: #E87932;
  --cta-ink: #0E294D;
  --ok: #237A60;
  --ok-bg: #E8F5EF;
  --warn: #F2C14E;
  --crit: #E45C58;
  --inv-bg: #0E294D;
  --inv-ink: #FFFFFF;
  --inv-ink-2: #AFC0D6;
  --inv-line: #2A4670;
  --focus: #239FE1;
  --logo: url('../img/logo.svg');

  --r: 2px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(80px, 11vw, 160px);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #081A33;
    --bg-alt: #0B2140;
    --ink: #F5F7FA;
    --ink-2: #A9B8CC;
    --line: #1E3A62;
    --line-strong: #F5F7FA;
    --primary: #239FE1;
    --primary-ink: #081A33;
    --link: #6CBDEE;
    --ok: #4FBF9C;
    --ok-bg: #0F2F33;
    --inv-bg: #0E294D;
    --logo: url('../img/logo-dark.svg');
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #081A33;
  --bg-alt: #0B2140;
  --ink: #F5F7FA;
  --ink-2: #A9B8CC;
  --line: #1E3A62;
  --line-strong: #F5F7FA;
  --primary: #239FE1;
  --primary-ink: #081A33;
  --link: #6CBDEE;
  --ok: #4FBF9C;
  --ok-bg: #0F2F33;
  --inv-bg: #0E294D;
  --logo: url('../img/logo-dark.svg');
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-feature-settings: 'cv11', 'ss03';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--link); text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--accent); color: #fff; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 100; }
.skip:focus { top: 8px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Typografie ---------- */
.h1 {
  font-size: clamp(2.6rem, 1.1rem + 6.6vw, 6rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.h2 {
  hyphens: auto;
  overflow-wrap: break-word;
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.4rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 650; letter-spacing: -0.015em; }
.lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.5; color: var(--ink-2); max-width: 38em; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.eyebrow, .label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.label { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.label::before { content: ''; width: 24px; height: 2px; background: var(--accent); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow .dot { width: 8px; height: 8px; background: var(--ok); border-radius: 50%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px;
  border: 2px solid transparent; border-radius: var(--r);
  font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1;
  text-decoration: none; white-space: nowrap;
}
.btn-cta { background: var(--cta); color: var(--cta-ink); border-color: var(--cta); }
.btn-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.link { font-weight: 600; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; flex: none; }
.logo { display: block; width: 138px; aspect-ratio: 1869 / 289; background: var(--logo) center / contain no-repeat; }
.nav { display: none; margin-left: auto; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.nav a.active { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: var(--accent); }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang, .theme {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: var(--r); background: transparent;
  color: var(--ink); font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.04em; text-decoration: none;
}
.lang:hover, .theme:hover { border-color: var(--ink); }
.tools .btn-sm { margin-left: 8px; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .tools { margin-left: 0; }
  .logo { width: 156px; }
}
@media (max-width: 599px) { .tools .btn-sm { display: none; } .logo { width: 128px; } }

/* ---------- Sektionen ---------- */
.section { padding-block: var(--sec); }
.band { border-top: 1px solid var(--line); }
.alt { background: var(--bg-alt); }
.inv { background: var(--inv-bg); color: var(--inv-ink); border-top: 1px solid var(--inv-line); }
.inv .label, .inv .muted, .inv .lede { color: var(--inv-ink-2); }
.sec-head { max-width: 20em; margin-bottom: clamp(40px, 6vw, 72px); }
.narrow { max-width: 920px; margin-inline: 0; }
.wrap.narrow { margin-inline: auto; max-width: var(--wrap); }
.wrap.narrow > * { max-width: 18em; }
.wrap.narrow > .lede { max-width: 34em; margin-top: 32px; }
.h2.big { hyphens: manual; font-size: clamp(2.1rem, 1.1rem + 4vw, 4.25rem); letter-spacing: -0.04em; line-height: 1.04; max-width: 15em; }

/* ---------- Hero (Navy, Video darunter) ---------- */
.hero { position: relative; overflow: hidden; border-top: 0; }
.hero-inner { position: relative; z-index: 1; padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(80px, 11vw, 152px); }
.hero .eyebrow { margin-bottom: 28px; color: var(--inv-ink-2); }
.hero .eyebrow .dot { background: var(--accent); }
.hero .h1 { max-width: 11em; hyphens: manual; color: #fff; }
.hero-row { display: grid; gap: clamp(56px, 8vw, 88px); margin-top: clamp(40px, 6vw, 72px); }
.hero .lede { margin-bottom: 36px; max-width: 24em; color: var(--inv-ink-2); }
.counter { margin-top: 16px; }
.stack { display: grid; border-top: 2px solid #fff; width: 100%; max-width: 560px; }
.stack li { border-bottom: 1px solid var(--inv-line); }
.stack a { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; gap: 8px; padding: 18px 0; color: #fff; text-decoration: none; }
.stack .num { font-size: 0.875rem; font-weight: 700; color: var(--inv-ink-2); }
.stack .st-txt { display: grid; gap: 6px; }
.stack b { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1; font-weight: 700; letter-spacing: -0.04em; }
.stack em { font-style: normal; font-size: 1.0625rem; color: var(--inv-ink-2); }
.stack a:hover b { color: var(--accent); }
@media (min-width: 1000px) { .hero-row { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 96px; align-items: start; } .stack { justify-self: end; } }

/* Hintergrund-Videos: halbtransparent über der blauen Fläche, Poster als Fallback */
.bgv { position: absolute; inset: 0; z-index: 0; background: center / cover no-repeat; opacity: 0.42; pointer-events: none; }
.bgv video { width: 100%; height: 100%; object-fit: cover; display: block; }
.final { position: relative; overflow: hidden; }
.final .bgv { opacity: 0.45; }
.final-inner { position: relative; z-index: 1; }

/* ---------- Bewegung ---------- */
html { scroll-behavior: smooth; }
.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rv.in { opacity: 1; transform: none; }
.label::before { transition: width 0.7s 0.15s ease; }
.rv .label::before, .label.rv::before { width: 0; }
.rv.in .label::before, .label.rv.in::before { width: 24px; }
.feat { position: relative; border-bottom: 0; }
.feat::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.stack a b { transition: color 0.2s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- Drei Bereiche ---------- */
.feat { display: grid; gap: 20px; padding-block: clamp(56px, 8vw, 104px); }
.feat:last-child::after { display: none; }
.feat-name { display: flex; align-items: baseline; gap: 16px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.feat-name .num { color: var(--accent); font-size: clamp(2.5rem, 1.5rem + 3vw, 4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.feat-t { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; max-width: 16em; text-wrap: balance; }
.feat-d { margin-top: 16px; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.5; color: var(--ink-2); max-width: 28em; }
@media (min-width: 900px) { .feat { grid-template-columns: 4fr 8fr; gap: 48px; align-items: baseline; } .feat-name { flex-direction: column; gap: 14px; } }

/* ---------- Kontrolle ---------- */
.trio { display: grid; gap: 40px; }
.trio h3 { margin-bottom: 8px; }
.trio p { color: var(--ink-2); max-width: 22em; }
@media (min-width: 800px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 56px; } }

/* ---------- Formular ---------- */
.signup { width: 100%; max-width: 620px; }
.field { display: flex; gap: 0; }
.field input[type='email'] {
  flex: 1; min-width: 0; height: 56px; padding: 0 16px;
  background: var(--bg); color: var(--ink);
  border: 2px solid var(--ink); border-right: 0; border-radius: var(--r) 0 0 var(--r);
  font-size: 1.0625rem;
}
.field input::placeholder { color: var(--ink-2); opacity: 0.8; }
.field input[aria-invalid='true'] { border-color: var(--crit); }
.field .btn { border-radius: 0 var(--r) var(--r) 0; }
.inv .field input[type='email'] { background: #fff; color: #0E294D; border-color: #fff; }
.inv .field input::placeholder { color: #4A5568; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.fine { margin-top: 12px; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-2); }
.inv .fine { color: var(--inv-ink-2); }
.inv .fine a { color: #fff; }
.err { margin-top: 10px; font-size: 0.9375rem; font-weight: 600; color: var(--ink); display: flex; gap: 8px; align-items: baseline; }
.err::before { content: ''; flex: none; width: 10px; height: 10px; background: var(--crit); transform: translateY(1px); }
.inv .err { color: #fff; }
.err button { background: none; border: 0; padding: 0; color: var(--link); font-weight: 650; text-decoration: underline; }
.inv .err button { color: #fff; }
@media (max-width: 560px) {
  .field { flex-direction: column; gap: 10px; }
  .field input[type='email'] { flex: none; width: 100%; border-right: 2px solid var(--ink); border-radius: var(--r); }
  .inv .field input[type='email'] { border-right-color: #fff; }
  .field .btn { border-radius: var(--r); width: 100%; }
}

.done { border: 2px solid var(--ink); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); background: var(--bg); color: var(--ink); max-width: 620px; }
.done:focus { outline: none; }
.done .kicker { display: inline-flex; gap: 8px; align-items: center; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ok); }
.done .kicker::before { content: ''; width: 18px; height: 18px; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; border-radius: 50%; }
.done h3 { margin-top: 10px; font-size: 1.375rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.done p { margin-top: 8px; color: var(--ink-2); font-size: 1rem; }
.profile { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.profile > p { margin: 0; color: var(--ink); font-weight: 600; font-size: 0.9375rem; }
.profile fieldset { border: 0; padding: 0; margin: 0; }
.profile legend { font-size: 0.8125rem; font-weight: 650; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 40px; padding: 0 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: var(--r); font-weight: 600; font-size: 0.9375rem;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.profile .btn { justify-self: start; height: 44px; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 22px 0; font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.015em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--ink-2); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 46em; }
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: 4fr 8fr; gap: 64px; } .faq-grid .sec-head { margin-bottom: 0; } }

/* ---------- Finale ---------- */
.final .h2 { hyphens: manual; font-size: clamp(2rem, 1rem + 4.6vw, 4.75rem); letter-spacing: -0.04em; max-width: 13em; line-height: 1; }
.final .lede { margin-top: 20px; color: var(--inv-ink-2); }
.final .signup { margin-top: 36px; }
.final .by { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--inv-line); color: var(--inv-ink-2); font-size: 0.9375rem; }

/* ---------- Sticky CTA (mobil) ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 2px solid var(--ink); }
.sticky-cta .btn { width: 100%; height: 52px; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px calc(40px + 0px); font-size: 0.9375rem; color: var(--ink-2); }
.is-landing .site-footer { padding-bottom: 96px; }
@media (min-width: 900px) { .is-landing .site-footer { padding-bottom: 40px; } }
.site-footer .foot { display: grid; gap: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot .logo { width: 128px; }
@media (min-width: 900px) { .site-footer .foot { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; } }

/* ---------- Rechtstexte / Hinweisseiten ---------- */
.legal { max-width: 820px; }
.legal h1 { margin: 12px 0 32px; }
.legal h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; margin: 36px 0 8px; }
.legal p { margin-bottom: 12px; color: var(--ink); }
.legal .note { color: var(--ink-2); font-size: 0.9375rem; border-left: 4px solid var(--accent); padding-left: 14px; margin-bottom: 8px; }
.notice { min-height: 60vh; max-width: 760px; }
.notice h1 { margin: 12px 0 16px; }
.notice form { margin: 28px 0; }
.notice p { margin-bottom: 16px; }

