/* TNB Region Jade-Weser-Hunte – angelehnt an den Auftritt des TNB (tennis.de/tnb) */
/* Schrift lokal eingebunden (kein Abruf bei Google – DSGVO-freundlich) */
@font-face { font-family: "Assistant"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/assistant-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Assistant"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/assistant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --red: #BE0A26;
  --red-dark: #960820;
  --red-soft: #FBEAEC;
  --ink: #111111;
  --text: #2A2A2A;
  --muted: #5C5C5C;
  --line: #E4E4E4;
  --soft: #F4F4F4;
  --dark: #2B2D35;
  --ball: #F6C21B;
  --orange: #E8711C;
  --green: #4E9A2E;
  --radius: 14px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --font: "Assistant", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-weight: 300; font-size: clamp(2.3rem, 5.5vw, 4rem); letter-spacing: -.01em; }
h2 { font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-weight: 600; font-size: 1.35rem; }
h4 { font-weight: 700; font-size: 1.05rem; }
p { margin: 0 0 1em; }
.red { color: var(--red); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section.soft { background: var(--soft); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.topbar { background: var(--soft); font-size: .85rem; }
.topbar .container { display: flex; justify-content: flex-end; gap: 22px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: var(--muted); text-decoration: none; }
.topbar a:hover { color: var(--red); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 1rem; padding: 8px 12px; border-radius: 8px; position: relative; white-space: nowrap; }
.nav a:hover { color: var(--red); }
.nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--red); border-radius: 2px; }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: 117px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 28px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.08); display: none; max-height: calc(100vh - 117px); overflow-y: auto; }
  .nav-open .nav { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; }
  .nav a.active::after { display: none; }
  .nav a.active { color: var(--red); }
  .nav .btn { margin: 18px 0 0; text-align: center; justify-content: center; border-bottom: 1px solid var(--red); }
}
@media (max-width: 560px) {
  .topbar { display: none; }
  .nav { inset: 81px 0 auto 0; max-height: calc(100vh - 81px); }
  .brand img { height: 42px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: 999px; border: 1px solid var(--ink); color: var(--ink); background: #fff; text-decoration: none; font-weight: 600; font-size: 1rem; font-family: inherit; cursor: pointer; transition: .15s; line-height: 1.2; }
.btn:hover { border-color: var(--red); color: var(--red); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow::after { content: "→"; transition: transform .15s; }
.btn:hover .arrow::after, a:hover > .arrow::after { transform: translateX(3px); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 6vw, 72px); }
.hero h1 { max-width: 18ch; }
.hero .lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 62ch; color: var(--text); margin: 28px 0 32px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--radius); }
.hero-ball { position: absolute; width: 74px; height: 74px; border-radius: 50%; background: var(--ball); right: -18px; top: -18px; box-shadow: inset -8px -8px 0 rgba(0,0,0,.06); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero-figure { max-width: 640px; } .hero-ball { right: -8px; } }

.page-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { font-size: 1.2rem; max-width: 64ch; margin-top: 16px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card.soft { background: var(--soft); border-color: transparent; }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-weight: 700; margin-bottom: 16px; }

.news-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.news-card .thumb { aspect-ratio: 3/2; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .thumb img { transform: scale(1.04); }
.news-card .meta { font-size: .85rem; color: var(--muted); margin: 16px 0 6px; display: flex; gap: 10px; }
.news-card .meta .tag { color: var(--ink); font-weight: 600; }
.news-card h3 { font-weight: 500; font-size: 1.35rem; }
.news-card:hover h3 { color: var(--red); }

/* Turnierserien-Kacheln (wie TNB "Turnierserien im Überblick") */
.tour-card { border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; min-height: 100%; }
.tour-card .tour-body { padding: 32px 30px; flex: 1; display: flex; flex-direction: column; }
.tour-card h3 { font-weight: 500; font-size: 1.6rem; color: inherit; }
.tour-card p { opacity: .92; }
.tour-card .tour-foot { margin-top: auto; padding-top: 16px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.tour-card .chip { align-self: flex-start; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.tour-red { background: var(--red); color: #fff; }
.tour-red .chip { background: rgba(255,255,255,.18); }
.tour-orange { background: var(--dark); color: #fff; }
.tour-orange .chip { background: var(--orange); }
.tour-green { background: var(--soft); color: var(--ink); }
.tour-green .chip { background: var(--green); color: #fff; }
.tour-card:hover .tour-foot .arrow::after { transform: translateX(4px); }
.tour-card .tour-art { height: 120px; position: relative; overflow: hidden; }
.tour-art .court { position: absolute; inset: 22px 30px; border: 2px solid rgba(255,255,255,.55); border-radius: 4px; }
.tour-art .court::before { content: ""; position: absolute; left: 50%; top: -6px; bottom: -6px; width: 2px; background: rgba(255,255,255,.8); }
.tour-art .court::after { content: ""; position: absolute; left: 22%; right: 22%; top: 50%; height: 2px; background: rgba(255,255,255,.55); }
.tour-art .ball { position: absolute; width: 26px; height: 26px; border-radius: 50%; right: 46px; top: 28px; }
.tour-red .tour-art { background: var(--red-dark); }
.tour-red .tour-art .ball { background: #E5384F; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.tour-orange .tour-art { background: #1F2027; }
.tour-orange .tour-art .ball { background: var(--orange); }
.tour-green .tour-art { background: #E6EDE1; }
.tour-green .tour-art .court { border-color: rgba(78,154,46,.45); }
.tour-green .tour-art .court::before { background: rgba(78,154,46,.6); }
.tour-green .tour-art .court::after { background: rgba(78,154,46,.45); }
.tour-green .tour-art .ball { background: #9BCB3C; }

/* Termine */
.dates { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dates li { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dates .d { text-align: center; border-radius: 12px; background: var(--soft); padding: 8px 0; line-height: 1.1; }
.dates .d strong { display: block; font-size: 1.6rem; font-weight: 600; color: var(--ink); }
.dates .d span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dates .what { font-weight: 600; color: var(--ink); }
.dates .where { font-size: .95rem; color: var(--muted); }
.dates .badge { font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-orange { background: #FDEBDD; color: #B4520C; }
.badge-dark { background: var(--soft); color: var(--muted); }
.dates li.past { opacity: .45; }
.dates li.past .badge::after { content: " · vorbei"; }
.dates li.next .d { background: var(--red); }
.dates li.next .d strong, .dates li.next .d span { color: #fff; }
@media (max-width: 560px) { .dates li { grid-template-columns: 70px 1fr; } .dates .badge { grid-column: 2; justify-self: start; } .dates .d strong { font-size: 1.3rem; } }

/* Fakten-Tabelle */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; border-top: 1px solid var(--line); margin: 0; }
.facts dt, .facts dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--ink); padding-right: 28px; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: none; padding-bottom: 0; } .facts dd { padding-top: 2px; } }

/* Schritte */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 4px 64px; min-height: 44px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps strong { color: var(--ink); }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding: 6px 0 6px 32px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }

/* Team */
.person { text-align: left; }
.person .photo { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--soft); margin-bottom: 16px; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person .photo.placeholder { display: grid; place-items: center; font-size: 2.6rem; font-weight: 300; color: var(--muted); }
.person h3 { font-weight: 600; font-size: 1.2rem; margin-bottom: 2px; }
.person .role { color: var(--red); font-weight: 600; font-size: .95rem; }
.person .extra { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.person a.mail { font-size: .92rem; word-break: break-all; display: inline-block; margin-top: 8px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.split.middle { align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: 0 20px 50px rgba(0,0,0,.10); }

/* Callout */
.callout { border-left: 4px solid var(--red); background: var(--red-soft); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; }
.callout p:last-child { margin: 0; }
.callout.neutral { border-color: var(--dark); background: var(--soft); }

/* Band */
.band { background: var(--red); color: #fff; border-radius: var(--radius); padding: clamp(32px, 5vw, 56px); display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.band h2, .band h3 { color: #fff; margin: 0 0 6px; }
.band p { margin: 0; opacity: .92; max-width: 60ch; }
.band.dark { background: var(--dark); }

/* Downloads */
.downloads { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.downloads li a { display: flex; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.downloads li a:hover { color: var(--red); }
.downloads .ft { flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: 6px 8px; border-radius: 6px; background: var(--red); color: #fff; min-width: 46px; text-align: center; }
.downloads .ft.ext { background: var(--dark); }
.downloads .t { flex: 1; font-weight: 600; }
.downloads .s { font-size: .85rem; color: var(--muted); font-weight: 400; display: block; }

/* Tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs button { font: inherit; font-weight: 600; font-size: .95rem; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-panel[hidden] { display: none; }

/* Kader-Stufen */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.levels div { border-radius: 12px; padding: 18px; color: #fff; }
.levels strong { font-size: 1.5rem; display: block; font-weight: 600; }
.levels span { font-size: .9rem; opacity: .9; }
.levels div:nth-child(1) { background: var(--red); }
.levels div:nth-child(2) { background: #C83A4F; }
.levels div:nth-child(3) { background: #D46A79; }
.levels div:nth-child(4) { background: #DE98A2; }
@media (max-width: 640px) { .levels { grid-template-columns: repeat(2, 1fr); } }

/* Tabelle */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .98rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); color: var(--ink); font-weight: 700; }
tr:last-child td { border-bottom: none; }

/* Vereine */
.club-tools { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.club-tools input { flex: 1; min-width: 220px; }
.clubs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.clubs li { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.clubs li[hidden] { display: none; }
.clubs .n { font-weight: 600; color: var(--ink); line-height: 1.3; }
.clubs .o { font-size: .88rem; color: var(--muted); }
.clubs a { flex: none; font-size: .85rem; font-weight: 600; text-decoration: none; }
@media (max-width: 960px) { .clubs { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .clubs { grid-template-columns: 1fr; } }

/* Formular */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #CFCFCF; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
textarea { min-height: 160px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .95rem; color: var(--text); }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 18px; border-radius: 10px; display: none; }
.form-status.ok { display: block; background: #E8F4E2; color: #2D5C1A; }
.form-status.err { display: block; background: var(--red-soft); color: var(--red-dark); }

/* Artikel */
.article { max-width: 760px; }
.article .meta { color: var(--muted); font-size: .95rem; margin-bottom: 24px; }
.article figure { margin: 0 0 32px; }
.article figure img { border-radius: var(--radius); width: 100%; }
.article figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.article ul { padding-left: 1.2em; }
.news-list { display: grid; gap: 72px; }
.news-item { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: start; scroll-margin-top: 110px; }
.news-item .thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--soft); position: sticky; top: 110px; }
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item .meta { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.news-item h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.news-item .source { font-size: .9rem; margin-top: 8px; }
.winners { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.winners li { background: var(--soft); border-radius: 10px; padding: 10px 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.winners li span:first-child { font-weight: 700; color: var(--ink); }
@media (max-width: 860px) { .news-item { grid-template-columns: 1fr; gap: 20px; } .news-item .thumb { position: static; } }

/* Video-Links */
.video-card { display: flex; gap: 16px; align-items: center; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.video-card:hover { border-color: var(--red); color: var(--red); }
.video-card .play { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--red); position: relative; }
.video-card .play::after { content: ""; position: absolute; left: 19px; top: 15px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.video-card strong { display: block; }
.video-card span { font-size: .9rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--dark); color: #C9CAD0; margin-top: 0; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--ball); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-logo { background: #fff; display: inline-block; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; }
.footer-logo img { height: 46px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.to-top { position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: #fff; border: none; font-size: 1.3rem; cursor: pointer; opacity: 0; pointer-events: none; transition: .2s; box-shadow: 0 8px 20px rgba(190,10,38,.35); z-index: 40; }
.to-top.show { opacity: 1; pointer-events: auto; }

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 24px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Karte (lädt erst nach Klick) */
.map-consent { margin-top: 24px; border-radius: var(--radius); overflow: hidden; background: #E9ECEF; height: clamp(360px, 56vw, 620px); position: relative; }
.map-consent iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; gap: 4px; justify-items: center;
  background: repeating-linear-gradient(45deg, #EEF0F2 0 18px, #E6E9EC 18px 36px); }
.map-placeholder p { margin: 0 0 8px; max-width: 46ch; }

/* Link-Kacheln behalten ihre Farbe beim Hover */
.tour-red, .tour-red:hover, .tour-orange, .tour-orange:hover { color: #fff; }
.tour-green, .tour-green:hover, .news-card, .news-card:hover { color: var(--ink); }
.tour-card { transition: transform .2s, box-shadow .2s; }
a.tour-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.nowrap { white-space: nowrap; }
.split > *, .grid > * { min-width: 0; }
p a, dd a, .callout a { overflow-wrap: anywhere; }
.nav a.btn-red, .nav a.btn-red:hover { color: #fff; }
@media (max-width: 1080px) { .nav a.btn { border-radius: 999px; border-bottom: 1px solid var(--red); } }
@media (max-width: 640px) {
  .grid-4:has(> .person) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .person h3 { font-size: 1.05rem; }
  .person .role, .person .extra, .person a.mail { font-size: .85rem; }
}
@media (min-width: 641px) and (max-width: 960px) { .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Leaflet-Karten */
.map-consent.loading::after { content: "Karte wird geladen …"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.map-consent .leaflet-container { font-family: var(--font); font-size: .9rem; }
.map-consent .leaflet-popup-content { line-height: 1.5; margin: 12px 16px; }
.map-consent .leaflet-popup-content strong { color: var(--ink); font-size: 1rem; }
.map-legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px; font-size: .9rem; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.dot-club { background: var(--red); border: 2px solid var(--red); }
.dot-club.approx { background: rgba(190,10,38,.35); border-style: dashed; }
.dot-red { background: var(--red); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--red); }
.dot-orange { background: var(--orange); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--orange); }
.section.soft .callout.neutral { background: #fff; }

/* ---------- Anmeldeformulare ---------- */
.reg-form { display: grid; gap: 28px; }
.reg-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); margin: 0; background: #fff; display: grid; gap: 18px; min-width: 0; }
.reg-form legend { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; font-weight: 600; color: var(--ink); padding: 0 8px; margin-left: -8px; }
.reg-form legend .num { width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 1rem; flex: none; }
.reg-form.orange legend .num { background: var(--orange); }
.reg-form .row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.reg-form .row-plz { display: grid; grid-template-columns: 140px 1fr; gap: 18px; }
@media (max-width: 700px) { .reg-form .row-3 { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .reg-form .row-plz { grid-template-columns: 1fr; } }
.hint { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; display: flex; gap: 14px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; font-weight: 400; margin: 0; transition: border-color .15s, background .15s; }
.choice input { width: 20px; height: 20px; flex: none; accent-color: var(--red); margin: 0; }
.reg-form.orange .choice input { accent-color: var(--orange); }
.choice .c-date { font-weight: 700; color: var(--ink); display: block; }
.choice .c-place { font-size: .92rem; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.reg-form.orange .choice:has(input:checked) { border-color: var(--orange); background: #FDEBDD; }
.choice.is-past { opacity: .45; cursor: not-allowed; }
.choice.is-past .c-place::after { content: " · vorbei"; }
.choice.is-closed .c-place::after { content: " · Meldeschluss vorbei"; }
.choice.is-closed { opacity: .55; cursor: not-allowed; }
.radio-row { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-row .choice { flex: 1; min-width: 180px; }
.toggle-box { background: var(--soft); border-radius: 12px; padding: 16px 18px; }
.creditor { background: var(--soft); border-radius: 12px; padding: 16px 18px; font-size: .95rem; }
.creditor dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 0; }
.creditor dt { font-weight: 600; color: var(--ink); }
.creditor dd { margin: 0; }
@media (max-width: 520px) { .creditor dl { grid-template-columns: 1fr; } .creditor dd { margin-bottom: 6px; } }
.mandate-text { font-size: .95rem; border-left: 3px solid var(--line); padding-left: 16px; color: var(--text); }
.sig-wrap { border: 1.5px dashed #BDBDBD; border-radius: 12px; background: #FCFCFC; position: relative; touch-action: none; }
.sig-wrap canvas { width: 100%; height: 180px; display: block; cursor: crosshair; border-radius: 12px; }
.sig-wrap .sig-line { position: absolute; left: 24px; right: 24px; bottom: 44px; border-bottom: 1px solid #CFCFCF; pointer-events: none; }
.sig-wrap .sig-ph { position: absolute; left: 24px; bottom: 16px; font-size: .85rem; color: var(--muted); pointer-events: none; }
.sig-wrap.signed .sig-ph { display: none; }
.sig-wrap.invalid { border-color: var(--red); }
.sig-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 12px; flex-wrap: wrap; }
.btn-small { padding: 7px 16px; font-size: .9rem; }
.field-error { color: var(--red-dark); font-size: .88rem; margin-top: 6px; display: none; }
.invalid + .field-error, .show-error .field-error { display: block; }
input.invalid, select.invalid { border-color: var(--red); background: #FFF8F9; }
.submit-bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.reg-success { display: none; text-align: center; padding: clamp(32px, 6vw, 64px) 24px; border-radius: var(--radius); background: #EEF6EA; }
.reg-success.show { display: block; }
.reg-success .big { font-size: 3rem; line-height: 1; margin-bottom: 12px; }
.reg-success h2 { margin-bottom: 8px; }
.reg-side { position: sticky; top: 110px; display: grid; gap: 18px; }
.reg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .reg-layout { grid-template-columns: 1fr; } .reg-side { position: static; } }
.reg-form .hp { position: absolute; left: -9999px; }

.choice[hidden] { display: none; }

/* Galerie & Lightbox */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: -32px; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.05); }
.thumb-plain { display: grid; place-items: center; background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%) !important; color: #fff; text-align: center; font-size: 1.8rem; font-weight: 300; line-height: 1.2; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,12,.92); display: grid; place-items: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 112px); border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 56px 8px; } .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }

/* Hinweis: keine offizielle TNB-Seite */
.disclaimer-band { padding: 0 0 clamp(32px, 5vw, 56px); }
.disclaimer { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 18px 22px; background: #fff; font-size: .98rem; }
.disclaimer p { margin: 0; }
.disclaimer-icon { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; display: grid; place-items: center; font-style: italic; font-family: Georgia, serif; }
.footer-note { font-size: .82rem; opacity: .8; margin-top: 12px; }

/* Camp-Anmeldung geschlossen */
.reg-closed { margin: 0 0 24px; }
.reg-form.is-closed fieldset, .reg-form.is-closed .submit-bar { opacity: .55; }
.reg-form.is-closed .sig-wrap canvas { cursor: not-allowed; }

/* Elternbereich: Kacheln */
.hub-card { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; min-height: 100%; }
.hub-card:hover { color: var(--ink); border-color: var(--red); box-shadow: 0 12px 30px rgba(0,0,0,.08); transform: translateY(-2px); }
.hub-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; font-size: 1.5rem; }
.hub-red .hub-icon { background: var(--red-soft); }
.hub-orange .hub-icon { background: #FDEBDD; }
.hub-body { flex: 1; display: grid; gap: 2px; }
.hub-body strong { font-size: 1.15rem; font-weight: 600; }
.hub-body span { font-size: .92rem; color: var(--muted); }
.hub-card > .arrow { color: var(--red); font-weight: 700; font-size: 1.2rem; }
.hub-card:hover > .arrow::after { transform: translateX(4px); }
.hub-ext { color: var(--red); font-weight: 700; font-size: 1.2rem; }
.hub-small { padding: 18px 20px; }
.hub-small .hub-body strong { font-size: 1.02rem; }
