/* The Rise Club: öffentliche Seite „Ein Tag mit dem Club“.
   Handy zuerst; ab 48rem Tablet, ab 64rem Desktop. Farben, Schriften, Bausteine: tokens.css und bausteine.css.
   Jede Bewegung steht in prefers-reduced-motion: no-preference; Scroll-Animationen zusätzlich in @supports. */

/* ---------- Grundlagen ---------- */

:root {
  --rand: clamp(16px, 5vw, 48px);
  --breite: 1240px;
  --woelbung: clamp(44px, 11vw, 168px);
  --luft: clamp(28px, 4vw, 56px);
  --dock-platz: calc(84px + env(safe-area-inset-bottom, 0px));
  --weich: cubic-bezier(0.22, 1, 0.36, 1);
  --feder: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* hidden gewinnt immer, auch gegen display aus Klassen */
[hidden] { display: none !important; }
html {
  background: var(--offwhite); color: var(--navy); -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(12, 43, 64, 0.12);
  /* Fokus und Sprungziele nie unter dem Dock verstecken */
  scroll-padding-bottom: var(--dock-platz);
}
a, button, summary, label, input { touch-action: manipulation; }
body { margin: 0; font: 400 1rem/1.6 var(--font-text); -webkit-font-smoothing: antialiased; }
/* Kurze Seiten (Ankündigung, Impressum, Fehler, Anmeldung): Der Abschluss steht immer am unteren Rand,
   darunter bleibt keine helle Fläche */
body { min-height: 100svh; display: flex; flex-direction: column; }
/* align-content: Seiten, deren main selbst ein Raster ist, sollen ihre Zeilen nicht strecken */
body > main { flex: 1 0 auto; align-content: start; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.nur-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.springen {
  position: absolute; left: var(--rand); top: 8px; z-index: 50; padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--navy); color: var(--offwhite); font-weight: 600; text-decoration: none; translate: 0 -200%;
}
.springen:focus-visible { translate: 0 0; }

/* Nur für angemeldete Zugänge, solange die Seite im Aufbau ist */
.vorschau-hinweis {
  position: fixed; z-index: 60; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 12px; max-width: calc(100% - 120px);
  margin: 0; padding: 9px 14px; border-radius: var(--radius-pill); background: var(--navy); color: var(--offwhite);
  font: 600 0.8125rem/1.3 var(--font-text); box-shadow: var(--float);
}
.vorschau-hinweis a { color: inherit; text-underline-offset: 3px; }

.titel { font-size: clamp(2.25rem, 1.55rem + 2.9vw, 3.75rem); line-height: 1; letter-spacing: -0.01em; }
.fliesstext { max-width: 62ch; font-size: 1.0625rem; }
.fliesstext p + p { margin-top: 1em; }

.trc-icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Tageszeiten: jeder Abschnitt ist eine Fläche, die über den vorigen aufgeht ---------- */

.tag {
  position: relative;
  isolation: isolate;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: var(--luft) var(--rand) calc(var(--woelbung) + var(--luft));
  /* Deckt 1px über den Rand hinaus, Safari zeigte dort sonst eine helle Linie. Schatten erzeugen keinen Überlauf. */
  box-shadow: 0 0 0 1px var(--tag-bg);
}
/* Schwung: Jeder Abschnitt schiebt sich um --woelbung über den vorigen und rundet seine Oberkante
   mit zwei ungleichen Ellipsen-Ecken ab (horizontal zusammen 100 %). Wo sich die Ecken treffen, liegt der
   Scheitel; die Ecke mit dem größeren senkrechten Radius fällt am Rand tiefer ab. Kein Pseudo-Element,
   kein Überstand, deshalb in jedem Browser gleich. */
.tag + .tag, main + .tag {
  margin-top: calc(var(--woelbung) * -1);
  padding-top: calc(var(--woelbung) * 0.7 + var(--luft));
  border-top-left-radius: var(--schwung-links-x, 50%) calc(var(--woelbung) * var(--schwung-links-y, 1));
  border-top-right-radius: var(--schwung-rechts-x, 50%) calc(var(--woelbung) * var(--schwung-rechts-y, 1));
}

/* Die Schwünge wechseln die Seite: mal steigt die Linie nach rechts, mal nach links, wie Hügel bei Sonnenaufgang. */
.tag--aufgang { --tag-bg: var(--offwhite); --tag-text: var(--navy); }
.tag--morgen { --tag-bg: var(--sky); --tag-text: var(--navy); --schwung-links-x: 72%; --schwung-rechts-x: 28%; --schwung-links-y: 1; --schwung-rechts-y: 0.45; }
.tag--mittag { --tag-bg: var(--butter); --tag-text: var(--navy); --schwung-links-x: 28%; --schwung-rechts-x: 72%; --schwung-links-y: 0.45; --schwung-rechts-y: 1; }
.tag--nachmittag { --tag-bg: var(--lavender); --tag-text: var(--navy); --schwung-links-x: 62%; --schwung-rechts-x: 38%; --schwung-links-y: 0.95; --schwung-rechts-y: 0.55; }
.tag--abend { --tag-bg: var(--bordeaux); --tag-text: var(--offwhite); --schwung-links-x: 38%; --schwung-rechts-x: 62%; --schwung-links-y: 0.55; --schwung-rechts-y: 0.95; }
.tag--nacht { --tag-bg: var(--navy); --tag-text: var(--offwhite); --schwung-links-y: 0.8; --schwung-rechts-y: 0.8; }

/* Auf dunklen Tageszeiten: Buttons in Offwhite statt Navy */
.tag--abend .trc-btn--primary, .tag--nacht .trc-btn--primary { background: var(--offwhite); color: var(--navy); }
.tag--abend .trc-btn--secondary, .tag--nacht .trc-btn--secondary { color: var(--offwhite); border-color: currentColor; }
.tag--morgen .trc-btn--secondary, .tag--mittag .trc-btn--secondary, .tag--nachmittag .trc-btn--secondary { border-color: var(--navy); }

/* ---------- Kopf ---------- */

.kopf {
  position: absolute; z-index: 5; top: calc(env(safe-area-inset-top, 0px) + 12px); right: var(--rand);
  display: flex; gap: 8px;
}
.kopf__sprache, .kopf__zurueck {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border-radius: var(--radius-pill); text-decoration: none; font: 600 0.875rem/1 var(--font-text);
}
/* Sprachknopf schwebt oben rechts und bleibt beim Scrollen sichtbar, auf jeder Seite */
.kopf__sprache {
  position: fixed; z-index: 31; top: calc(env(safe-area-inset-top, 0px) + 12px); right: var(--rand);
  background: rgba(255, 253, 247, 0.86); color: var(--navy); border: 1.5px solid rgba(12, 43, 64, 0.18);
  box-shadow: 0 10px 24px -14px rgba(12, 43, 64, 0.55); transition: background-color 0.15s;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.kopf__sprache:hover { background: var(--offwhite); }
.kopf__zurueck:hover span { text-decoration: underline; text-underline-offset: 4px; }
.kopf--unterseite {
  position: static; display: flex; justify-content: space-between; align-items: center;
  max-width: var(--breite); margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--rand) 0;
}
.kopf__zurueck { padding-left: 4px; }

/* ---------- Sonnenaufgang: Start ---------- */

.tag--aufgang { padding-top: calc(env(safe-area-inset-top, 0px) + 72px); }
.start {
  max-width: var(--breite); margin: 0 auto;
  display: grid; gap: 28px; align-content: center;
}
.start__logo { width: min(80vw, 360px); justify-self: center; }
.start__titel { font-size: clamp(2.75rem, 1.35rem + 6.2vw, 6rem); line-height: 0.95; letter-spacing: -0.015em; }
.start__wort { display: inline-block; }
.start__intro { margin-top: 18px; max-width: 34ch; font-size: 1.125rem; line-height: 1.55; }
.start__knoepfe { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .start__wort { animation: wort-auf 0.5s var(--weich) both; animation-delay: calc(0.12s + var(--i) * 45ms); }
  .start__intro, .start__knoepfe { animation: einblenden 0.5s var(--weich) both; animation-delay: 0.45s; }
}
@keyframes wort-auf { from { opacity: 0; transform: translateY(0.55em); } }
@keyframes einblenden { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Morgen: Events auf dem Horizont ---------- */

/* minmax(0, …) und min-width: 0, sonst macht die Filterleiste die Seite auf dem Handy breiter als den Bildschirm */
.abschnitt-kopf { max-width: var(--breite); margin: 0 auto 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.abschnitt-kopf__werkzeuge { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; min-width: 0; }

.filter {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(var(--rand) * -1); padding: 2px var(--rand); flex: 1 1 100%; min-width: 0;
}
.filter::-webkit-scrollbar { display: none; }
.filter__knopf {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--navy); background: transparent; color: var(--navy);
  font: 600 0.875rem/1 var(--font-text); cursor: pointer; transition: background-color 0.15s, color 0.15s;
}
.filter__knopf:hover { background: rgba(12, 43, 64, 0.08); }
.filter__knopf[aria-pressed='true'] { background: var(--navy); color: var(--offwhite); }

.horizont { position: relative; }
.horizont__buehne { position: relative; }
.horizont__bahn { position: relative; }
.horizont__spur {
  /* Unten genug Platz für den Kartenschatten (reicht 40px unter die Karte), sonst entsteht eine Kante */
  position: relative; display: flex; gap: 14px; margin: 0 calc(var(--rand) * -1) -16px; padding: 10px var(--rand) 44px;
  list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rand);
  overscroll-behavior-x: contain; scrollbar-width: none;
}
.horizont__spur::-webkit-scrollbar { display: none; }
.horizont__spur:focus-visible { outline-offset: -3px; }
.horizont__eintrag { flex: 0 0 min(84vw, 360px); scroll-snap-align: start; display: flex; }
.horizont__leer { max-width: var(--breite); margin: 0 auto; font-weight: 600; }

/* Karte: das Datum ist eine aufgehende Sonne in Kategoriefarbe */
.karte {
  flex: 1; display: flex; flex-direction: column; min-width: 0;
  background: var(--offwhite); color: var(--navy); border-radius: var(--radius-card); overflow: clip;
  box-shadow: 0 1px 0 rgba(12, 43, 64, 0.06), 0 24px 48px -32px rgba(12, 43, 64, 0.45);
}
.sonne-datum {
  --sonne: var(--sky); --sonne-text: var(--navy);
  position: relative; display: grid; justify-items: center; align-content: end;
  height: 152px; padding-bottom: 14px; color: var(--sonne-text); text-decoration: none; overflow: clip;
}
.sonne-datum::before {
  content: ''; position: absolute; z-index: 0; left: 50%; bottom: 0;
  /* Höchstens 124px hoch in 152px: oben bleibt sichtbar Luft bis zur Kartenkante */
  width: min(80%, 248px); aspect-ratio: 2 / 1; translate: -50% 0;
  border-radius: 999px 999px 0 0; background: var(--sonne);
}
.sonne-datum > span { position: relative; }
.sonne-datum--run { --sonne: var(--sky); }
.sonne-datum--social { --sonne: var(--butter); }
.sonne-datum--workshop { --sonne: var(--lavender); }
.sonne-datum--special { --sonne: var(--bordeaux); --sonne-text: var(--offwhite); }
.sonne-datum__wochentag, .sonne-datum__monat { font: 600 0.8125rem/1.2 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; }
.sonne-datum__tag { font: 900 3.75rem/0.9 var(--font-display); margin: 2px 0 4px; }

.karte__inhalt { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; }
.karte__chips { display: flex; flex-wrap: wrap; gap: 6px; }
:is(.karte, .eventseite__inhalt) .trc-chip--run { background: var(--sky); color: var(--navy); }
:is(.karte, .eventseite__inhalt) .trc-chip--social { background: var(--butter); color: var(--navy); }
:is(.karte, .eventseite__inhalt) .trc-chip--workshop { background: var(--lavender); color: var(--navy); }
:is(.karte, .eventseite__inhalt) :is(.trc-chip--special, .trc-chip--soldout) { background: var(--bordeaux); color: var(--offwhite); box-shadow: none; }
.trc-chip--plaetze { background: var(--navy); color: var(--offwhite); }
.karte__titel { font: 600 1.5rem/1.1 var(--font-display); overflow-wrap: anywhere; }
.karte__titel a { text-decoration: none; }
.karte__titel a::after { content: ''; position: absolute; inset: 0; }
.karte { position: relative; }
.karte__meta { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font: 500 0.9375rem/1.4 var(--font-text); }
.karte__meta li { display: flex; gap: 8px; align-items: center; }
.karte__mit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 500 0.875rem/1.3 var(--font-text); color: var(--text-muted); }
.karte__mit-logo { height: 28px; width: auto; max-width: 96px; object-fit: contain; }
.karte__mit-name { color: var(--navy); font-weight: 600; }
.karte__aktionen { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; position: relative; z-index: 2; }
.karte__details {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font: 600 0.9375rem/1 var(--font-text); text-decoration: none;
}
.karte__details:hover { text-decoration: underline; text-underline-offset: 4px; }
.karte--abgesagt .karte__titel { text-decoration: line-through; text-decoration-thickness: 2px; }
.karte--abgesagt .sonne-datum::before { opacity: 0.45; }

/* Karten gehen beim Hereinkommen auf (seite.js setzt .ist-oben); ohne JavaScript sind sie sofort da */
@media (prefers-reduced-motion: no-preference) {
  .js .horizont__eintrag:not(.ist-oben) .karte { opacity: 0; transform: translateY(28px); }
  .js .horizont__eintrag:not(.ist-oben) .sonne-datum::before { transform: translateY(70%); }
  .js .horizont__eintrag:not(.ist-oben) .sonne-datum > span { opacity: 0; transform: translateY(24px); }
  .js:not(.seite-bereit) .horizont__eintrag .karte { animation: notfall-zeigen 0s 4s forwards; }
  .horizont__eintrag .karte { transition: opacity 0.3s var(--weich), transform 0.35s var(--weich); }
  .horizont__eintrag .sonne-datum::before { transition: transform 0.5s var(--weich) 0.05s; }
  .horizont__eintrag .sonne-datum > span { transition: opacity 0.3s var(--weich) 0.15s, transform 0.4s var(--feder) 0.15s; }
}
@keyframes notfall-zeigen { to { opacity: 1; transform: none; } }

/* Kalender-Menü (details/summary) */
.kalender { position: relative; }
.kalender > summary { list-style: none; cursor: pointer; }
.kalender > summary::-webkit-details-marker { display: none; }
.kalender > summary .trc-icon:last-child { transition: rotate 0.15s; }
.kalender[open] > summary .trc-icon:last-child { rotate: 180deg; }
.kalender__menue { position: absolute; z-index: 20; left: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px)); }
.karte .kalender__menue { top: auto; bottom: calc(100% + 8px); }
.trc-menu__item { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; }
.kalender__instagram { display: none; padding-top: 8px; }
.im-instagram .kalender__instagram { display: block; }

/* Leerer Zustand */
.leer { max-width: 34rem; margin: 0 auto; display: grid; justify-items: center; gap: 18px; text-align: center; font-size: 1.125rem; }
.leer__sonne { width: 160px; color: var(--navy); }

/* ---------- Mittag: Club ---------- */

.club { max-width: var(--breite); margin: 0 auto; display: grid; gap: 40px; }
.club__boegen { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.club__boegen .club__bogen--2 { margin-top: 56px; }
.club__text { display: grid; gap: 20px; }

.bogen {
  margin: 0; aspect-ratio: 4 / 5; overflow: hidden; max-width: 100%;
  border-radius: 50% 50% var(--radius-tile) var(--radius-tile) / 40% 40% var(--radius-tile) var(--radius-tile);
}
.bogen img { width: 100%; height: 100%; object-fit: cover; }
.bogen--leer { display: grid; align-items: end; justify-items: center; padding: 0 12% 14%; }
.bogen--sky { background: var(--sky); }
.bogen--lavender { background: var(--lavender); }
.bogen__sonne { width: 100%; color: var(--navy); }

/* ---------- Nachmittag: Mitmachen ---------- */

/* Zentrierte Aussage: bricht die Folge aus Bild-links-Text-rechts-Abschnitten */
.mitmachen { max-width: var(--breite); margin: 0 auto; display: grid; gap: 36px; justify-items: center; text-align: center; }
.mitmachen__text { display: grid; gap: 26px; justify-items: center; width: 100%; }
.mitmachen__einleitung { max-width: 36rem; font-size: 1.1875rem; line-height: 1.55; }
.profil { display: block; width: 136px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 4px solid var(--offwhite); }
/* Drei Punkte mit Symbolen, ruhig und ohne Nummern */
.merkmale { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; text-align: left; }
.merkmale__punkt { display: flex; align-items: center; gap: 12px; font-size: 1.0625rem; font-weight: 500; }
.merkmale__punkt .trc-icon { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--navy); color: var(--lavender); }

/* Der dritte Punkt ist ein Link zu „Schreib uns“: gleich aufgebaut wie die anderen, „Schreib uns“ unterstrichen */
.merkmale__link { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; border-radius: 12px; }
.merkmale__link strong { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; white-space: nowrap; }
.merkmale__link:hover strong { text-decoration-thickness: 2.5px; }

/* ---------- She Runs im Stil des Club-Posters ---------- */
/* Butter-Grund. Strecke und Text liegen im selben Feld: Die Strecke zeichnet sich rechts im Hintergrund,
   Überschrift, Tag und Angaben liegen links darüber und dürfen sie ganz überdecken. */
.tag--she { --tag-bg: var(--butter); --tag-text: var(--bordeaux); --schwung-links-x: 40%; --schwung-rechts-x: 60%; --schwung-links-y: 0.6; --schwung-rechts-y: 0.95; }
.she { max-width: var(--breite); margin: 0 auto; display: grid; align-items: center; }
.she > * { grid-area: 1 / 1; }
.she__karte { display: block; justify-self: end; width: min(92%, 560px); border-radius: 12px; }
.she__karte svg { display: block; width: 100%; height: auto; overflow: visible; }
/* Zwei durchgehende Linien übereinander ergeben einen sauberen Rand; beide zeichnen sich gemeinsam (seite.js) */
.she__spur { fill: none; stroke: #f8f6f0; stroke-width: 20; stroke-linejoin: round; stroke-linecap: round; }
.she__spur--rand { stroke: #e2dccb; stroke-width: 28; }
.she__karte:hover .she__spur:not(.she__spur--rand) { stroke: var(--offwhite); }
/* Ortungspunkt: läuft vorne mit, während sich die Strecke zeichnet; am Ende steht er am Treffpunkt */
.she__ort-punkt { fill: var(--bordeaux); stroke: var(--offwhite); stroke-width: 7; }
.she__ort-hof { fill: var(--bordeaux); opacity: 0.18; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .she__ort-hof { animation: ort-puls 1.6s ease-out infinite; }
}
@keyframes ort-puls { from { opacity: 0.32; scale: 0.5; } to { opacity: 0; scale: 1.5; } }
/* Text über der Strecke; Klicks gehen durch auf die Strecke (Link zu Strava) */
.she__text { position: relative; z-index: 1; display: grid; justify-items: start; pointer-events: none; }
.she__titel {
  margin: 0; color: var(--lavender); max-width: 5.2em;
  font: 900 clamp(4.5rem, 2.4rem + 11vw, 10.5rem)/0.82 var(--font-display); letter-spacing: -0.01em; text-transform: uppercase;
}
.she__wann { margin: 8px 0 0; color: var(--lavender); font: 900 clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem)/1 var(--font-display); text-transform: uppercase; }
.she__angaben {
  justify-self: center; text-align: center;
  margin: 26px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, auto); gap: 18px;
  font-size: clamp(0.9375rem, 0.8rem + 0.7vw, 1.375rem); line-height: 1.25;
}
.she__angaben li { display: grid; gap: 2px; align-content: start; }
/* Sky als Schrift, wie im Poster */
.she__hinweis { justify-self: center; text-align: center; margin: 20px 0 0; color: var(--sky); font: 700 clamp(1rem, 0.9rem + 0.5vw, 1.25rem)/1.2 var(--font-display); }

/* ---------- Abend: Werbepartner ---------- */

.partner { max-width: var(--breite); margin: 0 auto; display: grid; gap: 32px; }
.partner__text { display: grid; gap: 18px; justify-items: start; }
.angebote { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.angebot__karte {
  display: grid; overflow: clip; border-radius: var(--radius-card); background: var(--offwhite); color: var(--navy);
}
.angebot__bild { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.angebot { container-type: inline-size; }
@container (min-width: 34rem) {
  .angebot__karte:has(.angebot__bild) { grid-template-columns: 2fr 3fr; align-items: center; }
  .angebot__karte .angebot__bild { height: 100%; min-height: 220px; aspect-ratio: auto; }
}
.angebot__inhalt { display: grid; gap: 12px; padding: 18px 20px 20px; }
.angebot__kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.angebot__logo { height: 36px; width: auto; max-width: 150px; object-fit: contain; }
.angebot__name { font: 700 1.25rem/1.1 var(--font-display); }
.angebot__werbung {
  flex: none; padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  font: 600 0.75rem/1 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted);
}
.angebot__aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.angebot__code {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; cursor: pointer;
  border: 1.5px dashed var(--navy); border-radius: var(--radius-pill); background: var(--butter); color: var(--navy);
  font: 500 0.875rem/1 var(--font-text);
}
.angebot__code strong { font-weight: 700; letter-spacing: 0.06em; }
/* Auf der hellen Angebotskarte gelten die normalen Button-Farben, nicht die des dunklen Abends */
.angebot__karte .trc-btn--primary { background: var(--navy); color: var(--offwhite); }

/* Kooperationen als Logoreihe im Club-Abschnitt */

/* ---------- Motive aus den Club-Posts (Funkelstern, Blüte, Strahlen) ---------- */
/* Dezent: höchstens eins je Bereich, nie über Text */
.motiv { display: inline-block; flex: none; width: 1em; height: 1em; }
.start__wort:last-child { position: relative; }
.start__funkeln { position: absolute; left: 100%; top: -0.12em; width: 0.38em; height: 0.38em; margin-left: 0.05em; color: var(--lavender); }
.start__funkeln--klein { top: -0.42em; width: 0.2em; height: 0.2em; margin-left: 0.42em; color: var(--sky); }
.start__logo { position: relative; }
.start__logo-funkeln { position: absolute; left: 4%; top: 6%; width: 8%; height: auto; aspect-ratio: 1; color: var(--lavender); }
.nacht__marke { position: relative; width: min(44vw, 168px); margin: 0 auto; }
.nacht__marke .nacht__logo { width: 100%; }
.nacht__funkeln { position: absolute; color: var(--butter); }
.nacht__funkeln--1 { width: 18px; height: 18px; top: 4%; right: -14%; }
.nacht__funkeln--2 { width: 11px; height: 11px; top: 26%; right: -24%; opacity: 0.8; }
@media (prefers-reduced-motion: no-preference) {
  /* Der Funkelstern im Titel blitzt nach den Wörtern einmal auf */
  .start__funkeln, .start__logo-funkeln { animation: funkeln-auf 0.5s var(--feder) both; animation-delay: 0.45s; }
  .start__funkeln--klein { animation-delay: 0.55s; }
  .start__logo-funkeln { animation-delay: 0.9s; }
}
@keyframes funkeln-auf { from { opacity: 0; scale: 0.2; rotate: -60deg; } }

/* ---------- Eigene Abschnitte aus der Verwaltung ---------- */
/* Fläche in einer Markenfarbe, Schrift und Knopf passen sich an; Schwung wie bei den festen Abschnitten */
.farbe--offwhite { --tag-bg: var(--offwhite); --tag-text: var(--navy); }
.farbe--sky { --tag-bg: var(--sky); --tag-text: var(--navy); }
.farbe--butter { --tag-bg: var(--butter); --tag-text: var(--navy); }
.farbe--lavender { --tag-bg: var(--lavender); --tag-text: var(--navy); }
.farbe--bordeaux { --tag-bg: var(--bordeaux); --tag-text: var(--offwhite); }
.farbe--navy { --tag-bg: var(--navy); --tag-text: var(--offwhite); }
.tag--eigen { --schwung-links-x: 58%; --schwung-rechts-x: 42%; --schwung-links-y: 0.9; --schwung-rechts-y: 0.6; }
.tag--eigen.farbe--bordeaux .trc-btn--primary, .tag--eigen.farbe--navy .trc-btn--primary { background: var(--offwhite); color: var(--navy); }
.eigen__raster { max-width: var(--breite); margin: 0 auto; display: grid; gap: 32px; align-items: center; }
.eigen__bogen { width: min(100%, 420px); justify-self: center; }
/* Ohne Foto zeigt eine leichte Fläche den Sonnenbogen, in jeder Hintergrundfarbe */
.eigen__bogen.bogen--leer { background: color-mix(in srgb, currentColor 9%, transparent); }
.eigen__text { display: grid; gap: 18px; justify-items: start; }
.eigen__text--allein { max-width: 46rem; margin: 0 auto; }
.eigen__hinweis { max-width: 44rem; margin: 0 auto; display: grid; gap: 18px; justify-items: center; text-align: center; }
.eigen__aussage { margin: 0; font: 700 clamp(1.75rem, 1.2rem + 2.6vw, 3rem)/1.1 var(--font-display); text-wrap: balance; }

/* ---------- Nacht ---------- */

.tag--nacht { text-align: center; padding-bottom: calc(var(--dock-platz) + 28px); }
/* Schlicht: ruhendes Logo, eine Zeile, eine Reihe Knöpfe, eine Zeile Links */
.nacht__logo { display: block; height: auto; color: var(--butter); }
.nacht__titel { margin-top: 14px; font: 700 clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem)/1.1 var(--font-display); }
.nacht__knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.nacht__links {
  margin: 18px auto 0; max-width: 40rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0 18px; font-size: 0.875rem;
}
.nacht__links > a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; opacity: 0.8; }
.nacht__links > a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nacht__links > span { opacity: 0.6; }
.nacht--kurz { padding-top: var(--luft); padding-bottom: 48px; }

/* ---------- Dock: schwebende Navigation, die Sonne läuft mit dem Tag ---------- */

.dock {
  position: fixed; z-index: 30; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); translate: -50% 0;
  display: flex; align-items: center; gap: 2px; padding: 6px; max-width: calc(100vw - 20px);
  background: var(--navy); color: var(--offwhite); border-radius: var(--radius-pill);
  box-shadow: 0 18px 40px -16px rgba(12, 43, 64, 0.65), inset 0 0 0 1px rgba(255, 253, 247, 0.16);
}
.dock__link, .dock__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 48px;
  padding: 0 11px; border-radius: var(--radius-pill); text-decoration: none; font: 600 0.875rem/1 var(--font-text);
  transition: background-color 0.15s;
}
.dock__link[aria-current='true'] { background: rgba(255, 253, 247, 0.16); }
.dock__link:hover { background: rgba(255, 253, 247, 0.1); }
.dock__cta { background: var(--butter); color: var(--navy); margin-left: 4px; }
.dock__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Sonnenbogen im Dock: Der Punkt steht am Seitenanfang links (Aufgang) und am Seitenende rechts (Untergang).
   seite.js setzt die Lage (translate) aus dem Scrollstand: Mitte der Bogenlinie bei 20/20, Radius 21.
   Bewusst ohne animation-timeline und offset-path, die Safari 26 dafür nicht zuverlässig umsetzt. */
.dock__tag {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 48px; padding: 0 10px;
  border-radius: var(--radius-pill); transition: background-color 0.15s;
}
.dock__tag:hover { background: rgba(255, 253, 247, 0.1); }
.dock__bogen {
  /* Ohne Versatz: Die Mitte des Bogens liegt auf der Mitte der Symbole daneben */
  position: relative; display: block; width: 44px; height: 22px;
  border: 2px solid rgba(255, 253, 247, 0.55); border-bottom: 0; border-radius: 44px 44px 0 0;
}
/* Ohne Skript steht die Sonne links, knapp über dem Horizont (Seitenanfang) */
.dock__sonne {
  position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--butter);
  box-shadow: 0 0 10px 2px rgba(255, 236, 170, 0.55); translate: -6.3px 8.6px;
}

/* ---------- Eventseite ---------- */

.seite-event { background: var(--offwhite); }
.eventseite { max-width: var(--breite); margin: 0 auto; padding: 8px var(--rand) calc(var(--woelbung) + 48px); display: grid; gap: 28px; }
.eventseite__oben { display: grid; gap: 20px; }
.eventseite__sonne { height: 200px; }
.eventseite__sonne::before { width: min(92%, 400px); }
.eventseite__sonne .sonne-datum__tag { font-size: 5rem; }
.eventseite__bild { width: 100%; max-width: 420px; justify-self: center; }
.eventseite__inhalt { display: grid; gap: 20px; align-content: start; }
.eventseite__titel { font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem); line-height: 1; overflow-wrap: anywhere; }
.eventseite--abgesagt .eventseite__titel { text-decoration: line-through; text-decoration-thickness: 3px; }
.eventseite__hinweis { padding: 14px 18px; border-radius: var(--radius-tile); background: var(--surface); font-weight: 600; }
.fakten { margin: 0; display: grid; gap: 16px; }
.fakten__zeile { display: grid; gap: 4px; }
.fakten dt { display: flex; align-items: center; gap: 8px; font: 600 0.8125rem/1.2 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.fakten dd { margin: 0; font-size: 1.125rem; line-height: 1.5; }
.fakten__link { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; font-weight: 600; }
.eventseite__aktionen { display: flex; flex-wrap: wrap; gap: 10px; }
.eventseite__fragen { font-weight: 500; }
.eventseite__fragen a { font-weight: 600; text-underline-offset: 4px; }
.kooperation { display: grid; gap: 12px; padding-top: 8px; }
.kooperation__titel { font: 600 1.375rem/1.1 var(--font-display); }
.kooperation__liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.kooperation__partner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: var(--radius-tile); background: var(--surface);
}
.kooperation__partner img { height: 36px; width: auto; max-width: 96px; object-fit: contain; }
.kooperation__name { font-weight: 600; grid-column: 2; }
.kooperation__partner img + .kooperation__name { grid-column: auto; }
.kooperation__link { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; font-weight: 600; font-size: 0.9375rem; }

/* ---------- Anmeldung ---------- */

.anmeldung { display: grid; gap: 16px; padding: 22px 20px; border-radius: var(--radius-card); background: var(--surface); scroll-margin-top: 16px; }
.anmeldung__kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.anmeldung__titel { font: 600 1.5rem/1.1 var(--font-display); }
.anmeldung__stand { font-weight: 600; }
.anmeldung__formular { display: grid; gap: 16px; justify-items: start; }
.anmeldung__formular .feld { width: 100%; }
.anmeldung__meldung { font-weight: 500; }
.anmeldung__meldung a { font-weight: 600; text-underline-offset: 4px; }
.anmeldung__hinweis { font-size: 0.875rem; color: var(--text-muted); }
.anmeldung__hinweis a { color: var(--navy); }
.anmeldung__fehler { color: var(--bordeaux); font-weight: 600; }
.anmeldung__dabei {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-tile); background: var(--offwhite);
}
.anmeldung__dabei-text { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.anmeldung__frage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
.feld { display: grid; gap: 6px; }
.feld label { font-weight: 600; font-size: 0.9375rem; }
.feld input {
  min-height: 48px; width: 100%; max-width: 26rem; padding: 0 14px; font: 400 1rem/1.4 var(--font-text);
  color: var(--navy); background: var(--offwhite); border: 1.5px solid var(--line-strong); border-radius: var(--radius-input);
}
.feld input:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-color: var(--navy); }
.feld input[aria-invalid='true'] { border-color: var(--bordeaux); }
.feld__hilfe { font-size: 0.875rem; color: var(--text-muted); }
.feld__fehler { font-size: 0.9375rem; font-weight: 600; color: var(--bordeaux); }
.feld--falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.bestaetigung { display: grid; gap: 14px; }
.bestaetigung__titel { display: flex; align-items: center; gap: 10px; font: 700 1.5rem/1.15 var(--font-display); }
.bestaetigung__link { display: grid; gap: 8px; justify-items: start; padding: 16px; border-radius: var(--radius-tile); background: var(--offwhite); border: 1.5px dashed var(--line-strong); }
.bestaetigung__link-titel { font-weight: 600; }
.bestaetigung__url { word-break: break-all; font-size: 0.9375rem; }
.bestaetigung__hinweis { font-size: 0.9375rem; color: var(--text-muted); }

.seite-anmeldung { background: var(--offwhite); }
.anmeldeseite { max-width: 40rem; margin: 0 auto; padding: 24px var(--rand) calc(var(--woelbung) + 48px); display: grid; gap: 22px; }
.anmeldeseite__event { font: 600 1.375rem/1.25 var(--font-display); }
.anmeldeseite__event span { font: 500 1rem/1.5 var(--font-text); color: var(--text-muted); }
.anmeldeseite__meldung { font-size: 1.125rem; }
.anmeldeseite__formular { display: grid; gap: 16px; justify-items: start; }
.anmeldeseite__aktionen { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Rechtstexte, Fehlerseite ---------- */

.rechtstext, .fehlerseite { max-width: 46rem; margin: 0 auto; padding: 24px var(--rand) calc(var(--woelbung) + 48px); display: grid; gap: 22px; }
.rechtstext h2 { font: 600 1.375rem/1.2 var(--font-display); margin-top: 18px; }
.rechtstext .fliesstext p + p, .rechtstext .fliesstext h2 + p { margin-top: 0.6em; }
.fehlerseite { justify-items: start; padding-top: 12vh; }

/* ---------- Tablet ---------- */

@media (min-width: 48rem) {
  .filter { flex: none; margin: 0; padding: 0; overflow: visible; }
  .horizont__eintrag { flex-basis: 340px; }
  /* Erste Karte steht bündig mit der Überschrift, die Reihe läuft trotzdem bis an den Bildschirmrand */
  .horizont__spur { padding-inline: max(var(--rand), calc((100vw - var(--breite)) / 2)); scroll-padding-inline: max(var(--rand), calc((100vw - var(--breite)) / 2)); }
  .club { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
  .eigen__raster { grid-template-columns: 1fr 1fr; gap: 56px; }
  .eigen--bild-rechts .eigen__bogen { order: 2; }
  .profil { width: 168px; }
  .merkmale { grid-template-columns: repeat(3, minmax(0, 15rem)); gap: 24px; text-align: center; }
  .merkmale__punkt, .merkmale__link { flex-direction: column; gap: 10px; }
  .partner:not(.partner--leer) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: clamp(32px, 5vw, 64px); }
  .angebote { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
  .eventseite { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; column-gap: 56px; padding-top: 24px; }
  .eventseite__oben { position: sticky; top: 24px; }
  .fakten__zeile { grid-template-columns: 9rem 1fr; }
}

/* Mittlere Breite (halbes oder zwei Drittel Fenster): Logo oben, Text darunter mittig */
@media (min-width: 48rem) and (max-width: 63.999rem) {
  .start { justify-items: center; text-align: center; }
  .start__intro { margin-inline: auto; }
  .start__knoepfe { justify-content: center; }
}

/* ---------- Desktop ---------- */

@media (min-width: 64rem) {
  .start { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 48px; min-height: min(calc(100svh - 72px - var(--woelbung) - var(--luft)), 820px); }
  .start__logo { order: 2; width: 100%; max-width: 560px; }
  .start__intro { font-size: 1.25rem; }
  .dock { gap: 4px; }
  /* She Runs am Computer: Überschrift einzeilig quer über die Strecke, Angaben mit mehr Luft */
  .she__karte { width: min(52%, 600px); margin-right: 4%; }
  .she__titel { max-width: none; }
  /* Titel und Tag über die ganze Breite links, Angaben und Zeile in der rechten Hälfte: mittig über der Strecke */
  .she__text { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .she__titel, .she__wann { grid-column: 1 / -1; }
  .she__angaben, .she__hinweis { grid-column: 2; }
  .she__angaben { gap: 32px; }
  .dock__text { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .dock__link { padding: 0 14px; }
  /* Titel auto: Er bekommt seine volle Breite, Filter und Abo teilen sich den Rest und brechen um */
  .abschnitt-kopf { grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 32px; }
  .abschnitt-kopf__werkzeuge { justify-content: end; }
  .kooperation__liste { grid-template-columns: 1fr 1fr; }
}

/* Mit Maus kein Einrasten: Die Reihe folgt dem Mausrad direkt */
@media (hover: hover) and (pointer: fine) {
  .horizont__spur { scroll-snap-type: none; }
}

/* ---------- Bewegung beim Scrollen ---------- */
/* Abschnitte stehen fest da. Bewegt wird nur, was etwas erzählt: Logo-Auftritt, Karten, Sonne im Dock. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Seitenwechsel: Karte und Eventseite teilen Datum und Titel */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
