/* Clipeo Landingpage.
 *
 * Farben, Abstaende und Schriftgroessen sind aus dem Klickprototyp
 * (_input/Clipeo-Prototyp.html) uebernommen. Wer hier etwas aendert, sollte
 * vorher dort nachsehen.
 *
 * SCHRIFTEN: Der Prototyp laedt Fraunces und IBM Plex Sans von
 * fonts.googleapis.com. Auf einer oeffentlichen Landingpage hiesse das: die
 * IP-Adresse jedes Besuchers geht an Google, bevor er etwas angeklickt hat.
 * Deshalb steht hier vorerst ein Systemschriftstapel.
 *
 * TODO: Sobald Fraunces und IBM Plex Sans als WOFF2 in public/schriften/
 * liegen, hier die @font-face-Bloecke ergaenzen. Das Aussehen ist dann
 * identisch mit dem Prototyp, ohne dass Daten abfliessen.
 */

:root{
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
  --ink:#16202B; --ink-2:#2C3A47; --muted:#5C6873; --faint:#8A95A0;
  --line:#DFE4E9; --line-soft:#ECEFF2;
  --surface:#FFFFFF; --surface-2:#FBFCFD; --page:#EEF1F4;
  --brand:#1F4E79; --brand-dark:#163A5A; --brand-tint:#E6EFF6; --brand-line:#B5CFE3;
  --gold:#A9761F; --gold-tint:#FAF1E0; --gold-line:#E6CE9F;
  --green:#1E6B39; --green-tint:#E3F0E8;
  --red:#8A3F2A; --red-tint:#F5E8E4;
  --headerblue:#1F4E79;
  --serif:Georgia,'Times New Roman',serif;
  --sans:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --ink:#E9EDF1; --ink-2:#C7D0D8; --muted:#97A3AE; --faint:#7A8592;
    --line:#2C3944; --line-soft:#232E38;
    --surface:#18222C; --surface-2:#1D2731; --page:#111922;
    --brand:#6BA5D3; --brand-dark:#8CBEE2; --brand-tint:#1B2E40; --brand-line:#2F4D68;
    --gold:#D9A857; --gold-tint:#2E2517; --gold-line:#4E3E21;
    --green:#6FBE8C; --green-tint:#17301F;
    --red:#D89075; --red-tint:#33201A;
  }
}
*,*::before,*::after{box-sizing:inherit}
body{margin:0;font-family:var(--sans);background:var(--page);color:var(--ink);-webkit-text-size-adjust:100%}
h1,h2{font-family:var(--serif);font-weight:600;margin:0;line-height:1.22}
p{margin:0}
a{color:var(--brand)}
button{font-family:inherit}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media (prefers-reduced-motion: reduce){*{transition:none !important;animation:none !important}}

.wrap{max-width:1180px;margin:0 auto;padding:22px 16px 56px}
.phonewrap{display:flex;justify-content:center}
.phone{width:100%;max-width:400px;background:var(--surface);border:1px solid var(--line);border-radius:22px;overflow:hidden}
.phead{background:var(--headerblue);color:#fff;padding:20px 22px 24px;display:flex;flex-direction:column;gap:11px}
.logo{display:flex;align-items:center;gap:9px}
.logo .name{font-family:var(--serif);font-weight:700;font-size:19px;letter-spacing:.02em}
.phead h1{font-size:24px;line-height:1.3;color:#fff}
.phead p{font-size:13px;line-height:1.5;color:rgba(255,255,255,.9)}
.pbody{padding:18px 22px 22px;display:flex;flex-direction:column;gap:14px}

label{font-size:12px;font-weight:600;color:var(--ink);display:block;margin-bottom:5px}
/* Wie ein label, aber ueber einer Gruppe – ein label darf nur auf EIN Feld
   zeigen, und eine Radiogruppe hat mehrere. */
.feldname{font-size:12px;font-weight:600;color:var(--ink);display:block;margin-bottom:5px}
.zusatz{font-weight:400;color:var(--muted)}
input[type="text"],input[type="date"],input[type="tel"],input[type="email"]{
  width:100%;height:44px;border:1px solid var(--line);border-radius:9px;padding:0 12px;
  font-size:16px;font-family:inherit;background:var(--surface-2);color:var(--ink)}
/* 16px und nicht 14px: alles darunter laesst iOS beim Antippen hineinzoomen,
   und der Besucher steht danach auf einer verschobenen Seite. */
input::placeholder{color:var(--faint)}

/* Geburtsdatum: drei Felder, kein Kalender.
   Der Tag bleibt schmal, das Jahr bekommt Platz fuer vier Ziffern. Zentriert,
   weil zwei Ziffern in einem linksbuendigen Feld verloren aussehen. */
.gebgruppe{display:flex;align-items:center;gap:6px}
.gebgruppe input{text-align:center;padding:0 6px}
.gebgruppe input#gb_tag,.gebgruppe input#gb_monat{width:64px;flex:0 0 64px}
.gebgruppe input#gb_jahr{width:86px;flex:0 0 86px}
.gebpunkt{color:var(--muted);font-weight:700;line-height:1}

.row2{display:flex;gap:10px}
.row2 > div{flex:1;min-width:0}

.nextbox{background:var(--surface-2);border:1px solid var(--line);border-radius:9px;padding:11px 13px;
  display:flex;gap:9px;align-items:flex-start;font-size:12px;color:var(--ink-2);line-height:1.5}
.nextbox svg{flex:0 0 auto;margin-top:1px;color:var(--brand)}
.issuer{font-size:12px;color:var(--muted);line-height:1.5}
.issuer strong{color:var(--ink);font-weight:600}

/* Kontaktweg: echte Radioknoepfe, optisch die Segmentleiste aus dem Prototyp.
   Echte Eingabefelder, damit die Auswahl ohne JavaScript funktioniert, per
   Tastatur bedienbar ist und der Vorleser sie ansagt. */
.seg{display:flex;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--surface-2)}
.seg input{position:absolute;opacity:0;pointer-events:none}
.seg label{flex:1;margin:0;text-align:center;color:var(--muted);font-size:12.5px;font-weight:600;
  padding:10px 4px;cursor:pointer;border-right:1px solid var(--line)}
.seg label:last-of-type{border-right:none}
.seg input:checked + label{background:var(--brand);color:#fff}
.seg input:focus-visible + label{outline:2px solid var(--brand);outline-offset:-2px}

/* Tarifauswahl, ebenfalls echte Radioknoepfe. */
.tarife{display:flex;flex-direction:column;gap:9px}
.tarif{position:relative}
.tarif input{position:absolute;opacity:0;pointer-events:none}
.tarif label{display:flex;flex-direction:column;gap:9px;margin:0;cursor:pointer;
  background:var(--surface);border:1.5px solid var(--line);border-radius:11px;padding:13px 14px;font-weight:400}
.tarif input:checked + label{border-color:var(--brand);background:var(--brand-tint)}
.tarif input:focus-visible + label{outline:2px solid var(--brand);outline-offset:2px}
.trow{display:flex;align-items:center;gap:12px}
.tname{font-size:15px;font-weight:700;color:var(--ink)}
.tprice{font-family:var(--serif);font-weight:600;font-size:19px;white-space:nowrap;color:var(--ink);margin-left:auto}
.tunit{font-size:11px;color:var(--muted);white-space:nowrap}
.dot{width:19px;height:19px;border-radius:999px;border:2px solid var(--line);display:flex;
  align-items:center;justify-content:center;color:transparent;flex:0 0 auto}
.tarif input:checked + label .dot{border-color:var(--brand);color:var(--brand)}
.tfeat{display:flex;flex-direction:column;gap:5px}
.tfeat span{font-size:11.5px;color:var(--ink-2);line-height:1.35;display:flex;gap:6px;align-items:flex-start}
.tfeat svg{flex:0 0 auto;margin-top:2px;color:var(--brand)}
.tfeat .no{color:var(--faint)}
.tfeat .no svg{color:var(--faint)}

.check{display:flex;align-items:flex-start;gap:9px}
.check input{width:18px;height:18px;margin-top:1px;accent-color:var(--brand);flex:0 0 auto}
.check label{font-size:11.5px;color:var(--muted);line-height:1.45;font-weight:400;margin:0}

.btn{display:flex;align-items:center;justify-content:center;gap:8px;height:48px;border-radius:9px;
  background:var(--brand);color:#fff;border:none;font-size:14.5px;font-weight:700;cursor:pointer;
  width:100%;text-decoration:none}
.fine{font-size:10.5px;color:var(--faint);line-height:1.5;text-align:center}
.hr{height:1px;background:var(--line-soft)}
.warnbox{background:var(--gold-tint);border:1px solid var(--gold-line);border-radius:9px;
  padding:12px 14px;font-size:12.5px;color:var(--gold);line-height:1.5}
.fehlerbox{background:var(--red-tint);border:1px solid var(--red);border-radius:9px;
  padding:12px 14px;font-size:12.5px;color:var(--red);line-height:1.6}
.fehlerbox ul{margin:6px 0 0;padding-left:18px}
.refbadge{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);border-radius:999px;
  padding:4px 10px;font-size:11px;color:rgba(255,255,255,.92)}

/* Der Honigtopf. Nicht display:none – manche Ausfuellhilfen ueberspringen
   verborgene Felder, manche Skripte fuellen sie gerade deshalb. So steht das
   Feld im Baum, ist aber fuer Auge und Vorleser weg. */
.honig{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.done{padding:44px 26px 30px;display:flex;flex-direction:column;align-items:center;text-align:center}
.done .logo{color:var(--brand);margin-bottom:26px}
.done .logo .name{font-size:17px}
.done .fine{margin-top:20px}
.donecircle{width:64px;height:64px;border-radius:999px;background:var(--brand-tint);
  border:1px solid var(--brand-line);display:flex;align-items:center;justify-content:center;color:var(--brand)}
.done h2{font-size:22px;margin-top:20px}
.done .sub{font-size:13.5px;color:var(--muted);line-height:1.6;margin-top:9px}
.donelist{width:100%;background:var(--surface-2);border:1px solid var(--line);border-radius:12px;
  padding:18px;display:flex;flex-direction:column;gap:13px;margin-top:22px;text-align:left}
.donelist div{display:flex;align-items:flex-start;gap:10px;font-size:12.5px;color:var(--ink-2);line-height:1.5}
.donelist svg{flex:0 0 auto;margin-top:2px;color:var(--brand)}

.streifen{background:var(--gold-tint);border-bottom:1px solid var(--gold-line);color:var(--gold);
  font-size:12.5px;text-align:center;padding:8px 16px}
