/* CSC Bud Oeynhausen e.V. – Stylesheet
   Bewusst schlicht und sachlich (Werbeverbot § 6 KCanG): keine Pflanzen-/Konsumbilder,
   keine Effekte. Nur Systemschriften – es werden keine externen Ressourcen geladen. */

:root {
  --ink: #1b2320;
  --ink-soft: #4a5550;
  --paper: #f6f4ef;
  --card: #ffffff;
  --line: #d8d3c8;
  --accent: #23544b;
  --accent-ink: #ffffff;
  --accent-soft: #e3ece8;
  --focus: #b4560f;
  --error: #a32020;
  --error-soft: #fbeaea;
  --ok: #1f6a3a;
  --ok-soft: #e6f3ea;
  --note: #fff6dc;
  --radius: 10px;
  --wrap: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

/* Platz für die fixierte Kopfleiste, damit Sprungziele nicht darunter verschwinden */
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

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

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.setup-warning {
  background: #8a1c1c; color: #fff; padding: .75rem 1.25rem; font-size: .95rem;
}
.setup-warning code { background: rgba(255,255,255,.15); padding: 0 .3em; border-radius: 3px; }

/* ---------- Kopfbereich ---------- */
/* Kopfleiste bleibt beim Scrollen oben sichtbar */
.site-header {
  background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap; padding-top: .9rem; padding-bottom: .9rem;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand img { flex: none; height: 48px; width: auto; }
.hero-logo { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 0 1.5rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 1.15rem; }
.brand-sub { font-size: .85rem; color: var(--ink-soft); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .4rem; }
.main-nav a {
  display: inline-block; padding: .45rem .7rem; border-radius: 6px;
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem;
}
.main-nav a:hover { background: var(--accent-soft); }
.main-nav .nav-cta { background: var(--accent); color: var(--accent-ink); }
.main-nav .nav-cta:hover { background: var(--ink); color: #fff; }

.age-strip { background: var(--ink); color: #f1efe9; font-size: .9rem; padding: .4rem 0; text-align: center; }

/* ---------- Abschnitte ---------- */
.section { padding: 3.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--card); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.measure { max-width: 70ch; }

.hero { padding: 3.5rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .6rem;
}

.status-card {
  background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--focus);
  border-radius: var(--radius); padding: 1.25rem 1.4rem;
}
.status-card h2 { font-size: 1.1rem; margin-bottom: .5rem; }
.status-card ul { margin: 0; padding-left: 1.1rem; }
.status-card li + li { margin-top: .35rem; }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  border: 2px solid var(--accent); border-radius: 8px; padding: .75rem 1.3rem;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-secondary { background: transparent; color: var(--accent); }
.btn-secondary:hover { background: var(--accent-soft); color: var(--ink); border-color: var(--accent); }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.section-alt .card { background: var(--paper); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.req-list li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1.1rem .9rem 3.1rem; position: relative;
}
.req-list li::before {
  content: ""; position: absolute; left: 1.1rem; top: 1.15rem; width: 1.1rem; height: 1.1rem;
  border-radius: 50%; background: var(--accent);
  -webkit-mask: radial-gradient(circle, transparent 0 .2rem, #000 .21rem);
          mask: radial-gradient(circle, transparent 0 .2rem, #000 .21rem);
}
.req-list strong { display: block; }
.law-ref { font-size: .85rem; color: var(--ink-soft); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step; position: relative; padding: 1rem 1.2rem 1rem 4rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step); position: absolute; left: 1.1rem; top: 1rem;
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700;
}
.steps strong { display: block; }

.docs-head { margin-top: 1.5rem; }

.notice {
  background: var(--note); border: 1px solid #ecd9a0; border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.notice p:last-child { margin: 0; }

.faq-group { margin: 1.75rem 0 .75rem; font-size: 1.1rem; }
details.faq .law-ref { display: block; margin-top: .4rem; }
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.2rem; }
details.faq + details.faq { margin-top: .6rem; }
details.faq summary { cursor: pointer; font-weight: 600; padding: .9rem 0; }
details.faq[open] summary { border-bottom: 1px solid var(--line); margin-bottom: .8rem; }
details.faq > *:last-child { padding-bottom: 1rem; }

/* ---------- Formular ---------- */
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}
fieldset { border: 0; margin: 0 0 1.75rem; padding: 0; }
legend { font-weight: 700; font-size: 1.1rem; margin-bottom: .75rem; padding: 0; }
.fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.field { grid-column: span 3; display: flex; flex-direction: column; gap: .3rem; }
.field.w-2 { grid-column: span 2; }
.field.w-4 { grid-column: span 4; }
.field.w-6 { grid-column: span 6; }
label { font-weight: 600; font-size: .98rem; }
.req { color: var(--error); }
.hint { font-size: .88rem; color: var(--ink-soft); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="password"] {
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #9aa39e; border-radius: 7px; padding: .6rem .75rem; width: 100%;
  min-height: 2.75rem;
}
input:focus-visible { border-color: var(--accent); }
.field.has-error input { border-color: var(--error); background: var(--error-soft); }
.field-error { color: var(--error); font-size: .9rem; font-weight: 600; }

.check { display: grid; grid-template-columns: 1.6rem 1fr; gap: .5rem; align-items: start; padding: .7rem 0; }
.check + .check { border-top: 1px dashed var(--line); }
.check input { width: 1.3rem; height: 1.3rem; margin: .2rem 0 0; accent-color: var(--accent); }
.check label { font-weight: 400; }
.check .field-error { grid-column: 2; }
.check.has-error label { color: var(--error); }
.check-inline { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.check-inline label { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
.check-inline input { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.5rem; border: 1px solid; }
.alert-error { background: var(--error-soft); border-color: #e6b3b3; color: #6d1212; }
.alert-success { background: var(--ok-soft); border-color: #b7dcc2; color: #164d2a; }

.age-hint { font-size: .9rem; margin-top: .2rem; }
.age-hint.bad { color: var(--error); font-weight: 600; }

/* ---------- Statusseiten ---------- */
.message-box { max-width: 680px; margin: 0 auto; }
.message-box .icon {
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: #fff;
}
.message-box.success .icon { background: var(--ok); }
.message-box.error .icon { background: var(--error); }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 78ch; }
.legal h2 { margin-top: 2.2rem; font-size: 1.35rem; }
.legal h3 { margin-top: 1.4rem; }
.legal address { font-style: normal; }
.legal table { border-collapse: collapse; width: 100%; font-size: .95rem; margin-bottom: 1rem; }
.legal th, .legal td { text-align: left; border: 1px solid var(--line); padding: .5rem .6rem; vertical-align: top; }
.legal th { background: var(--accent-soft); }

/* ---------- Einrichtungstest ---------- */
.setup-table td:first-child { white-space: nowrap; }
.badge { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--note); color: #7a5600; }
.badge-fail { background: var(--error-soft); color: var(--error); }
.wrap-anywhere { overflow-wrap: anywhere; }

/* ---------- Fußbereich ---------- */
.site-footer { background: var(--ink); color: #e9e6df; margin-top: 0; padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 1.5rem; }
.footer-name { font-weight: 700; color: #fff; }
.footer-head { font-weight: 700; color: #fff; margin-bottom: .4rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: .3rem; }
.footer-note { border-top: 1px solid rgba(255,255,255,.18); margin-top: 1.75rem; padding-top: 1rem; color: #c8c4bb; font-size: .88rem; }
.footer-note p { margin: 0; }

/* ---------- Responsiv ---------- */
@media (max-width: 860px) {
  .hero-grid, .grid-2, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .field, .field.w-2, .field.w-4 { grid-column: span 6; }
  .field.w-plz { grid-column: span 2; }
  .field.w-ort { grid-column: span 4; }
  /* Handy: kompakte fixierte Leiste – Menü einzeilig und seitlich wischbar */
  html { scroll-padding-top: 7.5rem; }
  .header-inner { padding-top: .5rem; padding-bottom: .4rem; gap: .35rem; }
  .brand img { height: 34px; width: auto; }
  .hero-logo { max-width: 260px; margin-bottom: 1rem; }
  .brand-name { font-size: 1.05rem; }
  .brand-sub { display: none; }
  .main-nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav ul { flex-wrap: nowrap; gap: .2rem; }
  .main-nav li { flex: none; }
  .main-nav a { padding: .4rem .55rem; font-size: .93rem; white-space: nowrap; }
}

@media print {
  .site-header nav, .age-strip, .site-footer, .skip { display: none; }
  body { background: #fff; }
}
