/* ==========================================================================
   Vroodo – style.css
   Farbtoken aus dem Markenpaket (Spezifikation Abschnitt 0.1) – NICHT ändern.
   Gold-Regel: Gold nur für CTA-Buttons, Startknopf-Detail und kurze
   Strich-Marker; goldene Schrift nur auf Anthrazit, nie auf Papier.
   ========================================================================== */

/* ---- Schrift: Jost, selbst gehostet (Latin-Subset, OFL-Lizenz) ---------- */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jost-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/jost-600-latin.woff2") format("woff2");
}

/* ---- Farbtoken (Abschnitt 0.1, exakt) ----------------------------------- */
:root {
  --papier: #F7F5F0;
  --anthrazit: #14181D;
  --tinte: #1B1F24;
  --elfenbein: #EFEAE0;
  --gold: #C6A15B;
  --grau: #6E747D;

  /* Abgeleitete Werte: Token mit Alpha, keine neuen Farben (DESIGN-NOTES 2) */
  --linie: rgb(110 116 125 / 25%);            /* Grau-Alpha auf Papier   */
  --linie-dunkel: rgb(239 234 224 / 18%);     /* Elfenbein-Alpha auf Anthrazit */
  --elfenbein-dezent: rgb(239 234 224 / 78%); /* Nebentext auf Anthrazit */
  --linie-gold: rgb(198 161 91 / 35%);        /* Gold-Alpha: Header-Abgrenzung */
  /* Nebentext auf Papier: Tinte mit 65 % Alpha ≈ 5,0:1 Kontrast (WCAG AA).
     --grau (4,32:1 auf Papier) nur für Nicht-Text bzw. Großtext verwenden. */
  --nebentext: rgb(27 31 36 / 65%);

  --radius: 14px;
  --radius-gross: 20px;   /* entspricht der Rundung der Logo-Grundfläche */
  --breite: 68rem;

  /* Vertikaler Sektionsabstand (padding-block je .abschnitt; Hero und
     Rechtsseiten leiten sich mit Faktor 1,2 davon ab). 09/2026 um rund 35 %
     gestrafft – vorher clamp(3rem, 7vw, 5.25rem) – für einen dichteren,
     einheitlichen Lesefluss über die ganze Seite. */
  --abstand-sektion: clamp(1.95rem, 4.55vw, 3.4rem);
}

/* ---- Basis --------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-padding-top: 5.5rem; /* Platz für den Sticky-Header bei Ankersprüngen */
  /* Kurze Seiten (Impressum) haben keine Scrollleiste, lange schon – ohne
     reservierte Rinne springt der zentrierte Inhalt beim Seitenwechsel
     horizontal. Fallback: Leiste immer anzeigen; moderne Browser reservieren
     stattdessen nur die Rinne (@supports-Block darunter). */
  overflow-y: scroll;
}
@supports (scrollbar-gutter: stable) {
  html {
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
}
/* Sanftes Scrollen erst nach der ersten Nutzer-Interaktion (main.js setzt die
   Klasse bei pointerdown/keydown). Ein globales scroll-behavior: smooth
   animierte in Chromium auch den Fragment-Sprung beim SEITENAUFRUF: Von den
   Rechtsseiten nach index.html#kontakt erschien die Seite oben und scrollte
   sichtbar durch alle Sektionen bis zum Kontakt (Anker-Flash, behoben 09/2026). */
html.interaktiv { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Jost", "Futura", "Avenir Next", "Century Gothic", "Segoe UI", sans-serif;
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem); /* mind. 17 px */
  font-weight: 400;
  line-height: 1.65;
  color: var(--tinte);
  background: var(--papier);
  -webkit-text-size-adjust: 100%;
  /* Sticky Footer: bei kurzen Seiten (Impressum/Datenschutz) füllt main den
     Rest, damit der dunkle Footer unten am Viewport verankert bleibt. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.75em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

a { color: inherit; }

/* Sichtbarer Tastatur-Fokus (WCAG) */
:focus-visible {
  outline: 3px solid var(--tinte);
  outline-offset: 2px;
  border-radius: 2px;
}
.dunkel :focus-visible,
.dunkel:focus-visible {
  outline-color: var(--elfenbein);
}

/* Sprunglink für Tastatur-Nutzer */
.sprunglink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--tinte);
  color: var(--elfenbein);
  text-decoration: none;
}
.sprunglink:focus-visible {
  left: 0.5rem;
  top: 0.5rem;
}

.halter {
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ---- Buttons (einzige Goldflächen neben den Markern) --------------------- */
.knopf {
  display: inline-block;
  padding: 0.95rem 1.6rem;
  background: var(--gold);
  color: var(--tinte);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.knopf:hover { filter: brightness(0.93); }
.knopf:focus-visible { outline-color: var(--tinte); }

.knopf-klein {
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  border-radius: 8px;
}

/* ---- Strich-Marker: kurzer goldener Stab (Echo des Startknopfs) ---------- */
.stab-liste {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stab-liste li {
  position: relative;
  padding-left: 1.1rem;
}
.stab-liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 4px;
  height: 0.85em;
  border-radius: 2px;
  background: var(--gold);
}

/* ---- Header (Anthrazit seit 08/2026; dezente Gold-Linie trennt ihn beim
   Scrollen vom hellen Inhalt) ----------------------------------------------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--anthrazit);
  color: var(--elfenbein);
  border-bottom: 1px solid var(--linie-gold);
}
/* Der zweite Selektor sichert den Gold-Button gegen Reihenfolge-Änderungen ab
   (.knopf:focus-visible setzt sonst Tinte – auf Anthrazit unsichtbar). */
.kopf :focus-visible,
.kopf .knopf:focus-visible { outline-color: var(--elfenbein); }
.kopf-zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
}
.logo-link { display: inline-flex; align-items: center; }
/* Wortmarken-Variante ohne Claim (viewBox eng beschnitten): 36px Bildhöhe
   ergeben ca. 31px Versalhöhe der Wortmarke. */
.logo-wortmarke { width: auto; height: 36px; }
.logo-signet { width: auto; height: 40px; display: none; }
.kopf-rechts {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.kopf-telefon {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--elfenbein);
}
.kopf-telefon:hover {
  color: var(--gold); /* goldene Schrift nur auf Anthrazit – hier erlaubt */
  text-decoration: underline;
  text-underline-offset: 3px;
}
.telefon-icon { display: none; width: 22px; height: 22px; }
@media (max-width: 699px) {
  /* Schmale Viewports: neben dem CTA-Button passt die ausgeschriebene
     Nummer nicht mehr – sie wird zum reinen Telefon-Icon (tel-Link,
     Beschriftung über aria-label; Padding vergrößert die Tippfläche). */
  .kopf-telefon { padding: 0.7rem; margin: -0.7rem; } /* Tippfläche ~44px */
  .telefon-text { display: none; }
  .telefon-icon { display: block; }
}
@media (max-width: 529px) {
  /* Signet statt Wortmarke: unterhalb von ~530 px passen die 36px-Wortmarke,
     das Telefon-Icon und der CTA-Button nicht mehr in eine Zeile (rechnerisch
     ab 512 px; Puffer gegen Umbruch/Überlauf). Vorgabe 4.1 erlaubt das Signet. */
  .logo-wortmarke { display: none; }
  .logo-signet { display: block; }
}

/* ---- Hero ------------------------------------------------------------------ */
.buehne { padding-block: calc(var(--abstand-sektion) * 1.2); } /* etwas mehr Luft als die Sektionen */
.buehne-gitter { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
  .buehne-gitter {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
  }
}

.augenbraue {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--nebentext);
}
.buehne h1 {
  font-size: clamp(2.05rem, 1.35rem + 3.2vw, 3.3rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.5em;
}
.unterzeile {
  font-size: clamp(1.1rem, 1.05rem + 0.3vw, 1.25rem);
  color: var(--nebentext);
  max-width: 36rem;
  margin-bottom: 1.5em;
}
.vertrauen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--nebentext);
}

/* ---- Rechner-Karte (Signatur-Element, dunkle Fläche 1 von 2) --------------- */
.rechner {
  background: var(--anthrazit);
  color: var(--elfenbein);
  border-radius: var(--radius-gross);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.rechner-frage {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.rechner-eingabe {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.rechner-eingabe[hidden] { display: none; }
.rechner-stunden {
  min-width: 6.5rem;
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}
.rechner-ergebnis {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}
.rechner-summe {
  display: block;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--gold); /* goldene Schrift NUR auf Anthrazit */
}
.fussnote {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--elfenbein-dezent);
  margin: 0;
}
.fussnote-hell { color: var(--nebentext); }

/* Schieberegler: Spur aus Elfenbein-Alpha, Knopf in Gold (Startknopf-Echo) */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 26px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: var(--linie-dunkel);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--linie-dunkel);
}
input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
}
input[type="range"]:focus-visible {
  outline: 3px solid var(--elfenbein);
  outline-offset: 4px;
}

/* ---- Abschnitte ------------------------------------------------------------- */
.abschnitt { padding-block: var(--abstand-sektion); }
/* Sektions-Trenner: kurzer Gold-Strich am linken Rand des Inhalts-Containers
   (statt einer vollbreiten Linie). Er entfällt, wo Hintergrundwechsel oder
   großer Weißraum bereits trennen (Hero -> Problem, Kontakt -> Footer). */
.abschnitt + .abschnitt > .halter::before {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  border-radius: 1px;
  background: var(--gold);
  margin-bottom: 1.4rem; /* 09/2026: vorher 2rem */
}
.abschnitt h2 {
  font-size: clamp(1.55rem, 1.25rem + 1.4vw, 2.1rem);
  margin-bottom: 0.9em; /* 09/2026: vorher 1.25em */
}
.einleitung { max-width: 44rem; }

/* ---- Problem-Karten ----------------------------------------------------------- */
.karten {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 2rem;
  padding: 0;
}
@media (min-width: 720px) {
  .karten { grid-template-columns: repeat(3, 1fr); }
}
.karte {
  margin: 0;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.karte p { margin: 0; }
.schluss-satz {
  font-size: clamp(1.1rem, 1.05rem + 0.3vw, 1.25rem);
  max-width: 44rem;
  margin: 0;
}

/* ---- Beispiel-Prozess (Proof-Karte im Kartenstil) ------------------------------ */
.beispiel-karte {
  max-width: 44rem;
  margin-bottom: 1rem;
}

/* ---- Leistungen und Preise ---------------------------------------------------- */
.angebote {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 880px) {
  .angebote { grid-template-columns: repeat(3, 1fr); }
}
.angebot {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.angebot h3 { font-size: 1.25rem; margin-bottom: 0.25em; }
.angebot .preis {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.9em;
}
.angebot p:last-child { margin-bottom: 0; }

/* ---- Ablauf (nummerierter Prozess) ---------------------------------------------- */
.ablauf {
  list-style: none;
  counter-reset: schritt;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
@media (min-width: 720px) {
  .ablauf { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .ablauf { grid-template-columns: repeat(4, 1fr); }
}
.ablauf li { counter-increment: schritt; }
.ablauf li::before {
  /* Schrittzahl mit kurzem Goldstrich darunter (Marker-Regel aus 0.1) */
  content: counter(schritt);
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  padding: 0 0.15rem 0.4rem;
  border-bottom: 3px solid var(--gold);
}
.ablauf .schritt-titel {
  display: block;
  font-weight: 600;
  margin: 0.75rem 0 0.25rem;
}
.ablauf p { margin: 0; }

/* ---- FAQ -------------------------------------------------------------------------- */
.faq { max-width: 46rem; }
.faq details { border-top: 1px solid var(--linie); }
.faq details:last-of-type { border-bottom: 1px solid var(--linie); }
.faq summary {
  list-style: none;
  position: relative;
  padding: 1.05rem 2.5rem 1.05rem 0;
  font-weight: 600;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--grau);
  transition: rotate 0.2s ease;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p {
  margin: 0;
  padding: 0 0 1.25rem;
  max-width: 42rem;
}

/* ---- Über ---------------------------------------------------------------------------- */
.ueber-text { max-width: 44rem; }
.ueber-text p:last-child { margin-bottom: 0; }

/* ---- Kontakt (Conversion-Punkt) -------------------------------------------------------- */
.kontakt { text-align: center; }
.kontakt h2 { margin-bottom: 0.5em; }
.kontakt .einleitung {
  margin-inline: auto;
  margin-bottom: 2rem;
}
.kontakt-knoepfe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.kontakt-knoepfe .knopf {
  min-width: min(100%, 18rem);
  padding: 1.1rem 1.75rem;
  font-size: 1.1rem;
}
.kontakt-alternativ { margin-top: 2rem; }

/* ---- Kontaktformular ---- */
.formular {
  max-width: 36rem;
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
  text-align: left;
}
.formular[hidden] { display: none; }
.feld { display: grid; gap: 0.35rem; }
.feld label {
  font-weight: 600;
  font-size: 0.95rem;
}
.feld .optional {
  font-weight: 400;
  color: var(--nebentext);
}
.feld input,
.feld textarea {
  font: inherit;
  color: var(--tinte);
  background: var(--papier);
  border: 1px solid var(--grau);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  width: 100%;
}
.feld textarea {
  resize: vertical;
  min-height: 8rem;
}
.formular .knopf { justify-self: start; }
.formular .knopf:disabled {
  cursor: default;
  filter: grayscale(0.4) brightness(0.95);
}
.formular-hinweis { margin: 0; }
.formular-hinweis a { color: inherit; }
.formular-fehler {
  margin: 0;
  padding: 0.8rem 1rem;
  font-weight: 600;
  border: 1px solid var(--tinte);
  border-radius: 8px;
}
.formular-fehler[hidden] { display: none; }
.formular-erfolg {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  font-weight: 600;
  border: 1px solid var(--linie);
  border-left: 4px solid var(--gold); /* kurzer Goldstrich als Marker */
  border-radius: 8px;
  text-align: left;
}
.formular-erfolg[hidden] { display: none; }

/* Honeypot-Falle: aus dem Sichtbaren gerückt (bewusst kein display:none,
   damit einfache Bots das Feld weiterhin ausfüllen) */
.hp-falle {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.claim {
  margin: 2rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--nebentext);
}

/* ---- Footer (dunkle Fläche 2 von 2) ------------------------------------------------------ */
.fuss {
  background: var(--anthrazit);
  color: var(--elfenbein);
  padding-block: 2.25rem;
}
.fuss-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.fuss-marke {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
/* Wortmarken-Variante ohne Claim: die Claim-Zeile wäre bei Footer-Größe
   unter 11px Versalhöhe unlesbar und entfällt deshalb auch hier. */
.fuss-logo { height: 26px; width: auto; }
.fuss-inhaber {
  font-size: 0.95rem;
  color: var(--elfenbein-dezent);
}
.fuss-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}
.fuss-nav a {
  color: var(--elfenbein);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fuss-nav a:hover { text-decoration-thickness: 2px; }

/* ---- Rechtsseiten (Impressum / Datenschutz) ------------------------------------------------ */
.recht-inhalt {
  padding-block: calc(var(--abstand-sektion) * 1.2); /* wie der Hero */
  max-width: 44rem;
}
.recht-inhalt h1 { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.5rem); }
.recht-inhalt address { font-style: normal; }
.hinweis-kasten {
  border: 1px solid var(--linie);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.hinweis-kasten p { margin: 0 0 0.6em; }
.hinweis-kasten ul {
  margin: 0;
  padding-left: 1.25rem;
}
.hinweis-kasten > :last-child { margin-bottom: 0; }
.recht-inhalt h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.55rem);
  margin-top: 2.2em;
}
.recht-inhalt h3 {
  font-size: 1.08rem;
  margin-top: 1.6em;
}
.recht-inhalt ul {
  padding-left: 1.25rem;
  margin: 0.8em 0 1em;
}
.recht-inhalt li { margin-bottom: 0.4em; }
.recht-inhalt a { word-break: break-word; }

/* ---- Splash-Seite (Variante SPLASH) --------------------------------------------------------- */
.splash {
  background: var(--anthrazit);
  color: var(--elfenbein);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.splash main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
}
.splash-logo {
  width: min(85vw, 26rem);
  height: auto;
}
.splash h1 {
  font-size: clamp(1.5rem, 1.2rem + 1.8vw, 2.1rem);
  margin: 2rem 0 0.75rem;
}
.splash-kontakt {
  margin: 0;
  color: var(--elfenbein-dezent);
}
.splash-kontakt a {
  color: var(--gold); /* goldene Schrift nur auf Anthrazit – hier erlaubt */
  text-decoration: underline;
  text-underline-offset: 3px;
}
.splash-fuss {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
  font-size: 0.95rem;
}
.splash-fuss a {
  color: var(--elfenbein);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Scroll-Reveal (einziger Effekt; JS setzt die Klassen) ----------------------------------- */
.reveal {
  opacity: 0;
  translate: 0 14px;
  transition: opacity 0.55s ease-out, translate 0.55s ease-out;
}
.reveal.sichtbar {
  opacity: 1;
  translate: 0 0;
}

/* ---- Reduzierte Bewegung: alle Effekte aus ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html.interaktiv { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    translate: none;
    transition: none;
  }
  .knopf { transition: none; }
  .faq summary::after { transition: none; }
}
