/* Klarstark – Duo-Strecke
   Gemeinsames Stylesheet für /duo, /duo/fast-geschafft, /duo/sessions
   Farben und Schrift nach Projektordner/ci-farben.md, umgestellt 18.08.2026.
   Davor: Petrol #0F4C5C und Amber #E9A13B, beide in keiner Familie des
   Brand-Guides. Die Variablennamen bleiben, damit der Rest der Datei
   unberührt bleibt. */

@font-face {
  font-family: 'Switzer';
  src: url('/assets/fonts/switzer-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('/assets/fonts/switzer-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('/assets/fonts/switzer-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --petrol-tief: #0C242C;
  --petrol: #14333D;
  --petrol-hell: #1E4A57;
  --amber: #C87E3F;
  --amber-tief: #8F5526;
  --amber-dunkelgrund: #D08C4A;   /* Amber auf dunklen Flächen */
  --papier: #E6DFD3;
  --weiss: #EFEAE2;               /* Warmweiß, kein reines Weiß */
  --tinte: #22282A;
  --nebel: #4F5B5F;               /* ersetzt #6F7C80 mit 3,60 auf Warmweiß */
  --nebel-hell: #C2D1D6;          /* Fließtext auf Petrol, 8,52 */
  --nebel-leise: #9DB6BE;         /* Kleinzeile auf Petrol, 6,28 */
  --linie: #E2E2DD;
  --eisblau: #DDE7EA;             /* kühle helle Fläche, ci-farben §3 */

  /* Signalfarben für Fehler und Hinweis. Die CI führt dafür keinen Wert:
     Petrol und Amber tragen die Marke, nicht die Warnung. Diese drei
     bleiben, bis die Palette eine Signalstufe bekommt. */
  --fehler-flaeche: #FDECEB;
  --fehler-linie: #C0392B;
  --fehler-text: #7D241A;

  --schrift: 'Switzer', ui-sans-serif, -apple-system, BlinkMacSystemFont,
             "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --mass: 34rem;        /* Lesebreite */
  --radius: 10px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.huelle {
  width: 100%;
  max-width: var(--mass);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Kopfband ---------- */

.kopf {
  background: var(--petrol-tief);
  color: var(--weiss);
  padding: 26px 0 34px;
}

.wortmarke {
  display: block;
  height: 30px;
  width: auto;
  margin: 0 0 30px;
}

.kopf h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 7vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.kopf .unterzeile {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--nebel-hell);
}

/* ---------- Video ---------- */

.video-rahmen {
  margin: 24px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

/* 9D liefert die Videos im Verhältnis 1:1 – bestätigt, nicht ändern.
   Der Wert 56.25% (16:9) gilt hier ausdrücklich NICHT. */
.wistia_responsive_padding { padding: 100% 0 0 0; position: relative; }
.wistia_responsive_wrapper {
  height: 100%; left: 0; position: absolute; top: 0; width: 100%;
}

/* ---------- Zwei-Klick-Vorschau ----------
   Vor dem Klick steht hier eine Fläche vom eigenen Server.
   Der Wistia-iframe entsteht erst danach per JavaScript und
   ersetzt den Inhalt von .video-schutz. */

.video-schutz {
  background: var(--petrol);
}

.video-schutz__start {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 300px;      /* Rückfallebene für Browser ohne aspect-ratio */
  aspect-ratio: 1 / 1;    /* deckungsgleich mit dem späteren 1:1-Player */
  padding: 28px 22px;
  border: 0;
  background: var(--petrol);
  color: var(--weiss);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.video-schutz__start:hover { background: var(--petrol-hell); }

.video-schutz__start:focus-visible {
  outline: 3px solid var(--amber-dunkelgrund);
  outline-offset: -3px;
}

.video-schutz__zeichen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 4px;
  border: 2px solid var(--amber-dunkelgrund);
  border-radius: 50%;
  color: var(--amber-dunkelgrund);
  flex: 0 0 auto;
}

.video-schutz__marke {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--nebel-leise);
}

.video-schutz__aktion {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.video-schutz__text {
  max-width: 40ch;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--nebel-hell);
}

.video-schutz__text a {
  color: var(--weiss);
  text-underline-offset: 2px;
}

/* ---------- Abschnitte ---------- */

.abschnitt { padding: 34px 0; }
.abschnitt--rand { border-top: 1px solid var(--linie); }

.marke {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--petrol);
  margin: 0 0 10px;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 5.5vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--petrol-tief);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--petrol-tief);
}

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

/* Kein Unterstrich, der Zustand läuft über die Farbe (ci-farben.md §4b).
   Der Hover-Ton ist gegen seinen Untergrund gemessen: --amber-tief trägt
   hier den Wert --kupfer-tief #8F5526 und erreicht 5,02 auf Warmweiß. */
a {
  color: var(--petrol);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover, a:focus-visible { color: var(--amber-tief); }

/* Ausnahme, bewusst: der Datenschutz-Verweis im Einwilligungssatz behält
   seinen Unterstrich. §4b verlangt für einen unvermeidbaren Verweis im
   Fließtext ein eigenes Zeichen, und der Satz selbst wird nicht umgebaut —
   er trägt die Einwilligung und ist rechtlich tragend. Farbe allein würde
   WCAG 1.4.1 nicht erfüllen. */
.vertrauen a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Auswahl Energie / Ruhe ---------- */

.auswahl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 22px;
}

@media (max-width: 380px) {
  .auswahl { grid-template-columns: 1fr; }
}

.karte {
  position: relative;
  display: block;
  background: var(--weiss);
  border: 2px solid var(--linie);
  border-radius: var(--radius);
  padding: 18px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease,
              transform 0.15s ease;
}

.karte input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: 0;
}

.karte .titel {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--petrol-tief);
  margin-bottom: 3px;
}

.karte .zeile {
  display: block;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--nebel);
}

.karte:hover { border-color: var(--petrol-hell); }

.karte:has(input:checked) {
  border-color: var(--petrol);
  background: var(--eisblau);
  transform: translateY(-1px);
}

.karte:has(input:focus-visible) {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* Rückfallebene für ältere Browser ohne :has() */
.karte.ist-gewaehlt {
  border-color: var(--petrol);
  background: var(--eisblau);
}

/* ---------- Formular ---------- */

label.feldname {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--petrol-tief);
  margin: 0 0 6px;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  font-family: inherit;
  font-size: 17px;           /* verhindert Zoom auf iOS */
  padding: 14px 14px;
  border: 2px solid var(--linie);
  border-radius: var(--radius);
  background: var(--weiss);
  color: var(--tinte);
  margin: 0 0 16px;
}

input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--petrol);
}

.knopf {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tinte);           /* CTA-Text ist nie weiß, ci-farben §4 */
  background: var(--amber);
  border: none;
  border-radius: var(--radius);
  padding: 17px 20px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.knopf:hover { background: var(--amber-tief); }
.knopf:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; }

.knopf--ruhig {
  background: var(--petrol);
  color: var(--weiss);
}
.knopf--ruhig:hover { background: var(--petrol-tief); }

.fehler {
  background: var(--fehler-flaeche);
  border-left: 4px solid var(--fehler-linie);
  border-radius: 6px;
  padding: 13px 15px;
  margin: 0 0 20px;
  font-size: 0.92rem;
  color: var(--fehler-text);
}

/* ---------- Hinweisbox ---------- */

.hinweis {
  background: var(--eisblau);
  border-left: 4px solid var(--petrol);
  border-radius: 6px;
  padding: 16px 18px;
  margin: 22px 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.hinweis strong { color: var(--petrol-tief); }

/* ---------- Methodenblock 9D ---------- */

.methode {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 18px;
}

.methode img {
  height: 46px;
  width: auto;
  flex: 0 0 auto;
}

.methode .text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--nebel);
}

.methode .text strong { color: var(--petrol-tief); }

@media (max-width: 420px) {
  .methode { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- Vertrauenszeile ---------- */

.vertrauen {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--nebel);
  margin: 22px 0 0;
}

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

/* Dunkler Abschluss wie auf den Seiten mit marke.css. Bis zum 19.08.2026
   war der Fussbereich hier nur eine graue Zeile auf der Papierflaeche --
   die Seite hoerte auf, statt zu schliessen. */
.fuss {
  margin-top: 64px;
  padding: 40px 0;
  background: var(--petrol-tief);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--nebel-hell);
}

/* Die Fußzeile trennt ihre Verweise mit Mittelpunkten, sie stehen also
   für sich und brauchen keinen Unterstrich. */
.fuss a { color: var(--nebel-hell); }
.fuss a:hover, .fuss a:focus-visible { color: var(--weiss); }

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
