/* Gestaltung der Startseite (index.php) und der News-Übersicht (news.php). Der News-Editor im Admin lädt sie ebenfalls
   (webapp/admin/news/site-css.php), damit Buttons und Texte dort genauso aussehen wie auf der Website. */
/* Layout: Kopfbereich mit Dartscheibe, darunter Funktionen als Kacheln, Geschichte, Angebote, rechtliche Angaben im Fußband.
   Grundoptik dunkel wie ein Abend am Oche, hell nach System oder Wahl; Akzente in den Farben der Dartscheibe. */
:root {
  color-scheme: dark;
  --bg: #0b0f14; --band: #10161d; --card: #151c24; --card-2: #1b2430; --line: #26313d;
  --ink: #eef1ec; --muted: #9aa7b3; --cream: #f2ead8;
  --red: #e0353d; --green: #22a55f; --green-ink: #3fe08a;
  --red-btn: #c8262e; --red-btn-hover: #a81f26; /* Weiß darauf 5,6:1 bzw. 7,3:1 */
  --on-green: #0b0f14; --dot-3: var(--cream);
  --nav-bg: rgba(11, 15, 20, .86); --foot: #080b0f; --board-shadow: rgba(0, 0, 0, .55); --highlight: #12301f; --highlight-line: #2a5a3e;
  --display: "Bahnschrift SemiCondensed", "Bahnschrift", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Helles Design (Kontraste je >= 4,5:1): nach System oder fest per Cookie "design" (data-theme) */
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  color-scheme: light;
  --bg: #f5f6f3; --band: #eceee9; --card: #ffffff; --card-2: #f0f2ee; --line: #d6dbd4;
  --ink: #12171d; --muted: #4f5b66; --cream: #12171d; --dot-3: #b9ab84;
  --red: #c8262e; --green: #14884a; --green-ink: #0d7a40; --on-green: #fff;
  --nav-bg: rgba(245, 246, 243, .88); --foot: #e7eae4; --board-shadow: rgba(0, 0, 0, .28); --highlight: #dff1e6; --highlight-line: #97cfaf; } }
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6f3; --band: #eceee9; --card: #ffffff; --card-2: #f0f2ee; --line: #d6dbd4;
  --ink: #12171d; --muted: #4f5b66; --cream: #12171d; --dot-3: #b9ab84;
  --red: #c8262e; --green: #14884a; --green-ink: #0d7a40; --on-green: #fff;
  --nav-bg: rgba(245, 246, 243, .88); --foot: #e7eae4; --board-shadow: rgba(0, 0, 0, .28); --highlight: #dff1e6; --highlight-line: #97cfaf; }
* { box-sizing: border-box }
html { scroll-behavior: smooth }
[id] { scroll-margin-top: 72px }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6 }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)) }
a { color: var(--green-ink); text-underline-offset: 3px }
a:hover { color: var(--cream) }
:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 3px; border-radius: 4px }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; overflow-wrap: break-word; hyphens: auto }   /* lange Großbuchstaben-Wörter auf schmalen Handys */
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); text-transform: uppercase; letter-spacing: .02em }
h3 { font-size: 1.15rem; letter-spacing: .02em }
p { margin: 0 }
.eyebrow { font-family: var(--display); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink) }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: var(--nav-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line) }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding-block: 8px }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em }
.brand img { width: 36px; height: 36px }
.nav ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; font-size: .95rem }
.nav ul a { display: inline-block; padding-block: 6px; color: var(--muted); text-decoration: none }
/* Finger-Bedienung: Links mindestens 44 px hoch */
@media (pointer: coarse) { .nav ul a { padding-block: 12px } }
.nav ul a:hover { color: var(--ink) }
@media (max-width: 720px) {
  /* Logo und Umschalter oben, Bereiche als eigene Zeile darunter */
  .nav .wrap { gap: 0 12px; flex-wrap: wrap; padding-block: 6px 0 }
  .nav nav { order: 3; flex: 1 0 100% }
  [id] { scroll-margin-top: 120px }
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
  .nav nav { min-width: 0 }
  .nav ul { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; padding: 0 28px 0 0; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent) }
  .nav ul::-webkit-scrollbar { display: none }
}

/* Umschalter Design (Wie System | Hell | Dunkel) und Sprache DE | EN (wie im Sitzplan), Hinweis für englische Browser */
.prefs { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; margin-left: auto }
.lang, .design { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden }
.lang a, .design a { padding: 5px 12px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none }
.design a { display: inline-flex; align-items: center; justify-content: center; padding-inline: 9px }
.design svg { width: 16px; height: 16px; display: block }
.lang a:hover, .design a:hover { color: var(--ink) }
.lang a[aria-current="true"], .design a[aria-current="true"] { background: var(--ink); color: var(--bg) }
@media (pointer: coarse) { .lang a { padding-block: 13px } .design a { padding-block: 15px; min-width: 44px } }   /* beide 47 px hoch */
.lang-hint { margin: 0; padding: 8px 0; background: var(--card-2); border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--ink) }
.lang-hint .wrap { display: block }
.legal-note { color: var(--muted); font-style: italic }

/* Kopfbereich */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line) }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; padding-block: 72px 80px; position: relative; z-index: 1 }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); text-transform: uppercase; letter-spacing: .01em }
.hero h1 span { color: var(--red) }
.hero .lead { font-size: 1.15rem; color: var(--muted); margin-top: 18px; max-width: 34em }
.hero .lead strong { color: var(--cream) }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s }
.btn:hover { transform: translateY(-1px) }
.btn-primary { background: var(--red-btn); color: #fff }
.btn-primary:hover { background: var(--red-btn-hover); color: #fff }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255, 255, 255, .03) }
.btn-ghost:hover { border-color: var(--green); color: var(--ink) }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none } }
.badges { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; padding: 0; list-style: none; color: var(--muted); font-size: .95rem }
.badges li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: 2px }
.badges li:nth-child(2)::before { background: var(--red) }
.badges li:nth-child(3)::before { background: var(--dot-3) }
/* Dartscheibe als Vektorgrafik nach Originalmaßen (Steeldart), rein dekorativ */
.board { width: min(100%, 440px); height: auto; justify-self: center; overflow: visible; filter: drop-shadow(0 28px 50px var(--board-shadow)) }
.board .num { font-family: var(--display); font-size: 22px; font-weight: 700; fill: #f4f1e8; text-anchor: middle; dominant-baseline: central }
.hero-glow { position: absolute; inset: auto -10% -40% auto; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(34, 165, 95, .18), transparent); pointer-events: none }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 48px 56px } .board { width: min(70%, 300px); order: -1 } }

/* Abschnitte */
section { padding-block: 72px }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 46em }
.section-head p { color: var(--muted) }
.alt { background: var(--band); border-block: 1px solid var(--line) }

/* Funktionen */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0 }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr) } }
.features li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 8px; align-content: start }
.features li h3 { display: flex; align-items: center; gap: 10px }
.features li h3::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--green); }
.features li:nth-child(even) h3::before { border-color: var(--red) }
.features li p { color: var(--muted); font-size: .97rem }
.new { font-family: var(--body); font-size: .72rem; font-weight: 800; letter-spacing: .06em; color: var(--on-green); background: var(--green-ink); border-radius: 999px; padding: 2px 8px; text-transform: uppercase }

/* News (news.inc.php, gepflegt im Admin unter „News“; der Editor dort lädt diese Datei): links Dachzeile, Überschrift
   und Text mit Buttons (.cta), rechts der zweite Inhalt (.news-side, meist eine Liste) */
.news { padding-block: 40px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, rgba(224, 53, 61, .10), transparent 55%) }
.news .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 40px; align-items: start }
.news .wrap.single { grid-template-columns: minmax(0, 1fr) }
.news .text, .news-side { display: grid; gap: 12px; color: var(--muted); align-content: start }
.news .text { margin-top: 14px }
.news h3 { color: var(--ink) }
.news ul, .news ol { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 4px }
.news strong { color: var(--ink); font-weight: 600 }
.news .cta { margin-top: 8px; gap: 12px }
.news-date { font-size: .9rem; color: var(--muted); margin-bottom: 4px }
.news-more { padding-block: 18px; border-bottom: 1px solid var(--line); font-size: .95rem }
.news-more a { font-weight: 700 }
.news-head { padding-block: 48px 8px; border-bottom: 1px solid var(--line) }
.news-head .section-head { margin-bottom: 32px }
.news-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); text-transform: uppercase; letter-spacing: .01em }
@media (max-width: 860px) { .news .wrap { grid-template-columns: minmax(0, 1fr) } }

/* Offline und Datenverbindungen */
.data-head { margin: 56px 0 0 }
.dataflow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px }
@media (max-width: 760px) { .dataflow { grid-template-columns: minmax(0, 1fr) } }
.dataflow > div { background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 10px; align-content: start }
.dataflow h3 { display: flex; align-items: center; gap: 10px }
.dataflow h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--green) }
.dataflow .online h3::before { background: var(--red) }
.dataflow ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 6px }
.dataflow ul strong { color: var(--ink); font-weight: 600 }
.dataflow p { color: var(--muted); font-size: .95rem }

/* Geschichte */
.story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start }
.story .text { display: grid; gap: 16px; color: var(--muted); max-width: 40em }
.story blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.25; color: var(--cream); border-left: 4px solid var(--red); padding-left: 20px }
@media (max-width: 860px) { .story { grid-template-columns: minmax(0, 1fr); gap: 24px } }

/* Angebote */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px }
@media (max-width: 900px) { .offers { grid-template-columns: minmax(0, 1fr) } }
.offer { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 12px; align-content: start }
.offer p { color: var(--muted) }
.offer .btn { justify-self: start; margin-top: 4px; padding: 10px 18px }
.offer.highlight { background: linear-gradient(160deg, var(--highlight), var(--card) 70%); border-color: var(--highlight-line) }

/* Fußband mit rechtlichen Angaben */
footer { background: var(--foot); border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem }
footer .wrap { padding-block: 56px 40px; display: grid; gap: 36px }
.legal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 36px }
@media (max-width: 860px) { .legal { grid-template-columns: minmax(0, 1fr) } }
.legal h2 { font-size: 1.3rem; color: var(--ink); margin-bottom: 10px }
.legal h3 { font-size: 1rem; color: var(--ink); margin: 18px 0 4px }
.legal p { line-height: 1.55 }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px }
.foot-bottom a { color: var(--muted) }

/* Referenzen (Brandings mit Haken „Auf der Website zeigen“): Farbband in den Markenfarben (SVG-Bild), Icon darauf */
.refs-section { border-top: 1px solid var(--line) }
.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px }
.ref { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .15s, border-color .15s }
.ref:hover { transform: translateY(-2px); border-color: var(--green) }
.ref-banner { display: block; width: 100%; height: 96px; object-fit: cover }
.ref-icon { position: absolute; top: 52px; left: 20px; width: 76px; height: 76px; border-radius: 50%; background: var(--card); border: 4px solid var(--card); box-shadow: 0 8px 20px rgba(0, 0, 0, .3) }
.ref-body { display: grid; gap: 8px; align-content: start; padding: 44px 20px 20px }
.ref-body .eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px }
.ref-body p { color: var(--muted); font-size: .97rem }
.ref-body .ref-period { color: var(--ink); font-weight: 700; font-size: .92rem }
.ref-body .ref-when { font-size: .9rem }
.ref-body .btn { justify-self: start; margin-top: 6px; padding: 9px 16px; font-size: .92rem; overflow-wrap: anywhere }
.ref-later .ref-banner, .ref-later .ref-icon { filter: saturate(.55) }
.refs-more { margin-top: 24px; color: var(--muted) }
@media (prefers-reduced-motion: reduce) { .ref, .ref:hover { transition: none; transform: none } }
