/* Vision-Zero-Hero – Stylesheet
   Schrift: Archivo (lokal eingebunden, kein Google-Server)
   Farben der Ringe: ISSA Vision Zero (Rot, Blau, Oliv) */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1d2733;
  --ink-soft: #3a4654;
  --muted: #5a6674;
  --paper: #ffffff;
  --mist: #eef2f4;
  --line: #d3dade;
  --red: #b41722;
  --red-dark: #8f121b;
  --blue: #569abd;
  --blue-ink: #2f6d8e;
  --olive: #9b9f0a;
  --olive-ink: #6b6e07;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --measure: 68ch;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(4rem, 9vw, 7.5rem);
  --radius: 4px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--red); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-dark); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-stretch: 87.5%;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 760; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: 0.45em; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 58ch; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem;
}
.skip:focus { top: 1rem; color: #fff; }

/* ---------- Kopfbereich ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 2.1rem; height: 2rem; fill: none; stroke-width: 2.4; }
.brand__mark circle:nth-child(1) { stroke: var(--red); }
.brand__mark circle:nth-child(2) { stroke: var(--blue); }
.brand__mark circle:nth-child(3) { stroke: var(--olive); }
.brand__name { font-weight: 780; font-stretch: 87.5%; font-size: 1.2rem; letter-spacing: -0.01em; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  display: block; padding: 0.5rem 0.7rem; border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-size: 0.97rem; font-weight: 500;
}
.nav a:hover { background: var(--mist); color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav .nav__cta { background: var(--ink); color: #fff; margin-left: 0.5rem; padding-inline: 1rem; border-radius: var(--radius); }
.nav .nav__cta:hover, .nav .nav__cta[aria-current="page"] { background: var(--red); color: #fff; box-shadow: none; border-radius: var(--radius); }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font: inherit; font-weight: 600; color: var(--ink);
    background: none; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 0.5rem 0.8rem; cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 18px; height: 2px; background: var(--ink); position: relative;
  }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }

  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 0.5rem var(--gutter) 1.25rem; gap: 0; }
  .nav a { padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--mist); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: 0.75rem; }
  .nav .nav__cta { margin: 1rem 0 0; text-align: center; padding: 0.85rem; border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.4rem; border-radius: var(--radius);
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 var(--space); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero__place { color: var(--muted); font-weight: 500; margin-bottom: 1.25rem; }

.rings { width: 100%; max-width: 30rem; height: auto; justify-self: end; overflow: visible; }
.ring { fill: none; stroke-width: 9; }
.ring--red { stroke: var(--red); }
.ring--blue { stroke: var(--blue); }
.ring--olive { stroke: var(--olive); }
.ring-label { font-family: var(--font); font-size: 15px; font-weight: 650; fill: var(--ink); }
.ring-core { font-family: var(--font); font-size: 54px; font-weight: 800; font-stretch: 75%; fill: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .rings .ring { stroke-dasharray: 679; stroke-dashoffset: 679; animation: draw 1.4s cubic-bezier(.6,.05,.25,1) forwards; }
  .rings .ring--blue { animation-delay: .25s; }
  .rings .ring--olive { animation-delay: .5s; }
  .rings .ring-core, .rings .ring-label { opacity: 0; animation: appear .6s ease-out 1.3s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

@media (max-width: 760px) {
  .hero__grid { grid-template-columns: 1fr; }
  .rings { order: -1; max-width: 15rem; justify-self: start; }
}

/* ---------- Abschnitte ---------- */
.section { padding: var(--space) 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink a { color: #fff; }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__head p { color: var(--ink-soft); font-size: 1.125rem; }
.section--ink .section__head p { color: #c8d0d7; }

/* Leistungen auf der Startseite: Zeilen statt Kacheln */
.services { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.service {
  display: grid; grid-template-columns: 17rem minmax(0, 1fr) 14rem;
  gap: 1rem 3rem; align-items: baseline;
  padding: 2rem 0; border-bottom: 1px solid var(--line);
}
.service h3 { margin: 0; display: flex; align-items: baseline; gap: 0.75rem; }
.service h3::before {
  content: ""; flex: none; width: 0.8em; height: 0.8em; border-radius: 50%;
  border: 3px solid currentColor; transform: translateY(0.05em);
}
.service--red h3::before { color: var(--red); }
.service--blue h3::before { color: var(--blue); }
.service--olive h3::before { color: var(--olive); }
.service p { margin: 0; color: var(--ink-soft); }
.service a { font-weight: 650; justify-self: start; white-space: nowrap; }
@media (max-width: 860px) { .service a { justify-self: start; } }

@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* Haltung / Zitat */
.stance { font-size: clamp(1.75rem, 4.2vw, 3.1rem); font-weight: 760; font-stretch: 87.5%; line-height: 1.15; max-width: 24ch; margin: 0 0 1.5rem; letter-spacing: -0.015em; }
.stance-note { max-width: 60ch; color: #c8d0d7; font-size: 1.125rem; }

/* Drei Aussagen */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; list-style: none; padding: 0; margin: 0; }
.points li { border-top: 3px solid var(--ink); padding-top: 1.25rem; }
.points h3 { font-size: 1.25rem; }
.points p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .points { grid-template-columns: 1fr; gap: 2rem; } }

/* Person */
.person { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.person--text-only { grid-template-columns: 1fr; }
.person__photo { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (max-width: 760px) { .person { grid-template-columns: 1fr; } .person__photo { max-width: 22rem; } }

/* Kontaktband */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { margin: 0 0 0.4rem; }
.cta-band p { margin: 0; color: #c8d0d7; max-width: 50ch; }
.cta-band .btn--primary { background: #fff; color: var(--ink); }
.cta-band .btn--primary:hover { background: var(--red); color: #fff; }
.cta-band__phone { display: block; margin-top: 0.75rem; font-weight: 650; }

/* ---------- Unterseiten ---------- */
.page-head { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.page-head--red { box-shadow: inset 0 6px 0 var(--red); }
.page-head--blue { box-shadow: inset 0 6px 0 var(--blue); }
.page-head--olive { box-shadow: inset 0 6px 0 var(--olive); }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0 0 1.75rem; padding: 0; font-size: 0.92rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 0.45rem 0 0.2rem; color: var(--line); }
.crumbs a { color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.aside { position: sticky; top: 6rem; border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 0 0 var(--radius) var(--radius); padding: 1.5rem; }
.aside h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.aside p { color: var(--ink-soft); font-size: 0.98rem; }
.aside .btn { width: 100%; margin-top: 0.5rem; }
.aside__phone { display: block; margin-top: 1rem; text-align: center; font-weight: 600; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .aside { position: static; } }

.fig { margin: 2rem 0; }
.fig img { border-radius: var(--radius); width: 100%; }

/* Häufige Fragen */
.faq { border-top: 2px solid var(--ink); margin-top: 1.25rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font-weight: 650; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.65rem; height: 0.65rem;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 1.25rem; color: var(--ink-soft); max-width: 62ch; }

/* Weitere Leistungen */
.more { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.more a { display: block; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; background: var(--paper); }
.more a:hover { border-color: var(--ink); }
.more strong { display: block; font-size: 1.15rem; margin-bottom: 0.35rem; font-stretch: 87.5%; }
.more span { color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 700px) { .more { grid-template-columns: 1fr; } }

/* Regeln im Artikel (echte Reihenfolge, daher nummeriert) */
.rules { list-style: none; counter-reset: rule; padding: 0 !important; margin: 1.5rem 0; }
.rules > li { counter-increment: rule; position: relative; padding: 0 0 1.25rem 3.25rem; margin: 0 0 1.25rem; border-bottom: 1px solid var(--line); }
.rules > li::before {
  content: counter(rule); position: absolute; left: 0; top: -0.1rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 2px solid var(--ink);
  display: grid; place-items: center; font-weight: 750; font-size: 0.95rem;
}
.rules h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.rules p { margin: 0; color: var(--ink-soft); }

.articles { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.articles li { padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.articles h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 0.4rem; }
.articles h2 a { color: var(--ink); text-decoration: none; }
.articles h2 a:hover { color: var(--red); }
.articles p { margin: 0; color: var(--ink-soft); max-width: 62ch; }
.meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.5rem; }

/* ---------- Formular ---------- */
.form { display: grid; gap: 1.25rem; max-width: 40rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink);
  padding: 0.75rem 0.85rem; border: 1px solid #9aa6b1; border-radius: var(--radius); background: #fff;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--ink); }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.97rem; color: var(--ink-soft); }
.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--red); flex: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; border-left: 4px solid; }
.notice--ok { background: #eef5e4; border-color: var(--olive-ink); }
.notice--err { background: #fbecec; border-color: var(--red); }
.notice ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-direct { border-top: 3px solid var(--ink); padding-top: 1.25rem; }
.contact-direct dl { margin: 0; }
.contact-direct dt { color: var(--muted); font-size: 0.92rem; margin-top: 1rem; }
.contact-direct dd { margin: 0.15rem 0 0; font-weight: 600; font-size: 1.1rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Fußbereich ---------- */
.site-footer { background: var(--ink); color: #c8d0d7; padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; font-size: 0.97rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.site-footer__brand { color: #fff; font-weight: 780; font-stretch: 87.5%; font-size: 1.25rem; margin-bottom: 0.5rem; }
.site-footer__head { color: #fff; font-weight: 650; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer address { font-style: normal; line-height: 1.75; }
.site-footer__badge { margin-top: 1.25rem; max-width: 12rem; background: #fff; padding: 0.5rem; border-radius: var(--radius); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #3a4654; font-size: 0.9rem; }
.site-footer__legal p { margin: 0; }
.site-footer__legal ul { display: flex; gap: 1.5rem; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

@media print {
  .site-header, .site-footer, .aside, .cta-band, .nav-toggle { display: none !important; }
  body { font-size: 11pt; }
}

.form__note { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.contact-direct h2 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.prose > .fig:first-child { margin-top: 0; }
.articles h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin-bottom: 0.4rem; }
.articles h3 a { color: var(--ink); text-decoration: none; }
.articles h3 a:hover { color: var(--red); }
.source-note { margin-top: 2.5rem; padding: 1rem 1.25rem; background: var(--mist); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-soft); }
.values { list-style: none; padding: 0 !important; margin: 1.5rem 0; display: grid; gap: 1rem; }
.values li { padding-left: 1.25rem; border-left: 3px solid var(--line); margin: 0; }
.values strong { display: block; }
.timeline { list-style: none; padding: 0 !important; margin: 1.5rem 0; border-left: 2px solid var(--ink); }
.timeline li { position: relative; padding: 0 0 1.25rem 1.5rem; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 0.45em; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.timeline .when { display: block; color: var(--muted); font-size: 0.92rem; }
/* Textseiten (Impressum, Datenschutz) linksbündig mit lesbarer Zeilenlänge */
.wrap.prose { max-width: none; }
.wrap.prose > * { max-width: var(--measure); }
/* Startseite: Suchbegriff als kleine Zeile, Botschaft groß */
.hero h1 { max-width: 22ch; font-size: clamp(2rem, 4.4vw, 3.3rem); }
.hero__kicker { display: block; font-size: 1rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0; color: var(--red); margin-bottom: 0.9rem; }
.values strong a { color: inherit; text-decoration-color: var(--red); }
.values strong a:hover { color: var(--red); }
/* Lange Links (z. B. URLs) dürfen umbrechen, damit nichts über den Rand ragt */
.prose a { overflow-wrap: anywhere; }
.timeline .desc { display: block; color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.2rem; }

/* Browserspiel */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ext-icon { width: 0.8em; height: 0.8em; margin-left: 0.4em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.05em; flex: none; }
.game-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.game-band > div { max-width: 46rem; }
.game-band h2 { margin-bottom: 0.5rem; }
.game-band p { margin: 0; color: var(--ink-soft); }
.game-band .btn { flex: none; }
.game-band--boxed { margin-top: 3rem; padding: 1.75rem; border: 1px solid var(--line); border-top: 3px solid var(--olive); border-radius: 0 0 var(--radius) var(--radius); }
.game-band--boxed h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
