/* St. Sebastianus Korschenbroich – Designsystem
   Schützengrün und Schwarz als Grundton, Gold nur als feiner Akzent. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
/* Ziffern aus Archivo: Atkinson hat eine durchgestrichene Null ohne Alternative */
@font-face {
  font-family: "Ziffern";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #0c100e;
  --green-950: #0b1f17;
  --green-900: #10291f;
  --green-800: #163a2c;
  --green-700: #1d4d3a;
  --green-600: #256149;
  --green-100: #e4eee8;
  --green-50: #f1f6f3;
  --ink: #121614;
  --text: #2a312d;
  --muted: #4f5a54;
  --bg: #ffffff;
  --bg-soft: #e6f0e9;
  --line: #c8d9cd;
  --line-strong: #9aa8a0;
  --gold: #e3ad16;
  --on-dark: #ffffff;
  --on-dark-2: #dce7e0;
  --focus: #121614;
  --danger: #a01b1b;
  --success: #1d5b3c;

  --font-body: "Ziffern", "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Archivo", "Arial Narrow", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --shadow: 0 1px 2px rgba(12, 16, 14, .06), 0 18px 40px -24px rgba(12, 16, 14, .35);
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
svg.icon { width: 1.25em; height: 1.25em; flex: none; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.6rem + 3.2vw, 4.2rem); font-weight: 650; letter-spacing: -.005em; }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

a { color: var(--green-700); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--green-900); text-decoration-thickness: .14em; }

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

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1.25rem; background: var(--green-900); color: var(--on-dark);
  font-weight: 700; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: var(--on-dark); }
main:focus { outline: none; }

/* ---------- Kopfbereich ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 5rem; }

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-emblem { width: 3rem; height: 3rem; }
.brand-text { display: grid; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 650; font-size: 1.3rem; letter-spacing: -.01em; }
.brand-sub { font-size: .9rem; color: var(--muted); font-weight: 600; white-space: nowrap; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.nav-list > li > a,
.nav-group-toggle {
  position: relative;
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 2.9rem; padding: .5rem .85rem;
  border: 0; border-radius: var(--radius-sm); background: none;
  color: var(--ink); font: 600 1.05rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
}
.nav-list > li > a:hover, .nav-group-toggle:hover { background: var(--green-50); color: var(--green-800); }
.nav-list > li > a[aria-current="page"], .nav-group-toggle.is-current { color: var(--green-700); }
.nav-list > li > a[aria-current="page"]::after, .nav-group-toggle.is-current::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 3px; border-radius: 3px; background: var(--green-700);
}
.nav-caret {
  width: .5rem; height: .5rem; margin-left: .15rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-.15rem) rotate(45deg);
  transition: transform .2s ease;
}
.nav-group { position: relative; }
.nav-group-toggle[aria-expanded="true"] .nav-caret { transform: translateY(.1rem) rotate(-135deg); }
.nav-sub {
  position: absolute; right: 0; top: calc(100% + .5rem);
  display: none; min-width: 18rem; margin: 0; padding: .5rem; list-style: none;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.nav-group-toggle[aria-expanded="true"] + .nav-sub { display: grid; }
.nav-sub a {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem .85rem; border-radius: var(--radius-sm);
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.nav-sub a:hover { background: var(--green-50); color: var(--green-800); }
.nav-sub a[aria-current="page"] { background: var(--green-100); }
.nav-sub .icon { color: var(--green-700); }

.menu-toggle {
  display: none; margin-left: auto; align-items: center; gap: .5rem;
  min-height: 3rem; padding: .5rem 1rem;
  border: 2px solid var(--green-700); border-radius: var(--radius-sm); background: var(--bg);
  color: var(--green-800); font: 700 1.05rem/1 var(--font-body); cursor: pointer;
}
.menu-toggle-open, .menu-toggle-label { display: inline-flex; }
.menu-toggle-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle-close { display: inline-flex; }

@media (max-width: 62rem) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 5rem 0 0; z-index: 49;
    display: none; overflow-y: auto; padding: 1rem var(--gutter) 3rem;
    background: var(--bg);
  }
  .main-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a, .nav-group-toggle {
    width: 100%; min-height: 3.5rem; padding: .75rem .5rem; font-size: 1.3rem;
    border-bottom: 1px solid var(--line); border-radius: 0;
  }
  .nav-list > li > a[aria-current="page"]::after, .nav-group-toggle.is-current::after { left: .5rem; right: auto; width: 2.5rem; bottom: .4rem; }
  .nav-group-toggle { justify-content: space-between; }
  .nav-sub { position: static; min-width: 0; margin: .5rem 0 .75rem; box-shadow: none; background: var(--bg-soft); }
  .nav-sub a { font-size: 1.15rem; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 26rem) {
  .brand-sub { display: none; }
  .menu-toggle-label { display: none; }
}

/* ---------- Schaltflächen ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .75rem 1.5rem;
  border: 2px solid var(--green-700); border-radius: 999px;
  background: var(--bg); color: var(--green-800);
  font: 650 1.1rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.button:hover { background: var(--green-50); color: var(--green-900); }
.button-primary { background: var(--green-700); color: var(--on-dark); }
.button-primary:hover { background: var(--green-900); border-color: var(--green-900); color: var(--on-dark); }
.button-dark { background: var(--black); border-color: var(--black); color: var(--on-dark); }
.button-dark:hover { background: var(--green-900); border-color: var(--green-900); color: var(--on-dark); }
.button-small { min-height: 2.75rem; padding: .5rem 1.1rem; font-size: 1rem; }
.button[disabled] { opacity: .5; cursor: not-allowed; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }

/* Auf dunklem Grund: weiße Flächen, schwarzer bzw. grüner Text */
.on-dark .button { background: transparent; border-color: var(--on-dark); color: var(--on-dark); }
.on-dark .button:hover { background: rgba(255, 255, 255, .12); color: var(--on-dark); }
.on-dark .button-primary { background: var(--on-dark); border-color: var(--on-dark); color: var(--green-900); }
.on-dark .button-primary:hover { background: var(--green-100); border-color: var(--green-100); color: var(--green-950); }
.on-dark :focus-visible { outline-color: var(--on-dark); }

.text-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; color: var(--green-700);
  text-decoration: underline; text-decoration-thickness: .12em; text-underline-offset: .3em;
}
.text-link:hover { color: var(--green-900); }

/* ---------- Startseite: Hero ---------- */
.hero { color: var(--on-dark); background: var(--green-950); }
.hero-media { display: block; position: relative; }
.hero-media img { width: 100%; aspect-ratio: 2560 / 500; min-height: 13rem; object-fit: cover; object-position: 55% 35%; }
.hero-media::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(180deg, transparent, var(--green-950)); pointer-events: none; }
.hero-inner { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 6vw, 4.5rem); }
.hero-content { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem clamp(2rem, 6vw, 5rem); align-items: end; }
.hero .kicker { color: var(--on-dark-2); }
.hero .kicker::before { background: var(--gold); }
.hero h1 { margin: 0; color: var(--on-dark); font-size: clamp(2.6rem, 1.6rem + 4vw, 4.8rem); line-height: 1.1; }
.hero .lead { margin: 0 0 1.5rem; color: var(--on-dark-2); }
@media (max-width: 54rem) { .hero-content { grid-template-columns: 1fr; } }
@media (max-width: 48rem) { .hero-media img { aspect-ratio: 760 / 500; min-height: 0; } }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--section); }
.section-alt { background: var(--bg-soft); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.25rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .6rem 0 0; color: var(--muted); max-width: 42rem; }
.kicker {
  display: inline-flex; align-items: center; gap: .65rem;
  margin: 0 0 .9rem; color: var(--green-700);
  font-size: .95rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 1.75rem; height: 3px; border-radius: 3px; background: var(--green-700); }
.lead { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); line-height: 1.55; color: var(--text); }

/* ---------- Nächster Termin ---------- */
.next-event-band { padding-block: clamp(2.5rem, 5vw, 4rem); background: var(--bg-soft); }
.next-event {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 2.25rem; align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-top: 5px solid var(--green-700); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.next-event h2 { margin: .1rem 0 .4rem; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); }
.next-event .kicker { margin-bottom: .25rem; }
.next-event-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; margin: 0; padding: 0; list-style: none; font-weight: 600; color: var(--text); }
.next-event-meta li { display: inline-flex; align-items: center; gap: .45rem; }
.next-event-meta .icon { color: var(--green-700); }
.countdown { display: flex; gap: .5rem; margin: 0; }
.countdown div {
  display: grid; min-width: 4.5rem; padding: .6rem .4rem .5rem; text-align: center;
  background: var(--green-900); color: var(--on-dark); border-radius: var(--radius-sm);
}
.countdown dt { order: 2; font-size: .85rem; font-weight: 600; color: var(--on-dark-2); }
.countdown dd { order: 1; margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 2rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.next-event-actions { display: flex; flex-wrap: wrap; gap: .75rem; grid-column: 2 / -1; }
@media (max-width: 60rem) {
  .next-event { grid-template-columns: 1fr; }
  .next-event-actions { grid-column: auto; }
  .next-event .date-badge { display: none; }
}

/* ---------- Datumsplakette ---------- */
.date-badge {
  display: grid; flex: none; width: 5.25rem; overflow: hidden; text-align: center;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  line-height: 1.1;
}
.date-badge .db-month { padding: .35rem 0 .3rem; background: var(--green-700); color: var(--on-dark); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.date-badge .db-day { padding-top: .4rem; font-family: var(--font-head); font-weight: 600; font-size: 2.1rem; }
.date-badge .db-weekday { padding-bottom: .45rem; font-size: .85rem; font-weight: 600; color: var(--muted); }

/* ---------- Terminliste ---------- */
.event-list { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.event-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center;
  padding: 1.1rem 1.25rem; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease;
}
.event-item:hover { border-color: var(--line-strong); }
.event-item.is-highlight { box-shadow: inset 5px 0 0 var(--green-700); }
/* Abwechselnde Zeilen wie in einer Tabelle; site.js setzt .is-alt passend zu den sichtbaren Terminen */
.event-list > .event-item.is-alt { background: #d7e8dc; border-color: #b7d0bf; }
.event-item.is-past { opacity: .7; }
.event-item h3 { margin: 0 0 .3rem; font-size: 1.3rem; }
.event-item h3 a { color: var(--ink); }
.event-item p { margin: .3rem 0 0; color: var(--text); }
.event-meta { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; color: var(--muted); font-weight: 600; font-size: 1rem; }
.event-meta li { display: inline-flex; align-items: center; gap: .4rem; }
.event-tag {
  display: inline-block; margin-bottom: .4rem; padding: .1rem .6rem;
  border-radius: 999px; background: var(--green-100); color: var(--green-800);
  font-size: .85rem; font-weight: 700;
}
.event-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.event-when { font-weight: 700; white-space: nowrap; color: var(--green-800); }
@media (max-width: 44rem) {
  .event-item { grid-template-columns: auto 1fr; }
  .event-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

.month-group + .month-group { margin-top: 2.75rem; }
.month-title { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1rem; font-size: 1.6rem; }
.month-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Filter ---------- */
.filters { display: grid; gap: 1.25rem; margin-bottom: 2.25rem; padding: 1.25rem 1.5rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.filters fieldset { margin: 0; padding: 0; border: 0; }
.filters legend { margin-bottom: .6rem; font-weight: 700; color: var(--ink); }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .45rem 1.1rem;
  border: 2px solid var(--line-strong); border-radius: 999px; background: var(--bg);
  color: var(--ink); font-weight: 700; cursor: pointer;
}
.chip input:checked + span { background: var(--green-700); border-color: var(--green-700); color: var(--on-dark); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.filters-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.switch { display: inline-flex; align-items: center; gap: .75rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.switch input { width: 1.5rem; height: 1.5rem; accent-color: var(--green-700); }
.filter-status { margin: 0; color: var(--muted); font-weight: 600; }

/* ---------- Karten (Aktuelles) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; }
.news-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .2s ease, transform .2s ease;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-card-media { aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.news-card-media img { width: 100%; height: 100%; object-fit: contain; }
.news-card-body { display: flex; flex-direction: column; gap: .5rem; flex: 1; padding: 1.25rem 1.4rem 1.5rem; }
.news-card time { color: var(--muted); font-weight: 700; font-size: .95rem; }
.news-card h3 { margin: 0; font-size: 1.35rem; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; }
.news-card h3 a:focus-visible { outline: none; }
.news-card:hover h3 a { color: var(--green-700); text-decoration: underline; }
.news-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.news-card p { margin: 0; color: var(--text); font-size: 1.05rem; }
.badge {
  align-self: flex-start; padding: .15rem .65rem; border-radius: 999px;
  background: var(--green-700); color: var(--on-dark); font-size: .85rem; font-weight: 700;
}

.news-feature { display: grid; grid-template-columns: 1.1fr 1fr; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.news-feature .news-card-media { display: flex; align-items: center; aspect-ratio: auto; }
.news-feature .news-card-media img { height: auto; }
.news-feature .news-card-body { padding: clamp(1.5rem, 3vw, 2.75rem); justify-content: center; }
.news-feature h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
@media (max-width: 48rem) { .news-feature { grid-template-columns: 1fr; } }

/* ---------- Schießturnier-Band ---------- */
.feature-band { background: var(--green-900); color: var(--on-dark); }
.feature-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 4rem; align-items: center; }
.feature-band .kicker { color: var(--on-dark-2); }
.feature-band .kicker::before { background: var(--gold); }
.feature-band h2 { color: var(--on-dark); }
.feature-band p { color: var(--on-dark-2); }
.fact-list { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.fact-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center;
  padding: 1.1rem 1.25rem; background: var(--bg); color: var(--text); border-radius: var(--radius-sm);
}
.fact-list .icon { color: var(--green-700); width: 1.7rem; height: 1.7rem; }
.fact-list strong { display: block; color: var(--ink); }
.fact-list span { color: var(--muted); }
.deadline {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.5rem; padding: .45rem 1rem;
  border-radius: 999px; background: var(--gold); color: var(--black); font-weight: 700;
}
.feature-band .deadline { color: var(--black); }
@media (max-width: 54rem) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Kacheln ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.tile {
  display: flex; align-items: center; gap: 1rem; height: 100%;
  padding: 1.25rem; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.tile:hover { border-color: var(--green-700); color: var(--green-800); box-shadow: var(--shadow); }
.tile .tile-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--green-100); color: var(--green-700); flex: none; }
.tile small { display: block; font-weight: 400; color: var(--muted); font-size: .98rem; }

/* ---------- Geschichte-Teaser ---------- */
.history { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.history figure { margin: 0; }
.history img { border-radius: var(--radius); }
.history figcaption { margin-top: .6rem; color: var(--muted); font-size: .95rem; }
.quote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 4px solid var(--green-700); }
.quote p { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); line-height: 1.4; color: var(--ink); margin-bottom: .5rem; }
.quote footer { color: var(--muted); font-size: 1rem; }
@media (max-width: 54rem) { .history { grid-template-columns: 1fr; } }

/* ---------- Könige ---------- */
.royal-current { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.royal-card { padding: 1.5rem; background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--green-700); border-radius: var(--radius); }
.royal-card .royal-year { font-family: var(--font-head); font-weight: 650; font-size: 2rem; line-height: 1; color: var(--green-700); }
.royal-card h3 { margin: .5rem 0 .25rem; font-size: 1.35rem; }
.royal-card p { margin: 0; color: var(--text); }
.royal-tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
.field-inline { display: grid; gap: .35rem; flex: 1 1 18rem; font-weight: 700; color: var(--ink); }
.table-wrap { overflow-x: auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.royal-table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.royal-table caption { padding: 1rem 1.25rem 0; text-align: left; font-weight: 700; color: var(--muted); }
.royal-table th, .royal-table td { padding: .8rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.royal-table thead th { position: sticky; top: 0; background: var(--green-900); color: var(--on-dark); font-size: .95rem; }
.royal-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.royal-table th[scope="row"] { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; white-space: nowrap; color: var(--ink); }
.royal-table .decade-row th { background: var(--green-100); color: var(--green-900); font-family: var(--font-body); font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; }
.royal-table mark { background: #ffe58a; color: var(--black); padding: 0 .1em; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; }
.gallery-year + .gallery-year { margin-top: 3.5rem; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.album-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); color: var(--text); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease; }
.album-card:hover { border-color: var(--green-700); box-shadow: 0 8px 24px -12px rgba(11, 31, 23, .35); }
.album-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.album-card-body { display: flex; flex-direction: column; gap: .2rem; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.album-card-body strong { font-family: var(--font-head); font-size: 1.2rem; }
.album-card-body small { color: var(--muted); font-size: 1rem; }
.album-card-cta { margin-top: auto; padding-top: .6rem; font-weight: 700; color: var(--green-800); }
.gallery-year h3 { margin: 2rem 0 1rem; }
.gallery-year .count { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--muted); }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-sm); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.gallery button:hover img { transform: scale(1.04); }
.gallery figcaption { margin-top: .3rem; font-size: .95rem; color: var(--muted); font-weight: 600; }
.lightbox { width: min(64rem, 100% - 2rem); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius); background: var(--black); color: var(--on-dark); }
.lightbox::backdrop { background: rgba(8, 12, 10, .85); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; }
.lightbox-bar p { margin: 0; }
.lightbox .button { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }

/* ---------- Unterseiten ---------- */
.page-intro { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); background: var(--green-900); color: var(--on-dark); }
.page-intro h1 { max-width: 22ch; color: var(--on-dark); }
.page-intro .kicker { color: var(--on-dark-2); }
.page-intro .kicker::before { background: var(--gold); }
.page-intro .lead { max-width: 46rem; margin: 0; color: var(--on-dark-2); }
.page-intro a { color: var(--on-dark); }
.page-intro :focus-visible { outline-color: var(--on-dark); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; font-size: 1rem; color: var(--on-dark-2); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }
.crumbs a { font-weight: 600; }

.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.aside-box { position: sticky; top: 7rem; padding: 1.5rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.aside-box h2 { font-size: 1.35rem; }
.aside-box ul { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: .55rem; }
@media (max-width: 60rem) { .layout-aside { grid-template-columns: 1fr; } .aside-box { position: static; } }

.prose { max-width: 44rem; font-size: 1.15rem; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.6rem, 1.35rem + 1vw, 2.1rem); }
.prose h3 { margin-top: 1.8em; }
.prose h4 { margin-top: 1.5em; font-family: var(--font-body); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--green-700); }
.prose img { height: auto; margin: 1.5rem 0; border-radius: var(--radius-sm); }
.prose figure { margin: 2rem 0; }
.prose figure img { margin: 0; }
.prose figcaption { margin-top: .5rem; color: var(--muted); font-size: 1rem; }
.prose blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 4px solid var(--green-700); font-style: italic; }
.prose hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 1.02rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: .6rem .8rem; border: 1px solid var(--line); text-align: left; }
.prose a { font-weight: 600; }
.prose > :first-child { margin-top: 0; }
.prose .lead { font-weight: 600; }
.prose blockquote footer { margin-top: .4rem; font-style: normal; font-weight: 700; color: var(--green-800); }
.prose blockquote footer::before { content: "– "; }
.post-figure .zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-sm); overflow: hidden; }
.post-figure img { width: 100%; max-height: 80vh; object-fit: contain; background: var(--bg-soft); }
.video-link { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; }
.video-link span { position: absolute; left: 1rem; bottom: 1rem; padding: .6rem 1rem; border-radius: 999px; background: var(--green-900); color: #fff; font-weight: 700; }
.video-link:hover span { background: var(--green-700); }
.prose .gallery { padding: 0; }
.prose .gallery li { margin: 0; }
.post-actions { display: flex; flex-wrap: wrap; gap: .75rem; padding: 0 !important; list-style: none; }
.post-actions a { display: inline-block; padding: .75rem 1.2rem; border-radius: var(--radius-sm); background: var(--green-700); color: #fff; text-decoration: none; }
.post-actions a:hover { background: var(--green-900); }
.fine-print { font-size: 1rem; color: var(--muted); }
.post-source { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 1rem; color: var(--muted); }

.article-head { margin-bottom: 2.5rem; padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; background: var(--green-900); color: var(--on-dark); }
.article-head h1 { max-width: 30ch; font-size: clamp(2rem, 1.5rem + 2.6vw, 3.4rem); color: var(--on-dark); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; color: var(--muted); font-weight: 700; }
/* Beitragsseite: Titelbild über die volle Breite, Übersicht links, Text rechts */
.article-head.has-hero { margin-bottom: 0; padding-bottom: clamp(5rem, 9vw, 7.5rem); }
.article-hero { position: relative; margin: 0 0 clamp(2rem, 4vw, 3.5rem); }
.article-head.has-hero + .wrap > .article-hero { margin-top: clamp(-5.5rem, -8vw, -3.5rem); }
.article-hero .zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.article-hero img { display: block; width: auto; max-width: 100%; height: auto; max-height: 34rem; margin-inline: auto; border-radius: var(--radius-sm); }
.article-hero:not(.is-wide) { padding: clamp(.75rem, 2vw, 1.5rem); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.article-hero.is-wide img { width: 100%; max-height: none; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-hero figcaption { max-width: 62rem; margin: .9rem auto 0; color: var(--muted); font-size: 1rem; text-align: center; }
.article-layout { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
.article-layout.has-rail { grid-template-columns: 17rem minmax(0, 1fr); }
.article-layout:not(.has-rail) .article-main { width: min(100%, 48rem); margin-inline: auto; }
.article-main .prose { max-width: 46rem; }
.article-rail { position: sticky; top: 7.5rem; align-self: start; max-height: calc(100vh - 9rem); overflow-y: auto; }
.rail-title { margin: 0 0 .4rem; padding-top: .9rem; border-top: 4px solid var(--green-700); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.toc { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: block; padding: .6rem .5rem .6rem 0; color: var(--text); font-size: 1rem; line-height: 1.4; text-decoration: none; }
.toc a:hover { color: var(--green-700); text-decoration: underline; }
.toc a.is-active { color: var(--green-800); font-weight: 700; box-shadow: inset 4px 0 0 var(--green-700); padding-left: .75rem; }
.rail-back { font-weight: 700; }
.summary-box { max-width: 46rem; margin: 0 0 2.5rem; padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem); background: var(--green-50); border: 1px solid var(--green-100); border-left: 6px solid var(--green-700); border-radius: var(--radius-sm); }
.summary-box h2 { margin: 0 0 .5rem; font-size: 1.15rem; letter-spacing: .02em; color: var(--green-800); }
.summary-box p { margin: 0; font-size: clamp(1.15rem, 1.1rem + .25vw, 1.3rem); line-height: 1.55; color: var(--ink); }
@media (max-width: 62rem) {
  .article-layout.has-rail { grid-template-columns: 1fr; gap: 0; }
  .article-layout.has-rail .article-main { display: contents; }
  .article-layout.has-rail .summary-box { order: 1; }
  .article-layout.has-rail .article-rail { order: 2; }
  .article-layout.has-rail .prose { order: 3; }
  .article-rail { position: static; max-height: none; margin-bottom: 2rem; padding: 0 1.25rem .5rem; background: var(--bg-soft); border-radius: var(--radius); }
  .rail-back { display: none; }
}
.article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.article-foot a { display: grid; gap: .2rem; max-width: 22rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.article-foot a:hover { border-color: var(--green-700); }
.article-foot small { color: var(--muted); font-weight: 700; }
.article-foot strong { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.article-foot .next { margin-left: auto; text-align: right; }

.doc-card {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center;
  padding: 1.5rem; margin: 0 0 1.75rem; background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius);
}
.doc-card .tile-icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--green-700); color: var(--on-dark); }
.doc-card h2 { margin: 0 0 .25rem; font-size: 1.4rem; }
.doc-card p { margin: 0 0 .9rem; color: var(--text); }
.prose .doc-card a.button { color: var(--on-dark); text-decoration: none; }

.year-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.year-nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .4rem 1.1rem;
  border: 2px solid var(--line-strong); border-radius: 999px; background: var(--bg);
  color: var(--ink); font-weight: 700; text-decoration: none;
}
.year-nav a:hover { border-color: var(--green-700); color: var(--green-800); }
.year-nav a[aria-current="true"] { background: var(--green-700); color: var(--on-dark); border-color: var(--green-700); }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; margin-top: 3rem; }
.pagination p { margin: 0; font-weight: 700; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; }
.contact-card { padding: 1.5rem; background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--green-700); border-radius: var(--radius); }
.contact-card h2 { font-size: 1.35rem; }
.contact-card a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; }
.contact-card address { font-style: normal; }

/* ---------- Formulare ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 64rem) { .form-layout { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1.75rem; }
.form fieldset { margin: 0; padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.form legend { padding: 0 .5rem; margin-left: -.5rem; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; }
.form-hint { margin: 0 0 1rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 40rem) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; font-weight: 700; color: var(--ink); }
/* Eingabefelder bleiben gleich hoch und stehen unten bündig, auch wenn ein Nachbarfeld einen Hinweis hat */
.field > input, .field > select, .field > textarea { margin-top: auto; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea, .field-inline input {
  width: 100%; min-height: 3.25rem; padding: .7rem .9rem;
  border: 2px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff;
  color: var(--ink); font: 400 1.1rem/1.4 var(--font-body);
}
.field input:focus, .field select:focus, .field textarea:focus, .field-inline input:focus { border-color: var(--green-700); outline: 3px solid var(--green-100); outline-offset: 0; }
.person { margin: 0; padding: 1rem 1.15rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); }
.form .person { background: var(--bg-soft); }
.person + .person { margin-top: .9rem; }
.form .person legend { font-family: var(--font-body); font-size: 1.05rem; }
.person-grid { display: grid; grid-template-columns: 1fr 1fr 12rem; gap: .9rem; }
@media (max-width: 48rem) { .person-grid { grid-template-columns: 1fr; } }
.check { display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--text); cursor: pointer; }
.check + .check { margin-top: .75rem; }
.form .button-row { margin: 1.5rem 0 1rem; }
.form .filters-foot { margin-top: 1.25rem; }
.form details.more { margin-top: 1.5rem; }
.check input { width: 1.6rem; height: 1.6rem; margin: .1rem 0 0; accent-color: var(--green-700); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.steps { display: grid; gap: .6rem; margin: 1.25rem 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: flex; gap: .85rem; align-items: center; font-weight: 700; color: var(--ink); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; flex: none; border-radius: 50%; background: var(--green-700); color: var(--on-dark); font-family: var(--font-head); }

.notice { padding: 1.25rem 1.5rem; border-radius: var(--radius); border: 2px solid; margin-bottom: 1.5rem; color: var(--text); }
.notice h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.notice ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.notice p:last-child { margin-bottom: 0; }
.notice-error { border-color: var(--danger); background: #fdf2f2; }
.notice-success { border-color: var(--success); background: var(--green-50); }
.notice-info { border-color: var(--line-strong); background: var(--bg-soft); }

details.more { margin-top: 1rem; padding: 1rem 1.25rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
details.more summary { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--ink); cursor: pointer; min-height: 2rem; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
/* Plus und Minus als Linien gezeichnet, damit sie unabhängig von der Schrift genau mittig sitzen */
details.more summary::before {
  content: ""; width: 1.6rem; height: 1.6rem; flex: none; border-radius: 50%;
  background:
    linear-gradient(var(--on-dark), var(--on-dark)) center / .75rem 2px no-repeat,
    linear-gradient(var(--on-dark), var(--on-dark)) center / 2px .75rem no-repeat,
    var(--green-700);
}
details.more[open] summary::before {
  background: linear-gradient(var(--on-dark), var(--on-dark)) center / .75rem 2px no-repeat, var(--green-700);
}
details.more[open] summary { margin-bottom: .75rem; }

/* ---------- Fußbereich ---------- */
.site-footer { margin-top: var(--section); background: var(--black); color: var(--on-dark-2); }
.site-footer h2 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--on-dark); }
.site-footer :focus-visible { outline-color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.footer-brand h2 { margin-top: 1rem; font-family: var(--font-head); font-size: 1.4rem; text-transform: none; letter-spacing: -.01em; }
.motto { color: var(--gold); font-weight: 700; letter-spacing: .04em; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer address a, .footer-links a { display: inline-flex; align-items: center; gap: .5rem; }
.footer-links { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem 2rem; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 1rem; }
.footer-legal p { margin: 0; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.footer-legal .footer-credit { flex-basis: 100%; font-size: .9rem; opacity: .8; }
@media (max-width: 54rem) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Einblenden ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Druck ---------- */
/* ---------- Grüne Akzente ---------- */
.site-header { border-top: 6px solid var(--green-700); border-bottom-color: var(--green-100); }
.section-head h2::before { content: ""; display: block; width: 3rem; height: 5px; margin-bottom: .8rem; border-radius: 3px; background: var(--green-700); }
.news-card { border-top: 5px solid var(--green-700); }
.news-card time { color: var(--green-700); }
.band-green { background: var(--green-900); color: var(--on-dark); }
.band-green h2 { color: var(--on-dark); }
.band-green .section-head p { color: var(--on-dark-2); }
.band-green .section-head h2::before { background: var(--gold); }
.band-green .tile { border-color: transparent; }
.article-head .article-meta { color: var(--on-dark-2); }
.article-head .crumbs ol { color: var(--on-dark-2); }
.article-head .crumbs a { color: var(--on-dark); }
.article-head .badge { background: var(--gold); color: var(--black); }
.article-head :focus-visible { outline-color: var(--on-dark); }
.prose h2::before { content: ""; display: block; width: 2.5rem; height: 4px; margin-bottom: .6rem; border-radius: 2px; background: var(--green-700); }
.site-footer { border-top: 6px solid var(--green-700); }

@media print {
  .site-header, .site-footer, .filters, .button, .next-event-actions, .skip-link, .article-foot, .article-rail { display: none !important; }
  body { font-size: 12pt; }
  .page-intro, .hero, .article-head { background: none; color: #000; }
  .page-intro h1, .page-intro .lead, .article-head h1 { color: #000; }
}
