/* aktiv for you – Stylesheet
   Farben gemessen auf https://60aktiv.ch/ (22.10.2026):
   Blau #0094DE (Titelleiste, Überschriften, Logo), Gelb #FED804 (Logo "60"),
   Fliesstext #595959, Flächen #F9F9F9, Dunkel #2C2D2F.
   Schriften der Referenz: Open Sans (Text), Raleway (Überschriften). */

@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/raleway-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/raleway-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Farben */
  --blue: #0094DE;          /* Referenz-Blau (nur Flächen und Akzente) */
  --blue-deep: #00649A;     /* abgedunkelt für Text und Buttons, Kontrast 6.4:1 auf Weiss */
  --blue-deeper: #004E78;   /* Hover */
  --blue-tint: #EAF6FD;     /* ausgewählte Antwort */
  --yellow: #FED804;        /* Referenz-Gelb (Akzentlinie) */
  --ink: #2C2D2F;
  --text: #404040;
  --muted: #595959;
  --line: #D9DEE2;
  --surface: #F9F9F9;
  --white: #FFFFFF;
  --focus: #1B1B1B;

  /* Abstände */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px;

  /* Schrift */
  --font-body: "Open Sans", "Segoe UI", Arial, Helvetica, sans-serif;
  --font-head: "Raleway", "Open Sans", "Segoe UI", Arial, Helvetica, sans-serif;

  --measure: 760px;
  --radius: 8px;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;       /* 18 px */
  line-height: 1.65;
  overflow-wrap: break-word;
}
@media (min-width: 768px) { body { font-size: 1.1875rem; } } /* 19 px */

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

.wrap { width: 100%; max-width: calc(var(--measure) + 2 * var(--s2)); margin-inline: auto; padding-inline: var(--s2); }
@media (min-width: 768px) { .wrap { padding-inline: var(--s3); max-width: calc(var(--measure) + 2 * var(--s3)); } }

/* ---------- Kopfbereich ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap { display: flex; flex-direction: column; align-items: center; gap: var(--s1); padding-block: var(--s2) var(--s3); }

.ad-label {
  margin: 0;
  display: inline-block;
  padding: 2px var(--s2);
  border: 2px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
}

.logo { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: var(--blue); line-height: 1; border-radius: 4px; }
.logo__main { font-family: var(--font-head); font-weight: 700; font-size: 2.5rem; letter-spacing: -0.01em; color: var(--blue); }
.logo__sub { display: flex; align-items: center; gap: var(--s1); margin-top: 6px; font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.logo__sub::before { content: ""; width: 32px; height: 6px; border-radius: 3px; background: var(--yellow); }
.logo--small .logo__main { font-size: 1.75rem; }
.logo--small .logo__sub { font-size: 0.8125rem; margin-top: 4px; }
.logo--small .logo__sub::before { width: 24px; height: 5px; }

/* ---------- Artikel ---------- */
main { display: block; padding-bottom: var(--s5); }

.article-head { padding-block: var(--s4) var(--s3); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); font-weight: 700; margin: 0; }
h1 { font-size: clamp(2rem, 1.55rem + 1.9vw, 2.875rem); line-height: 1.18; letter-spacing: -0.01em; }
.lead { margin: var(--s2) 0 0; font-size: 1.25rem; line-height: 1.6; color: var(--ink); }
@media (min-width: 768px) { .lead { font-size: 1.375rem; } }

h2 { font-size: clamp(1.625rem, 1.35rem + 1.2vw, 2.125rem); line-height: 1.25; padding-top: var(--s5); }
h2::after { content: ""; display: block; width: 48px; height: 5px; border-radius: 3px; background: var(--yellow); margin-top: var(--s2); }
h3 { font-size: 1.3125rem; line-height: 1.3; margin-top: var(--s4); color: var(--blue-deep); }

p { margin: var(--s2) 0 0; }
ul { margin: var(--s2) 0 0; padding-left: 1.25em; }
li { margin-top: var(--s1); }
li::marker { color: var(--blue); }
strong { color: var(--ink); }

figure { margin: var(--s4) 0 0; }
figure img { width: 100%; border-radius: var(--radius); background: var(--surface); object-fit: cover; }
figure.is-portrait img { max-width: 440px; margin-inline: auto; }
figcaption { margin-top: var(--s1); font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
figure.is-portrait figcaption { max-width: 440px; margin-inline: auto; }

.hero { margin-top: var(--s3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 56px; padding: 12px var(--s4);
  border: 2px solid var(--blue-deep); border-radius: var(--radius);
  background: var(--blue-deep); color: var(--white);
  font-family: var(--font-body); font-size: 1.125rem; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--blue-deeper); border-color: var(--blue-deeper); }
.btn:active { background: var(--blue-deeper); }
.btn svg { width: 20px; height: 20px; flex: none; }
.cta-block { margin-top: var(--s3); }
.cta-note { margin: var(--s1) 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.btn-text {
  min-height: 48px; padding: 8px var(--s2); border: 0; background: none; color: var(--blue-deep);
  font: inherit; font-size: 1rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: 4px;
}
.btn-text:hover { color: var(--blue-deeper); }

/* ---------- Fokus ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible, .logo:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px;
}
.quiz__option input:focus-visible + .quiz__label { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- Quiz ---------- */
.quiz { margin-top: var(--s5); padding: var(--s3) var(--s2) var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
@media (min-width: 768px) { .quiz { padding: var(--s4); } }
.quiz fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.quiz legend { padding: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); line-height: 1.3; color: var(--ink); }
.quiz__hintline { margin: var(--s1) 0 0; font-size: 1rem; color: var(--muted); }
.quiz__grid { display: grid; grid-template-columns: 1fr; gap: var(--s2); margin-top: var(--s3); }
@media (min-width: 560px) { .quiz__grid { grid-template-columns: 1fr 1fr; } }
.quiz__option { position: relative; }
.quiz__option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.quiz__label {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s1);
  min-height: 88px; height: 100%; padding: var(--s2) var(--s3);
  background: var(--white); border: 2px solid var(--line); border-radius: 10px;
  font-weight: 700; font-size: 1.1875rem; line-height: 1.3; color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease;
}
.quiz__tick { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; background: var(--white); }
.quiz__tick svg { width: 16px; height: 16px; opacity: 0; stroke: var(--white); }
.quiz__option:hover .quiz__label { border-color: var(--blue); background: var(--blue-tint); }
.quiz__option input:checked + .quiz__label { border-color: var(--blue-deep); background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--blue-deep); }
.quiz__option input:checked + .quiz__label .quiz__tick { background: var(--blue-deep); border-color: var(--blue-deep); }
.quiz__option input:checked + .quiz__label .quiz__tick svg { opacity: 1; }

.quiz__result { margin-top: var(--s3); padding: var(--s3); background: var(--white); border-left: 6px solid var(--yellow); border-radius: 0 var(--radius) var(--radius) 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quiz__result[hidden] { display: none; }
.quiz__result p:first-child { margin-top: 0; }
.quiz__result .btn { margin-top: var(--s2); }
.quiz__disclaimer { margin: var(--s2) 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.quiz__reset { margin-top: var(--s1); }
.quiz__reset[hidden] { display: none; }

/* ---------- Hinweisbox ---------- */
.box { margin-top: var(--s4); padding: var(--s3); background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; }
.box h3 { margin-top: 0; }
.box p:first-of-type { margin-top: var(--s1); }
.box ul { margin-top: var(--s1); }

/* ---------- Aktivitäten ---------- */
.activity { padding-bottom: var(--s2); }
.activity { margin-top: 0; }
.activity h2 { padding-top: var(--s5); }

/* ---------- FAQ ---------- */
.faq { margin-top: var(--s3); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  min-height: 64px; padding: var(--s2) 0;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1875rem; line-height: 1.35; color: var(--ink);
  cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 3px solid var(--blue-deep); border-bottom: 3px solid var(--blue-deep);
  transform: rotate(45deg); transition: transform .15s ease; margin-right: 6px;
}
details[open] > summary::after { transform: rotate(-135deg); }
summary:hover { color: var(--blue-deep); }
.faq .answer { padding-bottom: var(--s2); }
.faq .answer p:first-child { margin-top: 0; }

/* ---------- Schluss-CTA ---------- */
.final { margin-top: var(--s5); padding: var(--s4) var(--s3); background: var(--blue-tint); border-radius: 12px; border: 1px solid #BFE3F7; }
.final h2 { padding-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #E4E6E8; padding-block: var(--s5); font-size: 1rem; line-height: 1.6; }
.site-footer .logo__main { color: #5CC3F5; }
.site-footer .logo__sub { color: var(--white); }
.site-footer p { margin: var(--s2) 0 0; }
.site-footer .footer-ad { padding: var(--s2); border: 1px solid #5B5E62; border-radius: var(--radius); }
.legal { margin-top: var(--s4); border-top: 1px solid #5B5E62; }
.legal details { border-bottom: 1px solid #5B5E62; }
.legal summary { min-height: 56px; font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; color: var(--white); }
.legal summary::after { border-color: var(--white); }
.legal summary:hover { color: #5CC3F5; }
.legal summary:focus-visible, .site-footer a:focus-visible { outline-color: #FFFFFF; }
.legal .body { padding-bottom: var(--s2); }
.legal h3 { color: var(--white); font-size: 1.0625rem; margin-top: var(--s2); }
.legal .body > :first-child { margin-top: 0; }
.legal ul { margin-top: var(--s1); }
.legal a, .site-footer a { color: #8AD3F8; text-underline-offset: 3px; }
.legal .todo { margin-top: var(--s2); padding: var(--s2); border: 2px dashed #E0B800; border-radius: var(--radius); color: #FFE680; }
.copy { margin-top: var(--s4); font-size: 0.875rem; color: #B9BDC1; }

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