/* ==========================================================================
   Pantech — Re-Commerce & Store · gemeinsames Designsystem
   Nach dem Startseiten-Entwurf (PDF): Navy als Grundton der Marke, Mint als
   Signal, Poppins für alles, eine Schreibschrift nur für die Markenzeile.

   Grundregeln
   - Mint leuchtet nur auf Navy: Knöpfe, Zahlen, Markenzeile. Auf Weiß wird
     es zu einem tieferen Grün, sonst ist es nicht lesbar.
   - Hauptknöpfe sind Pillen. Auf Weiß navy, auf Navy mint.
   - Schreibmaschinenschrift nur für Nummern, die man abtippt.
   ========================================================================== */

:root {
  /* --- Marke --------------------------------------------------------- */
  --navy:        #0f172a;
  --navy-tief:   #0a121f;
  --navy-hell:   #1e293b;
  --navy-linie:  #273449;
  --mint:        #3cf0af;
  --mint-dunkel: #0b9a66;   /* Mint auf weißem Grund, lesbar */
  --mint-hauch:  #e6fbf3;

  /* --- Fläche & Schrift ----------------------------------------------- */
  --papier:       #ffffff;
  --flaeche:      #f1f4f9;
  --flaeche-tief: #e7ecf3;
  --rand:         #e2e8f0;
  --rand-stark:   #cbd5e1;
  --tinte:        #0f172a;
  --tinte-leise:  #55617a;
  --tinte-still:  #94a0b4;

  /* Alte Namen zeigen auf die neuen Werte, damit nichts bricht */
  --marke:       var(--mint-dunkel);
  --marke-tief:  var(--navy);
  --marke-hauch: var(--mint-hauch);

  --warnung: #b45309;  --warnung-hauch: #fdf4e7;
  --fehler:  #c2261b;  --fehler-hauch:  #fdf2f1;

  /* --- Form ----------------------------------------------------------- */
  --r-klein: 10px;
  --r:       16px;
  --r-gross: 22px;
  --schatten:      0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --schatten-hoch: 0 24px 60px -20px rgba(15, 23, 42, 0.35);

  --schrift: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand:    'Caveat', 'Segoe Script', cursive;
  --ziffern: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --spalte:  680px;
  --breite: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font-family: var(--schrift); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--mint); color: var(--navy); }
:focus-visible { outline: 2px solid var(--mint-dunkel); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Typografie
   ========================================================================== */

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }

.t-riesig { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -0.035em; line-height: 1.04; }
.t-gross  { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); }
.t-mittel { font-size: 1.3rem; }
.t-klein  { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1em; max-width: 66ch; }
p:last-child { margin-bottom: 0; }
.leise  { color: var(--tinte-leise); font-size: 0.93rem; }
.winzig { color: var(--tinte-leise); font-size: 0.82rem; line-height: 1.55; }

/* Kleine grüne Rubrik über einem Abschnitt, wie im Entwurf */
.rubrik {
  display: block; margin-bottom: 10px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mint-dunkel);
}
.auf-navy .rubrik { color: var(--mint); }

/* Markenzeile in Schreibschrift */
.hand { font-family: var(--hand); font-weight: 600; color: var(--mint-dunkel); letter-spacing: 0; }
.auf-navy .hand { color: var(--mint); }

/* Zweite Zeile einer Überschrift, die die Aussage trägt */
.wert { color: var(--mint-dunkel); }
.auf-navy .wert { color: var(--mint); }

.nummer { font-family: var(--ziffern); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

/* ==========================================================================
   Aufbau
   ========================================================================== */

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 22px; }
.spalte { max-width: var(--spalte); margin: 0 auto; }

/* Navyfläche über die volle Breite */
.auf-navy { background: var(--navy); color: #e7ecf3; }
.auf-navy h1, .auf-navy h2, .auf-navy h3 { color: #fff; }
.auf-navy .leise, .auf-navy p { color: #aab6c8; }

/* Hellgraue Fläche über die volle Breite */
.auf-grau { background: var(--flaeche); }

.abschnitt { padding: 84px 0; }
@media (max-width: 700px) { .abschnitt { padding: 60px 0; } }
.abschnitt-kopf { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; margin-bottom: 32px; }
.abschnitt-kopf h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.1rem); }
.abschnitt-kopf p { margin: 8px 0 0; }
.abschnitt-link { font-weight: 600; font-size: 0.93rem; color: var(--tinte); text-decoration: none; white-space: nowrap; }
.abschnitt-link:hover { color: var(--mint-dunkel); }

.abschnitt-titel { margin: 36px 0 16px; font-size: 1.35rem; }
.abschnitt-titel:first-child { margin-top: 0; }

/* --- Leiste ganz oben ------------------------------------------------- */

.band { background: var(--navy-tief); color: var(--mint); font-size: 0.8rem; font-weight: 500; }
.band-innen {
  max-width: var(--breite); margin: 0 auto; padding: 8px 22px;
  display: flex; gap: 30px; justify-content: center; flex-wrap: wrap;
}
.band-punkt { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.band-punkt svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 680px) {
  .band-innen { padding: 7px 22px; font-size: 0.76rem; }
  .band-punkt:not(:first-child) { display: none; }
}

/* --- Kopf ------------------------------------------------------------- */

.kopf {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rand);
}
.kopf-innen {
  max-width: var(--breite); margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; gap: 28px;
}
.kopf-logo { text-decoration: none; flex: none; }
.kopf-nav { display: flex; gap: 26px; margin: 0 auto; font-size: 0.93rem; font-weight: 500; }
.kopf-nav a { text-decoration: none; color: var(--tinte); }
.kopf-nav a:hover { color: var(--mint-dunkel); }
.kopf-rechts { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.kopf-rechts a { text-decoration: none; }
.kopf-tel { font-weight: 600; font-size: 0.93rem; white-space: nowrap; }
@media (max-width: 980px) { .kopf-nav { display: none; } }
@media (max-width: 680px) {
  .versteckt-klein { display: none !important; }
  .kopf-innen { padding: 12px 18px; }
}

/* --- Wortmarke ---------------------------------------------------------
   Platzhalter, bis die Logodatei da ist: der Schriftzug in Poppins, die
   Markenzeile in Schreibschrift rechtsbündig darunter. */
.logo { display: inline-flex; flex-direction: column; line-height: 1; }
.logo-wort { font-weight: 700; font-size: 1.6rem; letter-spacing: -0.045em; color: var(--tinte); }
.logo-zeile { font-family: var(--hand); font-weight: 600; font-size: 0.98rem; color: var(--mint-dunkel); align-self: flex-end; margin-top: -2px; }
.auf-navy .logo-wort, .fuss .logo-wort { color: #fff; }
.auf-navy .logo-zeile, .fuss .logo-zeile { color: var(--mint); }
.kopf-logo img { height: 44px; width: auto; }
@media (max-width: 680px) { .kopf-logo img { height: 38px; } }

/* --- Titel einer Formularseite ---------------------------------------- */

.titel { padding: 60px 0 48px; }
.titel h1 { margin-bottom: 14px; }
.titel p { font-size: 1.06rem; max-width: 54ch; }

/* --- Fußzeile --------------------------------------------------------- */

.fuss { background: var(--navy); color: #aab6c8; padding: 60px 0 28px; margin-top: 0; }
.fuss-innen {
  max-width: var(--breite); margin: 0 auto; padding: 0 22px;
  display: grid; gap: 36px; grid-template-columns: 1.4fr repeat(3, 1fr);
}
@media (max-width: 860px) { .fuss-innen { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .fuss-innen { grid-template-columns: 1fr; } }
.fuss h2 { font-size: 0.95rem; font-weight: 600; color: #fff; margin-bottom: 12px; }
.fuss p { color: #aab6c8 !important; font-size: 0.9rem; }
.fuss a { display: block; padding: 3px 0; color: #aab6c8; text-decoration: none; font-size: 0.9rem; }
.fuss a:hover { color: var(--mint); }
.fuss-recht {
  max-width: var(--breite); margin: 40px auto 0; padding: 22px 22px 0;
  border-top: 1px solid var(--navy-linie); color: #7d8aa0; font-size: 0.8rem;
}

/* ==========================================================================
   Karten
   ========================================================================== */

.karte {
  background: var(--papier); border: 1px solid var(--rand);
  border-radius: var(--r); padding: 26px;
}
.karte + .karte { margin-top: 16px; }
.karte > h2 { font-size: 1.12rem; margin-bottom: 4px; }
.karte-hinweis { color: var(--tinte-leise); font-size: 0.9rem; margin: 0 0 20px; }
.karte > h2 + :not(.karte-hinweis) { margin-top: 20px; }
@media (max-width: 560px) { .karte { padding: 20px 17px; border-radius: 14px; } }

/* ==========================================================================
   Formulare
   ========================================================================== */

.feld { margin-bottom: 16px; }
.feld:last-child { margin-bottom: 0; }
.paar > .feld { margin-bottom: 16px; }
.feld > label { display: block; font-size: 0.86rem; font-weight: 500; margin-bottom: 6px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
input[type="number"], select, textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--rand-stark); border-radius: var(--r-klein);
  background: var(--papier); color: var(--tinte);
  font-family: var(--schrift); font-size: 1rem; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
textarea { resize: vertical; min-height: 92px; }
input::placeholder, textarea::placeholder { color: var(--tinte-still); }
input:hover, select:hover, textarea:hover { border-color: #a9b5c7; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--mint-dunkel);
  box-shadow: 0 0 0 4px rgba(60, 240, 175, 0.22);
}
input:user-invalid, select:user-invalid, textarea:user-invalid {
  border-color: var(--fehler); box-shadow: 0 0 0 4px rgba(194, 38, 27, 0.1);
}
input.nummer { font-family: var(--ziffern); font-size: 0.96rem; }

select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--tinte-leise) 50%),
    linear-gradient(135deg, var(--tinte-leise) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 1px), calc(100% - 15px) calc(50% + 1px);
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}

.paar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.paar-schmal { grid-template-columns: 1fr 2fr; }
@media (max-width: 460px) { .paar, .paar-schmal { grid-template-columns: 1fr !important; } }

.wahl { display: flex; flex-direction: column; gap: 8px; }
.wahl-zeile {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--rand-stark); border-radius: var(--r-klein);
  background: var(--papier); cursor: pointer; font-size: 0.97rem;
  transition: border-color .15s, background .15s;
}
.wahl-zeile:hover { border-color: #a9b5c7; }
.wahl-zeile input { flex: none; margin: 3px 0 0; accent-color: var(--navy); width: 17px; height: 17px; }
.wahl-zeile:has(input:checked) { border-color: var(--navy); background: var(--flaeche); box-shadow: inset 0 0 0 1px var(--navy); }
.wahl-zeile .wahl-text { display: block; font-weight: 500; }
.wahl-zeile .wahl-neben { display: block; color: var(--tinte-leise); font-size: 0.85rem; margin-top: 2px; }
.wahl-marke {
  margin-left: auto; align-self: center; flex: none;
  font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--mint); color: var(--navy);
}

.zustimmung { display: flex; align-items: flex-start; gap: 11px; font-size: 0.95rem; cursor: pointer; }
.zustimmung input { flex: none; margin: 4px 0 0; accent-color: var(--navy); width: 17px; height: 17px; }
.zustimmung a { color: var(--mint-dunkel); font-weight: 500; text-underline-offset: 2px; }

/* ==========================================================================
   Knöpfe
   ========================================================================== */

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  border: 1.5px solid var(--rand-stark); background: transparent; color: var(--tinte);
  font-family: var(--schrift); font-size: 0.95rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .08s;
}
.knopf:hover { border-color: var(--navy); }
.knopf:active { transform: translateY(1px); }
.knopf svg { width: 18px; height: 18px; flex: none; }

.knopf-haupt { background: var(--navy); border-color: var(--navy); color: #fff; }
.knopf-haupt:hover { background: var(--navy-hell); border-color: var(--navy-hell); }

.knopf-mint { background: var(--mint); border-color: var(--mint); color: var(--navy); }
.knopf-mint:hover { background: #64f5c1; border-color: #64f5c1; }

.auf-navy .knopf:not(.knopf-mint):not(.knopf-haupt) { color: #fff; border-color: #3a4a63; }
.auf-navy .knopf:not(.knopf-mint):not(.knopf-haupt):hover { border-color: #fff; }

.knopf-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.knopf-whatsapp:hover { background: #1fbd5a; border-color: #1fbd5a; }

.knopf-breit { width: 100%; padding: 16px 24px; font-size: 1.02rem; }
.knopf-mehr {
  width: 100%; border-style: dashed; border-radius: var(--r-klein);
  color: var(--tinte-leise); font-weight: 500;
}
.knopf-mehr:hover { color: var(--navy); background: var(--flaeche); }
.knopf:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ==========================================================================
   Kleinteile
   ========================================================================== */

.plakette {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; background: var(--mint); color: var(--navy);
}

.hinweis {
  border-radius: var(--r-klein); background: var(--flaeche);
  border-left: 3px solid var(--mint-dunkel); padding: 14px 16px; font-size: 0.92rem;
}

.werte { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; align-items: baseline; }
.werte dt { color: var(--tinte-leise); font-size: 0.88rem; }
.werte dd { margin: 0; font-weight: 600; font-family: var(--ziffern); font-size: 0.95rem; word-break: break-word; }
.werte dd.wort { font-family: var(--schrift); font-size: 0.98rem; }
.werte a { text-decoration: none; }
.werte a:hover { color: var(--mint-dunkel); }
@media (max-width: 460px) { .werte { grid-template-columns: 1fr; gap: 2px; } .werte dd { margin-bottom: 10px; } }

.formfehler {
  display: none; margin-top: 14px; border-radius: var(--r-klein);
  background: var(--fehler-hauch); border: 1px solid #f2d3d0; color: #8a1d14; padding: 12px 14px; font-size: 0.92rem;
}
.formfehler:not(:empty) { display: block; }

/* Fortschritt eines Vorgangs */
.stand { display: flex; margin-bottom: 30px; }
.stand-teil { flex: 1; padding-top: 10px; border-top: 3px solid var(--flaeche-tief); }
.stand-teil + .stand-teil { margin-left: 5px; }
.stand-teil.jetzt  { border-top-color: var(--navy); }
.stand-teil.fertig { border-top-color: var(--mint-dunkel); }
.stand-wort { font-size: 0.86rem; color: var(--tinte-leise); }
.stand-teil.jetzt .stand-wort { color: var(--tinte); font-weight: 600; }

/* ==========================================================================
   Rechtstexte
   ========================================================================== */

.rechtstext { max-width: 70ch; margin: 0 auto; padding: 56px 0 88px; }
.rechtstext h1 { margin-bottom: 10px; }
.rechtstext .stand { display: block; color: var(--tinte-leise); font-size: 0.92rem; margin-bottom: 36px; border: 0; }
.rechtstext section { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--rand); }
.rechtstext section:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.rechtstext h2 { font-size: 1.15rem; margin-bottom: 12px; }
.rechtstext p { color: #334155; line-height: 1.75; }
.rechtstext a { color: var(--mint-dunkel); overflow-wrap: anywhere; }
.rechtstext .anschrift { background: var(--flaeche); border-radius: var(--r-klein); padding: 16px 18px; }
.rechtstext .formular-muster { background: var(--flaeche); border-radius: var(--r-klein); padding: 18px 20px; font-size: 0.95rem; line-height: 2; }
.rechtstext .fussnote { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rand); color: var(--tinte-leise); font-size: 0.85rem; }
.zurueck { display: inline-block; margin-bottom: 28px; font-size: 0.92rem; color: var(--tinte-leise); text-decoration: none; }
.zurueck:hover { color: var(--mint-dunkel); }

@media print {
  .kopf, .band, .fuss, .knopf, .summe-leiste { display: none !important; }
  .karte { border: 0; padding: 0; }
}
