/* faschingsverzeichnis.de – Gestaltung */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-normal.woff2") format("woff2");
  font-weight: 500 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-normal.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #1d1530;
  --ink-2: #2a2042;
  --ink-3: #3b3057;
  --text: #241c36;
  --muted: #6b6380;
  --paper: #fff9f0;
  --paper-2: #f7eedf;
  --card: #ffffff;
  --line: #eadfcd;
  --red: #e5392b;
  --red-dark: #c42a1d;
  --gold: #f6b20d;
  --violet: #6d3fc0;
  --green: #11866b;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(29, 21, 48, .06), 0 8px 24px -12px rgba(29, 21, 48, .18);
  --shadow-lg: 0 2px 4px rgba(29, 21, 48, .08), 0 24px 48px -20px rgba(29, 21, 48, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.i { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Kopfzeile ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), color .35s;
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.site-header.is-solid,
.site-header.is-light {
  background: rgba(255, 249, 240, .88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: var(--font-display); font-weight: 600;
  font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
}
.brand b { font-weight: 800; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: url("../favicon.svg") center / cover;
  transition: transform .5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(90deg); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: 999px;
  transition: background .2s;
}
.nav a:hover { background: rgba(127, 127, 127, .14); }
.nav a[aria-current="page"] { background: rgba(127, 127, 127, .14); }
.nav .btn { margin-left: 8px; }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 0; padding: 10px; border-radius: 10px; cursor: pointer;
}
.nav-toggle .i { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px;
    background: var(--paper); color: var(--ink);
    box-shadow: 0 20px 40px -20px rgba(29, 21, 48, .4);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 12px; font-size: 18px; border-radius: 12px; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
  .site-header.menu-open { background: var(--paper); color: var(--ink); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(229, 57, 43, .7); }
.btn-primary:hover { background: var(--red-dark); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ffc22e; }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Rautenband ---------- */

.raute-band {
  height: 16px;
  background: url("../img/raute.svg") 0 0 / 64px 16px repeat-x;
  animation: band 30s linear infinite;
}
@keyframes band { to { background-position: 640px 0; } }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding-top: calc(var(--header-h) + 56px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/raute-dunkel.svg") 0 0 / 96px 96px;
  -webkit-mask-image: radial-gradient(120% 90% at 80% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 80% 20%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -260px;
  background: radial-gradient(closest-side, rgba(109, 63, 192, .45), transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
  gap: 56px; align-items: center;
  padding-bottom: 88px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; background: var(--red); transform: rotate(45deg); border-radius: 2px;
}
.hero .eyebrow { color: rgba(255, 255, 255, .72); }
.hero .eyebrow::before { background: var(--gold); }

.hero h1 {
  margin-top: 22px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 6.4vw, 84px);
  letter-spacing: -.035em; line-height: 1.02;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .hl {
  background: linear-gradient(90deg, var(--gold), #ff7a3d 55%, var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 26px; max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .78); }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.stats { margin: 48px 0 0; display: flex; flex-wrap: wrap; gap: 14px 44px; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 14px; color: rgba(255, 255, 255, .6); font-weight: 600; }
.stats dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -.03em; }

/* Konfetti */
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i {
  position: absolute; width: var(--s, 12px); height: var(--s, 12px);
  background: var(--c, var(--gold)); border-radius: 2px; opacity: .9;
  transform: rotate(45deg);
  animation: float var(--d, 9s) ease-in-out infinite alternate;
}
@keyframes float {
  from { transform: translate3d(0, 0, 0) rotate(45deg); }
  to { transform: translate3d(var(--x, 14px), var(--y, -26px), 0) rotate(225deg); }
}

/* Ticket-Karte */
.ticket {
  position: relative;
  background: var(--paper); color: var(--ink);
  border-radius: 24px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
  transform: rotate(2deg);
  transition: transform .6s var(--ease);
}
.ticket:hover { transform: rotate(0deg) translateY(-4px); }
.ticket-top { padding: 28px 30px 24px; }
.ticket-label { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ticket-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(229, 57, 43, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(229, 57, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 57, 43, 0); } }
.countdown { margin-top: 10px; display: flex; align-items: baseline; gap: 14px; }
.countdown-num {
  font-family: var(--font-display); font-weight: 800; color: var(--red);
  font-size: clamp(72px, 9vw, 112px); line-height: .9; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.countdown-unit { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.countdown-text { margin-top: 10px; font-size: 16px; color: var(--muted); }
.countdown-text strong { color: var(--ink); }

.ticket-perf {
  position: relative; height: 2px; margin: 0 22px;
  background-image: linear-gradient(90deg, var(--line) 50%, transparent 50%);
  background-size: 12px 2px;
}
.ticket-perf::before, .ticket-perf::after {
  content: ""; position: absolute; top: -13px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink);
}
.ticket-perf::before { left: -36px; }
.ticket-perf::after { right: -36px; }

.ticket-bottom { padding: 20px 30px 26px; }
.keydates { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.keydates li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.keydates li span:first-child { color: var(--muted); }
.keydates li span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.keydates li.is-next span:last-child { color: var(--red); }

.next-event {
  margin-top: 18px; padding: 14px 16px; border-radius: 14px;
  background: var(--paper-2); display: flex; gap: 14px; align-items: center;
  text-decoration: none;
  transition: background .2s;
}
a.next-event:hover { background: #f1e4cf; }
.next-event .mini-date {
  flex: none; width: 52px; text-align: center; border-radius: 10px; background: var(--ink); color: #fff; padding: 6px 0;
  font-family: var(--font-display); line-height: 1.1;
}
.mini-date b { display: block; font-size: 20px; }
.mini-date small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.next-event p { font-size: 14px; color: var(--muted); line-height: 1.35; }
.next-event strong { display: block; color: var(--ink); font-size: 16px; }

/* ---------- Abschnitte ---------- */

.section { padding: 112px 0; }
.section-tint { background: var(--paper-2); }
.section-ink { background: var(--ink); color: #fff; }

.section-head { display: grid; gap: 16px; max-width: 720px; margin-bottom: 44px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -.035em;
}
.section-head p { font-size: 18px; color: var(--muted); }
.section-ink .section-head p { color: rgba(255, 255, 255, .7); }
.section-ink .eyebrow { color: rgba(255, 255, 255, .7); }
.section-ink .eyebrow::before { background: var(--gold); }

/* ---------- Werkzeugleisten ---------- */

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.toolbar .grow { flex: 1 1 260px; }

.seg {
  display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.seg button {
  border: 0; background: none; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap;
  color: var(--muted);
  transition: background .25s var(--ease), color .2s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
[hidden] { display: none !important; }
.seg button .count { opacity: .6; font-weight: 600; margin-left: 4px; }

.field-search {
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px; height: 46px; border-radius: 999px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s;
}
.field-search:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.field-search .i { color: var(--muted); }
.field-search input { border: 0; outline: 0; background: none; width: 100%; height: 100%; font-size: 16px; }

.select {
  appearance: none; -webkit-appearance: none;
  height: 46px; padding: 0 42px 0 18px; border-radius: 999px; border: 0;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%231d1530' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 18px center no-repeat;
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600; font-size: 15px; cursor: pointer; max-width: 100%;
}
.select:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600; font-size: 14px;
  transition: background .2s, box-shadow .2s, color .2s;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--c, var(--ink)); }
.chip.no-dot::before { display: none; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.chip[aria-pressed="true"]::before { background: var(--c, #fff); }
.chip .count { opacity: .55; }

.notice {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 8px 0 24px; padding: 16px 20px; border-radius: var(--radius-sm);
  background: #fff3d1; color: #5a4200; font-size: 16px;
}
.notice .i { margin-top: 3px; color: #b07d00; }
.notice a { font-weight: 700; }

/* ---------- Termine ---------- */

.ev-list { display: grid; gap: 14px; }
.ev-month {
  margin: 26px 0 4px; display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em;
}
.ev-month:first-child { margin-top: 0; }
.ev-month::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.ev {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center;
  padding: 18px 20px 18px 18px; border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ev:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ev.is-past { background: rgba(255, 255, 255, .7); }
.ev-date {
  width: 78px; padding: 10px 0 12px; border-radius: 14px; text-align: center;
  background: var(--c, var(--red)); color: #fff;
  font-family: var(--font-display); line-height: 1;
}
.ev.is-past .ev-date { filter: saturate(.55); }
.ev-wd { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.ev-day { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.04em; margin: 6px 0 4px; }
.ev-mon { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.ev-title { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.ev-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 15px; }
.ev-meta span, .ev-meta a { display: inline-flex; align-items: center; gap: 6px; }
.ev-meta a { text-decoration: none; font-weight: 600; color: var(--text); }
.ev-meta a:hover { text-decoration: underline; }
.ev-desc { margin-top: 8px; font-size: 15px; color: var(--text); }
.ev-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: color-mix(in srgb, var(--c, var(--ink)) 12%, white); color: color-mix(in srgb, var(--c, var(--ink)) 80%, black);
}
.tag-soon { --c: var(--red); }
.tag-muted { background: var(--paper-2); color: var(--muted); }
.ev-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 13px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background .2s, box-shadow .2s, color .2s;
}
.icon-btn:hover { background: var(--ink); color: #fff; box-shadow: none; }

.empty {
  padding: 48px 28px; border-radius: var(--radius); text-align: center;
  background: var(--card); border: 2px dashed var(--line);
}
.empty h3 { font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; }
.empty p { margin: 10px auto 22px; max-width: 30em; color: var(--muted); }

.skeleton { height: 112px; border-radius: var(--radius); background: linear-gradient(90deg, #f3e9d9, #fbf4ea, #f3e9d9); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 760px) {
  .ev { grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; padding: 16px; align-items: start; }
  .ev-date { width: 64px; }
  .ev-day { font-size: 28px; }
  .ev-title { font-size: 18px; }
  .ev-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------- Karte ---------- */

.map-shell { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: #e9e3d8; }
.map { height: min(640px, 72vh); min-height: 420px; }
.map-ui {
  position: absolute; z-index: 500; left: 16px; right: 16px; top: 16px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; pointer-events: none;
}
.map-ui > * { pointer-events: auto; }
.map-ui .seg { box-shadow: var(--shadow); }
.legend {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow);
  font-size: 13px; font-weight: 600;
}
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend span::before { content: ""; width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); background: var(--c); }
.map-hint {
  position: absolute; z-index: 500; left: 50%; bottom: 18px; transform: translateX(-50%);
  padding: 8px 14px; border-radius: 999px; background: rgba(29, 21, 48, .85); color: #fff; font-size: 13px; font-weight: 600;
  pointer-events: none; transition: opacity .3s;
}
.map-hint.is-hidden { opacity: 0; }

.leaflet-container { font-family: var(--font-body); background: #e9e3d8; }
.leaflet-tile-pane { filter: grayscale(1) sepia(.12) contrast(.95) brightness(1.04); }
.leaflet-control-zoom { border: 0 !important; box-shadow: var(--shadow) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-control-zoom a { width: 38px !important; height: 38px !important; line-height: 38px !important; color: var(--ink) !important; }
.leaflet-bottom.leaflet-right .leaflet-control-zoom { margin: 0 16px 16px 0; }
.leaflet-control-attribution { font-size: 11px; background: rgba(255, 255, 255, .8) !important; }

.pin { background: none; border: 0; }
.pin-dia {
  display: block; width: 22px; height: 22px; margin: 3px;
  background: var(--c, var(--red)); border: 3px solid #fff; border-radius: 5px;
  transform: rotate(45deg); box-shadow: 0 4px 10px rgba(29, 21, 48, .35);
  transition: transform .25s var(--ease);
}
.pin:hover .pin-dia, .pin.is-active .pin-dia { transform: rotate(45deg) scale(1.25); }
.pin-date {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; border: 3px solid #fff;
  background: var(--c, var(--red)); color: #fff; box-shadow: 0 6px 14px rgba(29, 21, 48, .35);
  font-family: var(--font-display); line-height: 1;
  transition: transform .25s var(--ease);
}
.pin-date b { font-size: 16px; font-weight: 800; }
.pin-date small { font-size: 9px; font-weight: 700; text-transform: uppercase; margin-top: 2px; }
.pin:hover .pin-date { transform: translateY(-3px); }

.leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 16px 18px; font-size: 15px; line-height: 1.45; min-width: 210px; }
.leaflet-popup-content p { margin: 0; }
.leaflet-popup-content .pop-title, .leaflet-popup-content .pop-meta { margin-top: 4px; }
.pop-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c, var(--muted)); }
.pop-title { margin-top: 4px; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -.01em; color: var(--ink); }
.pop-meta { margin-top: 4px; color: var(--muted); }
.pop-links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.pop-links a, .pop-links button {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--paper-2); color: var(--ink) !important; font-size: 13px; font-weight: 700; text-decoration: none;
}
.pop-links a:hover, .pop-links button:hover { background: var(--ink); color: #fff !important; }

/* ---------- Vereine ---------- */

.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.club {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 22px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.club:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.club-head { display: flex; gap: 14px; align-items: flex-start; }
.club-badge {
  flex: none; position: relative; width: 50px; height: 50px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 15px; color: #fff; letter-spacing: -.02em;
}
.club-badge::before {
  content: ""; position: absolute; inset: 7px; border-radius: 8px; transform: rotate(45deg);
  background: var(--c, var(--red));
  transition: transform .5s var(--ease);
}
.club:hover .club-badge::before { transform: rotate(135deg); }
.club-badge span { position: relative; }
.club h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; line-height: 1.25; }
.club-meta { margin-top: 4px; color: var(--muted); font-size: 15px; }
.club-contact { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 15px; }
.club-contact li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: var(--text); }
.club-contact .i { margin-top: 4px; color: var(--c, var(--muted)); }
.club-contact a { color: var(--text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.club-contact a:hover { color: var(--red-dark); text-decoration: underline; }
.club-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.club-foot .spacer { flex: 1; }
.social {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none;
  transition: background .2s, color .2s;
}
.social:hover { background: var(--ink); color: #fff; box-shadow: none; }
.club-events { font-size: 13px; font-weight: 700; color: var(--red); }

.more-wrap { margin-top: 28px; display: flex; justify-content: center; }

/* ---------- Mitmachen ---------- */

.join-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.join-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px; min-height: 300px;
  padding: 36px; border-radius: 26px; text-decoration: none;
  background: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .4s var(--ease), background .3s;
}
.join-card:hover { transform: translateY(-4px); background: var(--ink-3); }
.join-card::after {
  content: ""; position: absolute; right: -70px; bottom: -70px; width: 150px; height: 150px; border-radius: 26px;
  background: var(--c); transform: rotate(45deg); opacity: .9;
  transition: transform .6s var(--ease);
}
.join-card:hover::after { transform: rotate(90deg) scale(1.08); }
.join-card > * { position: relative; z-index: 1; }
.join-card .num { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--c); }
.join-card h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; max-width: 12em; }
.join-card p { color: rgba(255, 255, 255, .72); max-width: 24em; }
.join-card .btn { margin-top: auto; align-self: flex-start; position: relative; z-index: 1; }

.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .72); }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--font-display); font-weight: 700; color: var(--gold); font-size: 14px; margin-bottom: 8px; }
.steps strong { display: block; color: #fff; font-size: 18px; margin-bottom: 4px; }

@media (max-width: 860px) {
  .join-grid, .steps { grid-template-columns: 1fr; }
  .join-card { min-height: 0; padding: 28px; }
}

/* ---------- Fußzeile ---------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); }
.site-footer .container { padding: 56px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer p { margin-top: 14px; max-width: 30em; font-size: 15px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-base .container { padding: 20px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; grid-template-columns: none; }
@media (max-width: 760px) { .site-footer .container { grid-template-columns: 1fr; } }

/* ---------- Unterseiten ---------- */

.page-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: calc(var(--header-h) + 64px) 0 72px; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/raute-dunkel.svg") 0 0 / 96px 96px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { margin-top: 18px; font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 60px); letter-spacing: -.035em; max-width: 14em; }
.page-hero .lead { margin-top: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .7); text-decoration: none; font-weight: 600; font-size: 15px; }
.back-link:hover { color: #fff; }
.back-link .i { transform: rotate(180deg); }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 48px; align-items: start; padding: 72px 0 112px; }
.form-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; }
.form-aside h2 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.form-aside ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; counter-reset: s; }
.form-aside li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; color: var(--muted); font-size: 16px; }
.form-aside li::before {
  content: counter(s); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
.form-aside li strong { display: block; color: var(--ink); }
.aside-note { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--paper-2); font-size: 15px; color: var(--muted); }
.aside-note a { color: var(--ink); font-weight: 700; }

.form-card { padding: 36px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow-lg); }
.form-card fieldset { border: 0; margin: 0; padding: 0; }
.form-card fieldset + fieldset { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.form-card legend { float: left; width: 100%; padding: 0; margin-bottom: 18px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.form-card legend + * { clear: both; }
.form-card legend small { display: block; margin-top: 4px; font-family: var(--font-body); font-weight: 500; font-size: 15px; color: var(--muted); letter-spacing: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.grid-3 { display: grid; grid-template-columns: 1.4fr .8fr 1.2fr; gap: 16px 18px; }
.span-2 { grid-column: span 2; }
.field { display: grid; gap: 7px; align-content: start; }
.field + .field { margin-top: 16px; }
.grid-2 .field + .field, .grid-3 .field + .field { margin-top: 0; }
.field label, .field .label { font-weight: 700; font-size: 15px; color: var(--ink); }
.field .req { color: var(--red); }
.field .hint { font-size: 14px; color: var(--muted); }
.input, .textarea, .form-card .select {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 12px; border: 0;
  background-color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 16px; transition: box-shadow .2s, background-color .2s;
}
.form-card .select { border-radius: 12px; padding-right: 42px; font-weight: 500; }
.textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.input:hover, .textarea:hover, .form-card .select:hover { box-shadow: inset 0 0 0 1.5px #d6c7ae; }
.input:focus, .textarea:focus, .form-card .select:focus { outline: 0; background-color: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.input.is-invalid, .textarea.is-invalid, .form-card .select.is-invalid { box-shadow: inset 0 0 0 2px var(--red); background-color: #fff5f4; }
.input-icon { position: relative; }
.input-icon .i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 44px; }
.field-error { font-size: 14px; font-weight: 600; color: var(--red); }

.radio-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chips input { position: absolute; opacity: 0; pointer-events: none; }
.radio-chips label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 10px 16px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 600; font-size: 15px; color: var(--text);
  transition: background .2s, color .2s, box-shadow .2s;
}
.radio-chips label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--c, var(--ink)); }
.radio-chips label:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.radio-chips input:checked + label { background: var(--ink); color: #fff; box-shadow: none; }
.radio-chips input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }

.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--muted); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; border-radius: 7px; background: var(--paper); box-shadow: inset 0 0 0 1.5px #d6c7ae; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.check input:checked { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 15px no-repeat; box-shadow: none; }
.check input.is-invalid { box-shadow: inset 0 0 0 2px var(--red); }
.check a { color: var(--ink); font-weight: 700; }
.field label.check { font-weight: 500; font-size: 15px; color: var(--muted); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-submit { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-weight: 600; font-size: 15px; }
.form-status.is-error { color: var(--red); }

.picker { display: grid; gap: 10px; }
.picker-search { display: flex; gap: 8px; }
.picker-search .input-icon { flex: 1; }
.picker-map { height: 320px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--line); }
.picker-state { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.picker-state.is-set { color: var(--green); font-weight: 700; }

.success {
  text-align: center; padding: 56px 28px;
}
.success-mark {
  width: 84px; height: 84px; margin: 0 auto 24px; position: relative; display: grid; place-items: center; color: #fff;
}
.success-mark::before { content: ""; position: absolute; inset: 12px; border-radius: 14px; background: var(--green); transform: rotate(45deg); animation: pop .6s var(--ease); }
.success-mark .i { position: relative; width: 32px; height: 32px; stroke-width: 3; }
@keyframes pop { from { transform: rotate(-45deg) scale(.3); opacity: 0; } }
.success h2 { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -.03em; }
.success p { margin: 12px auto 26px; max-width: 28em; color: var(--muted); }
.success .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 80px; }
  .form-aside { position: static; }
}
@media (max-width: 600px) {
  .form-card { padding: 24px 18px; border-radius: 20px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .picker-search { flex-direction: column; }
}

/* Rechtstexte */
.legal { padding: 64px 0 112px; }
.legal .container { max-width: 780px; }
.legal h2 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin: 40px 0 12px; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--red-dark); font-weight: 600; }
.legal .draft { padding: 16px 20px; border-radius: var(--radius-sm); background: #fff3d1; color: #5a4200; font-weight: 600; }

/* ---------- Maskottchen ---------- */

.mascot, .empty-mascot, .success-mascot {
  display: block; border-radius: 50%;
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
}
.mascot {
  position: absolute; z-index: 2; width: 170px; height: 170px; left: -128px; bottom: -96px;
  transform: rotate(-2deg); pointer-events: none;
  animation: bob 4.5s ease-in-out infinite;
}
@keyframes bob { 50% { transform: rotate(-2deg) translateY(-10px) rotate(3deg); } }
.empty-mascot { width: 140px; height: 140px; margin: -12px auto 10px; }
.success-mascot { width: 180px; height: 180px; margin: -20px auto 12px; animation: pop .7s var(--ease); }
@media (max-width: 960px) {
  .mascot { width: 140px; height: 140px; left: auto; right: -6px; bottom: -56px; }
}

/* ---------- Bewegung ---------- */

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

.hero .line > span { transform: translateY(105%); animation: rise 1s var(--ease) forwards; animation-delay: var(--delay, 0s); }
@keyframes rise { to { transform: none; } }
.hero-fade { opacity: 0; transform: translateY(16px); animation: fadeUp .9s var(--ease) forwards; animation-delay: var(--delay, .4s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.ticket-in { opacity: 0; animation: ticketIn 1.1s var(--ease) .35s forwards; }
@keyframes ticketIn { from { opacity: 0; transform: translateY(40px) rotate(8deg); } to { opacity: 1; transform: rotate(2deg); } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-bottom: 64px; }
  .ticket { max-width: 460px; }
  .section { padding: 80px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .hero { padding-top: calc(var(--header-h) + 32px); }
  .stats { gap: 14px 28px; margin-top: 36px; }
  .stats dd { font-size: 28px; }
  .ticket-top { padding: 24px 22px 20px; }
  .ticket-bottom { padding: 18px 22px 22px; }
  .section-head { margin-bottom: 32px; }
  .toolbar > * { width: 100%; }
  .toolbar .seg { overflow-x: auto; scrollbar-width: none; }
  .toolbar .select { width: 100%; }
  .map { height: 70vh; }
  .map-ui { left: 10px; right: 10px; top: 10px; }
  .legend { display: 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; }
  [data-reveal] { opacity: 1; transform: none; }
  .ticket-in, .hero-fade { opacity: 1; }
}
