/* Leonida Radar – gemeinsames Stylesheet
   Palette "Leonida-Dämmerung": Nacht, Dämmerung, Flamingo, Mango, Lagune, Sand */
@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage-wdth.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --nacht: #24133f;
  --daemmerung: #34205a;
  --linie: #4a3474;
  --flamingo: #ff6fa8;
  --mango: #ffb35c;
  --lagune: #3fd3c1;
  --sand: #fff1e3;
  --sand-2: #d9c8e8;
  --himmel: linear-gradient(90deg, var(--mango), var(--flamingo) 55%, #b06cff);
  --measure: 68ch;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.333rem;
  --step-2: 1.777rem;
  --step-3: 2.369rem;
  --step-4: clamp(2.6rem, 6vw + 1rem, 4.75rem);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--nacht); }
body {
  margin: 0;
  font-family: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--sand);
  background:
    radial-gradient(120% 60% at 85% -10%, #5a2a6e 0%, transparent 60%),
    var(--nacht);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

a { color: var(--lagune); text-underline-offset: .18em; }
a:hover { color: var(--sand); }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-stretch: 78%; font-weight: 760; line-height: 1.02; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-stretch: 90%; }
p { margin: 0 0 1em; max-width: var(--measure); }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* Kopfzeile mit Horizontlinie */
.site-head { position: relative; }
.site-head::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--himmel); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; flex-wrap: wrap; }
.brand { color: var(--sand); text-decoration: none; font-weight: 800; font-stretch: 75%; font-size: var(--step-2); line-height: 1; }
.brand span { color: var(--flamingo); }
.site-nav { display: flex; gap: .25rem; }
.site-nav a { color: var(--sand-2); text-decoration: none; padding: .45rem .8rem; border-radius: 999px; }
.site-nav a:hover { color: var(--sand); background: var(--daemmerung); }
.site-nav a[aria-current="page"] { color: var(--nacht); background: var(--sand); }

/* Hero mit Radar */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero .lead { font-size: var(--step-1); color: var(--sand-2); line-height: 1.45; }
.status { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; margin-bottom: 1.2rem; }
.status::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--mango); box-shadow: 0 0 0 4px rgb(255 179 92 / .2); }
.status.live::before { background: var(--lagune); box-shadow: 0 0 0 4px rgb(63 211 193 / .2); }

.radar {
  position: relative; aspect-ratio: 1; width: min(100%, 420px); justify-self: end;
  border-radius: 50%; overflow: hidden;
  background:
    repeating-radial-gradient(circle, transparent 0 calc(16.66% - 1px), var(--linie) calc(16.66% - 1px) 16.66%),
    linear-gradient(transparent calc(50% - .5px), var(--linie) 0 calc(50% + .5px), transparent 0),
    linear-gradient(90deg, transparent calc(50% - .5px), var(--linie) 0 calc(50% + .5px), transparent 0),
    radial-gradient(circle, #3a2063, #2a1749 70%);
  box-shadow: inset 0 0 0 2px var(--linie), 0 30px 80px -30px rgb(255 111 168 / .45);
}
.radar::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgb(255 111 168 / .55), rgb(255 179 92 / .15) 50deg, transparent 70deg);
  animation: sweep 6s linear infinite;
}
@keyframes sweep { to { transform: rotate(1turn); } }
.blip { position: absolute; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--lagune); box-shadow: 0 0 12px var(--lagune); z-index: 1; }
.radar-note { position: absolute; inset: auto 0 18%; text-align: center; font-stretch: 85%; font-weight: 600; color: var(--sand-2); z-index: 1; }

/* Abschnitte */
.section { padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--linie); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: minmax(10rem, 1fr) 2fr; gap: .5rem 2rem; padding-block: 1.1rem; border-bottom: 1px solid var(--linie); }
.rows h3 { margin: 0; }
.rows p { margin: 0; color: var(--sand-2); }

.events { display: grid; gap: 1px; background: var(--linie); border: 1px solid var(--linie); border-radius: 14px; overflow: hidden; }
.event { background: var(--daemmerung); padding: 1.1rem 1.25rem; display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: baseline; }
.event h3 { margin: 0; }
.event .bonus { font-weight: 800; font-stretch: 80%; font-size: var(--step-2); color: var(--flamingo); grid-row: span 2; }
.event .meta { margin: 0; color: var(--sand-2); font-size: var(--step--1); }

details { border-bottom: 1px solid var(--linie); padding-block: .9rem; max-width: 80ch; }
summary { cursor: pointer; font-weight: 650; font-size: var(--step-1); font-stretch: 90%; }
details p { margin: .6rem 0 0; color: var(--sand-2); }

/* Formulare, Buttons */
input, select, textarea, button { font: inherit; color: inherit; }
input[type=email], select, textarea { background: var(--daemmerung); border: 1px solid var(--linie); border-radius: 10px; padding: .65rem .8rem; }
a.btn { text-decoration: none; display: inline-block; }
.btn, button { background: var(--flamingo); color: var(--nacht); border: 0; border-radius: 999px; padding: .65rem 1.2rem; font-weight: 700; cursor: pointer; }
.btn.quiet, button.quiet { background: transparent; color: var(--sand-2); box-shadow: inset 0 0 0 1px var(--linie); }
.btn:hover, button:hover { filter: brightness(1.08); }
form.signup { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.2rem; }

/* Tracker */
.progress-line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
#progress { font-weight: 650; color: var(--sand-2); }
.track { height: 14px; border-radius: 999px; background: var(--daemmerung); box-shadow: inset 0 0 0 1px var(--linie); overflow: hidden; margin-block: .6rem 2rem; }
#bar { height: 100%; width: 0; background: var(--himmel); transition: width .3s ease; }
#groups section { margin-bottom: 2rem; }
#groups h2 { font-size: var(--step-2); }
.item { display: flex; gap: .8rem; align-items: center; padding: .7rem .2rem; border-bottom: 1px solid var(--linie); cursor: pointer; }
.item input { width: 1.25rem; height: 1.25rem; accent-color: var(--lagune); flex: none; }
.item:has(input:checked) span { color: var(--sand-2); text-decoration: line-through; text-decoration-color: var(--lagune); }
.track:has(+ #groups .empty) { display: none; }
.empty { padding: 2rem; border: 1px dashed var(--linie); border-radius: 14px; color: var(--sand-2); max-width: none; }

/* Karte */
.map-bar { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; padding-block: .9rem; }
#filters { display: flex; flex-wrap: wrap; gap: .4rem; }
#filters label { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px; background: var(--daemmerung); box-shadow: inset 0 0 0 1px var(--linie); cursor: pointer; font-size: var(--step--1); }
#filters label:has(input:not(:checked)) { opacity: .5; }
#filters input { position: absolute; opacity: 0; pointer-events: none; }
#filters label:has(input:focus-visible) { outline: 3px solid var(--mango); outline-offset: 2px; }
.dot { width: .65rem; height: .65rem; border-radius: 50%; display: inline-block; }
#map { height: calc(100vh - 210px); min-height: 380px; border-radius: 14px; background: #1d1233; box-shadow: inset 0 0 0 1px var(--linie); }
.leaflet-container { font: inherit; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--daemmerung); color: var(--sand); }
.leaflet-container .leaflet-bar { border: 1px solid var(--linie); }
.leaflet-container .leaflet-bar a { background: var(--daemmerung); color: var(--sand); border-bottom-color: var(--linie); }
.leaflet-container .leaflet-bar a.leaflet-disabled { background: var(--daemmerung); color: var(--linie); }
#editor { padding-block: 1rem; } #export { width: 100%; height: 140px; margin-top: .5rem; }

/* Text-Seiten */
.prose { padding-block: clamp(2rem, 5vw, 3.5rem); }
.prose h1 { font-size: var(--step-3); }
.prose h2 { font-size: var(--step-1); font-stretch: 90%; margin-top: 2em; }
.prose p { color: var(--sand-2); }

/* Fuß */
.site-foot { border-top: 1px solid var(--linie); margin-top: 3rem; padding-block: 1.5rem 2rem; color: var(--sand-2); font-size: var(--step--1); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.site-foot p { margin: 0; }
.site-foot nav { display: flex; gap: 1.2rem; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .radar { justify-self: start; width: min(70%, 240px); order: -1; }
  .rows li { grid-template-columns: 1fr; }
  .site-nav a { padding: .4rem .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .radar::after { animation: none; transform: rotate(35deg); }
  #bar { transition: none; }
}
