/* CycloFine™ – Mein Zyklus-Gefühl (Umfrage)
   Gestaltung seit 13.09.2026: CycloFine-Erscheinung der Produktseite cyclofine.de
   (Palette Cream/Sage/Blush/Ink, Playfair Display · Lora · Inter).
   Mobile-first. Die Schriften liegen im Webspace-Root unter /fonts/. */

/* ---------- Fonts (selbst gehostet, Root-Pfade wie die Produktseite) ---------- */
@font-face { font-family:'Playfair Display'; src:url('/fonts/playfair-display-600.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Lora'; src:url('/fonts/lora-regular.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Inter'; src:url('/fonts/inter-regular.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Inter'; src:url('/fonts/inter-500.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Inter'; src:url('/fonts/inter-600.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }

:root {
  --color-paper: #FAF8F6;        /* Creme */
  --color-paper-deep: #F3EFEA;   /* Creme dunkel – seit 13.09.2026 nicht mehr verwendet */
  --color-sage: #E9F1E7;
  --color-blush: #F6D8CF;
  --color-accent: #E4A493;       /* dekorativ: Linien, Marker */
  --color-accent-text: #A85A44;  /* Akzenttext auf hellem Grund */
  --color-ink: #1A2233;
  --color-muted: #4C5361;        /* Sekundaertext, 7,29:1 auf Creme */
  --color-line: rgb(26 34 51 / 10%);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-accent: 'Lora', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  /* Drei Schriftgroessen wie auf der Produktseite — mehr gibt es nicht. */
  --fs-text: 1.0625rem;          /* 17,0px — Fliesstext */
  --fs-klein: .95rem;            /* 15,2px — Labels, Fussnoten, Sekundaertext */
  --fs-lead: 1.22rem;            /* 19,5px — Lora-Leads und Fragetexte */
  --radius-card: 22px;
  --radius-field: 14px;

  /* Aliase auf die Tokennamen der Produktseite — nur damit der Footer-Master
     (Abschnitt „Fuss") hier woertlich so stehen kann wie in css/start.css und
     css/style.css der Produktseite. Werte kommen aus den Tokens oben, nur
     --ink-15 hat in dieser Datei kein Gegenstueck. */
  --cream: var(--color-paper);
  --ink: var(--color-ink);
  --ink-70: var(--color-muted);
  --ink-15: rgb(26 34 51 / 15%);
  --ink-10: var(--color-line);
  --blush-deep: var(--color-accent);
  --font-ui: var(--font-sans);
  --wrap: 1160px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Innenbreite wie auf der Produktseite (dort css/style.css) — der Footer-Master
   setzt sie auf seinen beiden Zeilen voraus. */
.wrap { max-width:var(--wrap); margin-inline:auto; padding-inline:clamp(20px, 4vw, 40px); }

.registered-mark {
  font-size: 0.62em;
  line-height: 0;
}

.tm {
  font-size: .5em;
  vertical-align: super;
  font-weight: 400;
  color: var(--color-muted);
}

/* Fokus: rosé Akzent der Produktseite, in #A85A44 statt #E4A493 —
   #E4A493 erreicht auf Creme nur 2,0:1 und damit nicht die 3:1 fuer
   Bedienelemente; #A85A44 ist derselbe Rosé-Akzent mit 4,7:1. */
:focus-visible {
  outline: 2px solid var(--color-accent-text);
  outline-offset: 3px;
}

/* Kopf */

.site-header {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--color-line);
  text-align: center;
}

.wordmark {
  display: inline-block;
}

.wordmark img {
  display: block;
  width: 150px;
  height: auto;
}

@media (min-width: 760px) {
  .wordmark img {
    width: 180px;
  }
}

/* Grundlayout */

.shell {
  max-width: 680px;
  margin: 0 auto;
  padding: 34px 20px 60px;
}

/* Intro */

.eyebrow {
  margin: 0 0 10px;
  font-size: var(--fs-klein);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.intro h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.intro p {
  margin: 0 0 14px;
  color: var(--color-ink);
}

/* Zahlen-Einstieg */

.zahlen {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  border-left: 3px solid var(--color-accent);
  background: var(--color-sage);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  overflow: hidden;
}

.zahlen td {
  padding: 12px 16px;
  border-top: 1px solid var(--color-line);
  vertical-align: middle;
}

.zahlen tr:first-child td {
  border-top: 0;
}

.zahl {
  width: 1%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--color-accent-text);
}

.zahl-label {
  font-size: var(--fs-klein);
  line-height: 1.4;
}

.quelle-ref {
  font-size: 0.68em;
  line-height: 0;
}

.quelle-ref a {
  color: var(--color-muted);
  text-decoration: none;
  padding-left: 1px;
}

/* Quellen: seit 13.09.2026 letzter Inhaltsblock vor dem Footer (vorher im Fuß) */

.quellen {
  max-width: 680px;
  margin: 34px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--color-line);
  text-align: left;
}

.quellen h2 {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: var(--fs-klein);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.quellen ol {
  margin: 0;
  padding-left: 18px;
}

.quellen li {
  margin-bottom: 8px;
  font-size: var(--fs-klein);
  line-height: 1.5;
  color: var(--color-muted);
}

.quellen a {
  color: var(--color-accent-text);
  overflow-wrap: anywhere;
}

/* Fehlermeldung (Server-Validierung) */

.fehler-hinweis {
  margin: 22px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--color-accent-text);
  border-radius: var(--radius-field);
  background: var(--color-blush);
  color: var(--color-ink);
  font-size: var(--fs-klein);
}

/* Honeypot – aus dem Sichtbereich, nicht display:none (Bots) */

.hp-feld {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Karten */

.karte {
  margin-top: 34px;
  padding: 22px 20px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: #fff;
}

.karte-sage {
  background: var(--color-sage);
  border-color: transparent;
}

.karte h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Einverständnis */

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: var(--fs-text);
  line-height: 1.6;
}

.consent input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--color-ink);
}

/* Altersgruppe */

.alter-gruppe {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.alter-option {
  cursor: pointer;
}

.alter-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.alter-option span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #fff;
  font-size: var(--fs-text);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.alter-option input:checked + span {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-paper);
}

.alter-option input:focus-visible + span {
  outline: 2px solid var(--color-accent-text);
  outline-offset: 2px;
  border-color: var(--color-ink);
}

/* Hinweis: nichts ist Pflicht */

.frei-hinweis {
  margin: 34px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--color-accent-text);
  background: var(--color-blush);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  font-family: var(--font-accent);
  font-size: var(--fs-lead);
  line-height: 1.45;
}

/* Fragen */

.fragen {
  margin-top: 14px;
}

.frage {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--color-line);
}

.frage-nr {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  color: var(--color-accent-text);
}

.frage label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-accent);
  font-size: var(--fs-lead);
  line-height: 1.45;
}

.frage label em {
  color: var(--color-accent-text);
}

.optional-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  vertical-align: middle;
  font-family: var(--font-sans);
  font-size: var(--fs-klein);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-field);
  background: #fff;
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-text);
  line-height: 1.6;
  resize: vertical;
}

textarea:focus-visible {
  outline: 2px solid var(--color-accent-text);
  outline-offset: 1px;
  border-color: var(--color-ink);
}

/* Absenden */

.senden {
  margin-top: 44px;
  text-align: center;
}

.button {
  max-width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-text);
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.button-primary {
  background: var(--color-ink);
  color: var(--color-paper);
}

.button-primary:hover {
  background: #2A3550;
  transform: translateY(-2px);
}

.senden-hinweis {
  margin: 14px 0 0;
  font-size: var(--fs-klein);
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

/* Danke-Seite */

.danke {
  text-align: center;
  padding-top: 30px;
}

.danke h1 {
  margin: 18px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.danke p {
  margin: 0 auto;
  max-width: 46ch;
}

.danke-zeichen {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--color-accent);
  line-height: 1;
}

/* Zyklustagebuch-Karte (13.09.2026) — dieselbe Karte wie auf der Startseite
   (css/start.css) und im PMS-Hub (css/style.css) der Produktseite.
   Ueberschrift h2, weil darueber nur die H1 der Dankeseite steht.
   Die Dank-Sektion ist zentriert — die Karte ist bewusst linksbuendig.
   Steht NACH .danke, weil .danke p Rand und Maximalbreite setzt. */

/* Der Einleitungssatz vor der Karte ist der zweite Absatz der Dank-Sektion:
   .danke p setzt margin 0, sonst klebt er am Dank-Absatz. */
.danke > p + p { margin-top: 1em; }

.tagebuch-karte {
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: clamp(22px, 3vw, 34px);
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  text-align: left;
}

.tagebuch-karte h2 {
  margin: 0 0 .55em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.tagebuch-karte p {
  margin: 0;
  max-width: 62ch;
}

.tagebuch-karte .eyebrow {
  margin: 0 0 10px;
}

.tagebuch-karte .tagebuch-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  max-width: none;
  margin-top: clamp(20px, 2.6vw, 28px);
}

/* Rechtsseiten (Markup seit 13.09.2026 auf der Produktseite, Regeln bleiben) */

.legal h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.legal-lead {
  margin: 0 0 8px;
  color: var(--color-muted);
}

.legal-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
}

.legal-section p,
.legal-section ul {
  margin: 0 0 12px;
  font-size: var(--fs-klein);
}

.legal-section ul {
  padding-left: 20px;
}

.legal-section a {
  color: var(--color-accent-text);
}

.legal-address {
  margin: 0 0 14px;
  font-style: normal;
  font-size: var(--fs-klein);
}

.legal-address strong,
.legal-address span {
  display: block;
}

.legal-list {
  margin: 0;
  font-size: var(--fs-klein);
}

.legal-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-line);
}

.legal-list dt {
  flex: 0 0 150px;
  color: var(--color-muted);
}

.legal-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.legal-zurueck {
  margin-top: 36px;
}

.legal-zurueck a {
  color: var(--color-accent-text);
}

/* ---------- Footer (MASTER, seit 13.09.2026) ----------
   Dieser Block ist woertlich identisch in css/start.css, css/style.css und in
   der Umfrage-CSS (Repo cyclofine-umfrage, css/style.css). Aenderungen immer
   in allen drei Dateien. Footer-Spaltenkoepfe sind bewusst KEINE Headings
   (keine H2-Dubletten je Seite). */
.site-foot { background:var(--cream); border-top:1px solid var(--ink-10); padding-block:clamp(46px, 6vw, 70px) 30px; font-size:var(--fs-klein); }
.foot-grid { display:grid; gap:32px; }
.site-foot .foot-titel {
  font-family:var(--font-ui); font-size:var(--fs-klein); font-weight:600;
  letter-spacing:.18em; text-transform:uppercase; margin:0 0 .8em; color:var(--ink);
}
.site-foot .foot-h2-next { margin-top:1.6em; }
.site-foot p { color:var(--ink-70); }
.site-foot img { display:block; max-width:100%; height:auto; margin-bottom:14px; }
.site-foot a { color:inherit; text-decoration:none; border-bottom:1px solid var(--ink-15); }
.site-foot a:hover { border-bottom-color:var(--blush-deep); }
.foot-legal { margin-top:40px; padding-top:22px; border-top:1px solid var(--ink-10); }
.foot-legal p { font-size:var(--fs-klein); color:var(--ink-70); max-width:none; }
@media (min-width:761px) { .foot-grid { grid-template-columns:2fr 1fr 1fr; } }

/* Desktop-Erweiterung */

@media (min-width: 760px) {
  .intro h1 {
    font-size: 40px;
  }

  .karte {
    padding: 28px 30px;
  }

  .shell {
    padding-top: 54px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   Einheitlicher Seitenkopf (Werte aus der Produktseite cyclofine.de).
   Umschaltpunkt Burger -> Zeile: 900px (die Produktseite schaltet bei
   1100px, sie hat aber 7 Menuepunkte — hier sind es 5).
   ═══════════════════════════════════════════════════════════════════ */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-paper); /* Fallback: deckend, falls color-mix nicht greift */
  background: color-mix(in srgb, var(--color-paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-line);
}
.site-head .head-inner {
  /* Abstand mobil 16px (Marke - Tagebuch-Button - Burger), ab 1100px wieder 26px:
     das laengere Label "Tagebuch" braucht unter 1100px den Platz (14.09.2026). */
  display: flex; align-items: center; gap: 16px;
  max-width: 1160px; margin-inline: auto;
  padding: 14px clamp(20px, 4vw, 40px);
}

/* Wortmarke im Kopfbereich — Text kann anders als ein Logo-Bild nicht
   schrumpfen, daher waechst er mit dem Viewport (94px schmal, 114px breit). */
.brand-word {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  letter-spacing: -.01em; color: var(--color-ink); text-decoration: none;
  line-height: 1; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand-mark { height: 32px; width: auto; display: block; }

.site-head .main-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px clamp(20px, 4vw, 40px) 18px;
  background: var(--color-paper); /* Fallback: deckend, falls color-mix nicht greift */
  background: color-mix(in srgb, var(--color-paper) 96%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-line);
  visibility: hidden; opacity: 0; translate: 0 -8px; pointer-events: none;
  transition: opacity .25s ease, translate .25s ease, visibility 0s linear .25s;
}
.site-head .main-nav.open {
  visibility: visible; opacity: 1; translate: 0 0; pointer-events: auto;
  transition: opacity .25s ease, translate .25s ease, visibility 0s;
}
.site-head .main-nav a {
  font-size: var(--fs-klein); font-weight: 500; text-decoration: none;
  color: var(--color-muted); padding-block: .7em;
  transition: color .2s ease;
}
.site-head .main-nav a:hover,
.site-head .main-nav a[aria-current="page"] { color: var(--color-ink); }

/* Kaufen-Button im Kopf: .btn .btn-ink .btn-small der Produktseite */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-text);
  padding: .9em 1.9em; border-radius: 999px; text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--color-ink); color: var(--color-paper); }
.btn-ink:hover { background: #2A3550; }
.btn-small { padding: .6em 1.4em; font-size: var(--fs-klein); }
/* Label "Tagebuch" (seit 14.09.2026) ist laenger als das fruehere "Kaufen" —
   der Kopfbutton darf trotzdem nie umbrechen. */
.site-head .btn { margin-left: auto; white-space: nowrap; }

/* Burger-Toggle (nur mobil sichtbar) */
.site-head .nav-toggle {
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-content: center; gap: 5px;
  background: transparent; border: 1px solid var(--color-line);
  border-radius: 999px; cursor: pointer;
}
.site-head .nav-toggle span {
  display: block; width: 16px; height: 2px; border-radius: 2px;
  background: var(--color-ink);
  transition: transform .25s ease, opacity .25s ease;
}
.site-head .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-head .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-head .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1100px) { /* Umschaltpunkt wie Produktseite: 7 Menuepunkte (13.09.2026) */
  .site-head .nav-toggle { display: none; }
  .site-head .head-inner { gap: 26px; }
  .site-head .main-nav {
    position: static; flex-direction: row; gap: clamp(14px, 2.4vw, 28px); margin-left: auto;
    padding: 0; background: transparent; backdrop-filter: none; border-bottom: none;
    visibility: visible; opacity: 1; translate: none; pointer-events: auto;
  }
  .site-head .main-nav a { padding-block: 0; }
  .site-head .btn { margin-left: 0; }
}

.skip-link {
  position: fixed; left: 16px; top: -64px; z-index: 100;
  background: var(--color-ink); color: var(--color-paper);
  padding: .6em 1.2em; border-radius: 999px;
  font-size: var(--fs-klein); font-weight: 600; text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus-visible { top: 12px; }

/* Trefferflaeche kleiner Links (Fussnoten-Ziffern, Quellen, Footer) auf >= 24px */
.site-foot a, .foot-legal a, sup a, .quellen a, .legal-zurueck a {
  display: inline-block;
  padding-block: .32em;
}
sup a { padding-inline: .25em; }

/* Fussnoten-Ziffern: Trefferflaeche vergroessern, ohne die Darstellung zu aendern */
sup a { position: relative; display: inline; padding: 0; }
sup a::after { content: ''; position: absolute; inset: -9px -7px; }
.site-head .main-nav a { padding-block: .8em; }

/* Kontaktlinks auf den Rechtsseiten: gleiche Mindest-Trefferflaeche */
.legal-list a, .legal a, .legal-address a { display: inline-block; padding-block: .4em; }

/* Sehr schmale Geraete (320px): Kopfzeile darf nicht ueberlaufen */
@media (max-width: 380px) {
  .site-head .head-inner { gap: 8px; padding-inline: 16px; }
  .brand-mark { height: 26px; }
  .site-head .btn-small { padding: .55em .85em; }
}
