/* KULTURiAN – öffentliche Website
   Zwei Welten: Kultur (Pink) und Freizeit (Limette). Die Farbe der anderen Welt
   („Gegenfarbe“) zeigt nur, was ausgewählt ist oder wohin man wechseln kann.
   Alle Texte haben mindestens 7:1 Kontrast. Schrift: Archivo (selbst gehostet). */

@font-face {
  font-family: "Archivo";
  src: url("archivo-latin-wdth.de2f1fe81758.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #15131c;
  --grey: #4f4c59;
  --rule: rgba(0, 0, 0, 0.45);
  --gap: 20px;
  --bar: 52px;
  --wide: "Archivo", system-ui, sans-serif;
}
.w-kultur {
  --welt: #ff8fc2; --tint: #fff4f9; --line: #ecd7e1; --pill: #ffd2e7;
  --gegen: #d0e868; --dunkel: #1f0716;
}
.w-freizeit {
  --welt: #d0e868; --tint: #fafdea; --line: #e1eac0; --pill: #edf5c6;
  --gegen: #ff8fc2; --dunkel: #1c2a04;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--tint);
  color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 8px; }
svg { flex-shrink: 0; }

/* Logo */
.logo { display: block; color: var(--ink); line-height: 0; }
.logo-svg { height: 40px; width: auto; }
.logo-core { fill: var(--gegen); }

/* ---------- Kalenderblatt ---------- */
.leaf {
  flex-shrink: 0; display: inline-flex; flex-direction: column; align-items: center;
  width: 62px; border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: inset 0 0 0 2px var(--ink); font-family: var(--wide);
}
.leaf small { width: 100%; padding: 3px 0 2px; background: var(--ink); color: #fff; text-align: center; font-weight: 700; font-stretch: 112%; font-size: 13px; letter-spacing: .04em; }
.leaf b { padding: 4px 0 6px; font-weight: 800; font-stretch: 125%; font-size: 30px; line-height: 1; }
.leaf.big { width: 84px; border-radius: 16px; }
.leaf.big small { font-size: 16px; padding: 4px 0 3px; }
.leaf.big b { font-size: 44px; padding: 6px 0 8px; }

/* ---------- Handy: Kopf ---------- */
.mhead { position: relative; overflow: hidden; background: var(--welt); padding: 18px var(--gap) 18px; }
.corner span { position: absolute; border-radius: 50%; }
.corner .c1 { right: -152px; top: -152px; width: 304px; height: 304px; background: rgba(255,255,255,.35); }
.corner .c2 { right: -104px; top: -104px; width: 208px; height: 208px; background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 2px var(--ink); }
.corner .c3 { right: -80px; top: -80px; width: 160px; height: 160px; background: var(--ink); }
.corner-links a {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 5px; min-height: 36px;
  text-decoration: none; font-family: var(--wide); font-weight: 700; font-stretch: 112%; font-size: 15px;
}
.corner-links .k-ansbach { right: 10px; top: 10px; min-width: 52px; justify-content: center; color: #fff; font-weight: 800; font-stretch: 125%; font-size: 24px; letter-spacing: .02em; }
.corner-links .k-15 { right: 10px; top: 76px; padding: 0 12px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--rule); font-stretch: 125%; }
.corner-links .k-alle { right: 10px; top: 124px; padding: 0 12px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--rule); }
.corner-links a[aria-current] { background: var(--gegen); box-shadow: inset 0 0 0 2px var(--ink); font-weight: 800; }
.corner-links .k-ansbach[aria-current] { background: var(--gegen); color: var(--ink); border-radius: 18px; padding: 0 8px; box-shadow: inset 0 0 0 2px var(--ink); }
.mhead .logo { position: relative; width: 210px; }
.headday { position: relative; display: flex; align-items: center; gap: 14px; margin: 22px 0 0; max-width: 250px; font-weight: 400; }
.hd-text { display: flex; flex-direction: column; max-width: 140px; }
.hd-text b { font-family: var(--wide); font-weight: 800; font-stretch: 125%; font-size: 21px; line-height: 1.05; }
.hd-text > span { margin-top: 5px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.where { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 2px solid var(--ink); }
.where p { margin: 0; font-size: 15px; line-height: 1.2; }
.where p b { font-family: var(--wide); font-weight: 800; font-stretch: 125%; font-size: 26px; }
.go {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 22px;
  background: var(--gegen); box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); text-decoration: none;
  font-family: var(--wide); font-weight: 700; font-stretch: 112%; font-size: 16px; white-space: nowrap;
}

/* ---------- Werkzeuge (Kategorien) ---------- */
.tools { background: var(--tint); padding: 14px var(--gap) 6px; }
.tools .where.desk { display: none; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; margin: 0 calc(-1 * var(--gap)); padding-inline: var(--gap); }
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--rule); text-decoration: none;
  font-weight: 700; font-size: 15px; white-space: nowrap;
}
.chips a.on { background: var(--ink); color: #fff; box-shadow: none; padding-left: 11px; }

/* ---------- Tage ---------- */
main { padding: 0 var(--gap) 40px; }
.day { padding-top: 6px; }
.day + .day, .more-days + .day { margin-top: 26px; padding-top: 26px; border-top: 2px solid var(--ink); }
.dhead { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; font-weight: 400; }
.day.first .dhead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* steht oben im Kopf, für Screenreader bleibt sie */
.dh-text { display: flex; flex-direction: column; }
.dh-text b { font-family: var(--wide); font-weight: 800; font-stretch: 125%; font-size: 24px; line-height: 1.05; }
.dh-text > span { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--grey); }

.evs { list-style: none; margin: 0; padding: 0; }
.ev { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; padding: 16px 0; }
.ev + .ev { border-top: 1px solid var(--line); }
.ev time { display: flex; flex-direction: column; font-family: var(--wide); font-weight: 800; font-stretch: 125%; }
.ev time b { font-size: 30px; line-height: .85; letter-spacing: -.02em; }
.ev time small { margin-top: 5px; font-size: 14px; line-height: 1; color: var(--grey); }
.ev time .allday { font-stretch: 112%; font-size: 14px; line-height: 1.15; padding-top: 3px; }
.ev-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ev-title {
  color: var(--ink); text-decoration: none; font-family: var(--wide); font-weight: 800; font-stretch: 112%;
  font-size: 20px; line-height: 1.18; overflow-wrap: break-word;
}
.ev-title::after { content: ""; position: absolute; inset: 0; } /* ganze Zeile antippbar */
.ev-title:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.ev-sub { margin-top: -2px; font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--grey); }
.i-ext { margin-left: 6px; vertical-align: .02em; color: var(--grey); }
.nw { white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cat, .badge, .badge-note { align-self: flex-start; padding: 3px 10px; border-radius: 11px; font-family: var(--wide); font-weight: 700; font-stretch: 112%; font-size: 14px; }
.cat { background: var(--pill); }
.badge { background: var(--gegen); box-shadow: inset 0 0 0 1.5px var(--ink); }
.badge-note { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.place { font-size: 15px; line-height: 1.4; color: var(--grey); }

.evening { display: flex; align-items: center; gap: 12px; padding: 18px 0 2px; }
.evening span { font-family: var(--wide); font-weight: 700; font-stretch: 125%; font-size: 15px; white-space: nowrap; }
.evening::after { content: ""; flex: 1; border-top: 2px dotted #6b6878; }

.none { margin: 10px 0 0; font-family: var(--wide); font-weight: 700; font-stretch: 112%; font-size: 17px; line-height: 1.3; }
.none a { display: inline-block; margin-top: 8px; }

.earlier { margin-top: 8px; border-top: 1px solid var(--line); }
.earlier summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--grey); }
.earlier small { font-weight: 600; }

/* Außerdem (Ausstellungen, Märkte …) */
.more { margin-top: 18px; padding: 14px 16px 8px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.more h3 { margin: 0 0 2px; font-family: var(--wide); font-weight: 800; font-stretch: 125%; font-size: 18px; }
.more ul { list-style: none; margin: 0; padding: 0; }
/* wie die Hauptliste: links die Öffnungszeit, rechts Titel und eine ruhige Zeile Ort/Ende */
.more li { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; padding: 11px 0; }
.more li + li { border-top: 1px solid var(--line); }
.m-hours { display: flex; flex-direction: column; font-family: var(--wide); font-weight: 800; font-stretch: 112%; line-height: 1.1; }
.m-hours b { font-size: 16px; overflow-wrap: anywhere; }
.m-hours small { margin-top: 2px; font-size: 13px; color: var(--grey); }
.m-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m-body > a { text-decoration: none; font-family: var(--wide); font-weight: 800; font-stretch: 112%; font-size: 17px; line-height: 1.2; }
.m-body > a::after { content: ""; position: absolute; inset: 0; }
.m-body > a:hover { text-decoration: underline; }
.m-meta { font-size: 15px; color: var(--grey); }
.m-left { margin-left: 8px; padding: 1px 8px; border-radius: 10px; background: var(--pill); color: var(--ink); font-weight: 700; font-size: 13px; white-space: nowrap; }
.more-all { display: block; padding: 10px 0 6px; border-top: 1px solid var(--line); font-weight: 700; font-size: 15px; }

.more-days { text-align: center; margin: 28px 0 0; }
.more-days a, .button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 24px;
  background: var(--ink); color: #fff; text-decoration: none; font-family: var(--wide); font-weight: 700; font-stretch: 112%; font-size: 16px;
}
.empty { padding: 30px 0; font-family: var(--wide); font-weight: 700; font-size: 18px; }

/* ---------- Handy: schmale Leiste beim Scrollen ---------- */
.mbar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 20; height: var(--bar);
  display: flex; align-items: center; gap: 10px; padding: 0 10px 0 var(--gap);
  background: var(--welt); border-bottom: 2px solid var(--ink);
  transform: translateY(-110%); transition: transform .2s ease;
}
.compact .mbar { transform: none; }
.mb-day { font-family: var(--wide); font-weight: 800; font-stretch: 125%; font-size: 20px; white-space: nowrap; }
.mb-area { font-size: 15px; font-weight: 600; }
.mb-space { flex: 1; }
.mb-pop { position: relative; }
.mb-pop > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  padding: 0 12px 0 8px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--rule);
  font-family: var(--wide); font-weight: 800; font-stretch: 125%; font-size: 14px;
}
.mb-pop > summary::-webkit-details-marker { display: none; }
.mb-menu > summary { width: 40px; padding: 0; justify-content: center; background: var(--ink); color: #fff; box-shadow: none; }
.pop {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(320px, calc(100vw - 20px));
  display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px;
  background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 18px 40px -16px rgba(0,0,0,.45);
}
.pop > a { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 12px; text-decoration: none; font-size: 15px; }
.pop > a[aria-current] { background: var(--gegen); box-shadow: inset 0 0 0 2px var(--ink); }
.pop > a.go { justify-content: center; border-radius: 22px; }
.pop-h { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--grey); }
/* Kategorien kommen beim Zurückscrollen unter der Leiste wieder */
@media (max-width: 999px) {
  .compact .tools { position: sticky; top: var(--bar); z-index: 15; border-bottom: 1px solid var(--line); transform: translateY(calc(-100% - var(--bar))); transition: transform .2s ease; }
  .compact.up .tools { transform: none; }
}

/* Springen zu (Seitenspalte und Menü) */
.tiles { display: flex; gap: 6px; }
.tiles a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; width: 54px; height: 60px;
  border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--rule); text-decoration: none;
}
.tiles small { font-size: 14px; font-weight: 700; }
.tiles b { font-family: var(--wide); font-weight: 800; font-stretch: 125%; font-size: 21px; line-height: 1; }
.tiles a[aria-current] { background: var(--ink); color: #fff; box-shadow: none; }
.tiles a[hidden] { display: none; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills a, .pill-date {
  position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 20px;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--rule); text-decoration: none; font-weight: 700; font-size: 15px; cursor: pointer;
}
.pill-date input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Kalender-Knopf: eigenes Monatsblatt statt Datumsfeld (das öffnet in Safari am Mac nichts) */
.cal { position: relative; }
.cal > summary {
  list-style: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 20px;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--rule); font-weight: 700; font-size: 15px; cursor: pointer;
}
.cal > summary::-webkit-details-marker { display: none; }
.cal[open] > summary { background: var(--ink); color: #fff; box-shadow: none; }
.cal-pop {
  position: absolute; z-index: 30; left: 0; top: calc(100% + 8px); width: 300px; padding: 12px 12px 10px;
  border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink), 0 12px 30px rgba(31,7,22,.18);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-name { margin: 0; font-family: var(--wide); font-weight: 800; font-stretch: 112%; font-size: 16px; }
.cal-nav { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--tint); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-grid th { padding: 2px 0 4px; font-size: 12px; font-weight: 700; color: var(--grey); }
.cal-grid td { padding: 2px; text-align: center; }
.cal-day { display: grid; place-items: center; height: 34px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; }
a.cal-day { background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--line); }
a.cal-day:hover { background: var(--welt); }
a.cal-day.today { box-shadow: inset 0 0 0 2px var(--ink); }
a.cal-day[aria-current] { background: var(--ink); color: #fff; box-shadow: none; }
.cal-day.off { color: var(--grey); font-weight: 400; }
.cal-day.past { opacity: .5; }
.cal-note { margin: 8px 2px 0; font-size: 13px; color: var(--grey); }
.cal[open] { flex-basis: 100%; }
/* in der Seitenleiste und im Handy-Menü: Monatsblatt im Fluss statt schwebend (sonst abgeschnitten) */
.side .cal-pop, .mb-menu .cal-pop { position: static; width: auto; max-width: 320px; margin-top: 8px; }
.mb-menu .cal-pop { box-shadow: inset 0 0 0 1.5px var(--line); }

/* Unterseiten: Weg zurück zum Kalender */
.simple-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 22px;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); font-family: var(--wide); font-weight: 800; font-stretch: 112%; font-size: 15px; text-decoration: none; }
.back:hover { background: var(--ink); color: #fff; }

/* Seitenspalte nur am Desktop */
.side { display: none; }

/* ---------- Einfache Seiten (Melden, Ausstellungen, Impressum) ---------- */
.simple-head { background: var(--welt); padding: 18px var(--gap); }
.simple { max-width: 720px; margin: 0 auto; padding-top: 24px; }
.simple h1 { font-family: var(--wide); font-weight: 800; font-stretch: 125%; font-size: 30px; line-height: 1.1; margin: 0 0 10px; }
.lead { font-size: 17px; }
.form-page .f { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-page label { font-weight: 700; font-size: 15px; }
.form-page input, .form-page select, .form-page textarea {
  font: inherit; font-size: 16px; min-height: 48px; padding: 10px 14px; border: 0; border-radius: 14px;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--rule); color: var(--ink);
}
.form-page .check { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; font-weight: 700; }
.form-page .check input { min-height: 0; width: 22px; height: 22px; }
.form-page .err input, .form-page .err select { box-shadow: inset 0 0 0 2px #a1001f; }
.form-page .msg { margin: 0; color: #a1001f; font-weight: 700; font-size: 15px; }
.form-page .hp { position: absolute; left: -9999px; }
.primary { min-height: 52px; padding: 0 24px; border: 0; border-radius: 26px; background: var(--ink); color: #fff; font: inherit; font-family: var(--wide); font-weight: 800; font-stretch: 112%; font-size: 17px; cursor: pointer; }
/* Laufende Ausstellungen: Kalenderblatt mit Ende, Titel, Ort, Wochentage */
.ex-sec { margin-top: 36px; }
/* Abschnittsköpfe als Band in der Weltfarbe: man sieht beim Scrollen sofort, wo ein neuer Teil beginnt */
.ex-sec h2 {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 6px; padding: 14px 18px;
  border-radius: 16px; background: var(--welt); font-family: var(--wide); font-weight: 800; font-stretch: 125%; font-size: 19px; line-height: 1.15;
}
.ex-h { flex: 1 1 0; min-width: 0; }
@media (min-width: 700px) { .ex-sec h2 { font-size: 22px; } .ex-h { flex: 0 1 auto; } }
.ex-n { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; border-radius: 15px; background: var(--ink); color: #fff; font-size: 16px; font-stretch: 112%; }
.ex-sec h2 small { flex-basis: 100%; font-family: inherit; font-stretch: 100%; font-weight: 600; font-size: 15px; color: var(--ink); }
.ex-list { list-style: none; margin: 0; padding: 0; }
.ex-list li { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; padding: 14px 0; }
.ex-list li + li { border-top: 1px solid var(--line); }
.ex-list .ex-leaf { width: 62px; border-radius: 12px; align-self: start; }
.ex-leaf small.mon { padding: 0 0 4px; background: none; color: var(--ink); font-size: 12px; }
.ex-list .ex-leaf b { padding: 2px 0 0; font-size: 24px; letter-spacing: -.02em; }
.ex-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ex-body > a { text-decoration: none; font-family: var(--wide); font-weight: 800; font-stretch: 112%; font-size: 18px; line-height: 1.2; }
.ex-body > a::after { content: ""; position: absolute; inset: 0; }
.ex-body > a:hover { text-decoration: underline; }
.ex-venue { font-size: 15px; color: var(--grey); }
.ex-week { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 2px; }
.ex-week > span { display: inline-grid; place-items: center; width: 30px; height: 24px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--grey); box-shadow: inset 0 0 0 1px var(--line); }
.ex-week > span.on { background: var(--ink); color: #fff; box-shadow: none; }
.ex-week > span.ex-from { width: auto; padding: 0 8px; margin-left: 4px; background: var(--pill); color: var(--ink); box-shadow: none; }

/* ---------- Fußzeile: dunkles Band als Abschluss, mit klarer Handlung „Veranstaltung melden“ ---------- */
.foot { margin-top: 48px; padding: 36px var(--gap) 28px; background: var(--ink); color: #fff; font-size: 15px; }
.foot a { color: inherit; }
.foot-in { display: flex; flex-direction: column; gap: 28px; }
.foot-logo { display: inline-block; color: #fff; }
.foot-logo .logo-svg { height: 30px; }
.foot-claim { margin: 10px 0 0; max-width: 30ch; color: rgba(255,255,255,.82); line-height: 1.45; }
.foot-act { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot-ask { margin: 0; font-family: var(--wide); font-weight: 800; font-stretch: 112%; font-size: 18px; }
.foot-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 24px;
  background: var(--welt); color: var(--ink) !important; text-decoration: none; font-family: var(--wide); font-weight: 800; font-stretch: 112%; font-size: 16px; }
.foot-btn:hover { background: #fff; }
.foot-link { font-weight: 700; text-underline-offset: 3px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); font-size: 14px; }
.foot-legal a { color: rgba(255,255,255,.82); }
.foot a:focus-visible { outline: 3px solid var(--welt); outline-offset: 3px; }

/* ---------- Desktop ---------- */
@media (min-width: 1000px) {
  /* die farbige Spalte läuft bis ganz unten durch, auch neben der Fußzeile */
  body:has(> .layout) { background: linear-gradient(to right, var(--welt) 380px, #fff 380px); }
  .layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); min-height: 100vh; }
  .layout > .col { grid-column: 2; }
  .side {
    position: fixed; left: 0; top: 0; width: 380px; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 22px;
    padding: 28px 36px; background: var(--welt);
  }
  .side .logo-svg { height: 50px; }
  .mhead, .mbar { display: none; }
  .radar { position: relative; flex-shrink: 0; width: 290px; height: 290px; margin: 16px auto 4px; }
  .radar .r-out, .radar .r-mid, .radar a { position: absolute; border-radius: 50%; }
  .radar .r-out { inset: 0; background: rgba(255,255,255,.4); }
  .radar .r-mid { inset: 48px; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 2px var(--ink); }
  .radar .r-ansbach { inset: 92px; display: grid; place-items: center; background: var(--ink); color: #fff; text-decoration: none; font-family: var(--wide); font-weight: 800; font-stretch: 125%; font-size: 40px; letter-spacing: .02em; }
  .radar .r-ansbach[aria-current] { background: var(--gegen); color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink); }
  .radar .r-15, .radar .r-alle {
    left: 50%; display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 12px; border-radius: 16px;
    background: #fff; box-shadow: inset 0 0 0 1.5px var(--rule); text-decoration: none; white-space: nowrap;
    font-family: var(--wide); font-weight: 700; font-stretch: 112%; font-size: 15px;
  }
  .radar .r-15 { top: 48px; transform: translate(-50%, -50%); font-stretch: 125%; }
  .radar .r-alle { top: 0; transform: translate(-50%, -50%); }
  .radar .r-15[aria-current], .radar .r-alle[aria-current] { background: var(--gegen); box-shadow: inset 0 0 0 2px var(--ink); font-weight: 800; }
  .jump { display: flex; flex-direction: column; gap: 10px; }
  .jump-h { margin: 0; font-size: 15px; font-weight: 700; }
  .side-foot { margin: auto 0 0; padding-top: 18px; border-top: 1.5px solid rgba(31,7,22,.25); }
  .side-foot p { margin: 0 0 8px; font-weight: 700; font-size: 15px; }
  .side-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 22px;
    background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); text-decoration: none; font-family: var(--wide); font-weight: 800; font-stretch: 112%; font-size: 15px; }
  .side-btn span { font-size: 20px; line-height: 1; }
  .side-btn:hover { background: var(--ink); color: #fff; }

  .col { min-width: 0; }
  .tools { position: sticky; top: 0; z-index: 10; display: flex; flex-direction: column; gap: 14px; padding: 22px 56px 16px; background: #fff; border-bottom: 1px solid #e6e4ea; }
  .tools .where.desk { display: flex; justify-content: flex-start; gap: 18px; margin: 0; padding: 0; border: 0; }
  .tools .where.desk p { display: flex; align-items: baseline; gap: 10px; font-size: 16px; }
  .tools .where.desk p b { font-size: 24px; }
  .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  main { padding: 0 56px 60px; max-width: 900px; }
  .day.first .dhead { display: flex; position: sticky; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .day { padding-top: 26px; }
  .dhead { position: sticky; top: var(--tools-h, 150px); z-index: 5; background: #fff; padding: 10px 0 10px; margin: 0; box-shadow: 0 12px 10px -8px #fff; }
  .day { scroll-margin-top: var(--tools-h, 150px); }
  .leaf { width: 80px; border-radius: 15px; }
  .leaf small { font-size: 15px; }
  .leaf b { font-size: 40px; }
  .dh-text b { font-size: 30px; }
  .ev { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; }
  .ev time b { font-size: 36px; }
  .ev-title { font-size: 23px; line-height: 1.15; }
  .ev-body { gap: 5px; }
  /* Kennzeichen in eigener Spalte rechts, untereinander: sie überdecken nie den Titel */
  .ev-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; row-gap: 5px; align-content: start; }
  .ev-body > * { grid-column: 1; }
  .ev .tags { grid-column: 2; grid-row: 1 / span 4; flex-direction: column; align-items: flex-end; align-self: start; margin-top: 2px; }
  .place { font-size: 16px; }
  .cat { background: var(--pill); font-size: 15px; }
  .more { background: #faf9fb; }
  .more li { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; }
  .foot { padding: 44px 56px 30px; }
  .foot-in, .foot-legal { max-width: 1000px; }
  .foot-in { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  body:has(> .layout) .foot { margin-left: 380px; margin-top: 0; }
  body:not(:has(> .layout)) .foot-in, body:not(:has(> .layout)) .foot-legal { max-width: 720px; margin-left: auto; margin-right: auto; }
  .simple-head { padding: 24px 56px; }
  .simple { padding: 30px 0 0; }
}

/* ---------- Ladeanimation: Radar um das i, pulsierend ---------- */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--welt);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.loader.on { opacity: 1; visibility: visible; transition: opacity .2s; }
.loader > div { text-align: center; }
.loader p { margin: 22px 0 0; font-weight: 700; font-size: 16px; }
.loader-svg { width: min(78vw, 460px); height: auto; }
.loader-svg circle { transform-box: fill-box; transform-origin: center; }
.loader.on .loader-svg .ping { opacity: 0; animation: ping 2s cubic-bezier(.1,.6,.3,1) infinite; }
.loader.on .loader-svg .p2 { animation-delay: .35s; }
.loader.on .loader-svg .p3 { animation-delay: .7s; }
.loader.on .loader-svg .logo-core { animation: beat 2s ease-in-out infinite; }
@keyframes ping { 0% { opacity: .9; transform: scale(1); } 75%, 100% { opacity: 0; transform: scale(3.2); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 10% { transform: scale(1.3); } 24% { transform: scale(1); } }
/* „Weitere Tage“ lädt: kleiner Radar im Knopf */
.more-days a.busy::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 10px; border-radius: 50%;
  background: var(--gegen); box-shadow: 0 0 0 0 currentColor; animation: busy 1.2s ease-out infinite; vertical-align: -1px; }
@keyframes busy { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.8); } 100% { box-shadow: 0 0 0 12px rgba(255,255,255,0); } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Stadt vorne in der Ortszeile: beim Überfliegen sieht man sofort, wo es ist */
.town { font-weight: 700; color: var(--ink); }

/* Impressum, Datenschutz */
.legal h2 { margin: 28px 0 8px; font-family: var(--wide); font-weight: 800; font-stretch: 112%; font-size: 18px; }
.legal address { font-style: normal; line-height: 1.55; }
.legal-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 20px; margin: 0; }
.legal-list dt { font-weight: 700; margin-top: 8px; }
.legal-list dd { margin: 0; }
@media (min-width: 700px) {
  .legal-list { grid-template-columns: 220px minmax(0, 1fr); }
  .legal-list dt { margin-top: 0; }
}
.legal-note { margin: 16px 0 0; line-height: 1.55; }
.about { margin-bottom: 36px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.about p { line-height: 1.6; max-width: 66ch; }
.about-key { padding: 16px 18px; border-radius: 16px; background: var(--welt); color: var(--ink); }
.about-key b { display: block; margin-bottom: 4px; font-family: var(--wide); font-weight: 800; font-stretch: 112%; font-size: 17px; }
.legal h3 { margin: 20px 0 6px; font-weight: 700; font-size: 16px; }
.privacy p, .privacy li, .privacy dd { line-height: 1.6; max-width: 70ch; }
.privacy ul { padding-left: 1.2em; }
.privacy li + li { margin-top: 6px; }
.privacy address { margin-bottom: 8px; }
.privacy-toc { margin: 24px 0 8px; padding: 14px 18px; border: 2px solid var(--ink); border-radius: 16px; }
.privacy-toc h2 { margin: 0 0 6px; font-size: 16px; }
.privacy-toc ol { margin: 0; padding-left: 1.4em; line-height: 1.7; }
.privacy-rights dt { font-weight: 700; margin-top: 12px; }
.privacy-rights dd { margin: 2px 0 0; }
.privacy [id] { scroll-margin-top: 16px; }
/* Handy-Menü: ganze Woche, Knöpfe in einer Zeile, Links abgesetzt */
.tiles-week { gap: 4px; }
.tiles-week a { flex: 1 1 0; width: auto; min-width: 0; height: 54px; border-radius: 14px; }
.tiles-week small { font-size: 12px; }
.tiles-week b { font-size: 18px; }
.mb-menu .pills { gap: 5px; }
.mb-menu .pills .cal[open] { flex-basis: 100%; }
.mb-menu .pills a, .mb-menu .cal > summary { min-height: 38px; padding: 0 11px; font-size: 14px; }
.pop-links { display: flex; flex-direction: column; margin-top: 4px; border-top: 1px solid var(--line); }
.pop-links a { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 4px; text-decoration: none; font-size: 15px; font-weight: 600; }
.pop-links a + a { border-top: 1px solid var(--line); }
.pop-links svg { width: 14px; height: 14px; opacity: .6; }
/* Umkreis-Auswahl am rechten Rand der Leiste ausrichten, nicht am (breiteren) Knopf */
.mbar .mb-pop { position: static; }
.mbar .pop { right: 10px; }

/* Terminliste ruhiger: Titel in Textschrift, Ort + Kategorie in einer Zeile, keine Pfeile */
.ev-title { font-family: inherit; font-stretch: 100%; font-weight: 750; font-size: 19px; line-height: 1.25; letter-spacing: -.005em; }
.i-ext { display: none; }
.ev-body { gap: 3px; }
.ev-title { order: 1; }
.place { order: 2; color: var(--ink); font-size: 15px; }
.place .town { font-weight: 700; }
.ev-sub { order: 3; font-weight: 400; font-size: 15px; margin-top: 0; }
.ev .tags { order: 4; margin-top: 4px; }
.cat, .badge, .badge-note { font-family: inherit; font-stretch: 100%; font-weight: 600; font-size: 13px; padding: 2px 9px; }
@media (min-width: 1000px) {
  .ev-title { font-size: 21px; }
  .ev-body { display: flex; flex-direction: column; gap: 3px; }
  .ev .tags { flex-direction: row; align-items: center; grid-column: auto; grid-row: auto; }
  .ev time b { font-size: 34px; }
  .ev { padding: 14px 0; }
}
/* Ort und Kategorie in einer Zeile */
.ev-body, .ev-body.ev-body { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 3px; }
.ev-title { flex: 0 0 100%; }
.place { flex: 0 1 auto; }
.ev .tags { order: 3; margin-top: 0; flex-direction: row; gap: 5px; }
.ev-sub { order: 5; flex: 0 0 100%; }
@media (min-width: 1000px) { .ev-body { display: flex; } }

/* „Außerdem geöffnet“ im selben ruhigen Stil wie die Terminliste */
.m-body > a { font-family: inherit; font-stretch: 100%; font-weight: 750; font-size: 17px; line-height: 1.25; }
.m-meta { color: var(--ink); }
.m-meta .town { font-weight: 700; }
.more h3 { font-size: 17px; }
@media (min-width: 1000px) { .m-body > a { font-size: 18px; } .more { padding: 14px 20px 8px; } }

/* Umkreis: kleiner, und klar, was gewählt ist (vorher wirkte das schwarze „AN“ immer aktiv) */
@media (min-width: 1000px) {
  .radar { width: 230px; height: 230px; margin: 14px auto 0; }
  .radar .r-mid { inset: 38px; }
  .radar .r-ansbach { inset: 74px; font-size: 30px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
  .radar .r-ansbach:hover { background: var(--welt); }
  .radar .r-15 { top: 38px; }
  .radar.is-ansbach .r-ansbach { background: var(--gegen); box-shadow: inset 0 0 0 3px var(--ink); }
  .radar.is-15 .r-mid { background: color-mix(in srgb, var(--gegen) 55%, #fff); }
  .radar.is-alle .r-out { background: color-mix(in srgb, var(--gegen) 35%, #fff); }
  .radar.is-alle .r-mid { background: color-mix(in srgb, var(--gegen) 45%, #fff); }
  .radar.is-alle .r-ansbach, .radar.is-15 .r-ansbach { background: color-mix(in srgb, var(--gegen) 55%, #fff); }
  .radar-now { margin: 10px 0 0; text-align: center; font-size: 15px; }
}
@media (max-width: 999px) { .radar-now { display: none; } }

/* Ausstellungen im Stil des Kalenders: Abschnitte wie Tagesköpfe, Titel in Textschrift, Öffnungstage als Text */
.ex-sec { margin-top: 30px; padding-top: 22px; border-top: 2px solid var(--ink); }
.ex-sec h2 {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 4px; padding: 0; border-radius: 0;
  background: none; font-family: var(--wide); font-weight: 800; font-stretch: 125%; font-size: 24px; line-height: 1.15;
}
.ex-sec h2 .ex-n { display: inline; min-width: 0; height: auto; padding: 0; background: none; color: var(--grey); font-size: 18px; font-stretch: 112%; }
.ex-sec h2 small { flex-basis: 100%; font-family: inherit; font-stretch: 100%; font-weight: 400; font-size: 15px; color: var(--grey); }
.ex-body { gap: 3px; }
.ex-body > a { font-family: inherit; font-stretch: 100%; font-weight: 750; font-size: 19px; line-height: 1.25; }
.ex-venue { color: var(--ink); }
.ex-venue .town { font-weight: 700; }
.ex-open { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--grey); }
.ex-today { padding: 2px 9px; border-radius: 11px; background: var(--pill); color: var(--ink); font-weight: 600; font-size: 13px; }
@media (min-width: 1000px) { .ex-sec h2 { font-size: 28px; } .ex-body > a { font-size: 21px; } }

/* Handy-Kopf: Umkreis wie in der Seitenleiste – „AN“ nicht mehr schwarz, gewählter Bereich eingefärbt */
.corner .c3 { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.corner-links .k-ansbach { color: var(--ink); }
.corner.is-ansbach .c3 { background: var(--gegen); box-shadow: inset 0 0 0 3px var(--ink); }
.corner.is-15 .c2, .corner.is-15 .c3 { background: color-mix(in srgb, var(--gegen) 50%, #fff); }
.corner.is-alle .c1, .corner.is-alle .c2, .corner.is-alle .c3 { background: color-mix(in srgb, var(--gegen) 40%, #fff); }
.corner.is-alle .c2, .corner.is-15 .c2 { box-shadow: inset 0 0 0 2px var(--ink); }
.corner.is-alle .c3, .corner.is-15 .c3 { box-shadow: inset 0 0 0 2px var(--ink); }
.corner-links .k-ansbach[aria-current] { background: transparent; box-shadow: none; padding: 0; }
/* „Keine Veranstaltung“: ruhige Hinweiszeile statt Überschrift */
.none { font-family: inherit; font-stretch: 100%; font-weight: 400; font-size: 15px; color: var(--grey); }
.none a { display: inline; margin: 0 0 0 4px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.none.quiet { margin-top: 12px; }
.none.quiet a { margin-left: 0; }

/* „Außerdem geöffnet“ ab dem zweiten Tag zugeklappt – die Ausstellungen wiederholen sich jeden Tag */
.more.fold { padding-bottom: 14px; }
.more.fold[open] { padding-bottom: 8px; }
.more.fold > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.more.fold > summary::-webkit-details-marker { display: none; }
.more.fold > summary h3 { margin: 0; }
.fold-n { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--grey); }
.fold-n svg { width: 14px; height: 14px; transition: transform .15s; }
.more.fold[open] .fold-n svg { transform: rotate(180deg); }
.more.fold[open] > summary { margin-bottom: 2px; }
.more.fold > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .fold-n svg { transition: none; } }

/* Melden: Link oben, Termine als Zeilen, Ort mit Vorschlägen */
.form-page .help { margin: 0; font-size: 14px; color: var(--grey); }
.form-page .formerr { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px #a1001f; color: #a1001f; font-weight: 700; }
.form-page .formerr p { margin: 0; }
.linkbox { margin: 6px 0 22px; padding: 16px; border-radius: 18px; background: var(--welt); }
.linkbox .f { margin: 0; }
.link-row { display: flex; gap: 8px; flex-wrap: wrap; }
.link-row input { flex: 1 1 260px; min-width: 0; }
.ghost { min-height: 48px; padding: 0 18px; border: 0; border-radius: 24px; background: var(--ink); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.ghost:disabled { opacity: .55; cursor: progress; }
.linkbox .help { color: var(--ink); }
.fetch-status { margin: 2px 0 0; font-weight: 700; font-size: 15px; }
.fetch-status:empty { display: none; }
.fetch-status.none { color: #a1001f; }
.form-page input.filled, .form-page select.filled { box-shadow: inset 0 0 0 2px var(--ink); background: #fffbe6; }
.when { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.when legend { padding: 0; margin-bottom: 5px; font-weight: 700; font-size: 15px; }
.when-rows { display: flex; flex-direction: column; gap: 8px; }
.when-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px 44px; gap: 8px; align-items: center; }
.when-row label { display: block; font-weight: 400; }
.when-row input { width: 100%; }
.when-row .t[hidden] { display: none; }
.when-row.err input { box-shadow: inset 0 0 0 2px #a1001f; }
.rm { width: 44px; height: 44px; border: 0; border-radius: 22px; background: transparent; color: var(--grey); font-size: 24px; line-height: 1; cursor: pointer; }
.rm:hover { background: #fff; color: var(--ink); }
.when-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 10px 0 6px; }
.when-foot .check { margin: 0 !important; }
.add { min-height: 40px; padding: 0 14px; border: 0; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.add:hover { background: var(--ink); color: #fff; }
@media (max-width: 420px) { .when-row { grid-template-columns: minmax(0, 1fr) 116px 40px; } }
.form-page .primary + .help { margin-top: 10px; }
.choices { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.choices button { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: baseline; width: 100%; padding: 10px 14px; border: 0; border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.choices button:hover, .choices button:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.choices b { font-weight: 800; }

/* ---------- Reiter Kultur | Freizeit (Karteireiter an der Unterkante der Kopfzeile) ---------- */
.wt-kultur { --c: #ff8fc2; }
.wt-freizeit { --c: #d0e868; }
.worlds { position: relative; display: flex; align-items: flex-end; gap: 6px; }
.wtab { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 9px 14px 9px; border-radius: 16px 16px 0 0;
  background: var(--c); color: var(--ink); text-decoration: none; box-shadow: inset 0 1.5px 0 var(--ink), inset 1.5px 0 0 var(--ink), inset -1.5px 0 0 var(--ink); }
.wtab b { font-family: var(--wide); font-weight: 800; font-stretch: 125%; font-size: 17px; line-height: 1.15; }
.wtab small { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.wtab.on { background: var(--tint); padding-top: 13px; box-shadow: inset 0 1.5px 0 var(--ink), inset 1.5px 0 0 var(--ink), inset -1.5px 0 0 var(--ink); }
.wtab.on b { font-size: 20px; }
.wtab:not(.on) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.wtab:not(.on):hover { padding-top: 12px; }
.wtab:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
/* Grundlinie unter den Reitern; der aktive Reiter liegt darüber und öffnet sie */
.worlds::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink); }
.wtab.on { position: relative; z-index: 1; }
.mhead .worlds { margin: 22px calc(-1 * var(--gap)) -18px; padding: 0 var(--gap); }
.worlds-band { display: none; }
@media (prefers-reduced-motion: no-preference) { .wtab { transition: padding-top .12s ease; } }
@media (min-width: 1000px) {
  .worlds-band { display: block; background: var(--welt); padding: 20px 56px 0; }
  .worlds-band .wtab { flex: 0 0 270px; padding: 11px 18px 11px; }
  .worlds-band .wtab b { font-size: 20px; }
  .worlds-band .wtab.on { padding-top: 15px; }
  .worlds-band .wtab.on b { font-size: 23px; }
  .worlds-band .wtab small { font-size: 13.5px; }
  .worlds-band .worlds { margin: 0 -56px; padding: 0 56px; }
  .worlds-band .wtab.on { background: #fff; }
  .tools { padding-top: 18px; }
}

/* Gewählte Kategorien: mit × zum Entfernen; auf dem Handy stehen sie ganz vorn, damit man sie sieht */
.chips a.picked { padding-left: 14px; padding-right: 10px; }
.chips .x { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 2px; border-radius: 50%; background: rgba(255,255,255,.22); font-size: 15px; line-height: 1; }
@media (max-width: 999.98px) {
  .chips a.picked { order: -2; }
  .chips a:first-child { order: -1; }
  .chips:not(.at-end) { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
}

/* Umkreis ohne die Farbe der anderen Welt: sonst liest man „Freizeit“ (grün) als Teil des Umkreises.
   Gewählter Knopf schwarz, abgedeckte Fläche als helle Tönung der eigenen Weltfarbe, freie Knöpfe nur umrandet. */
.w-kultur { --tief: #f0589d; }
.w-freizeit { --tief: #a3ca28; }
.radar, .corner { --gegen: var(--tief); }
/* Fläche in der Weltfarbe (nicht durchsichtig), damit die Kreislinie nicht durch die Schrift läuft */
.radar .r-15, .radar .r-alle, .corner-links .k-15, .corner-links .k-alle { background: var(--welt); box-shadow: inset 0 0 0 1.5px var(--ink); }
.radar .r-15[aria-current], .radar .r-alle[aria-current],
.corner-links .k-15[aria-current], .corner-links .k-alle[aria-current] { background: var(--ink); color: #fff; box-shadow: none; }
.radar.is-ansbach .r-ansbach { background: var(--ink); color: #fff; box-shadow: none; }
.corner.is-ansbach .c3 { background: var(--ink); box-shadow: none; }
.corner.is-ansbach + .corner-links .k-ansbach, .corner-links .k-ansbach[aria-current] { color: #fff; }
.radar .r-15:hover, .radar .r-alle:hover { background: color-mix(in srgb, var(--welt) 30%, #fff); }
/* abgedeckte Fläche kräftig in der eigenen Weltfarbe */
.radar.is-15 .r-mid, .radar.is-15 .r-ansbach,
.radar.is-alle .r-out, .radar.is-alle .r-mid, .radar.is-alle .r-ansbach { background: var(--tief); }
.radar.is-alle .r-out { box-shadow: inset 0 0 0 2px var(--ink); }
.corner.is-15 .c2, .corner.is-15 .c3,
.corner.is-alle .c1, .corner.is-alle .c2, .corner.is-alle .c3 { background: var(--tief); }
.corner.is-alle .c1 { box-shadow: inset 0 0 0 2px var(--ink); }

/* Signet des Veranstalters (z. B. Bachwoche), ganz klein vor der Kategorie */
/* im weißen Kästchen mit feinem Rand, damit auch weiße Teile des Logos auf der Weltfarbe sichtbar bleiben */
.tags .org-logo { display: inline-flex; align-items: center; align-self: flex-start; height: 28px; padding: 0 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.tags .org-logo img { display: block; height: 20px; width: auto; max-width: 72px; object-fit: contain; }

/* Filter „nur ein Veranstalter“ (z. B. über das Bachwoche-Signet) */
.ev .org-logo { position: relative; z-index: 2; }
.org-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 14px var(--gap) 0; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 15px; }
.org-filter a { margin-left: auto; font-weight: 700; }
@media (min-width: 1000px) { .org-filter { margin: 18px 56px 0; max-width: 788px; } }

/* Termine ohne bekannte Uhrzeit: eigene Gruppe am Tagesende */
.open-h { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; font-size: 14px; font-weight: 700; color: var(--grey); }
.open-h::before, .open-h::after { content: ""; flex: 1; border-top: 1.5px dotted var(--rule); }
.open-h::before { flex: 0 0 18px; }
.legal h1 { hyphens: auto; overflow-wrap: break-word; }

/* Fehlerseiten (404, 500): leerer Radar, ein klarer Weg zurück */
.lost { padding: 12px 0 56px; }
.lost-radar { display: block; width: 132px; height: 132px; margin: 0 0 22px; }
.lost-radar circle { fill: none; stroke: var(--ink); stroke-width: 3; }
.lost-radar circle:nth-child(1) { opacity: .2; }
.lost-radar circle:nth-child(2) { opacity: .4; }
.lost-radar .lost-core { fill: var(--welt); stroke-width: 4; opacity: 1; }
.lost p { max-width: 56ch; line-height: 1.55; }
.lost-go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 26px; }
.lost-alt { font-weight: 700; }
