/* SV Binningen – Stylesheet
   Vereinsfarben: Rot / Weiß. Keine externen Schriften oder Dienste (DSGVO-freundlich). */

:root {
  --red: #9f1815;      /* Logo-Rot */
  --red-dark: #7a110f;
  --red-soft: #f8e9e8;
  --ink: #1a1a1f;
  --muted: #666673;
  --text: #454550;
  --heading: #30303a;
  --line: #e8e3e0;
  --bg: #ffffff;
  --soft: #f8f5f3;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(26 26 31 / .06), 0 8px 24px rgb(26 26 31 / .07);
  --wrap: 1300px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; color: var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; background: var(--bg); }
img, svg { max-width: 100%; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
/* Vom Handy automatisch erkannte Nummern/Daten nie blau */
a[x-apple-data-detectors] { color: inherit !important; text-decoration: none !important; font: inherit !important; }
html { -webkit-tap-highlight-color: rgb(159 24 21 / .15); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 800; color: var(--heading); }
/* Auf dunklen und roten Flächen sind Überschriften weiß */
.hero, .page-head, .cta, .site-footer { --heading: #fff; }
h1 { font-size: clamp(2.3rem, 1.2rem + 4.4vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--soft { background: var(--soft); }
.section-head { max-width: 680px; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .8rem; }
.lead { font-size: 1.125rem; line-height: 1.7; color: #383843; }
.split p, .prose p, .section-head p { max-width: 62ch; }
.lead + p { margin-top: 1.1em; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Entwurfs-Modus (in build.py: DRAFT = True/False) */
.draft-bar { background: #fff3b0; color: #4a3f00; font-size: .875rem; text-align: center; padding: 6px var(--gutter); }
.draft .todo { background: #fff3b0; color: #4a3f00; box-shadow: 0 0 0 2px #fff3b0; border-radius: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.5em; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--light { background: #fff; color: var(--red); }
.btn--light:hover { background: var(--red-soft); color: var(--red-dark); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgb(255 255 255 / .12); color: inherit; }
.btn--outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn--outline:hover { background: var(--red); color: #fff; }
.btn--icon { width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%; }
.btn--icon .icon { width: 24px; height: 24px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 58px; width: auto; }
.brand b { display: block; font-size: 1.1rem; line-height: 1.1; letter-spacing: -.01em; }
.brand small { display: block; font-size: .78rem; color: var(--muted); }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"] { color: var(--red); }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: none; border: 0; border-radius: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile-Menü */
.nav.is-open { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto; padding: 12px var(--gutter) 40px; }
.nav.is-open > ul > li { border-bottom: 1px solid var(--line); }
.nav.is-open a { display: block; padding: 14px 4px; font-size: 1.1rem; }
.nav.is-open .sub { padding: 0 0 10px 14px; }
.nav.is-open .sub a { font-weight: 500; padding: 9px 4px; font-size: 1rem; color: var(--muted); }
.nav.is-open .sub-label { display: block; padding: 14px 4px 4px; font-weight: 700; font-size: 1.1rem; }
.nav .sub-head { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); padding: 12px 12px 4px; }
.nav.is-open .nav-cta { border: 0; padding-top: 18px; }
.nav.is-open .nav-cta a { text-align: center; }
.nav-cta a { background: var(--red); color: #fff !important; border: 2px solid var(--red); border-radius: 999px; padding: .65em 1.3em; transition: background .15s, color .15s; }
.nav .nav-cta a:hover, .nav .nav-cta a:focus-visible { background: var(--red-soft); color: var(--red) !important; border-color: var(--red); }

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .nav { display: block; }
  .nav > ul { display: flex; align-items: center; gap: 4px; }
  .nav > ul > li { position: relative; }
  .nav > ul > li > a, .nav .sub-label { display: block; padding: 10px 14px; border-radius: 10px; font-size: .98rem; }
  .nav > ul > li > a:hover, .nav .has-sub:hover > .sub-label { background: var(--soft); }
  .sub-label { font-weight: 600; cursor: default; }
  .sub-label::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
  .sub { position: absolute; left: 0; top: 100%; min-width: 250px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
  .sub a { display: block; padding: 9px 12px; border-radius: 8px; font-weight: 500; }
  .sub a:hover { background: var(--red-soft); color: var(--red-dark); }
  .nav-cta { margin-left: 8px; }
  .nav-cta a { display: block; }
}

/* Hero */
.hero { background: linear-gradient(120deg, var(--red-dark), var(--red) 60%, #b5221d); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; gap: 32px; padding-block: clamp(40px, 7vw, 88px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { color: rgb(255 255 255 / .9); max-width: 34ch; }
.hero .eyebrow { color: #fff; opacity: .85; }
.hero .media { border-radius: var(--radius); box-shadow: 0 20px 50px rgb(0 0 0 / .3); }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

/* Vereinslogo als großes, sehr blasses Wasserzeichen im Kopf der Unterseiten */
.page-head { isolation: isolate; }
.page-head::before { content: ""; position: absolute; z-index: -1; pointer-events: none; height: 230px; aspect-ratio: 68.45 / 79.23; background: url("../img/logo.svg") no-repeat center / contain; mix-blend-mode: multiply; opacity: .3; right: max(16px, calc((100% - var(--wrap)) / 2 + 24px)); top: 46%; transform: translateY(-50%); }
@media (max-width: 899px) { .page-head::before { height: 150px; right: -34px; top: 40%; opacity: .18; } }

/* Unterseiten-Kopf */
.page-head { background: var(--red); color: #fff; padding-block: clamp(36px, 6vw, 72px) clamp(44px, 7vw, 84px); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%); margin-bottom: -28px; position: relative; }
.page-head h1 { font-size: clamp(2rem, 1.2rem + 3.5vw, 3.4rem); margin: 0; }
.page-head p { color: rgb(255 255 255 / .9); font-size: 1.15rem; max-width: 60ch; margin: .8rem 0 0; }
.crumbs { font-size: .875rem; margin-bottom: 1rem; opacity: .9; }
.crumbs a { color: #fff; }
.crumbs span { margin-inline: .4em; opacity: .6; }
.page-head + .section { padding-top: clamp(64px, 9vw, 108px); }

/* Platzhalterbilder */
.media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: var(--r, 4 / 3); background: var(--soft); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; text-align: center; color: #857f7c; font-size: .875rem; font-weight: 600; background: repeating-linear-gradient(135deg, #f0eae7 0 14px, #e9e2de 14px 28px); }
.ph .icon { width: 34px; height: 34px; opacity: .7; }
.hero .media { background: transparent; }
.hero .ph { background: repeating-linear-gradient(135deg, rgb(255 255 255 / .2) 0 14px, rgb(255 255 255 / .12) 14px 28px); color: rgb(255 255 255 / .85); }

/* Grids & Karten */
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--fill { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }  /* wenige Kacheln behalten normale Größe */
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card > .media { margin: -24px -24px 20px; border-radius: var(--radius) var(--radius) 0 0; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 700; display: inline-flex; gap: .4em; align-items: center; text-decoration: none; }
.card .more .icon { transition: transform .15s; }
.card:hover .more .icon { transform: translateX(4px); }
a.card { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(26 26 31 / .06), 0 14px 32px rgb(26 26 31 / .12); color: inherit; }
.badge { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--red-soft); color: var(--red); margin-bottom: 16px; }
.badge .icon { width: 26px; height: 26px; }

/* Schnellzugriff */
.quick { margin-top: -40px; position: relative; z-index: 2; }
.quick .grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.quick a.card { flex-direction: row; align-items: center; gap: 16px; padding: 20px; }
.quick .badge { margin: 0; }
.quick b { display: block; font-size: 1.05rem; }
.quick small { color: var(--muted); }

/* Termine */
.events { display: grid; gap: 14px; }
.event { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px 16px 16px; }
.event .date { text-align: center; background: var(--red); color: #fff; border-radius: 12px; padding: 10px 6px; line-height: 1.1; font-weight: 800; }
.event .date small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.event .date b { display: block; font-size: 1.55rem; }
.event h3 { margin: 0 0 .15em; }
.event p { margin: 0; color: var(--muted); font-size: .98rem; }
.event p .icon { display: inline-block; vertical-align: -.2em; margin-right: .15em; color: var(--red); }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--red-soft); color: var(--red-dark); margin-bottom: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { font: inherit; font-weight: 600; padding: .5em 1.1em; border-radius: 999px; border: 2px solid var(--line); background: #fff; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.event[hidden] { display: none; }

/* Termine: Liste links, Monatskalender rechts */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.cal-col--cal { order: -1; }
@media (min-width: 980px) {
  .cal-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .cal-col--cal { order: 0; }
}
.cal-list { position: relative; max-height: min(70vh, 640px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); padding: 0 14px 16px; }
@media (min-width: 980px) { .cal-list { max-height: min(78vh, 780px); } }
.ev-group[hidden] { display: none; }
.ev-group + .ev-group { margin-top: 10px; }
.ev-month { position: sticky; top: 0; z-index: 2; margin: 0 -14px 12px; padding: 14px 14px 10px; background: var(--soft); border-bottom: 1px solid var(--line); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.cal-list .event { transition: box-shadow .3s, outline-color .3s; }
.event.is-target { outline: 3px solid var(--red); outline-offset: 2px; box-shadow: 0 0 0 7px var(--red-soft); }
.event.is-past .date { background: #7d7a78; }
.event.is-past h3, .event.is-past p { opacity: .8; }
.cal { padding: 20px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal-title { margin: 0; flex: 1; text-align: center; font-size: 1.35rem; }
.cal-nav { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.cal-nav:hover { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.cal-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.cal-tools button { font: inherit; font-size: .875rem; font-weight: 600; padding: .4em 1em; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.cal-tools button:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { padding: 4px 0; text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cal-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 46px; padding: 4px; border-radius: 10px; background: var(--soft); overflow: hidden; }
.cal-day.is-outside { background: transparent; }
.cal-num { display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; border-radius: 50%; font-size: .9rem; font-weight: 700; line-height: 1; border: 2px solid transparent; }
.cal-day.is-today .cal-num { border-color: var(--ink); }
.cal-day.has-event { background: var(--red); color: #fff; cursor: pointer; transition: background .15s; }
.cal-day.has-event:hover { background: var(--red-dark); }
.cal-day.has-event.is-today .cal-num { border-color: #fff; }
.cal-ev { position: absolute; inset: 0; margin: 0; padding: 0; border: 0; background: transparent; color: transparent; font-size: 0; cursor: pointer; border-radius: 10px; }
.cal-ev:not(:first-of-type) { display: none; }
.cal-ev:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
@media (min-width: 640px) {
  .cal-grid { gap: 6px; }
  .cal-day { align-items: stretch; justify-content: flex-start; min-height: 88px; padding: 6px; }
  .cal-num { align-self: flex-start; }
  .cal-ev { position: static; inset: auto; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; padding: 3px 5px; border-radius: 6px; background: rgb(255 255 255 / .18); color: #fff; font: inherit; font-size: .68rem; font-weight: 600; line-height: 1.2; text-align: left; }
  .cal-ev:hover { background: rgb(255 255 255 / .3); }
}
.cal-legend { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
.cal-dot { flex: none; width: 14px; height: 14px; border-radius: 4px; background: var(--red); }

/* Jubiläum */
.media--logo { max-width: 340px; margin-inline: auto; width: 100%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.media--logo img { object-fit: contain; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.figure-wide { margin: 32px 0 0; }
.figure-wide figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); text-align: center; }

/* Foto-Mosaik (Jubiläum): 2 Spalten mobil, 4 Spalten ab 720 px; Zeilenhöhe = 2/3 Spaltenbreite */
.mosaic-wrap { container-type: inline-size; }
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; grid-auto-rows: 150px; }
@supports (width: 1cqw) { .mosaic { grid-auto-rows: calc((100cqw - 10px) / 2 * .667); } }
.mosaic-item { margin: 0; grid-row: span 2; overflow: hidden; border-radius: 10px; background: var(--soft); box-shadow: var(--shadow); }
.mosaic-item--w { grid-column: span 2; }
.mosaic-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 720px) {
  .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; grid-auto-rows: 170px; }
  @supports (width: 1cqw) { .mosaic { grid-auto-rows: calc((100cqw - 3 * 14px) / 4 * .667); } }
}

/* Logo-Fläche und Foto-Streifen (kleine Originalbilder nicht hochskalieren) */
.media--emblem { background: #fff; border: 1px solid var(--line); }
.media--emblem img { object-fit: contain; padding: 8%; }
.photo-strip { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.photo-strip img { height: 190px; width: auto; max-width: 100%; border-radius: 10px; object-fit: cover; box-shadow: var(--shadow); }

/* Bilder in Terminen */
.event-photo { max-width: 340px; margin-top: 12px; }
.event-photo .media { border-radius: 10px; }
.event-photo--raw img { display: block; max-width: 100%; height: auto; border-radius: 10px; }

/* News und Flyer */
a.media { display: block; }
.media--top img { object-position: center top; }
.section--red { background: var(--red-soft); }
.media--flyer { max-width: 380px; width: 100%; margin-inline: auto; box-shadow: var(--shadow); transition: transform .2s; }
.media--flyer:hover { transform: translateY(-3px) rotate(-.6deg); }
.news-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-weight: 700; }
.news-links a { display: inline-flex; align-items: center; gap: .4em; text-decoration: none; }
.card .hint { margin-top: auto; }
/* Terminkachel: Datum statt Foto */
.card-date { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--red); color: #fff; text-decoration: none; text-align: center; aspect-ratio: 21 / 9; }
.card-date:hover { color: #fff; }
.card-date span { font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .92; }
.card-date b { font-size: clamp(2.6rem, 6vw, 3.4rem); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
.card--event .hint { display: inline-flex; align-items: center; gap: .4em; margin-top: 12px; }
.card--event p { margin-bottom: 12px; }

/* Sponsoren */
.sponsor-card { text-decoration: none; }
.sponsor-logo { display: grid; place-items: center; height: 180px; margin: -24px -24px 18px; padding: 24px; background: #fff; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--line); }
.sponsor-logo img { max-width: 100%; max-height: 132px; width: auto; height: auto; object-fit: contain; }
.sponsor-logo--dark { background: var(--ink); border-bottom-color: var(--ink); }
.sponsor-card .more .icon { transition: none; }
.sponsor-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.sponsor-chip { display: grid; place-items: center; box-sizing: border-box; width: 240px; height: 96px; padding: 14px 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: transform .15s, box-shadow .15s; }
.sponsor-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sponsor-chip img { display: block; width: auto; height: auto; max-width: 200px; max-height: 66px; object-fit: contain; }
.sponsor-chip--dark { background: var(--ink); border-color: var(--ink); }
.sponsor-strip + .btn-row { justify-content: center; }

/* Bildershow (Startseite) */
.slideshow { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--red-dark); box-shadow: 0 20px 50px rgb(0 0 0 / .3); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide--contain img { object-fit: contain; background: #111; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 110px 16px 18px; color: #fff; font-weight: 700; text-shadow: 0 1px 6px rgb(0 0 0 / .6); background: linear-gradient(transparent, rgb(0 0 0 / .62)); }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--ink); cursor: pointer; box-shadow: 0 2px 10px rgb(0 0 0 / .3); transition: background .15s, color .15s; }
.slide-btn:hover { background: var(--red); color: #fff; }
.slide-prev { left: 12px; }
.slide-next { right: 12px; }
.slide-bar { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border-radius: 999px; background: rgb(0 0 0 / .55); color: #fff; font-size: .82rem; font-weight: 700; }
.slide-play { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .92); cursor: pointer; position: relative; }
.slide-play::before { content: ""; position: absolute; inset: 9px 8px; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); }
.slide-play[aria-pressed="true"]::before { inset: 8px 8px 8px 11px; border: 0; background: var(--ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.slideshow:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* Galerie: zufälliger Bildwechsel */
.gal-tile img { position: absolute; inset: 0; transition: opacity .9s ease; }
.gal-tile img.is-new { opacity: 0; }

/* Nach-oben-Knopf */
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 2px solid var(--red); border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 8px 22px rgb(26 26 31 / .28); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .25s, transform .25s, visibility .25s, background .15s, color .15s; }
.to-top .icon { width: 26px; height: 26px; stroke-width: 2.6; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover, .to-top:focus-visible { background: var(--red-soft); color: var(--red); }
@media (min-width: 900px) { .to-top { right: 28px; bottom: 28px; } }
@media print { .to-top { display: none; } }

/* Sponsoren auf dem Handy: zwei Logos pro Reihe */
@media (max-width: 639px) {
  .sponsor-strip { gap: 10px; }
  .sponsor-chip { width: calc(50% - 5px); height: 84px; padding: 10px 12px; }
  .sponsor-chip img { max-width: 100%; max-height: 56px; }
  .grid--sponsors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid--sponsors .sponsor-card { padding: 14px; }
  .grid--sponsors .sponsor-logo { height: 110px; margin: -14px -14px 12px; padding: 12px; }
  .grid--sponsors .sponsor-logo img { max-height: 80px; }
  .grid--sponsors h3 { font-size: 1.02rem; }
  .grid--sponsors .card p { font-size: .88rem; line-height: 1.45; }
}

/* Personen */
.person { text-align: center; }
.person .avatar { width: 132px; height: 132px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; background: var(--soft); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--red); }
.person .avatar .ph { border-radius: 50%; }
.person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person .avatar .ph .icon { width: 44px; height: 44px; }
.person .role { color: var(--red); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .2em; }
.person h3 { margin-bottom: .3em; }
.person p { margin: 0; color: var(--muted); font-size: .98rem; }
.person a { font-weight: 600; }

/* Tabellen, Listen */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts .icon { color: var(--red); margin-top: .25em; }
.check { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.check li { padding-left: 1.7em; position: relative; }
.check li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1em; height: .55em; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg) scale(.8); }
.split { display: grid; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.split .media { --r: 4 / 3; }

/* Chronik */
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 3px solid var(--red-soft); display: grid; gap: 28px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -35px; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: var(--red); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--red); }
.timeline b { display: block; color: var(--red); font-size: 1.15rem; }
.timeline p { margin: 0; color: var(--muted); }

/* CTA-Band */
.cta { background: var(--ink); color: #fff; border-radius: 24px; padding: clamp(28px, 6vw, 64px); display: grid; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; background: var(--red); border-radius: 50%; opacity: .9; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { margin-bottom: .3em; }
.cta p { color: rgb(255 255 255 / .8); margin: 0; max-width: 50ch; }
@media (min-width: 800px) { .cta { grid-template-columns: 1fr auto; } .cta .btn-row { margin: 0; } }

/* Formulare */
.form { display: grid; gap: 18px; }
.form .row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
input, select, textarea { font: inherit; padding: .8em 1em; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
textarea { min-height: 150px; resize: vertical; }
.check-label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: 14px 18px; border-radius: 10px; font-size: .98rem; }
.form-status--ok { background: #e7f4ea; color: #1d5a2c; border-left: 4px solid #2f8f4a; }
.form-status--error { background: var(--red-soft); color: var(--red-dark); border-left: 4px solid var(--red); }
.form-status a { color: inherit; font-weight: 700; }
.form.is-sending { opacity: .75; pointer-events: none; }
/* Absende-Button: schlicht, nur so breit wie der Text */
.form .btn[type="submit"] { justify-self: start; padding: .7em 1.5em; border-radius: 10px; font-size: .98rem; font-weight: 600; letter-spacing: .01em; }
.form .btn[type="submit"]:hover { transform: none; }
.form .btn[type="submit"]:disabled { opacity: .7; cursor: default; }
.check-label input { width: auto; margin-top: .35em; accent-color: var(--red); }
.hint { font-size: .9rem; color: var(--muted); }
.notice { border-left: 4px solid var(--red); background: var(--red-soft); padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: .98rem; }

/* Galerie, Sponsoren */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.gallery .media { --r: 1 / 1; border-radius: 10px; }
.gallery .media:nth-child(5n + 1) { grid-column: span 2; grid-row: span 2; }
.sponsor { display: grid; place-items: center; aspect-ratio: 3 / 2; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-weight: 700; text-align: center; padding: 12px; background: #fff; }
.sponsor--gold { border-color: #d4a72c; }

/* Fließtext (Impressum & Co.) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }

/* Footer */
.site-footer { background: var(--ink); color: #d9d6d4; padding-top: clamp(40px, 6vw, 72px); margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 32px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 36px; }
.footer-grid > :first-child { grid-column: 1 / -1; }
.footer-grid a { overflow-wrap: anywhere; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 2.2fr repeat(5, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: auto; } }
/* Großes Vereinslogo (farbig auf weißer Kachel) neben der Adresse */
.footer-id { display: flex; align-items: flex-start; gap: 22px; }
.footer-logo { flex: none; background: #fff; padding: 14px 16px; border-radius: 14px; }
.footer-logo img { display: block; height: 128px; width: auto; }
.footer-logo:hover { text-decoration: none; }
.footer-id p { margin: 0 0 .9em; }
.footer-name { line-height: 1.2; }
.footer-name b { display: block; color: #fff; font-size: 1.1rem; letter-spacing: -.01em; }
.footer-name small { display: block; margin-top: 2px; font-size: .78rem; color: #bbb; }
@media (max-width: 419px) { .footer-logo img { height: 96px; } .footer-id { gap: 16px; } }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .14); padding-block: 20px; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #aaa; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.stripe { height: 6px; background: var(--red); }

/* Einmaliges Willkommens-Popup */
.welcome { width: min(92vw, 420px); padding: 0; border: 0; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / .4); overflow: hidden; }
.welcome::backdrop { background: rgb(26 26 31 / .62); backdrop-filter: blur(3px); }
.welcome form { padding: 34px 28px 30px; text-align: center; border-top: 8px solid var(--red); }
.welcome img { margin: 0 auto 14px; height: 74px; width: auto; }
.welcome h2 { margin: 0 0 .3em; font-size: clamp(1.9rem, 1.2rem + 3vw, 2.4rem); }
.welcome p { margin: 0 0 1.4em; color: var(--muted); }
.welcome .btn { min-width: 160px; justify-content: center; font-size: 1.1rem; letter-spacing: .08em; }
.welcome[open] { animation: welcome-in .35s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes welcome-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .nav-toggle, .draft-bar { display: none; }
  .page-head { clip-path: none; background: none; color: #000; margin: 0; }
}
