/* ========================================================================
   adhsiq.netlify.app - Designsystem
   Palette: off-white, sage, deep petrol, gold accent
   Typografie: serifenbetonte Headlines, klare Sans für Body
   ======================================================================== */

:root {
  --bg: #F7F5F1;
  --bg-alt: #EFEBE4;
  --ink: #1F3A3D;
  --ink-soft: #4A5A5C;
  --ink-mute: #7A8A8C;
  --sage: #A9B8A3;
  --sage-soft: #D5DCD0;
  --gold: #C9A86B;
  --gold-soft: #E7D8B7;
  --line: #DCD7CD;
  --white: #FFFFFF;
  --danger: #B5564A;
  --shadow-sm: 0 1px 2px rgba(31, 58, 61, 0.04), 0 1px 3px rgba(31, 58, 61, 0.06);
  --shadow-md: 0 4px 12px rgba(31, 58, 61, 0.08), 0 2px 6px rgba(31, 58, 61, 0.05);
  --shadow-lg: 0 20px 50px rgba(31, 58, 61, 0.12);
  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 18px;
  --serif: 'Cormorant Garamond', 'Source Serif Pro', ui-serif, Georgia, 'Times New Roman', serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  font-weight: 500;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; font-weight: 600; font-family: var(--sans); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-soft); }

p { margin: 0 0 1em 0; color: var(--ink-soft); }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 1.5px; transition: color .2s; }
a:hover { color: var(--gold); }

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; }

/* ====================== HEADER / NAV ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 241, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand {
  font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0.02em;
  text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 10px;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--sage) 0%, var(--ink) 80%);
  box-shadow: inset 0 0 0 2px var(--gold-soft);
}
.brand-text strong { font-weight: 500; }
.brand-text span { color: var(--ink-mute); margin-left: 4px; font-size: 0.85em; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; }
.nav-links a:hover { color: var(--gold); }

/* Sprachumschalter */
.lang-switch {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.8rem; letter-spacing: 0.06em;
  padding-left: 20px; border-left: 1px solid var(--line);
}
.lang-switch a { text-decoration: none; color: var(--ink-mute); }
.lang-switch a:hover { color: var(--gold); }
.lang-switch .lang-cur { color: var(--ink); font-weight: 600; }
.lang-switch .lang-sep { color: var(--line); }

@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links > a { display: none; } /* Menüpunkte aus, Sprachumschalter bleibt */
  .lang-switch { border-left: none; padding-left: 0; }
}

/* ====================== HERO ==================================== */
.hero {
  padding: 80px 0 60px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 50px 0 30px; }
}
.eyebrow {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--gold); font-weight: 600; margin-bottom: 18px; display: inline-block;
}
.hero h1 { margin-bottom: 22px; }
.hero p.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 540px; }
.hero-art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--sage-soft);
  aspect-ratio: 3 / 2;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

/* ====================== BUTTONS ================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-family: var(--sans); font-size: 0.98rem; font-weight: 500;
  text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: all .18s ease; line-height: 1;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
}
.btn-primary:hover { background: var(--gold); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ====================== TEST CARDS ============================== */
.tests {
  padding: 60px 0 80px;
}
.tests-head { text-align: center; margin-bottom: 56px; }
.tests-head p { max-width: 580px; margin: 0 auto; }

.test-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
@media (max-width: 800px) { .test-cards { grid-template-columns: 1fr; } }

/* Testbibliothek: 3-spaltiges Grid für viele Karten + Kategorie-Gruppen */
.test-library { padding: 60px 0 80px; }
.category-block { margin-bottom: 56px; }
.category-block:last-child { margin-bottom: 0; }
.category-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
  gap: 16px; flex-wrap: wrap;
}
.category-head h2 { margin: 0; font-size: 1.7rem; }
.category-head .category-sub { color: var(--ink-mute); font-size: 0.95rem; margin: 0; }
.test-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 980px) { .test-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .test-grid { grid-template-columns: 1fr; } }

.card.card-compact .card-img { aspect-ratio: 16 / 10; }
.card.card-compact .card-body { padding: 22px 24px 24px; }
.card.card-compact h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card.card-compact p { font-size: 0.93rem; line-height: 1.55; }
.card.card-compact .meta-list { font-size: 0.82rem; margin: 8px 0 16px; }
.card.card-compact .btn { padding: 10px 20px; font-size: 0.92rem; }

/* Featured-Tests (ADHS + IQ) hervorgehoben oben */
.featured-tests {
  padding: 50px 0 30px;
}
.featured-tests .test-cards { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .featured-tests .test-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .featured-tests .test-cards { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-img { aspect-ratio: 16 / 11; background: var(--sage-soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 28px 30px 30px; flex: 1; display: flex; flex-direction: column; }
.card .meta {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--gold); font-weight: 600; margin-bottom: 8px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.97rem; }
.card ul.meta-list {
  list-style: none; padding: 0; margin: 10px 0 22px;
  font-size: 0.88rem; color: var(--ink-mute);
}
.card ul.meta-list li {
  padding: 6px 0; border-bottom: 1px dashed var(--line);
  display: flex; justify-content: space-between;
}
.card ul.meta-list li:last-child { border-bottom: none; }
.card .btn { align-self: flex-start; margin-top: auto; }

/* ====================== INFO / METHOD SECTION =================== */
.method {
  background: var(--bg-alt);
  padding: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.method-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
@media (max-width: 900px) { .method-grid { grid-template-columns: 1fr; } }
.method-img {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 1 / 1; max-width: 480px;
}
.method-img img { width: 100%; height: 100%; object-fit: cover; }
.method ul {
  list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px;
}
.method li {
  padding-left: 28px; position: relative; color: var(--ink-soft); font-size: 1.02rem;
}
.method li:before {
  content: ""; position: absolute; left: 0; top: 0.65em;
  width: 14px; height: 1.5px; background: var(--gold);
}

/* ====================== DISCLAIMER ============================== */
.disclaimer {
  padding: 56px 0; background: var(--bg);
}
.disclaimer-box {
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  padding: 28px 32px; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow-sm);
}
.disclaimer-box h4 { color: var(--ink); margin-bottom: 10px; }
.disclaimer-box p { font-size: 0.95rem; margin-bottom: 8px; }
.disclaimer-box p:last-child { margin-bottom: 0; }

/* ====================== FOOTER ================================== */
.site-footer {
  padding: 50px 0 40px; background: var(--ink); color: var(--sage-soft);
  margin-top: 60px;
}
.site-footer .container { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.site-footer a { color: var(--sage-soft); text-decoration-color: var(--gold); }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand { color: var(--bg); }
.site-footer .brand-text span { color: var(--sage); }
.site-footer small { color: var(--sage); font-size: 0.85rem; }

/* ====================== TEST UI ================================= */
.test-shell {
  padding: 40px 0 80px;
}
.test-progress {
  position: sticky; top: 65px; z-index: 30;
  background: var(--bg);
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.progress-bar {
  height: 3px; background: var(--line); border-radius: 2px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--sage), var(--gold));
  transition: width .35s ease; width: 0%;
}
.progress-label {
  display: flex; justify-content: space-between; font-size: 0.86rem;
  color: var(--ink-mute); margin-bottom: 10px; letter-spacing: 0.02em;
}

.test-intro {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 44px 48px;
  box-shadow: var(--shadow-sm); margin-bottom: 30px;
}
@media (max-width: 640px) { .test-intro { padding: 30px 24px; } }
.test-intro h1 { margin-bottom: 8px; }
.test-intro .eyebrow { margin-bottom: 22px; }

.section-banner {
  background: var(--ink); color: var(--bg);
  padding: 26px 32px; border-radius: var(--radius);
  margin: 30px 0 24px;
}
.section-banner h2 { color: var(--bg); margin-bottom: 6px; font-size: 1.5rem; }
.section-banner p { color: var(--sage-soft); margin: 0; font-size: 0.95rem; }

/* ----- Item (Likert) ----- */
.item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 30px;
  margin-bottom: 14px; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease;
}
.item.is-answered { border-color: var(--sage); }
.item-num {
  font-size: 0.78rem; color: var(--gold); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px;
}
.item-q {
  font-family: var(--serif); font-size: 1.22rem; line-height: 1.4;
  color: var(--ink); margin-bottom: 22px; font-weight: 500;
}
.likert {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.likert.cols-2 { grid-template-columns: repeat(2, 1fr); }
.likert.cols-3 { grid-template-columns: repeat(3, 1fr); }
.likert.cols-4 { grid-template-columns: repeat(4, 1fr); }
.likert.cols-6 { grid-template-columns: repeat(6, 1fr); }
.likert.cols-7 { grid-template-columns: repeat(7, 1fr); }
@media (max-width: 640px) {
  .likert,
  .likert.cols-2,
  .likert.cols-3,
  .likert.cols-4,
  .likert.cols-5,
  .likert.cols-6,
  .likert.cols-7 { grid-template-columns: 1fr; gap: 6px; }
}
.likert label {
  position: relative; cursor: pointer;
  background: var(--bg-alt); border: 1.5px solid transparent;
  border-radius: var(--radius-sm); padding: 14px 12px;
  text-align: center; font-size: 0.88rem; line-height: 1.3;
  color: var(--ink-soft); transition: all .15s ease;
  display: flex; align-items: center; justify-content: center; min-height: 64px;
}
.likert label:hover { background: var(--sage-soft); color: var(--ink); }
.likert input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.likert input[type="radio"]:checked + span,
.likert label.is-selected { /* fallback */ }
.likert label.is-selected,
.likert label:has(input:checked) {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}

/* ----- MCQ (IQ items) ----- */
.mcq {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px;
}
@media (max-width: 520px) { .mcq { grid-template-columns: 1fr; } }
.mcq label {
  cursor: pointer; background: var(--bg-alt); border: 1.5px solid transparent;
  border-radius: var(--radius-sm); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  font-size: 1rem; color: var(--ink); transition: all .15s ease;
  min-height: 56px;
}
.mcq label:hover { background: var(--sage-soft); }
.mcq input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.mcq label .opt-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--serif); font-weight: 600; font-size: 0.95rem;
  flex-shrink: 0;
}
.mcq label:has(input:checked) {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.mcq label:has(input:checked) .opt-letter {
  background: var(--gold); color: var(--ink); border-color: var(--gold);
}

.matrix-stim {
  display: flex; justify-content: center; align-items: center;
  padding: 20px 0 28px;
}
.matrix-stim svg { max-width: 100%; height: auto; }

.iq-options-svg {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px;
}
@media (max-width: 520px) { .iq-options-svg { grid-template-columns: repeat(2, 1fr); } }
.iq-options-svg label {
  cursor: pointer; background: var(--bg-alt); border: 1.5px solid transparent;
  border-radius: var(--radius-sm); padding: 12px;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1;
  transition: all .15s ease;
}
.iq-options-svg label:hover { background: var(--sage-soft); }
.iq-options-svg label svg { width: 100%; height: 100%; }
.iq-options-svg input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.iq-options-svg label:has(input:checked) {
  background: var(--ink); border-color: var(--ink);
}
.iq-options-svg label:has(input:checked) svg { filter: invert(1) hue-rotate(180deg) brightness(1.4); }

/* ----- Action row ----- */
.actions-row {
  display: flex; justify-content: space-between; gap: 14px;
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line);
}
.actions-row .right { display: flex; gap: 12px; }

/* ====================== RESULT PAGE ============================= */
.result-shell { padding: 50px 0 80px; }
.result-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 56px 60px;
  box-shadow: var(--shadow-md); margin-bottom: 30px; position: relative;
}
@media (max-width: 640px) { .result-card { padding: 32px 24px; } }
.result-card:before {
  content: ""; position: absolute; top: 0; left: 60px; right: 60px; height: 3px;
  background: linear-gradient(90deg, var(--sage), var(--gold));
  border-radius: 0 0 4px 4px;
}
.result-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line);
  flex-wrap: wrap; gap: 12px;
}
.result-head h1 { font-size: 2.2rem; margin: 0; }
.result-head .meta-info { font-size: 0.92rem; color: var(--ink-mute); text-align: right; }

.score-big {
  display: flex; align-items: baseline; gap: 14px; margin: 18px 0 8px;
}
.score-big .value {
  font-family: var(--serif); font-size: 4rem; line-height: 1; color: var(--ink); font-weight: 500;
}
.score-big .unit { font-size: 1rem; color: var(--ink-mute); }
.score-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 720px) { .score-row { grid-template-columns: 1fr; gap: 22px; } }

.gauge {
  position: relative; aspect-ratio: 2 / 1; max-width: 360px;
}
.gauge svg { width: 100%; height: 100%; }
.gauge.gauge-custom { aspect-ratio: auto; max-width: 380px; }
.gauge.gauge-custom svg { height: auto; }

.interpretation {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 24px 28px; margin: 24px 0; border-left: 3px solid var(--sage);
}
.interpretation h3 { margin-top: 0; }
.interpretation p { font-size: 1rem; color: var(--ink-soft); margin-bottom: 8px; }
.interpretation p:last-child { margin-bottom: 0; }

.subscale-list { display: grid; gap: 16px; margin: 24px 0; }
.subscale {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; background: var(--white);
}
.subscale-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.subscale-head strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.subscale-head .val { color: var(--ink-soft); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.subscale-bar { height: 6px; background: var(--bg-alt); border-radius: 3px; overflow: hidden; }
.subscale-bar > div { height: 100%; background: linear-gradient(90deg, var(--sage), var(--gold)); transition: width .4s; }
.subscale .note { font-size: 0.85rem; color: var(--ink-mute); margin-top: 8px; }

.result-disclaimer {
  margin-top: 30px; padding: 22px 26px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt);
  font-size: 0.9rem; color: var(--ink-soft);
}
.result-disclaimer strong { color: var(--ink); }

.print-bar {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 12px;
}
.print-bar .btn { min-width: 180px; justify-content: center; }

.no-print { /* used to hide things while printing */ }

/* ====================== TEST META CHIPS ========================= */
.test-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px;
}
.test-tag {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-alt); color: var(--ink-soft);
  border: 1px solid var(--line); font-weight: 600;
}
.test-tag.tag-gold { background: rgba(201,168,107,0.12); color: var(--gold); border-color: var(--gold-soft); }
.test-tag.tag-sage { background: rgba(169,184,163,0.18); color: #4f6b54; border-color: var(--sage-soft); }

/* ====================== UTILITIES =============================== */
.center { text-align: center; }
.muted { color: var(--ink-mute); }
.small { font-size: 0.88rem; }
.divider { height: 1px; background: var(--line); margin: 40px 0; border: none; }
.spacer-sm { height: 16px; } .spacer-md { height: 32px; } .spacer-lg { height: 60px; }

/* ====================== PATIENTENCODE-FELD ====================== */
.code-field {
  margin: 24px 0 6px;
  padding: 22px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sage);
  border-radius: var(--radius);
}
.code-field label {
  display: block; font-family: var(--sans); font-weight: 600;
  font-size: 0.92rem; letter-spacing: 0.02em;
  color: var(--ink); margin-bottom: 8px;
}
.code-field input[type="text"] {
  width: 100%; max-width: 320px;
  padding: 12px 16px;
  font-family: var(--sans); font-size: 1.02rem;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  letter-spacing: 0.04em;
}
.code-field input[type="text"]::placeholder { color: var(--ink-mute); letter-spacing: 0; }
.code-field input[type="text"]:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(169, 184, 163, 0.25);
}

/* ====================== CRISIS BOX =============================== */
.crisis-box {
  margin-top: 30px; padding: 22px 26px;
  background: linear-gradient(180deg, #FBF6EE 0%, #F7F0E3 100%);
  border: 1px solid var(--gold-soft);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}
.crisis-box h4 {
  color: var(--ink); margin: 0 0 10px;
  font-family: var(--sans); font-size: 0.92rem;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.crisis-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 6px;
  font-size: 0.95rem; color: var(--ink);
}
.crisis-list li { padding-left: 16px; position: relative; }
.crisis-list li:before {
  content: ""; position: absolute; left: 0; top: 0.7em;
  width: 8px; height: 1.5px; background: var(--gold);
}

/* ====================== PRINT HEADER / FOOTER =================== */
.print-header { display: none; }
.print-footer { display: none; }
.print-header .print-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 1.05rem; color: var(--ink);
}
.print-header .print-brand .brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--sage) 0%, var(--ink) 80%);
}
.print-header .print-meta { font-size: 0.82rem; color: var(--ink-mute); }
.print-footer {
  font-size: 0.78rem; color: var(--ink-mute);
  text-align: center; padding-top: 16px;
  border-top: 1px solid var(--line); margin-top: 36px;
}

/* ====================== ACCESSIBILITY / FOCUS =================== */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}
.likert label:focus-within { box-shadow: 0 0 0 2px var(--gold); }
.mcq label:focus-within { box-shadow: 0 0 0 2px var(--gold); }
.iq-options-svg label:focus-within { box-shadow: 0 0 0 2px var(--gold); }

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

/* ====================== MOBILE PORTRAIT (≤520px) ================
   Korrekturen für Smartphone-Hochformat — gilt global.
   ================================================================ */
@media (max-width: 520px) {
  /* ---- Container & Body Rhythm ---- */
  .container, .container-narrow { padding: 0 16px; }
  body { font-size: 16px; line-height: 1.6; }

  /* ---- Headlines passend skalieren ---- */
  h1 { font-size: 1.85rem; line-height: 1.2; }
  h2 { font-size: 1.4rem; line-height: 1.2; }
  h3 { font-size: 1.15rem; }

  /* ---- Hero ---- */
  .hero { padding: 34px 0 22px; }
  .hero p.lead { font-size: 1.02rem; }

  /* ---- Buttons im btn-row breit (besser tippbar) ---- */
  .btn-row { flex-direction: column; gap: 10px; align-items: stretch; }
  .btn-row .btn { width: 100%; justify-content: center; }
  .btn-lg { padding: 14px 22px; font-size: 1rem; }

  /* ---- Site Header / Footer ---- */
  .nav { padding: 14px 0; }
  .brand { font-size: 1.2rem; }
  .site-footer { padding: 36px 0 32px; margin-top: 40px; }
  .site-footer .container { flex-direction: column; gap: 14px; align-items: flex-start; }
  .site-footer small { font-size: 0.82rem; }

  /* ---- Cards / Method / Disclaimer ---- */
  .tests { padding: 36px 0 50px; }
  .tests-head { margin-bottom: 32px; }
  .card-body { padding: 22px 22px 24px; }
  .method { padding: 50px 0; }
  .disclaimer { padding: 36px 0; }
  .disclaimer-box { padding: 22px 22px; }

  /* ============= TEST PAGES ============= */
  .test-shell { padding: 24px 0 50px; }
  .test-progress { padding: 12px 0 14px; margin-bottom: 24px; }
  .test-intro { padding: 26px 20px; border-radius: 14px; }
  .test-intro h1 { font-size: 1.75rem; }

  .section-banner { padding: 18px 20px; margin: 22px 0 18px; }
  .section-banner h2 { font-size: 1.2rem; }
  .section-banner p { font-size: 0.9rem; }

  .item { padding: 20px 18px; }
  .item-q { font-size: 1.08rem; line-height: 1.45; margin-bottom: 18px; }

  /* Actions-Row vertikal stapeln (Zurück oben, Weiter unten) */
  .actions-row {
    flex-direction: column;
    gap: 10px;
    margin-top: 26px;
    padding-top: 20px;
  }
  .actions-row .right {
    width: 100%;
    flex-direction: column-reverse;
    gap: 10px;
  }
  .actions-row .btn { width: 100%; justify-content: center; }

  /* Code-Field */
  .code-field { padding: 18px 18px; }
  .code-field input[type="text"] { max-width: 100%; }

  /* ============= RESULT PAGE — der eigentliche Fix ============= */
  .result-shell { padding: 26px 0 50px; }
  .result-card {
    padding: 24px 18px;
    border-radius: 14px;
  }
  .result-card:before { left: 24px; right: 24px; }

  /* Header: stapeln, links bündig */
  .result-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 18px;
    margin-bottom: 20px;
  }
  .result-head h1 { font-size: 1.7rem; line-height: 1.15; }
  .result-head .meta-info {
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.55;
  }

  /* Score */
  .score-row { gap: 16px; }
  .score-big { gap: 10px; margin: 12px 0 6px; flex-wrap: wrap; align-items: baseline; }
  .score-big .value { font-size: 2.8rem; }
  .score-big .unit { font-size: 0.92rem; }
  .gauge { max-width: 100%; margin: 0 auto; }

  /* Interpretation / Disclaimer / Crisis */
  .interpretation,
  .result-disclaimer,
  .crisis-box {
    padding: 18px 18px;
    margin-left: 0;
    margin-right: 0;
  }
  .interpretation { margin: 18px 0; }
  .interpretation h3 { font-size: 1.1rem; }
  .crisis-list { font-size: 0.9rem; }

  /* Subskalen — Label und Wert untereinander statt nebeneinander */
  .subscale { padding: 14px 16px; }
  .subscale-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 10px;
  }
  .subscale-head strong { font-size: 1.02rem; line-height: 1.3; }
  .subscale-head .val { font-size: 0.86rem; }
  .subscale .note { font-size: 0.82rem; line-height: 1.5; }

  /* IQ-Verteilungs­diagramm — horizontal scrollbar, damit Achsen lesbar bleiben */
  #distributionWrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -4px;
    margin-right: -4px;
    padding: 0 4px 4px;
  }
  #distributionWrap svg {
    min-width: 520px;
    width: 100%;
  }

  /* Print-Bar — Buttons vertikal */
  .print-bar {
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
  }
  .print-bar .btn {
    width: 100%;
    min-width: 0;
  }
}

/* ====================== PRINT STYLES (erweitert) =============== */
@media print {
  :root { --bg: #FFFFFF; --bg-alt: #FBFAF7; }
  body { background: #FFFFFF; font-size: 10.5pt; color: #1F3A3D; }
  .site-header, .site-footer, .no-print, .print-bar { display: none !important; }

  /* Layout container */
  .result-shell { padding: 0; }
  .result-card {
    box-shadow: none; border: none; padding: 0; margin: 0;
    page-break-inside: auto;
  }
  .result-card:before { display: none; }

  /* Print header / footer */
  .print-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 14px; border-bottom: 1.5px solid #1F3A3D; margin-bottom: 22px;
  }
  .print-footer { display: block; }

  /* Header / Datum / Code */
  .result-head {
    border-bottom: 1px solid #cdc6b8; padding-bottom: 14px;
    page-break-after: avoid;
  }
  .result-head h1 { font-size: 22pt; line-height: 1.1; }
  .result-head .meta-info { font-size: 9.5pt; line-height: 1.5; }
  .result-head .meta-info strong { font-weight: 600; }

  /* Scores */
  .score-big .value { font-size: 36pt; }
  .gauge { max-width: 280px; }
  .score-row { gap: 24px; }

  /* Blocks */
  .interpretation, .subscale, .crisis-box, .result-disclaimer {
    page-break-inside: avoid;
    box-shadow: none;
  }
  .interpretation { border-left-width: 3px; }
  .subscale { border: 1px solid #cdc6b8; }
  .subscale-bar { background: #eee; }
  .subscale-bar > div { background: #1F3A3D; }
  .crisis-box {
    background: #FBF6EE;
    border: 1px solid #ddc89a;
    border-left: 3px solid #C9A86B;
  }
  .result-disclaimer { background: #FBFAF7; border: 1px solid #ddd; }

  /* Glockenkurve etc. */
  #distributionWrap svg, .gauge svg { print-color-adjust: exact; -webkit-print-color-adjust: exact; }

  h1, h2, h3, h4 { page-break-after: avoid; color: #1F3A3D; }
  h3 { font-size: 13pt; margin-top: 18pt; }

  ul, ol { page-break-inside: avoid; }

  a { color: #1F3A3D; text-decoration: none; }

  @page {
    margin: 18mm 16mm 20mm 16mm;
    size: A4 portrait;
  }
}
