/* Kenntnisprüfung Niedersachsen – Website. Mobile first, eine Datei, keine Abhängigkeiten. */
:root {
  color-scheme: light dark;
  --teal: #00695C;
  --teal-dark: #004d43;
  --teal-soft: #e0f2ef;
  --ink: #1a1c1e;
  --muted: #4b5563;
  --bg: #ffffff;
  --card: #f6f8f8;
  --line: #d9dede;
  --accent: #b8541a;
  --link: #005a4f;
  --maxw: 44rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --teal-soft: #0f2e2a;
    --ink: #e3e2e6;
    --muted: #a8b0b4;
    --bg: #131416;
    --card: #1c1f21;
    --line: #2f3437;
    --link: #7fd4c1;
    --accent: #f0a06a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--link); text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 1.6em 0 0.5em; }
h1 { font-size: 1.75rem; margin-top: 1rem; }
h1 .sub { display: block; font-size: 1.1rem; font-weight: 500; color: var(--muted); margin-top: 0.3em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
strong { font-weight: 650; }
img { max-width: 100%; height: auto; }
.wrap { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--teal); color: #fff; padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; }
.small { font-size: 0.85rem; color: var(--muted); }
.lead { font-size: 1.1rem; }

/* Kopf */
.site-header { background: var(--teal); color: #fff; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding: 0.6rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; font-weight: 650; font-size: 1.05rem; }
.logo { flex: none; border-radius: 9px; }
.site-header nav { width: 100%; overflow-x: auto; }
.site-header nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a { display: block; color: #fff; text-decoration: none; padding: 0.45rem 0.6rem; border-radius: 6px; white-space: nowrap; font-size: 0.95rem; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { background: rgba(255,255,255,0.16); }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
@media (min-width: 60rem) {
  .site-header nav { width: auto; margin-left: auto; }
}

/* Startseite */
.hero { display: grid; gap: 1.5rem; align-items: center; margin: 1.5rem 0 2rem; }
.hero-shots { display: flex; gap: 0.75rem; justify-content: center; }
.hero-shots img { width: 44%; max-width: 200px; border-radius: 18px; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.hero-shots img:last-child { margin-top: 1.5rem; }
@media (min-width: 46rem) {
  .hero { grid-template-columns: 1.3fr 1fr; }
}
.stores { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.store { display: inline-block; padding: 0.75rem 1.1rem; border-radius: 10px; text-decoration: none; font-weight: 650; color: #fff; background: #111; border: 2px solid #111; }
.store.play { background: var(--teal); border-color: var(--teal); }
.store:hover { filter: brightness(1.15); }
.price { color: var(--muted); font-size: 0.95rem; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { position: relative; padding-left: 2.6rem; margin-bottom: 1rem; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0.05rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; display: grid; place-items: center; }
.facts { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); list-style: none; padding: 0; }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 0.9rem; }
.facts strong { display: block; color: var(--teal); font-size: 1.15rem; }
@media (prefers-color-scheme: dark) { .facts strong { color: var(--link); } }

/* Fachgebiete */
.subject-grid, .subject-list { list-style: none; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.subject-grid a, .subject-list a { display: block; padding: 0.8rem 0.9rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.subject-grid a:hover, .subject-list a:hover { border-color: var(--teal); }
.subject-grid a span, .subject-list a span { display: block; font-size: 0.85rem; color: var(--muted); }
.subject-list a span { display: inline; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }
.notice { background: var(--teal-soft); border-left: 4px solid var(--teal); padding: 0.75rem 1rem; border-radius: 0 10px 10px 0; margin: 1.25rem 0; }
.notice p:last-child { margin: 0; }
.howto { color: var(--muted); }

/* Fragen */
.question { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem 0.4rem; margin: 1.5rem 0; }
.question h2 { margin-top: 0.2rem; font-size: 1.25rem; }
.badge { font-size: 0.78rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); margin: 0; }
.sec { margin: 1em 0 0.2em; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--teal); }
@media (prefers-color-scheme: dark) { .sec { color: var(--link); } }
.sec.merke { color: var(--accent); }
.sec.merke + p { border-left: 3px solid var(--accent); padding-left: 0.8rem; }
.cta { background: var(--teal-soft); border-radius: 14px; padding: 1rem 1.1rem; margin: 2rem 0; }
.cta h2 { margin-top: 0.2rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 2rem 0; font-size: 0.95rem; }

/* App-Karten (FSP, Apotheker, Bundesländer) */
.apps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); list-style: none; padding: 0; }
.apps li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.apps h3 { margin-top: 0; }
.apps .stores { margin-bottom: 0; }
.apps .store { padding: 0.55rem 0.8rem; font-size: 0.9rem; }

/* Fuß */
.site-footer { margin-top: 3rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.disclaimer { font-weight: 650; color: var(--ink); }
.footer-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer-links li { margin: 0; }
@media print { .site-header nav, .stores, .pager { display: none; } }
