/* BSV Bergemer-Ennahofen – keine externen Fonts/CDNs (DSGVO) */
:root {
  --ink: #111312;
  --muted: #5b625e;
  --bg: #f5f5f5;
  --card: #ffffff;
  --line: #e2e2e2;
  --red: #c8102e;
  --red-dark: #9b0c23;
  --red-light: #ff4458; /* Rot auf Schwarz, kontraststark */
  --radius: 14px;
  --wrap: 1120px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--red); margin: 0 0 .75rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 3px solid var(--red-light); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; line-height: 1.1; }
.brand img { height: 46px; width: auto; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav .cta { background: var(--red); color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 12px 14px; }
}

/* Hero */
.hero { background: var(--ink); color: #fff; border-bottom: 6px solid var(--red); overflow: hidden; position: relative; }
.hero::before { /* Spielfeldlinien */
  content: ""; position: absolute; inset: 0; opacity: .12;
  background:
    radial-gradient(circle at 78% 50%, transparent 160px, #fff 161px, #fff 163px, transparent 164px),
    linear-gradient(90deg, transparent calc(78% - 1px), #fff calc(78% - 1px), #fff calc(78% + 1px), transparent calc(78% + 1px));
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero p.lead { font-size: 1.2rem; color: #d4d4d4; max-width: 34em; }
.hero .eyebrow { color: var(--red-light); }
.hero-logo { justify-self: center; background: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 30px 60px rgba(0,0,0,.35); transform: rotate(2deg); max-width: 300px; }
.stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 36px; }
.stats strong { display: block; font-size: 2.2rem; font-weight: 800; color: var(--red-light); line-height: 1; }
.stats span { color: #d4d4d4; font-size: .9rem; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 48px; }
  .hero-logo { order: -1; max-width: 160px; padding: 16px; }
}

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; padding: 14px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border-color: currentColor; color: inherit; background: none; }
.btn-dark { background: var(--ink); color: #fff; }

/* Sections */
section { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
#angebote .grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } /* 6 Abteilungen = 3 × 2 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.alt .card { background: var(--bg); }
.card .icon { margin-bottom: 10px; }
.card .icon svg { width: 32px; height: 32px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[id] { scroll-margin-top: 84px; } /* Sprungziele nicht unter der festen Kopfzeile */
.card p { margin: 0; color: var(--muted); }
.card .meta { margin-top: 12px; font-size: .9rem; color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 760px) { section { padding: 56px 0; } .split { grid-template-columns: 1fr; gap: 24px; } }

.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.values li { padding-left: 34px; position: relative; }
.values li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; font-size: .8rem; display: grid; place-items: center; font-weight: 800; }

.cta-band { background: var(--red); color: #fff; border-radius: 24px; padding: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: .3em 0 0; color: #ffe1e4; }
.cta-band .btn-primary { background: #fff; color: var(--red); }
.cta-band .btn-primary:hover { background: var(--ink); color: #fff; }
@media (max-width: 760px) { .cta-band { padding: 32px 24px; } }

/* Tabellen (Beiträge) */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
th { background: var(--ink); color: #fff; font-weight: 700; }
td + td, th + th { text-align: right; white-space: nowrap; }
@media (max-width: 760px) { th, td { padding: 12px 10px; font-size: .9rem; } th + th { white-space: normal; } }
tr:last-child td { border-bottom: 0; }
.note { font-size: .9rem; color: var(--muted); }

/* Externes Formular – 2-Klick-Lösung */
.embed-consent { border: 2px dashed var(--line); border-radius: var(--radius); background: var(--card); padding: 32px; text-align: center; }
.embed-consent p { max-width: 560px; margin: 0 auto 16px; color: var(--muted); }
.embed-frame { width: 100%; min-height: 900px; border: 0; border-radius: var(--radius); background: #fff; }

/* Rechtstexte */
.legal { max-width: 780px; padding-top: 56px; padding-bottom: 80px; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal h3 { margin-top: 1.5em; }
.ph { background: #fff3b0; padding: 0 4px; border-radius: 4px; } /* Platzhalter – vor Livegang ersetzen */

/* Footer */
.site-footer { background: var(--ink); color: #bbb; padding: 48px 0 32px; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer ul a { display: inline-block; padding: 8px 0; } /* Klickfläche ≥ 32px */
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer .bottom { grid-column: 1 / -1; border-top: 1px solid #333; padding-top: 20px; font-size: .85rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
