/*
 * CREATE Quiz — Brand Design System (build-frei nachgebaut aus dem Lovable-Stand)
 * Carsten Wehrle · CI-Master 2026
 * Navy #1A2537 · Sand #D9CFC3 · Off-White #F5F5F5 · Slate #5C5E60
 * Orange #C7742B (CTA, max ~15%) · Sage #AAB7A6
 */

/* ---------- Fonts (selbst gehostet, DSGVO) ---------------------------------- */
@font-face { font-family:'Lato'; font-style:normal; font-weight:400; font-display:swap;
  src:url('../fonts/lato-400-normal.woff2') format('woff2'); }
@font-face { font-family:'Lato'; font-style:italic; font-weight:400; font-display:swap;
  src:url('../fonts/lato-400-italic.woff2') format('woff2'); }
@font-face { font-family:'Lato'; font-style:normal; font-weight:700; font-display:swap;
  src:url('../fonts/lato-700-normal.woff2') format('woff2'); }
@font-face { font-family:'Montserrat'; font-style:normal; font-weight:600 700; font-display:swap;
  src:url('../fonts/montserrat.woff2') format('woff2'); }
@font-face { font-family:'Playfair Display'; font-style:italic; font-weight:500 600; font-display:swap;
  src:url('../fonts/playfair-italic.woff2') format('woff2'); }

/* ---------- Tokens --------------------------------------------------------- */
:root {
  --radius: 0.5rem;
  --navy: oklch(0.27 0.03 252);
  --sand: oklch(0.85 0.02 70);
  --offwhite: oklch(0.97 0 0);
  --slate-brand: oklch(0.46 0.005 250);
  --orange-brand: oklch(0.62 0.13 50);
  --orange-brand-hover: oklch(0.56 0.13 50);
  --sage: oklch(0.74 0.025 140);
  --gray-mid: oklch(0.58 0.005 250);
  --card: oklch(1 0 0);
  --muted: oklch(0.94 0.005 250);
  --destructive: oklch(0.55 0.22 27);
  --border: oklch(0.88 0.01 250);

  --font-sans: 'Lato', system-ui, sans-serif;
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-statement: 'Playfair Display', Georgia, serif;
  --shadow-card: 0 1px 2px oklch(0.2 0.02 250 / 0.04), 0 4px 16px oklch(0.2 0.02 250 / 0.04);
}

/* ---------- Reset / Base --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--offwhite);
  color: var(--slate-brand);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange-brand); outline-offset: 3px; border-radius: 2px; }

/* ---------- Layout-Helfer -------------------------------------------------- */
.section { padding: 5rem 1.5rem; }
@media (min-width:768px){ .section{ padding:6rem 2rem; } }
@media (min-width:1024px){ .section{ padding:7rem 2rem; } }
.container-prose { max-width: 600px; margin-inline: auto; }
.container-wide  { max-width: 980px; margin-inline: auto; }
.scroll-mt { scroll-margin-top: 4rem; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* Signatur-Element: 8px oranger Punkt */
.orange-dot { display:inline-block; width:8px; height:8px; border-radius:9999px;
  background-color: var(--orange-brand); flex-shrink:0; }

.brand-card { background-color: var(--sand); padding: 2rem; border-radius: var(--radius); }
.card-white { background:var(--card); border:1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); }

.statement { font-family: var(--font-statement); font-style: italic; color: var(--navy); }

.bg-offwhite { background-color: var(--offwhite); }
.bg-sand { background-color: var(--sand); }

/* ---------- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 1rem 2rem; border-radius: var(--radius); border: 0; cursor: pointer;
  text-decoration: none; transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--orange-brand); color: #fff; }
.btn-primary:hover { background: var(--orange-brand-hover); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--slate-brand); padding: .75rem 1rem; font-weight: 500; }
.btn-ghost:hover:not(:disabled) { color: var(--navy); }
.btn-ghost:disabled { opacity: .3; cursor: default; }

.link-orange { color: var(--orange-brand); text-decoration: none; font-weight: 700; }
.link-orange:hover { text-decoration: underline; }

.hint { color: var(--gray-mid); font-size: .875rem; }
.error-text { color: var(--destructive); font-size: .875rem; margin-top: 1rem; }

/* ---------- Hero ----------------------------------------------------------- */
#hero { position: relative; display: flex; align-items: center; min-height: 80vh; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.hero-kicker { margin-bottom: 1.5rem; font-size: .875rem; font-style: italic; color: var(--orange-brand); font-weight: 500; }
.hero-title { font-size: clamp(2.25rem, 5.5vw, 3.5rem); line-height: 1.05; letter-spacing: -.02em; }
.hero-sub { margin-top: .75rem; font-style: italic; color: var(--orange-brand);
  font-size: clamp(1.125rem, 2.2vw, 1.5rem); line-height: 1.3; }
.hero-lead { margin-top: 1.5rem; font-size: 1.125rem; color: var(--slate-brand); line-height: 1.6; max-width: 600px; }
.hero-cta { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.hero-visual { display: none; }
.hero-visual-mobile { display: flex; justify-content: center; margin: 2rem 0; }
.hero-visual-mobile img { height: 180px; width: auto; }
.hero-text { text-align: center; }
@media (min-width:768px){
  .hero-grid { grid-template-columns: 3fr 2fr; gap: 3rem; }
  .hero-text { text-align: left; }
  .hero-lead { margin-inline: 0; }
  .hero-cta { align-items: flex-start; }
  .hero-visual { display: flex; justify-content: center; align-items: center; }
  .hero-visual img { height: 280px; width: auto; }
  .hero-visual-mobile { display: none; }
}
@media (min-width:1024px){ .hero-visual img { height: 320px; } }

/* ---------- TypePreview ---------------------------------------------------- */
.section-h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: .75rem; }
.section-sub { font-size: 1.125rem; color: var(--slate-brand); max-width: 42rem; margin: 0 auto 2rem; }
.stats-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-bottom: 2.5rem; padding: 0; list-style: none; }
.stat-pill { display: flex; align-items: center; gap: .75rem; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; }
.stat-ic { display: flex; align-items: center; justify-content: center; height: 2.5rem; width: 2.5rem;
  border-radius: 9999px; background: var(--offwhite); border: 1px solid var(--border); }
.stat-ic svg { height: 1.25rem; width: 1.25rem; color: var(--navy); }
.stat-val { font-family: var(--font-heading); font-weight: 700; color: var(--navy); font-size: 1.5rem; line-height: 1; }
.stat-lbl { color: var(--slate-brand); font-size: .875rem; }
.stat-lbl-strong { font-family: var(--font-heading); font-weight: 600; color: var(--navy); font-size: 1rem; }

.type-grid { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width:640px){ .type-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width:1024px){ .type-grid { grid-template-columns: repeat(5, 1fr); } }
.type-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.type-ic { display: flex; align-items: center; justify-content: center; height: 4rem; width: 4rem;
  border-radius: 9999px; background: var(--offwhite); border: 1px solid var(--border); margin-bottom: 1rem; }
.type-ic svg { height: 2rem; width: 2rem; color: var(--navy); }
.type-rule { display: block; height: 2px; width: 2rem; background: var(--orange-brand); margin-bottom: .75rem; border-radius: 9999px; }
.type-card h3 { font-family: var(--font-heading); font-weight: 600; color: var(--navy); font-size: 1.125rem; }

/* ---------- WhoFor / Listen ------------------------------------------------ */
.check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.check-list li { display: flex; align-items: flex-start; gap: 1rem; }
.check-list .txt { font-size: 1.125rem; color: var(--navy); line-height: 1.6; }
.note-quote { margin-top: 3rem; font-style: italic; color: var(--gray-mid); font-size: 1rem;
  line-height: 1.6; border-left: 2px solid var(--sage); padding-left: 1rem; }

/* ---------- Quiz ----------------------------------------------------------- */
.quiz-progress { margin-bottom: 2.5rem; }
.quiz-progress-top { display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .75rem; font-size: .875rem; color: var(--gray-mid); }
.quiz-progress-track { height: 6px; background: var(--sand); border-radius: 9999px; overflow: hidden; }
.quiz-progress-bar { height: 100%; background: var(--orange-brand); width: 0; transition: width .3s ease-out; }
.question-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.question-card h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.35; margin-bottom: 2rem; }
@media (min-width:768px){ .question-card h3 { font-size: 1.5rem; } }
.answers { display: flex; flex-direction: column; gap: .75rem; }
.answer {
  display: flex; align-items: flex-start; gap: 1rem; padding: 1rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--card); cursor: pointer; transition: border-color .15s, background-color .15s;
}
@media (min-width:768px){ .answer { padding: 1.25rem; } }
.answer:hover { border-color: color-mix(in oklab, var(--orange-brand) 60%, transparent); }
.answer.selected { border-color: var(--orange-brand); background: color-mix(in oklab, var(--orange-brand) 5%, white); }
.answer input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.answer .dot { margin-top: .35rem; display: inline-block; height: .75rem; width: .75rem; border-radius: 9999px;
  border: 2px solid var(--slate-brand); flex-shrink: 0; transition: border-color .15s, background-color .15s; }
.answer.selected .dot { border-color: var(--orange-brand); background: var(--orange-brand); }
.answer .atxt { font-size: 1rem; color: var(--navy); line-height: 1.6; }
.quiz-nav { margin-top: 2rem; display: flex; align-items: center; justify-content: space-between; }
.quiz-nav .tip { font-size: .75rem; color: var(--gray-mid); display: inline-flex; align-items: center; gap: .5rem; }

/* ---------- Ergebnis / Rolle ---------------------------------------------- */
.eyebrow { font-size: .875rem; text-transform: uppercase; letter-spacing: .2em; color: var(--gray-mid); font-weight: 500; }
.result-you { margin-top: 2.5rem; margin-bottom: .5rem; font-size: .875rem; color: var(--slate-brand);
  text-transform: uppercase; letter-spacing: .1em; }
.result-name { font-family: var(--font-heading); font-weight: 700; color: var(--navy);
  font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; }
.start-box { margin-top: 3rem; text-align: left; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; }
@media (min-width:768px){ .start-box { padding: 2rem; } }
.start-box .lbl { font-size: .875rem; color: var(--slate-brand); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .75rem; }
.start-box .letter { font-family: var(--font-heading); font-weight: 700; color: var(--navy); font-size: 1.5rem; margin-bottom: .75rem; }
@media (min-width:768px){ .start-box .letter { font-size: 1.875rem; } }
.start-box .desc { font-size: 1.125rem; color: var(--slate-brand); line-height: 1.6; }
.divider-top { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }

/* ---------- KlickTipp-Formular -------------------------------------------- */
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
@media (min-width:768px){ .form-card { padding: 2.5rem; } }
.form-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .75rem; }
@media (min-width:768px){ .form-card h3 { font-size: 1.5rem; } }
.form-intro { font-size: 1rem; color: var(--slate-brand); line-height: 1.6; margin-bottom: 2rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: .875rem; font-weight: 600; color: var(--navy); margin-bottom: .5rem; }
.field input[type=text], .field input[type=email] {
  width: 100%; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--navy); font-family: var(--font-sans); font-size: 1rem;
}
.field input:focus { outline: none; border-color: var(--orange-brand); }
.consent { display: flex; align-items: flex-start; gap: .75rem; padding-top: .5rem; margin-bottom: 1.25rem; }
.consent input { margin-top: .35rem; height: 1rem; width: 1rem; accent-color: var(--orange-brand); flex-shrink: 0; }
.consent label { font-size: .875rem; color: var(--slate-brand); line-height: 1.6; }
.consent a { color: var(--orange-brand); text-decoration: underline; }
/* Freiwillige Newsletter-Einwilligung: sichtbar abgesetzt von der Pflicht-Einwilligung,
   damit erkennbar bleibt, dass sie unabhängig ist (Kopplungsverbot). */
.consent-optional { margin-top: .25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.req { color: var(--orange-brand); }

/* ---------- ResultDetail --------------------------------------------------- */
.detail-h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 2rem; }
.detail-p { font-size: 1.125rem; color: var(--slate-brand); line-height: 1.6; margin-bottom: 1.5rem; }
.detail-p.last { margin-bottom: 3rem; }
.detail-card { background: var(--sand); border-radius: var(--radius); padding: 2rem; margin-bottom: 2.5rem; }
.detail-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
@media (min-width:768px){ .detail-card h3 { font-size: 1.25rem; } }
.detail-card .intro { color: var(--slate-brand); margin-bottom: 1.5rem; line-height: 1.6; }
.pathlist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.pathlist li { display: flex; align-items: flex-start; gap: 1rem; }
.pathlist .path-t { font-family: var(--font-heading); font-weight: 600; color: var(--navy); margin-bottom: .25rem; }
.pathlist .path-d { color: var(--slate-brand); line-height: 1.6; }
.planlist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.planlist li { display: flex; align-items: flex-start; gap: 1rem; }
.planlist .n { font-family: var(--font-heading); font-weight: 600; color: var(--orange-brand); flex-shrink: 0; width: 1.5rem; }
.planlist .s { color: var(--navy); line-height: 1.6; }
.transparenz { font-style: italic; color: var(--gray-mid); font-size: .95rem; line-height: 1.6;
  border-left: 2px solid var(--sage); padding-left: 1rem; margin-bottom: 3rem; }

/* ---------- About ---------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width:768px){ .about-grid { grid-template-columns: 1fr 1.4fr; gap: 4rem; } }
.about-portrait { aspect-ratio: 4/5; width: 100%; max-width: 24rem; margin-inline: auto; overflow: hidden;
  border-radius: var(--radius); background: var(--offwhite); }
@media (min-width:768px){ .about-portrait { margin-inline: 0; } }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-body { display: flex; flex-direction: column; gap: 1.5rem; font-size: 1.125rem; color: var(--slate-brand); line-height: 1.6; }
.about-more { margin-top: 2rem; font-size: .875rem; color: var(--slate-brand); }
.about-more a { color: var(--orange-brand); font-weight: 500; text-decoration: none; }
.about-more a:hover { text-decoration: underline; }

/* ---------- FAQ (Accordion) ------------------------------------------------ */
.acc-item { border-bottom: 1px solid var(--border); }
.acc-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  text-align: left; font-family: var(--font-heading); font-weight: 600; color: var(--navy);
  font-size: 1rem; padding: 1.25rem 0; background: none; border: 0; cursor: pointer; }
@media (min-width:768px){ .acc-trigger { font-size: 1.125rem; } }
.acc-trigger .chev { transition: transform .2s ease; flex-shrink: 0; }
.acc-item.open .acc-trigger .chev { transform: rotate(180deg); }
.acc-panel { display: none; color: var(--slate-brand); font-size: 1rem; line-height: 1.6; padding-bottom: 1.25rem; }
.acc-item.open .acc-panel { display: block; }

/* ---------- Footer --------------------------------------------------------- */
.site-footer { background: var(--offwhite); border-top: 1px solid var(--border); padding: 3rem 1.5rem; }
.footer-tag { font-size: .875rem; color: var(--gray-mid); margin-bottom: 1.5rem; line-height: 1.6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; font-size: .875rem; margin-bottom: 1.5rem; }
.footer-nav a { color: var(--slate-brand); text-decoration: none; transition: color .15s; }
.footer-nav a:hover { color: var(--orange-brand); }
.footer-copy { font-size: .75rem; color: var(--gray-mid); }
.footer-inner { text-align: center; }
@media (min-width:768px){
  .footer-inner { text-align: left; }
  .footer-nav { justify-content: flex-start; }
}

/* ---------- Was ist CREATE? (zwischen Hero und Typ-Vorschau) --------------- */
.create-eyebrow { font-size: .875rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--slate-brand); font-weight: 600; margin-bottom: .75rem; }
.create-intro { font-size: 1.0625rem; color: var(--navy); line-height: 1.65;
  max-width: 46rem; margin-bottom: 2.5rem; }

.create-grid { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr;
  gap: .875rem; margin-bottom: 2.25rem; }
@media (min-width: 640px) { .create-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .create-grid { grid-template-columns: repeat(3, 1fr); } }

.create-card { background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.25rem;
  display: flex; align-items: flex-start; gap: .9rem; }
/* Buchstaben-Marker: Navy, nur ein kleiner oranger Punkt als Akzent */
.create-letter { position: relative; flex-shrink: 0; padding-right: .35rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.6rem;
  line-height: 1.1; color: var(--navy); }
.create-letter::after { content: ""; position: absolute; right: 0; bottom: .28em;
  width: 5px; height: 5px; border-radius: 9999px; background: var(--orange-brand); }
.create-body h3 { font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
  color: var(--navy); margin-bottom: .2rem; }
.create-body p { font-size: .925rem; color: var(--slate-brand); line-height: 1.5; }

/* Einordnung: tritt bewusst zurück (kleiner, dezente Rahmung) */
.create-note { border-left: 2px solid var(--sage); padding-left: 1rem;
  display: flex; flex-direction: column; gap: .7rem; margin-bottom: 2rem; }
.create-note p { font-size: .9375rem; color: var(--navy); line-height: 1.6; }
.create-note strong { font-weight: 700; }
/* Links in Navy statt Orange: Orange auf Sand erreicht nur 2,4:1 (zu wenig zum
   Lesen) und bleibt den Quiz-CTAs vorbehalten. Navy erreicht 9,5:1. */
.create-note a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.create-note a:hover { text-decoration-thickness: 2px; }

/* Überleitung: drei eigene Zeilen, doppelte Schriftgröße (17px -> 34px).
   clamp, damit die Zeilen auf schmalen Displays nicht selbst wieder umbrechen. */
.create-bridge { text-align: center; color: var(--navy); font-family: var(--font-heading);
  font-weight: 600; font-size: clamp(1.375rem, 4.2vw, 2.125rem); line-height: 1.3;
  max-width: 42rem; margin-inline: auto; }
/* Auf sehr schmalen Displays passt Zeile 1 und 3 nicht auf eine Zeile.
   balance sorgt dann für einen gleichmäßigen statt ausgefransten Umbruch. */
.create-bridge span { display: block; text-wrap: balance; }

/* Fade-in für dynamisch eingeblendete Sektionen */
.fade-in { animation: fadeIn .4s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
