/* ==========================================================================
   Zweitaktkalender – Stylesheet
   Aufbau: Schriften · Variablen · Basis · Kopf/Fuß · Bausteine · Seiten
   ========================================================================== */

/* --- Schriften (selbst gehostet, OFL) ------------------------------------ */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-display-800.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 900; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-display-900.woff2") format("woff2"); }

/* --- Variablen ------------------------------------------------------------ */
:root {
  --ink: #111111;
  --surface: #1A1A1A;
  --surface-2: #222222;
  --line: #2A2A2A;
  --line-strong: #3A3A3A;
  --paper: #F3EFE6;
  --muted: rgba(243, 239, 230, .65);
  --accent: #FF4B1F;
  --accent-hover: #FF6A45;
  --free: #3DDC84;
  --warn: #FFC23D;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --max: 1160px;
  --radius: 14px;
  --radius-s: 10px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* --- Basis ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--ink); }

h1, h2, .display {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 10.5vw, 5rem); }
h2 { font-size: clamp(1.75rem, 6vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 2000;
  background: var(--paper); color: var(--ink); padding: 12px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

.kicker {
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lead { font-size: 1.0625rem; color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }
.textlink { color: var(--paper); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.textlink:hover { color: var(--accent-hover); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--paper);
  font-weight: 600; font-size: .9375rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
.btn:hover { border-color: var(--paper); }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--paper { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #fff; border-color: #fff; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- Kopfzeile ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 1100;
  background: rgba(17, 17, 17, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__in { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; }
.brand img { height: 19px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px;
  font-weight: 500; font-size: .9375rem; text-decoration: none; border-radius: 999px; color: var(--paper);
}
.nav__link:hover { color: var(--accent-hover); }
.nav__link[aria-current="page"] { color: var(--accent); }
.nav .btn { min-height: 44px; margin-left: 6px; }
.nav__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; }
.nav__icon svg { width: 22px; height: 22px; }
.nav__icon:hover { color: var(--accent-hover); }
.nav__more { display: none; }
.nav-toggle {
  display: none; width: 48px; height: 48px; margin-right: -10px;
  border: 0; background: none; border-radius: 999px; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--paper); border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 759px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--ink); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link { min-height: 52px; padding: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.0625rem; }
  .nav .btn { margin: 16px 0 0; min-height: 48px; }
  .nav__icon { width: auto; justify-content: flex-start; gap: 10px; min-height: 52px; margin-top: 4px; font-weight: 500; text-decoration: none; }
  .nav__more { display: flex; }
  .nav__icon .visually-hidden { position: static !important; width: auto; height: auto; margin: 0; clip: auto; white-space: normal; }
}

/* --- Fußzeile ------------------------------------------------------------- */
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: .9375rem; }
.site-footer__top { display: grid; gap: 36px; }
.site-footer__brand img { height: 76px; width: 76px; margin: -16px 0 -10px -15px; }
.site-footer__brand p { margin-top: 16px; color: var(--muted); max-width: 34ch; }
.site-footer nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.site-footer nav a, .site-footer__contact a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--paper); }
.site-footer nav a:hover, .site-footer__contact a:hover { color: var(--accent-hover); }
.site-footer__contact a { gap: 10px; }
.site-footer__contact svg { width: 20px; height: 20px; color: var(--accent); }
.site-footer h2 { font-family: var(--font); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.site-footer__bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: .8125rem;
}
.site-footer__bottom a { color: var(--paper); text-underline-offset: 3px; }
.site-footer__bottom a:hover { color: var(--accent-hover); }
@media (min-width: 760px) {
  .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* --- Abschnitte ----------------------------------------------------------- */
.section { padding-top: 72px; }
.section__head { display: grid; gap: 12px; margin-bottom: 28px; }
.section__head p:not(.kicker) { color: var(--muted); max-width: 52ch; }
.section__head--row { align-items: end; }
@media (min-width: 760px) {
  .section { padding-top: 104px; }
  .section__head--row { grid-template-columns: 1fr auto; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero { padding: 40px 0 0; }
.hero__grid { display: grid; gap: 28px; }
.hero h1 { margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 18px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; font-size: .875rem; color: var(--muted); min-height: 1.4em; }
.hero__stats strong { color: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .hero { padding-top: 72px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; align-items: end; gap: 56px; }
}

/* --- Suche ---------------------------------------------------------------- */
.finder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.search { position: relative; }
.search__field {
  display: flex; align-items: center; gap: 4px;
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 16px; padding: 4px;
  transition: border-color .15s var(--ease);
}
.search__field:focus-within { border-color: var(--paper); }
.search__field > svg { width: 22px; height: 22px; margin-left: 12px; color: var(--muted); flex: none; }
.search input {
  flex: 1; width: 0; min-width: 0; height: 52px; padding: 0 8px; border: 0; background: none; outline: none;
  font-size: 1.0625rem; font-weight: 500;
}
.search input::placeholder { color: var(--muted); font-weight: 400; }
.search__clear {
  width: 44px; height: 44px; border: 0; background: none; color: var(--muted); border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.search__clear:hover { color: var(--paper); }
.search__clear svg { width: 18px; height: 18px; }
.search__list {
  position: absolute; z-index: 1050; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 14px;
  padding: 6px; max-height: 320px; overflow: auto; box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.search__list li {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  min-height: 48px; padding: 0 12px; border-radius: 9px; cursor: pointer;
}
.search__list li span { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .875rem; }
.search__list li[aria-selected="true"], .search__list li:hover { background: var(--surface-2); }
.search__list li[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--accent); }
.search__list .search__none { color: var(--muted); cursor: default; }
.finder__hint { font-size: .875rem; color: var(--muted); min-height: 1.4em; }
.finder__hint.is-error { color: var(--warn); }

/* Segmente (Radius) */
.segments { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.segments button {
  min-height: 44px; border: 0; background: none; border-radius: 10px;
  font-weight: 600; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.segments button:hover { color: var(--paper); }
.segments button[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.segments small { font-weight: 500; font-size: .75em; }
.label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

/* Filter-Chips */
.chips { display: flex; gap: 8px; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: transparent; color: var(--paper);
  font-weight: 500; font-size: .9375rem; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.chip:hover { border-color: var(--paper); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 600; }
@media (min-width: 760px) {
  .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding: 0; }
}

/* --- Karte ---------------------------------------------------------------- */
.explore { padding-top: 40px; }
.explore__filters { display: grid; gap: 18px; }
.explore__grid { display: grid; gap: 28px; margin-top: 24px; }
.explore__filters > *, .explore__grid > *, .hero__grid > *, .cal-layout > *, .detail__grid > * { min-width: 0; }
.mapbox { position: relative; }
.map {
  height: min(62vh, 460px); min-height: 320px;
  border-radius: var(--radius); border: 1px solid var(--line); background: #0d0d0d; overflow: hidden; z-index: 0;
}
.map--mini { height: 260px; min-height: 0; }
.map__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: .8125rem; color: var(--muted); }
.map__legend span { display: inline-flex; align-items: center; gap: 6px; }
.map__legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }
.map__legend i.is-open { background: var(--ink); box-shadow: inset 0 0 0 2px var(--accent); }
@media (min-width: 960px) {
  .explore__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: start; }
  .mapbox { position: sticky; top: calc(var(--header-h) + 20px); }
  .map { height: calc(100vh - var(--header-h) - 90px); max-height: 640px; min-height: 420px; }
  .map--mini { height: 320px; min-height: 0; }
}

/* Leaflet im Markenstil */
.leaflet-container { font-family: var(--font); background: #0d0d0d; }
.leaflet-container a { color: var(--paper); }
.map--osm .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.92) saturate(.3); }
.leaflet-control-attribution { background: rgba(17, 17, 17, .8) !important; color: var(--muted) !important; font-size: 11px; padding: 2px 8px !important; border-radius: 8px 0 0 0; }
.leaflet-control-attribution a { color: var(--paper) !important; }
.leaflet-bar { border: 1px solid var(--line-strong) !important; border-radius: 12px !important; overflow: hidden; box-shadow: none !important; }
.leaflet-bar a { width: 40px !important; height: 40px !important; line-height: 40px !important; background: var(--surface) !important; color: var(--paper) !important; border-bottom-color: var(--line-strong) !important; font-size: 20px !important; }
.leaflet-bar a:hover { background: var(--surface-2) !important; }
.leaflet-popup-content-wrapper { background: var(--surface); color: var(--paper); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.leaflet-popup-tip { background: var(--surface); border: 1px solid var(--line-strong); box-shadow: none; }
.leaflet-popup-content { margin: 14px 16px; font-size: .875rem; line-height: 1.45; min-width: 190px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); width: 32px; height: 32px; font-size: 22px; line-height: 30px; }
.pop__date { color: var(--accent); font-weight: 600; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.pop__name { font-weight: 600; font-size: 1rem; margin: 2px 0; }
.pop__ort { color: var(--muted); }
.pop__link { display: inline-flex; align-items: center; min-height: 36px; margin-top: 6px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pin { background: none; border: 0; }
.pin svg { width: 34px; height: 44px; overflow: visible; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); transition: transform .15s var(--ease); transform-origin: 50% 100%; }
.pin:hover svg, .pin:focus svg { transform: scale(1.12); }
.pin:focus { outline: none; }
.pin:focus-visible svg { outline: 3px solid var(--paper); outline-offset: 2px; border-radius: 8px; }
.cluster { background: none; border: 0; }
.cluster div {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 900; font-size: 1rem;
}

/* --- Kalenderblatt (Datumsblock) ------------------------------------------ */
.datum {
  position: relative; flex: none; width: 60px; margin-top: 5px; align-self: flex-start;
  background: var(--paper); color: var(--ink); border-radius: 10px; text-align: center; line-height: 1;
}
.datum::before, .datum::after {
  content: ""; position: absolute; top: -5px; width: 8px; height: 13px; border-radius: 4px;
  background: var(--paper); border: 2px solid var(--ink);
}
.datum::before { left: 13px; }
.datum::after { right: 13px; }
.datum__m { display: block; background: var(--accent); border-radius: 10px 10px 0 0; padding: 11px 0 5px; font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.datum__d { display: block; padding-top: 7px; font-family: var(--display); font-weight: 900; font-size: 1.75rem; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.datum__s { display: block; padding: 3px 0 8px; font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(17, 17, 17, .68); }
.datum--l { width: 84px; border-radius: 14px; margin-top: 7px; }
.datum--l::before, .datum--l::after { top: -7px; width: 11px; height: 18px; border-radius: 6px; border-width: 3px; }
.datum--l::before { left: 18px; }
.datum--l::after { right: 18px; }
.datum--l .datum__m { border-radius: 14px 14px 0 0; padding: 15px 0 7px; font-size: .8125rem; }
.datum--l .datum__d { font-size: 2.5rem; padding-top: 9px; }
.datum--l .datum__s { font-size: .8125rem; padding: 4px 0 11px; }

/* --- Event-Karte ---------------------------------------------------------- */
.ev-list { display: grid; gap: 10px; }
.ev-grid { display: grid; gap: 10px; }
@media (min-width: 700px) { .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1040px) { .ev-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ev {
  display: flex; gap: 16px; padding: 14px 16px 16px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--paper);
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.ev:hover { border-color: var(--line-strong); background: var(--surface-2); }
.ev:hover .ev__name { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ev .datum::before, .ev .datum::after { border-color: var(--surface); transition: border-color .15s var(--ease); }
.ev:hover .datum::before, .ev:hover .datum::after { border-color: var(--surface-2); }
.ev__body { min-width: 0; flex: 1; display: grid; gap: 4px; align-content: start; }
.ev__name { overflow-wrap: anywhere; }
.ev__meta { color: var(--muted); font-size: .9375rem; }
.ev__meta strong { color: var(--paper); font-weight: 600; white-space: nowrap; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: .75rem; font-weight: 600; letter-spacing: .01em; color: var(--paper); white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; }
.badge--free { color: var(--free); border-color: rgba(61, 220, 132, .45); background: rgba(61, 220, 132, .1); }
.badge--warn { color: var(--warn); border-color: rgba(255, 194, 61, .45); background: rgba(255, 194, 61, .1); }
.badge--typ { color: var(--muted); }

.ev--big { padding: 20px; gap: 18px; }
.ev--big .ev__name { font-family: var(--display); font-weight: 800; font-size: 1.375rem; letter-spacing: -.02em; line-height: 1.15; }

.list-more { margin-top: 16px; }
.list-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 16px; }
.list-head h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); }
.list-head p { color: var(--muted); font-size: .9375rem; }

/* Leerer Zustand / Hinweise */
.empty { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 28px 22px; display: grid; gap: 14px; justify-items: start; }
.empty h3 { font-family: var(--display); font-weight: 800; font-size: 1.375rem; letter-spacing: -.02em; }
.empty p { color: var(--muted); max-width: 44ch; }
.notice { border-radius: var(--radius-s); padding: 14px 16px; border: 1px solid var(--line-strong); background: var(--surface); font-size: .9375rem; display: flex; gap: 12px; align-items: flex-start; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.notice--warn { border-color: rgba(255, 194, 61, .5); background: rgba(255, 194, 61, .08); }
.notice--warn svg { color: var(--warn); }
.notice--ok { border-color: rgba(61, 220, 132, .5); background: rgba(61, 220, 132, .08); }
.notice--ok svg { color: var(--free); }
.notice--error { border-color: rgba(255, 75, 31, .6); background: rgba(255, 75, 31, .08); }
.notice--error svg { color: var(--accent); }
.skeleton { height: 108px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }

/* --- Instagram-Band ------------------------------------------------------- */
.insta {
  display: grid; gap: 24px; align-items: center;
  background: var(--paper); color: var(--ink); border-radius: 20px; padding: 32px 24px;
}
.insta h2 { font-size: clamp(1.75rem, 6.5vw, 2.5rem); }
.insta p { margin-top: 10px; color: rgba(17, 17, 17, .72); max-width: 44ch; }
.insta .btn { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.insta .btn:hover { background: #000; }
.insta :focus-visible { outline-color: var(--ink); }
@media (min-width: 760px) { .insta { grid-template-columns: 1fr auto; padding: 44px 48px; } }

/* --- Seitenkopf (Unterseiten) --------------------------------------------- */
.page-head { padding: 40px 0 0; display: grid; gap: 16px; }
.page-head h1 { font-size: clamp(2.25rem, 9vw, 4rem); }
@media (min-width: 760px) { .page-head { padding-top: 72px; } }

/* --- Kalender ------------------------------------------------------------- */
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cal__title { font-family: var(--display); font-weight: 800; font-size: 1.375rem; letter-spacing: -.02em; }
.cal__nav { display: flex; gap: 6px; }
.cal__nav button {
  width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.cal__nav button:hover:not([disabled]) { border-color: var(--paper); }
.cal__nav button[disabled] { opacity: .35; cursor: default; }
.cal__nav svg { width: 20px; height: 20px; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__wd { text-align: center; font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.cal__day {
  position: relative; aspect-ratio: 1; min-width: 0; border-radius: 10px; border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); padding: 0;
}
.cal__day.is-today { box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--paper); }
button.cal__day { color: var(--paper); font-weight: 600; background: var(--surface-2); transition: background-color .15s var(--ease); }
button.cal__day:hover { background: #2c2c2c; }
button.cal__day::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
button.cal__day[data-n]:not([data-n="1"])::after { width: 14px; border-radius: 3px; }
button.cal__day[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
button.cal__day[aria-pressed="true"]::after { background: var(--ink); }
.cal__sel { margin-top: 16px; display: grid; gap: 10px; }
.cal__sel h3 { font-size: .9375rem; color: var(--muted); font-weight: 500; }
.cal-layout { display: grid; gap: 24px; margin-top: 28px; }
@media (min-width: 960px) { .cal-layout { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: start; } .cal-layout__side { position: sticky; top: calc(var(--header-h) + 20px); } }
.month { margin-top: 36px; }
.month:first-child { margin-top: 0; }
.month__title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.month__title h3 { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }
.month__title span { color: var(--muted); font-size: .875rem; }
.subscribe { display: grid; gap: 12px; margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.subscribe p { color: var(--muted); font-size: .9375rem; }

/* --- Event-Detail --------------------------------------------------------- */
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; text-decoration: none; color: var(--muted); font-weight: 500; }
.back:hover { color: var(--paper); }
.back svg { width: 18px; height: 18px; }
.detail { padding-top: 16px; }
.detail__head { display: flex; gap: 20px; align-items: flex-start; margin-top: 12px; }
.detail__head h1 { font-size: clamp(2rem, 8vw, 3.5rem); overflow-wrap: anywhere; }
.detail__sub { margin-top: 12px; color: var(--muted); font-size: 1.0625rem; }
.detail__sub strong { color: var(--paper); font-weight: 600; }
.detail__grid { display: grid; gap: 28px; margin-top: 28px; }
.detail__main { display: grid; gap: 24px; align-content: start; }
.detail__actions { display: grid; gap: 10px; }
.detail__actions .btn { justify-content: flex-start; padding-inline: 22px; }
.facts { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.facts div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: .875rem; padding-top: 1px; }
.facts dd { font-weight: 500; overflow-wrap: anywhere; }
.facts dd small { display: block; font-weight: 400; color: var(--muted); font-size: .875rem; }
.detail__text { font-size: 1.0625rem; max-width: 60ch; }
.detail__src { color: var(--muted); font-size: .875rem; }
@media (min-width: 900px) {
  .detail__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; margin-top: 40px; }
  .detail__side { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; display: grid; gap: 16px; }
}
.detail__side { display: grid; gap: 16px; align-content: start; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1500;
  background: var(--paper); color: var(--ink); font-weight: 600; font-size: .9375rem;
  padding: 12px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

/* --- Formulare ------------------------------------------------------------ */
.form { display: grid; gap: 28px; max-width: 680px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.form legend { padding: 0; margin-bottom: 4px; font-family: var(--display); font-weight: 800; font-size: 1.375rem; letter-spacing: -.02em; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .field__label { font-weight: 600; font-size: .9375rem; }
.field__opt { color: var(--muted); font-weight: 400; }
.field__hint { color: var(--muted); font-size: .8125rem; }
.field__error { color: #FF8A6B; font-size: .8125rem; font-weight: 500; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 0 14px;
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 12px;
  font-size: 1rem; transition: border-color .15s var(--ease);
}
.textarea { padding: 12px 14px; min-height: 132px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: #555; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--paper); box-shadow: 0 0 0 3px rgba(243, 239, 230, .18); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--accent); }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23F3EFE6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }
.select option { background: var(--surface); color: var(--paper); }
input[type="date"], input[type="time"] { min-width: 0; -webkit-appearance: none; appearance: none; }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .8; cursor: pointer; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } .field-row--3 { grid-template-columns: 1fr 1fr 1fr; } .field-row--plz { grid-template-columns: 150px 1fr; } }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label {
  position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px;
  border: 1.5px solid var(--line-strong); border-radius: 999px; font-weight: 500; font-size: .9375rem; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice label:hover { border-color: var(--paper); }
.choice label:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 600; }
.choice label:has(input:focus-visible) { outline: 3px solid var(--paper); outline-offset: 3px; }
.check { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; cursor: pointer; min-height: 48px; padding-block: 4px; }
.check input {
  appearance: none; -webkit-appearance: none; width: 28px; height: 28px; margin: 0;
  border: 1.5px solid var(--line-strong); border-radius: 8px; background: var(--surface); cursor: pointer;
  display: grid; place-content: center;
}
.check input::after { content: ""; width: 14px; height: 8px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .12s var(--ease); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check span { padding-top: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.counter { justify-self: end; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.turnstile { min-height: 65px; }
.done { display: grid; gap: 16px; justify-items: start; max-width: 560px; padding: 32px 24px; border: 1px solid rgba(61, 220, 132, .5); background: rgba(61, 220, 132, .07); border-radius: 20px; }
.done h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
.done p { color: var(--muted); }

/* --- Fließtext (Über uns, Rechtliches) ------------------------------------ */
.prose { max-width: 68ch; display: grid; gap: 16px; font-size: 1.0625rem; }
.prose h2 { font-size: clamp(1.5rem, 5vw, 2rem); margin-top: 28px; }
.prose h3 { font-size: 1.125rem; margin-top: 12px; }
.prose p, .prose li { color: rgba(243, 239, 230, .86); }
.prose ul { list-style: none; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--accent); }
.prose a:not(.btn) { color: var(--paper); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.prose a:not(.btn):hover { color: var(--accent-hover); }
.prose address { font-style: normal; }
.prose--legal { font-size: 1rem; }
.stance { border-left: 4px solid var(--accent); padding: 6px 0 6px 20px; font-family: var(--display); font-weight: 900; font-size: clamp(1.75rem, 7vw, 2.75rem); letter-spacing: -.03em; line-height: 1.05; }
.cols { display: grid; gap: 14px; }
@media (min-width: 760px) { .cols--3 { grid-template-columns: repeat(3, 1fr); } .cols--2 { grid-template-columns: repeat(2, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.tile__n { font-family: var(--display); font-weight: 900; font-size: 2rem; color: var(--accent); line-height: 1; letter-spacing: -.03em; }
.tile h3 { font-size: 1.125rem; }
.tile p { color: var(--muted); font-size: .9375rem; }

/* --- Partner -------------------------------------------------------------- */
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .partner-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.partner {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 120px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; font-weight: 600; overflow-wrap: anywhere;
  transition: border-color .15s var(--ease);
}
a.partner:hover { border-color: var(--paper); }
.partner img { max-height: 64px; width: auto; }
.cta { display: grid; gap: 18px; justify-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px 24px; }
.cta p { color: var(--muted); max-width: 52ch; }
@media (min-width: 760px) { .cta { padding: 44px 48px; } }

/* --- 404 ------------------------------------------------------------------ */
.lost { padding: 56px 0 0; display: grid; gap: 20px; justify-items: start; }
.lost__code { font-family: var(--display); font-weight: 900; font-size: clamp(6rem, 34vw, 14rem); line-height: .82; letter-spacing: -.06em; color: var(--accent); }

/* --- Bewegung ------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .5s var(--ease) both; }
  .rise:nth-child(2) { animation-delay: .05s; }
  .rise:nth-child(3) { animation-delay: .1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* --- Platz reservieren, solange Daten laden (verhindert Layout-Sprünge) ---- */
.detail { min-height: 100vh; }
.cal__grid:empty { aspect-ratio: 7 / 6.4; }
.cal__sel:empty { min-height: 2.6em; }
#monate { min-height: 100vh; }
