/* Layout: zweispaltig – links Versprechen + Formular, rechts ein angeschnittenes,
   halb verschwommenes Handy als Sneak Peek. Unter 860px gestapelt. */

/* Schrift liegt lokal, absichtlich nicht bei Google Fonts: eingebundene
   Google Fonts übertragen die IP-Adresse an Google (LG München, 20.1.2022). */
@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --ink: #20261f;
  --muted: #5d6670;
  --slate: #a8b8ca;
  --slate-deep: #6f86a0;
  --line: #dde3ea;
  --good: #3f7d5a;
  --error: #b3402f;
  --frame: #20261f;
  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141815; --surface: #1d221e; --ink: #e9edf0; --muted: #a2acb6;
    --slate: #a8b8ca; --slate-deep: #b9c7d6; --line: #2e3530; --good: #7cc29a; --error: #f08a78; --frame: #0a0c0a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141815; --surface: #1d221e; --ink: #e9edf0; --muted: #a2acb6;
  --slate: #a8b8ca; --slate-deep: #b9c7d6; --line: #2e3530; --good: #7cc29a; --error: #f08a78; --frame: #0a0c0a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* Ohne diese Zeile schlägt `.form { display: grid }` das hidden-Attribut:
   das Formular blieb nach dem Absenden mit „Wird gesendet …“ stehen. */
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
p, li { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
::selection { background: color-mix(in srgb, var(--slate) 55%, transparent); color: var(--ink); }
input { caret-color: var(--slate-deep); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--slate-deep); outline-offset: 3px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Kopf */
.top { padding-block: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 40px; height: 40px; }
.brand span { font-size: 15px; letter-spacing: .22em; font-weight: 500; }
.tag {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding-block: 40px 64px;
}
.hero > * { min-width: 0; }
.hero .lead { margin-bottom: 36px; }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-deep); margin: 0 0 18px; }
h1 {
  font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -.035em;
  font-weight: 800; margin: 0 0 22px; text-wrap: balance;
}
h1 .bracket { position: relative; display: inline-block; padding: 0 .12em; }
h1 .bracket::before, h1 .bracket::after {
  content: ""; position: absolute; width: .32em; height: .32em; border: 0 solid var(--slate);
}
h1 .bracket::before { left: -.04em; top: .02em; border-left-width: .07em; border-top-width: .07em; }
h1 .bracket::after { right: -.04em; bottom: -.06em; border-right-width: .07em; border-bottom-width: .07em; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 24px; }
/* Gutschein im Logo-Rahmen: dieselben Eckklammern wie im Logo und bei „heute“. */
.perk { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 4px 0 30px; max-width: 520px; }
.perk-deal {
  position: relative; margin: 0; padding: 12px 18px 10px; white-space: nowrap;
  font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1;
}
.perk-num { font-size: 1.6em; letter-spacing: -.05em; margin-right: .04em; vertical-align: -.06em; font-variant-numeric: tabular-nums; }
.perk-deal::before, .perk-deal::after {
  content: ""; position: absolute; width: 26px; height: 22px; border: 0 solid var(--slate);
  /* Weiches Auslaufen ohne Ruck am Anfang; gilt fürs Auseinander- und Zurückgehen. */
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.perk-deal::before { left: 0; top: 0; border-left-width: 3px; border-top-width: 3px; }
.perk-deal::after { right: 0; bottom: 0; border-right-width: 3px; border-bottom-width: 3px; }
.perk:hover .perk-deal::before { transform: translate(-3px, -3px); }
.perk:hover .perk-deal::after { transform: translate(3px, 3px); }
.perk-text { flex: 1 1 200px; min-width: 0; margin: 0; font-size: 16px; line-height: 1.45; color: var(--muted); }
.perk-text strong { color: var(--ink); }
/* Einmaliger Moment beim Laden: die Klammern rasten von außen ein. */
@media (prefers-reduced-motion: no-preference) {
  .perk-deal::before { animation: snap-tl 1.1s .3s cubic-bezier(.22, 1, .36, 1) backwards; }
  .perk-deal::after { animation: snap-br 1.1s .3s cubic-bezier(.22, 1, .36, 1) backwards; }
}
@keyframes snap-tl { from { opacity: 0; transform: translate(-8px, -8px); } }
@keyframes snap-br { from { opacity: 0; transform: translate(8px, 8px); } }
.fine { font-size: 13px; color: var(--muted); margin: 18px 0 0; max-width: 480px; }
.star { position: relative; text-decoration: none; color: var(--slate-deep); font-weight: 700; margin-left: 1px; transition: color .15s ease; }
.star::before { content: ""; position: absolute; inset: -12px -14px; }
.star:hover { color: var(--ink); }

/* Formular */
.form { display: grid; gap: 14px; max-width: 480px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row input {
  flex: 1 1 220px; min-width: 0; font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px;
  transition: border-color .15s ease, background-color .15s ease;
}
.row input:focus { border-color: var(--slate-deep); outline: none; }
.row input[aria-invalid="true"] { border-color: var(--error); }
.row button {
  flex: 0 0 auto; font: 600 16px var(--font); color: var(--bg); background: var(--ink);
  border: 0; border-radius: 12px; padding: 14px 22px; cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.row button:hover { opacity: .88; }
.row button:active { transform: scale(.96); }
.row button[disabled] { opacity: .5; cursor: wait; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.45; }
.check, .check input { cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--ink); flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; }
.msg { font-size: 15px; margin: 0; min-height: 1.4em; }
.msg.err { color: var(--error); }
.msg:empty { min-height: 0; margin-top: -14px; } /* leere Meldung nimmt keinen Platz weg */
.done:focus { outline: none; }
.done { max-width: 480px; }
@media (prefers-reduced-motion: no-preference) {
  .done:not([hidden]) { animation: rise .35s cubic-bezier(.16, 1, .3, 1); }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.done strong { display: block; font-size: 19px; margin-bottom: 4px; }
.done p { margin: 0; color: var(--muted); }

.facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 7px; height: 7px; background: var(--slate); }

/* Sneak Peek */
.peek { position: relative; display: flex; justify-content: center; }
.peek::before {
  content: ""; position: absolute; inset: 8% 6% 10% 12%; background: var(--slate);
  opacity: .35; border-radius: 28px; transform: rotate(-4deg);
}
.phone {
  position: relative; width: min(330px, 100%); max-width: 100%; height: 560px; overflow: hidden;
  background: var(--surface); border: 10px solid var(--frame); border-radius: 44px; outline: 1px solid var(--line); outline-offset: 0;
  box-shadow: 0 30px 60px -30px rgba(20, 30, 40, .45);
  transform: rotate(3deg);
}
.screen { padding: 34px 18px 0; font-size: 14px; }
.status { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; margin-bottom: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.status svg { display: block; height: 10px; width: auto; }
.status .icons { display: flex; align-items: center; gap: 5px; }
.scr-h { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 2px; }
.scr-sub { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; background: var(--bg); }
.card-l { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.block { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 700; font-size: 16px; }
.block small { font-weight: 500; color: var(--muted); font-size: 13px; }
.why { color: var(--muted); font-size: 13px; margin-top: 4px; }
.avg { display: flex; align-items: baseline; gap: 8px; }
.avg b { font-size: 34px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pill { font-size: 12px; font-weight: 700; color: var(--good); border: 1px solid currentColor; border-radius: 999px; padding: 2px 8px; }
.bar { height: 6px; background: var(--line); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 72%; background: var(--slate-deep); }
/* Ab hier soll man nur ahnen, was kommt. */
.blur { filter: blur(5px); opacity: .7; user-select: none; }
.subj { display: flex; justify-content: space-between; padding: 10px 2px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.fade { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(transparent, var(--surface) 70%); }
.soon {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}
.note { position: absolute; bottom: -30px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.info { position: relative; display: inline-flex; }
.info-btn {
  position: relative; width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: inherit; cursor: help; display: inline-grid; place-items: center;
  transition: color .15s ease;
}
.info-btn svg { width: 16px; height: 16px; }
/* Unsichtbar vergrößerte Tippfläche: 44 × 44 px fürs Handy. */
.info-btn::before { content: ""; position: absolute; inset: -14px; }
.info-btn:hover { color: var(--ink); }
/* Erscheint bei Maus darüber und bei Tastatur-Fokus; am Handy reicht Antippen (Fokus). */
.info-tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 4px);
  width: max-content; max-width: 220px; padding: 9px 12px; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-size: 12px; line-height: 1.4; text-align: center;
  opacity: 0; visibility: hidden; pointer-events: none; z-index: 5;
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.info-tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px;
  border: 5px solid transparent; border-top-color: var(--ink);
}
.info:hover .info-tip, .info-btn:focus-visible + .info-tip, .info-btn:focus + .info-tip {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}

/* Fuß */
.foot { padding-block: 24px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; gap: 20px; }
/* Tippfläche auf 44 px Höhe strecken, ohne das Layout zu verschieben. */
.foot nav a { position: relative; }
.foot nav a::before { content: ""; position: absolute; inset: -14px -8px; }

/* Rechtstexte */
.legal { max-width: 68ch; padding-block: 24px 64px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); }
.legal h2 { font-size: 20px; margin: 36px 0 8px; letter-spacing: -.01em; text-wrap: balance; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--ink); }
.fill { background: color-mix(in srgb, var(--slate) 35%, transparent); padding: 0 4px; border-radius: 4px; color: var(--ink); }

/* Übersicht: links nur Überschrift, ein Absatz und EINE Anmeldebox.
   Die Box ist das einzige abgesetzte Element der Spalte – dort soll der Blick hin. */
.signup {
  display: grid; gap: 20px; max-width: 540px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 1px 2px rgba(20, 30, 40, .04), 0 18px 40px -24px rgba(20, 30, 40, .28);
}
.signup .perk { margin: 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); max-width: none; }
.signup .row input { background: var(--bg); }
.signup .row input:focus { background: var(--surface); }
.signup .done { max-width: none; }
.signup .check { font-size: 13px; }

/* Nebensachen in einer ruhigen Leiste unter dem Hero */
.extras {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 48px; align-items: start;
  padding-top: 28px; padding-bottom: 44px; border-top: 1px solid var(--line);
}
.extras .facts { margin: 0; flex-direction: column; gap: 8px; }
.extras .fine { margin: 0; max-width: 62ch; }
@media (max-width: 860px) {
  .extras { grid-template-columns: 1fr; }
  .signup { padding: 20px; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 64px; padding-block: 16px 72px; }
  .phone { height: 480px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
