/* ==========================================================================
   WORD UP! – Gestaltung
   Hell, kontrastreich, ohne externe Schriften oder Frameworks.
   Aufbau: 1 Tokens · 2 Basis · 3 Bausteine · 4 Kopf/Fuss · 5 Seiten · 6 Karte
   ========================================================================== */

/* 1 ── Tokens ─────────────────────────────────────────────────────────── */

:root {
  /* Flächen */
  --paper:        #fbf8f3;
  --paper-2:      #f4eee4;
  --surface:      #ffffff;
  --surface-2:    #fffdfa;

  /* Text */
  --ink:          #17161c;
  --ink-2:        #413d4b;
  --muted:        #6e6a78;

  /* Linien */
  --line:         #e8e0d3;
  --line-strong:  #d5c9b6;

  /* Marke – das Orange aus dem WORD UP!-Logo */
  --brand:        #e2751a;
  --brand-strong: #b6560c;
  --brand-soft:   #fdefdf;

  /* Zweitfarben für Kategorien */
  --plum:         #6b3fa0;
  --plum-soft:    #f1eafa;
  --mint:         #0f7f63;
  --mint-soft:    #e0f3ee;

  --focus:        #1d4ed8;

  /* Typografie – Systemschriften, damit nichts nachgeladen werden muss.
     Eine eigene Display-Schrift lässt sich hier zentral ergänzen. */
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system,
                  "Helvetica Neue", Arial, sans-serif;
  --font-text:    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
                  Arial, sans-serif;
  --font-mono:    ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  /* Rhythmus */
  --radius:       14px;
  --radius-lg:    22px;
  --radius-sm:    8px;
  --shadow-sm:    0 1px 2px rgb(23 22 28 / .05), 0 2px 8px rgb(23 22 28 / .04);
  --shadow-md:    0 2px 4px rgb(23 22 28 / .05), 0 12px 28px rgb(23 22 28 / .07);
  --shadow-lg:    0 4px 8px rgb(23 22 28 / .06), 0 28px 60px rgb(23 22 28 / .10);

  --wrap:         1160px;
  --wrap-narrow:  760px;
  --header-h:     72px;
}

/* 2 ── Basis ──────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

/* hidden soll auch Flex- und Grid-Elemente ausblenden */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
  /* Lange deutsche Komposita duerfen auf schmalen Schirmen umbrechen */
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 { font-size: clamp(1.95rem, 1.25rem + 3.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); font-weight: 700; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--brand); color: #fff; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.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;
}

/* 3 ── Bausteine ─────────────────────────────────────────────────────── */

/* Buttons */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .55em;
  padding: .72em 1.35em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit; font-weight: 600; font-size: .95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--brand  { --btn-bg: var(--brand); --btn-fg: #fff; }
.btn--brand:hover { --btn-bg: var(--brand-strong); }
.btn--ghost  { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--surface); }
.btn--small  { padding: .5em 1em; font-size: .85rem; }
.btn--block  { display: flex; justify-content: center; width: 100%; }

/* Etiketten / Kategorien */
.tag {
  display: inline-flex; align-items: center;
  padding: .25em .7em;
  border-radius: 999px;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--paper-2); color: var(--ink-2);
  white-space: nowrap; text-decoration: none;
}
.tag--brand { background: var(--brand-soft); color: var(--brand-strong); }
.tag--plum  { background: var(--plum-soft);  color: var(--plum); }
.tag--mint  { background: var(--mint-soft);  color: var(--mint); }
.tag--ink   { background: #eceaf1;           color: var(--ink-2); }
.tag--solid { background: var(--brand); color: #fff; }
a.tag:hover { filter: brightness(.96); }

.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; }

/* Karten */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Abschnittskopf */
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section--paper { background: var(--paper-2); }
.section--white { background: var(--surface); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1rem 2rem;
  margin-bottom: 2rem;
}
.section-head h2 { margin: 0; }
.section-head p { margin: .35rem 0 0; color: var(--muted); max-width: 52ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: .6rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px;
  background: var(--brand); border-radius: 2px;
}

/* Fließtext aus dem Redaktionssystem */
.prose { font-size: 1.06rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brand); }
.prose blockquote {
  margin: 1.8em 0; padding: .2em 0 .2em 1.3em;
  border-left: 3px solid var(--brand);
  font-family: var(--font-display); font-size: 1.25em;
  font-style: italic; color: var(--ink-2);
}
.prose a { font-weight: 600; }

/* Meldungen */
.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  margin-bottom: 1rem;
  font-size: .95rem;
}
.notice--ok    { border-left-color: var(--mint);  background: var(--mint-soft); }
.notice--error { border-left-color: #c0392b;      background: #fdeceb; }

/* 4 ── Kopf & Fuß ────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}

/* Logo: nachgezeichnete Vektorfassung der Originaldatei.
   Die Pfade nutzen currentColor, die Farbe kommt also von hier. */
.logo {
  display: inline-flex; align-items: center;
  color: var(--brand);
  text-decoration: none;
  flex: none;
}
.logo:hover { color: var(--brand-strong); }
.logo__svg { display: block; width: auto; }
.logo__svg--logo { height: 44px; }
.logo__svg--mark { height: 34px; }
/* Hoehere Spezifitaet als ".site-footer a", sonst faerbt der Fussbereich weiss */
.site-footer .logo--footer, .site-footer .logo--footer:hover { color: var(--brand); }
.logo--footer .logo__svg--logo { height: 52px; }

@media (max-width: 520px) {
  .logo__svg--logo { height: 34px; }
  .logo--footer .logo__svg--logo { height: 44px; }
}

/* Ersatz, falls die SVG-Dateien fehlen - siehe views/partials/logo.php */
.logo--text {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 900;
  letter-spacing: -.03em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
}
.site-footer .logo--text, .admin-header .logo--text { color: #fff; }
.logo__up { color: var(--brand); }

/* Navigation */
.nav { display: flex; align-items: center; gap: .15rem; }
.nav__item { position: relative; }
.nav__link {
  display: inline-block;
  padding: .55rem .8rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: .95rem; font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav__link:hover { background: var(--paper-2); color: var(--ink); }
.nav__link[aria-current="true"] { color: var(--brand-strong); background: var(--brand-soft); }

.nav__sub {
  position: absolute; top: calc(100% + .35rem); left: 0;
  min-width: 236px; padding: .4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub a {
  display: block; padding: .5rem .7rem;
  border-radius: var(--radius-sm);
  color: var(--ink-2); font-size: .92rem; font-weight: 500;
  text-decoration: none;
}
.nav__sub a:hover { background: var(--paper-2); color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px;
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 1rem 1.25rem 1.6rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav__link { padding: .8rem .6rem; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; margin: 0 0 .5rem .8rem; padding: 0 0 0 .5rem;
  }
}

/* Fuß */
.site-footer {
  background: var(--ink);
  color: #cfcbd8;
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
  margin-top: clamp(3rem, 6vw, 6rem);
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer h3 {
  color: #fff; font-size: .82rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-claim {
  font-family: var(--font-display);
  font-size: 1.15rem; line-height: 1.4; color: #fff;
  max-width: 30ch;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem;
  justify-content: space-between; align-items: center;
  margin-top: 3rem; padding-top: 1.4rem;
  border-top: 1px solid rgb(255 255 255 / .12);
  font-size: .86rem; color: #928da0;
}

.social {
  display: flex; gap: .6rem; flex-wrap: wrap;
}
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid rgb(255 255 255 / .18);
  border-radius: 12px;
  color: #fff;
}
.social a:hover { background: var(--brand); border-color: var(--brand); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* 5 ── Seiten ────────────────────────────────────────────────────────── */

/* Hero der Startseite */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 80%;
  background:
    radial-gradient(48% 60% at 18% 40%, rgb(226 117 26 / .16), transparent 70%),
    radial-gradient(42% 55% at 82% 30%, rgb(107 63 160 / .12), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
}
@media (max-width: 940px) { .hero__inner { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: .35em; }
.hero__claim {
  font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem);
  color: var(--ink-2); max-width: 46ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 1.8rem;
  margin-top: 2.4rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em;
}
.hero__stat span { font-size: .85rem; color: var(--muted); }

/* Hervorgehobener nächster Termin */
.next-event {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.next-event__media { aspect-ratio: 16 / 9; background: var(--paper-2); overflow: hidden; }
.next-event__media img { width: 100%; height: 100%; object-fit: cover; }
.next-event__body { padding: 1.5rem 1.6rem 1.7rem; }
.next-event__label {
  font-size: .74rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-strong);
}
.next-event h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin: .5rem 0 .3rem; }
.next-event h2 a { color: inherit; text-decoration: none; }
.next-event h2 a:hover { color: var(--brand-strong); }
.next-event__meta {
  display: flex; flex-wrap: wrap; gap: .35rem 1.1rem;
  color: var(--ink-2); font-size: .95rem; margin-bottom: 1.1rem;
}
.next-event__meta b { font-weight: 600; }

.meta-item { display: inline-flex; align-items: center; gap: .45rem; }
.meta-item svg { width: 17px; height: 17px; flex: none; fill: none;
  stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Terminliste (Tabelle) */
.events-table { width: 100%; border-collapse: collapse; }
.events-table caption { text-align: left; color: var(--muted); font-size: .9rem; padding-bottom: .8rem; }
.events-table th {
  text-align: left; padding: 0 1rem .7rem 0;
  font-size: .74rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
}
.events-table td { padding: 1.05rem 1rem 1.05rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.events-table tr:last-child td { border-bottom: 0; }
.events-table tbody tr { transition: background-color .15s ease; }
.events-table tbody tr:hover { background: var(--surface-2); }

.ev-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ev-date b { display: block; font-size: 1.02rem; font-weight: 700; }
.ev-date span { font-size: .85rem; color: var(--muted); }
.ev-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.ev-title a { color: var(--ink); text-decoration: none; }
.ev-title a:hover { color: var(--brand-strong); }
.ev-titlerow { display: flex; align-items: flex-start; gap: .9rem; }

/* Kleines Vorschaubild neben dem Titel */
.ev-thumb {
  flex: none; display: block; overflow: hidden;
  width: 78px; height: 56px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface-2);
}
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
a.ev-thumb:hover img { transform: scale(1.06); }
.ev-thumb--leer { display: grid; place-items: center; }
.ev-thumb--leer svg {
  width: 22px; height: 22px; fill: none;
  stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  opacity: .6;
}
.ev-sub { display: block; font-family: var(--font-text); font-size: .9rem; font-weight: 400; color: var(--muted); }
.ev-place a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.ev-place a:hover { color: var(--brand-strong); border-color: currentColor; }
.ev-place small { display: block; color: var(--muted); }
.ev-actions { text-align: right; white-space: nowrap; }

.badge-soldout {
  display: inline-block; margin-left: .5rem;
  padding: .15em .55em; border-radius: 6px;
  background: #fdeceb; color: #a52d20;
  font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  vertical-align: middle;
}

/* Mobile Variante: aus Tabellenzeilen werden Karten */
@media (max-width: 760px) {
  .events-table, .events-table tbody, .events-table tr, .events-table td { display: block; width: 100%; }
  .events-table thead { display: none; }
  .events-table caption { display: block; }
  .events-table tr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.1rem 1.2rem;
    margin-bottom: .9rem;
  }
  .events-table td { border: 0; padding: .2rem 0; }
  .events-table td.ev-actions { text-align: left; padding-top: .9rem; }
  .ev-date { display: flex; gap: .5rem; align-items: baseline; }
  .ev-date b { display: inline; }
}

/* Kalender */
.calendar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.calendar__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.calendar__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.calendar__nav { display: flex; gap: .4rem; align-items: center; }
.calendar__nav a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding-inline: .7rem;
  border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 600;
}
.calendar__nav a:hover { background: var(--paper-2); color: var(--ink); }

.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar__weekday {
  padding: .65rem .5rem; text-align: center;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.calendar__day {
  min-height: 116px;
  padding: .45rem .5rem .6rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.calendar__day:nth-child(7n) { border-right: 0; }
.calendar__day--out { background: var(--paper); color: var(--muted); }
.calendar__day--today { background: var(--brand-soft); }
.calendar__daynum {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; margin-bottom: .3rem;
  border-radius: 999px;
  font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.calendar__day--out .calendar__daynum { color: var(--muted); font-weight: 500; }
.calendar__day--today .calendar__daynum { background: var(--brand); color: #fff; }

.cal-event {
  display: block; margin-bottom: .3rem;
  padding: .3rem .45rem;
  border-radius: 7px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  color: var(--ink); text-decoration: none;
  font-size: .78rem; line-height: 1.28;
}
.cal-event:hover { background: var(--brand); color: #fff; }
.cal-event:hover time { color: rgb(255 255 255 / .85); }
.cal-event time { display: block; font-weight: 700; font-size: .72rem; color: var(--brand-strong); }
.cal-event span { display: block; font-weight: 600; overflow-wrap: anywhere; }
.cal-event--plum { border-left-color: var(--plum); background: var(--plum-soft); }
.cal-event--plum time { color: var(--plum); }
.cal-event--plum:hover { background: var(--plum); }
.cal-event--mint { border-left-color: var(--mint); background: var(--mint-soft); }
.cal-event--mint time { color: var(--mint); }
.cal-event--mint:hover { background: var(--mint); }

.calendar__legend {
  display: flex; flex-wrap: wrap; gap: .5rem 1.2rem;
  padding: .9rem 1.2rem; border-top: 1px solid var(--line);
  background: var(--surface-2); font-size: .85rem; color: var(--muted);
}

/* Kalender auf kleinen Schirmen: Liste statt Raster */
@media (max-width: 720px) {
  .calendar__grid { grid-template-columns: repeat(7, 1fr); }
  .calendar__day { min-height: 62px; padding: .3rem .25rem; }
  .calendar__daynum { min-width: 22px; height: 22px; font-size: .78rem; }
  .cal-event { padding: 0; border: 0; background: none; border-radius: 0; }
  .cal-event time, .cal-event span { display: none; }
  .cal-event::after {
    content: ""; display: block; width: 7px; height: 7px;
    margin: 1px auto; border-radius: 50%; background: var(--brand);
  }
  .cal-event--plum::after { background: var(--plum); }
  .cal-event--mint::after { background: var(--mint); }
  .cal-event:hover { background: none; }
  .calendar__mobile-hint { display: block; }
}
.calendar__mobile-hint { display: none; padding: .8rem 1.2rem; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Filterleiste */
.filters {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  margin-bottom: 1.8rem;
}
.filters__label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: .3rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42em .95em; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink-2); font-size: .88rem; font-weight: 600;
  text-decoration: none;
}
.chip:hover { border-color: var(--brand); color: var(--brand-strong); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Detailseite Veranstaltung */
.event-hero { padding-block: clamp(2rem, 4vw, 3rem) 0; }
.event-hero__media {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  aspect-ratio: 21 / 9; background: var(--paper-2);
}
.event-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.event-credit { font-size: .78rem; color: var(--muted); margin-top: .5rem; }

.event-layout {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 900px) { .event-layout { grid-template-columns: 1fr; } }

.event-facts { display: grid; gap: 0; margin: 0 0 2rem; }
.event-facts > div {
  display: grid; grid-template-columns: 130px 1fr; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.event-facts dt { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: .2em; }
.event-facts dd { margin: 0; }
@media (max-width: 560px) { .event-facts > div { grid-template-columns: 1fr; gap: .2rem; } }

.aside-card { padding: 1.4rem 1.5rem; }
.aside-card + .aside-card { margin-top: 1.2rem; }
.aside-card h3 { font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: .78rem; color: var(--muted); margin-top: .35rem; }

/* Seitenkopf für Unterseiten */
.page-head {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
}
.page-head p.lead {
  font-size: clamp(1.05rem, .98rem + .4vw, 1.25rem);
  color: var(--ink-2); max-width: 62ch; margin: .4rem 0 0;
}

/* Kartenraster für Unterseiten und Orte */
.grid-cards { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.link-card {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.4rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  color: var(--ink); text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.link-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); color: var(--ink); }
.link-card h3 { margin: 0; font-size: 1.15rem; }
.link-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.link-card__more { margin-top: auto; padding-top: .6rem; color: var(--brand-strong); font-weight: 700; font-size: .88rem; }

/* Newsletter-Anmeldung */
.newsletter-kasten {
  margin-top: 3rem; padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.prose .newsletter { margin: 2.2em 0; padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.newsletter__titel { font-size: 1.5rem; margin: .2rem 0 .5rem; }
.newsletter__text { color: var(--ink-2); margin: 0 0 1.2rem; max-width: 52ch; }
.newsletter__felder { display: grid; gap: .9rem; grid-template-columns: 1fr 1fr; }
.newsletter__feld { display: grid; gap: .3rem; }
.newsletter__feld--breit { grid-column: 1 / -1; }
.newsletter__feld label { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.newsletter__feld input {
  width: 100%; padding: .7rem .9rem; font: inherit; font-size: 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
}
.newsletter__feld input:focus { border-color: var(--brand); outline: 2px solid rgb(226 117 26 / .25); outline-offset: 0; }
.newsletter__hinweis { font-size: .84rem; color: var(--muted); margin: .9rem 0 0; }
.newsletter__falle { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.newsletter__zustimmung {
  display: flex; gap: .7rem; align-items: flex-start;
  margin: 1.1rem 0 0; font-size: .88rem; line-height: 1.5; color: var(--ink-2); cursor: pointer;
}
.newsletter__zustimmung input { margin: .25em 0 0; flex: none; width: 17px; height: 17px; accent-color: var(--brand); }
.newsletter__aktion { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: 1.3rem; }
.newsletter__aktion small { color: var(--muted); font-size: .82rem; }
.newsletter { position: relative; }

/* Schmale Fassung in der Seitenspalte */
.newsletter--kompakt .newsletter__felder { grid-template-columns: 1fr; gap: .7rem; }
.newsletter--kompakt .newsletter__text { font-size: .94rem; margin-bottom: 1rem; }
.newsletter--kompakt .newsletter__hinweis { font-size: .8rem; }
.newsletter--kompakt .newsletter__aktion .btn { width: 100%; justify-content: center; }
.aside-card--newsletter h3 { margin-bottom: .5rem; }

@media (max-width: 560px) { .newsletter__felder { grid-template-columns: 1fr; } }

/* Kontakt */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1.1fr .9fr; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-list b { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-size: 1.05rem; font-weight: 600; }

/* Multimedia */
.media-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.media-card {
  display: flex; flex-direction: column; gap: .8rem;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink); text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}
.media-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--ink); }
.media-card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
}
.media-card__icon svg { width: 24px; height: 24px; fill: currentColor; }
.media-card--facebook  .media-card__icon { background: #1877f2; }
.media-card--instagram .media-card__icon { background: linear-gradient(135deg,#f9ce34,#ee2a7b 50%,#6228d7); }
.media-card--youtube   .media-card__icon { background: #ff0000; }
.media-card h3 { margin: 0; font-size: 1.1rem; }
.media-card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Paginierung */
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2.5rem; }
.pagination a, .pagination span {
  min-width: 40px; padding: .5rem .7rem; text-align: center;
  border: 1px solid var(--line-strong); border-radius: 10px;
  text-decoration: none; color: var(--ink-2); font-size: .9rem; font-weight: 600;
}
.pagination a:hover { background: var(--surface); color: var(--brand-strong); }
.pagination [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Verweis auf das Archiv der bisherigen Website */
.archiv-alt {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.2rem 2rem; margin-top: 3rem; padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.archiv-alt h2 { font-size: 1.35rem; margin: .15rem 0 .4rem; }
.archiv-alt p:last-child { margin: 0; color: var(--ink-2); max-width: 52ch; }
.archiv-alt .btn { flex: none; }

/* Leerzustand */
.empty {
  padding: 3rem 1.5rem; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
  color: var(--muted); background: var(--surface-2);
}

/* 6 ── Karte ─────────────────────────────────────────────────────────── */

.map {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
  touch-action: pan-y;
}
.map--wide { aspect-ratio: 21 / 9; }

/* Solange die Zustimmung aussteht, bestimmt der Hinweistext die Hoehe.
   Ein Seitenverhaeltnis mit min-height wuerde ueber die Breite zurueckwirken
   und in schmalen Spalten das Layout sprengen. */
.map:has(.map__consent) { aspect-ratio: auto; min-height: 250px; }

/* Zustimmungsschicht: erst nach Klick werden Kacheln geladen */
.map__consent {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .7rem; padding: 1.1rem; text-align: center; overflow: auto;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgb(226 117 26 / .05) 14px 28px),
    var(--paper-2);
}
.map__consent p { margin: 0; max-width: 42ch; font-size: .87rem; line-height: 1.5; color: var(--ink-2); }
.map__consent small { color: var(--muted); font-size: .76rem; line-height: 1.45; }
.map__consent strong { font-family: var(--font-display); font-size: 1.05rem; }

.map__canvas { position: absolute; inset: 0; overflow: hidden; cursor: grab; }
.map__canvas.is-dragging { cursor: grabbing; }
.map__tiles { position: absolute; inset: 0; }
.map__tiles img {
  position: absolute; width: 256px; height: 256px;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.map__marker {
  position: absolute; z-index: 2;
  width: 34px; height: 44px;
  margin-left: -17px; margin-top: -44px;
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgb(23 22 28 / .35));
}
.map__zoom {
  position: absolute; top: .7rem; right: .7rem; z-index: 4;
  display: flex; flex-direction: column; gap: 1px;
  border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map__zoom button {
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font-size: 1.15rem; font-weight: 700; line-height: 1;
  cursor: pointer;
}
.map__zoom button:hover { background: var(--paper-2); }
.map__zoom button + button { border-top: 0; }
.map__attribution {
  position: absolute; bottom: 0; right: 0; z-index: 4;
  padding: .18rem .5rem;
  background: rgb(255 255 255 / .82);
  border-top-left-radius: 8px;
  font-size: .7rem; color: var(--ink-2);
}
.map__attribution a { color: inherit; }

.map-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }

/* Druck */
@media print {
  .site-header, .site-footer, .map, .hero__actions, .nav-toggle, .pagination { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}

/* 7 ── Symbolgrößen ─────────────────────────────────────────────────── */

.meta-icon { width: 1.05em; height: 1.05em; flex: none; }
.btn svg   { width: 1.05em; height: 1.05em; flex: none; }
.calendar__nav svg { width: 18px; height: 18px; }

/* Kalenderlegende */
.legend-key { display: inline-flex; align-items: center; gap: .45rem; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend-dot--brand { background: var(--brand); }
.legend-dot--plum  { background: var(--plum); }
.legend-dot--mint  { background: var(--mint); }
