@font-face { font-family: "Frutiger Cn"; src: url("/fonts/frutiger-47-karlsruhe.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Frutiger Cn"; src: url("/fonts/frutiger-67-karlsruhe.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Frutiger";    src: url("/fonts/frutiger-45-karlsruhe.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Frutiger";    src: url("/fonts/frutiger-65-karlsruhe.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {

  --panel: #EFF0F0;
  --weiss: #FFFFFF;
  --ink: #000000;
  --grau: #555756;
  --grau-mittel: #A1A3A2;
  --graublau: #508B9C;
  --indigo: #364092;
  --gelb: #EDAE00;
  --purpur: #911D7C;
  --rubin: #981144;
  --rot: #E70038;
  --petrol: #00879B;
  --ocker: #D69000;
  --rose: #FBD6CE;
  --lachs: #F6ADA2;
  --sand: #F8DDA2;
  --creme: #F6E6CB;
  --creme-hell: #F9F1E3;
  --eis: #B6D5D7;
  --eis-hell: #DCEBEB;
  --himmel: #9DD2F0;
  --hellblau: #D0E9F8;
  --blau-hell: #E7F4FC;
  --lind: #BBDBAB;
  --lind-hell: #DDEED4;
  --rose-hell: #FDEBE6;
  --linie: #000000;

  --f-text: "Frutiger Cn", "Frutiger", "Segoe UI", "Myriad Pro", sans-serif;
  --f-klein: "Frutiger", "Frutiger Cn", "Segoe UI", "Myriad Pro", sans-serif;

  --t-s:    1rem;
  --t-body: clamp(1.125rem, 1.04rem + 0.35vw, 1.3rem);
  --t-m:    clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  --t-l:    clamp(1.55rem, 1.2rem + 1.3vw, 2.15rem);
  --t-xl:   clamp(1.75rem, 1.15rem + 2.3vw, 2.9rem);
  --t-xxl:  clamp(2.1rem, 1rem + 4.2vw, 3.6rem);
  --lh-tight: 1.05;
  --lh-body: 1.45;

  --max: 1200px;
  --rand: max(12px, calc((100% - var(--max)) / 2));
  --pad: clamp(1.25rem, 0.6rem + 2.6vw, 2.5rem);
  --abstand: clamp(1rem, 0.7rem + 1.2vw, 1.6rem);
  --focus: #000000;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--panel);
  color: var(--ink);
  font-family: var(--f-text);
  font-weight: 300;
  font-size: var(--t-body);
  line-height: var(--lh-body);
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p + p { margin-top: 1em; }
img { display: block; max-width: 100%; height: auto; }
b, strong { font-weight: 700; }
a { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.1em; height: 1.1em; flex: none; }
.nw { white-space: nowrap; }

.skip { position: absolute; left: 0; top: -4rem; background: var(--ink); color: #fff; padding: 0.75rem 1rem; z-index: 10; font-weight: 700; }
.skip:focus { top: 0; outline-color: #fff; }

.c-blau-hell  { background: var(--blau-hell); }
.c-creme-hell { background: var(--creme-hell); }
.c-lachs     { background: var(--lachs); }
.c-purpur    { background: var(--purpur); }
.c-lind      { background: var(--lind); }
.c-gelb      { background: var(--gelb); }
.c-himmel    { background: var(--himmel); }
.c-eis       { background: var(--eis); }
.c-ocker     { background: var(--ocker); }

.row {
  display: grid;
  grid-template-columns: var(--rand) minmax(0, 1fr) var(--rand);
  background: var(--bg, transparent);
}
.row::before, .row::after { content: ""; grid-row: 1; }
.row::before { grid-column: 1; background: var(--cl, transparent); }
.row::after  { grid-column: 3; background: var(--cr, transparent); }

@media (max-width: 35.99rem) { .row::after { background: var(--cl, transparent); } }
.row > .in { grid-column: 2; grid-row: 1; min-width: 0; }
main .row + .row > .in { border-top: 1px solid var(--linie); }
.r-footer { border-top: 1px solid var(--linie); }

.raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--linie); }
.raster > * { min-width: 0; grid-column: 1 / -1; }

.panel { background: var(--panel); padding: var(--pad); }
.kiste { padding: var(--pad); }
.block { display: none; }
.block-text { display: flex; align-items: flex-end; padding: var(--pad); font-weight: 700; font-size: var(--t-m); line-height: 1.15; }

.h-xl { font-weight: 700; font-size: var(--t-xl); line-height: var(--lh-tight); }
.datum { font-weight: 300; margin-top: 0.15em; }
.lead { font-size: var(--t-m); line-height: 1.32; max-width: 34em; }
.panel > * + .lead, .panel > .h-xl + p:not(.datum), .panel > .datum + p { margin-top: var(--abstand); }
.kicker {
  display: inline-block; margin-bottom: 0.8rem; padding: 0.35rem 0.6rem 0.4rem;
  font-weight: 700; font-size: var(--t-s); line-height: 1;
  background: var(--weiss); color: #000; border: 1px solid var(--linie);
}
.chip {
  display: inline-block; margin: 0; background: var(--weiss); color: #000;
  font-style: normal; font-weight: 700; font-size: var(--t-m); line-height: 1.1; padding: 0.4em 0.75em;
}
.chip[data-live="1"]::before {
  content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-right: 0.55em;
  background: var(--rot); vertical-align: 0.02em;
}

.mehr a {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 700; font-size: var(--t-m); line-height: 1.2;
}
.quer { margin: 0; }
.quer a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--pad) 1.05rem; background: var(--panel);
  font-weight: 700; font-size: var(--t-m); line-height: 1.2; text-decoration: none;
}
.quer a .ico { width: 1.4em; height: 1.4em; }
.quer a:hover, .quer a:focus-visible { background: #000; color: #fff; }
.quer a:focus-visible { outline-offset: -6px; outline-color: #fff; }

.r-absender, .r-wortmarke { --bg: var(--eis); }
.absender { display: flex; justify-content: space-between; align-items: stretch; gap: 1rem; }
.absender-text {
  align-self: center; padding: 1.1rem 0;
  font-family: var(--f-klein); font-size: var(--t-s); line-height: 1.35; color: var(--grau);
}
.absender-text b, .absender-text span { display: block; }
.stadtlogo { flex: none; width: 7rem; padding: 0.4rem 0.4rem 0.35rem; background: var(--rubin); color: #fff; text-align: center; }
.wortmarke { line-height: 0; }
.wortmarke img { width: min(100%, 34rem); }

.r-hero { --cl: var(--grau); --cr: var(--ocker); }
.r-hero .kiste { display: flex; flex-direction: column; gap: var(--abstand); }
.kiste-vortrag { background: var(--panel); }
.kiste-gutschein { background: var(--lind-hell); }
.kopf { font-weight: 700; font-size: var(--t-m); line-height: 1.1; }
.gross { margin-top: 0.25rem; font-weight: 300; font-size: var(--t-xxl); line-height: 1.02; }
.sub { margin-top: 0.7rem; font-size: var(--t-m); line-height: 1.25; }
.unten > * { margin: 0; }
.stempel-deko { width: clamp(4rem, 3rem + 3vw, 5.5rem); }
.unten { margin-top: auto; display: flex; flex-direction: column; gap: 0.95rem; align-items: flex-start; }
.danach .kopf-klein { margin-bottom: 0.2rem; font-weight: 700; font-size: var(--t-s); line-height: 1.2; }
.danach ol { font-family: var(--f-klein); font-size: var(--t-s); line-height: 1.5; }
.nur-danach { display: none; }
html[data-tafel="danach"] .nur-aktiv { display: none; }
html[data-tafel="danach"] .nur-danach { display: block; }

.r-intro { --bg: var(--rose); --cl: var(--graublau); --cr: var(--creme); }

.r-fakten { --cl: var(--grau-mittel); --cr: var(--indigo); }
.fakt { display: grid; gap: 0.3rem; align-content: start; background: var(--panel); }
.fakt dt { font-weight: 700; font-size: var(--t-s); }
.fakt dd { display: grid; gap: 0.2rem; }
.fakt dd b { font-size: var(--t-l); line-height: 1.08; }
.fakt dd > span { font-size: var(--t-s); }

.r-ablauf { --bg: var(--hellblau); --cl: var(--himmel); --cr: var(--grau); }
.r-ablauf .panel { --akzent: var(--himmel); }
.tage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--linie); }
.tag { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; align-content: start; }
.tag h3 {
  grid-column: 1 / -1; padding: 0.75rem 1rem 0.8rem; background: var(--panel);
  font-size: var(--t-m); line-height: 1.15;
  display: flex; flex-wrap: wrap; gap: 0 0.5rem; align-items: baseline;
}
.tag h3 span { font-weight: 300; }
.slots { display: contents; }
.slot { background: var(--weiss); padding: 0.75rem 1rem 0.85rem; display: grid; gap: 0.1rem; align-content: start; }
.slot b { font-size: var(--t-m); line-height: 1.1; }
.slot span { font-size: var(--t-s); line-height: 1.25; }
.slot .wer { margin-top: 0.3rem; font-family: var(--f-klein); font-size: 0.8125rem; line-height: 1.3; }
.slot.ist-naechster { background: var(--blau-hell); }
.slot .chip { justify-self: start; margin-top: 0.45rem; font-size: 0.8125rem; padding: 0.3em 0.45em; white-space: nowrap; }
.slot .chip[data-live="1"]::before { margin-right: 0.4em; }

.r-gutschein { --bg: var(--creme); --cl: var(--gelb); --cr: var(--eis); }
.r-gutschein .panel { --akzent: var(--sand); }

.stempelkarte { background: #fff; padding: var(--pad); }
.karte-raster { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid #000; border-left: 1px solid #000; max-width: 34rem; }
.feld { aspect-ratio: 1; display: grid; place-items: center; border-right: 1px solid #000; border-bottom: 1px solid #000; }
.feld img { width: 72%; height: auto; transform: rotate(var(--dreh, 0deg)); }

.feld { position: relative; }
.abdruck { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.abdruck svg, .wert-feld svg { width: 72%; height: auto; aspect-ratio: 60.8 / 51.9; overflow: visible; }
.abdruck.vorschau { opacity: 0; transition: opacity 120ms ease-out; }
.abdruck.vorschau.sichtbar { opacity: 0.2; transition: opacity 120ms ease-out, transform 160ms cubic-bezier(0.2, 0.7, 0.3, 1); }
.karte-raster.spielbar { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.karte-raster.spielbar .feld:not(.belegt) { cursor: pointer; }
.konfetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
.karte-fuss { margin-top: 0.8rem; font-size: var(--t-s, 0.8125rem); max-width: 34rem; }

.karte-wert { display: flex; align-items: center; background: var(--panel); }
.wert { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.wert-felder { display: flex; border-left: 1px solid #000; }
.wert-feld { display: grid; place-items: center; width: clamp(3.75rem, 3rem + 2.5vw, 5rem); aspect-ratio: 1; background: #fff; border: 1px solid #000; border-left: 0; }
.wert-feld img { width: 72%; height: auto; transform: rotate(var(--dreh, 0deg)); }
.wert-ergebnis { display: flex; align-items: center; gap: 1rem; }
.wert-gleich { font-weight: 700; font-size: var(--t-xxl); line-height: 1; }
.wert-betrag { display: grid; line-height: 1; }
.wert-betrag b { font-size: var(--t-xxl); white-space: nowrap; }
.wert-betrag span { margin-top: 0.3rem; font-weight: 700; font-size: var(--t-m); }
.schritte { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--linie); }
.schritte li { background: var(--panel); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 0.9rem; align-content: start; }
.schritte .n { grid-row: 1 / 3; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; background: #000; color: #fff; font-weight: 700; font-size: var(--t-m); }
.schritte h3 { align-self: center; font-size: var(--t-m); line-height: 1.15; }
.schritte p { grid-column: 2; margin-top: 0.35rem; }
.hinweis p { max-width: 46em; }
.extern { display: inline; font-weight: 700; font-size: var(--t-body); }
.extern .ico { display: inline-block; vertical-align: -0.15em; margin-left: 0.35em; }

.r-projekt { --bg: var(--eis-hell); --cl: var(--petrol); --cr: var(--rose-hell); }
.r-projekt .panel p { max-width: 40em; }

.r-buero { --bg: var(--creme-hell); --cl: var(--indigo); --cr: var(--graublau); }
.r-buero .panel p { max-width: 40em; }
.r-buero .panel h3 { font-size: var(--t-m); line-height: 1.15; margin-top: calc(var(--abstand) * 1.5); }
.r-buero .panel h3 + p { margin-top: 0.5rem; }

.r-footer { --bg: var(--weiss); }
.fuss { gap: 0; background: none; }
.fuss-nav { padding-top: 0; }
@media (min-width: 56rem) { .fuss-nav { padding-top: var(--pad); } }
.r-footer .panel { background: var(--weiss); }
.fuss-umgesetzt { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.6rem; }
.fuss-label { font-size: var(--t-body); line-height: 1; }
.fuss-umgesetzt img { display: block; width: 10rem; height: auto; }
.fuss-logo { display: inline-block; }
.fuss-logo:hover img, .fuss-logo:focus-visible img { opacity: 0.75; }
.fuss-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.fuss-nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-weight: 700; font-size: var(--t-body); }
.nach-oben { display: grid; place-items: center; width: 3rem; height: 3rem; flex: none; background: var(--ink); color: var(--weiss); text-decoration: none; }
.nach-oben:hover { background: var(--indigo); }
.nach-oben .ico { width: 1.5rem; height: 1.5rem; }

.nach-oben { position: fixed; right: clamp(0.75rem, 2vw, 1.5rem); bottom: clamp(0.75rem, 2vw, 1.5rem); z-index: 50; }
.nach-oben:focus-visible { outline: 3px solid #fff; outline-offset: 0; box-shadow: 0 0 0 6px #000; }
@media (max-width: 35.99rem) { .nach-oben { width: 2.5rem; height: 2.5rem; } .nach-oben .ico { width: 1.25rem; height: 1.25rem; } }
.r-footer { padding-bottom: 4rem; }
@media print { .nach-oben { display: none; } }

@media (min-width: 36rem) {
  .raster { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .raster > .s-3 { grid-column: span 6; }
  .schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stadtlogo { width: 8rem; }
}
@media (min-width: 48rem) {
  .tage { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tag { grid-template-columns: minmax(0, 1fr); }
  .tag h3 { display: block; }
  .tag h3 b, .tag h3 span { display: block; }

  .tage { grid-template-rows: repeat(4, auto); }
  .tag { grid-row: span 4; grid-template-rows: subgrid; }
}
@media (min-width: 56rem) {
  .raster > .s-3 { grid-column: span 3; }
  .raster > .s-4 { grid-column: span 4; }
  .raster > .s-6 { grid-column: span 6; }
  .raster > .s-8 { grid-column: span 8; }
  .raster > .s-12 { grid-column: 1 / -1; }
  .block { display: block; }
  .block-text { display: flex; }
  .schritte { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .schritte li { grid-template-columns: minmax(0, 1fr); }
  .schritte .n { grid-row: auto; margin-bottom: 0.9rem; }
  .schritte p { grid-column: auto; }
}

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

.slot a.thema { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; font-size: var(--t-s); line-height: 1.25; }
.slot a.thema:hover { text-decoration-thickness: 2px; }
.h-l { font-weight: 700; font-size: var(--t-l); line-height: var(--lh-tight); }
.unterkopf > .h-l + p { margin-top: 0.5rem; }
.vortraege { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--linie); }
.vortrag { background: var(--weiss); padding: var(--pad); display: grid; gap: 0.4rem; align-content: start; scroll-margin-top: 1rem; }
.vortrag .wann { display: block; font-family: var(--f-klein); font-size: var(--t-s); font-weight: 700; }
.vortrag h4, .vortrag .titel { display: block; font-weight: 700; font-size: var(--t-m); line-height: 1.15; }
.vortrag .wer { display: block; font-family: var(--f-klein); font-size: var(--t-s); line-height: 1.35; }
.vortrag:has(details) { padding: 0; }
.vortrag summary {
  list-style: none; cursor: pointer; position: relative;
  display: grid; gap: 0.4rem; padding: var(--pad); padding-right: calc(var(--pad) + 2.25rem);
}
.vortrag summary::-webkit-details-marker { display: none; }
.vortrag summary:hover .titel { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.vortrag summary:focus-visible { outline-offset: -6px; }
.vortrag .auf { position: absolute; top: var(--pad); right: var(--pad); width: 1.5rem; height: 1.5rem; }
.vortrag .auf::before, .vortrag .auf::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1.25rem; height: 3px; background: currentColor; transform: translate(-50%, -50%); }
.vortrag .auf::after { transform: translate(-50%, -50%) rotate(90deg); }
.vortrag details[open] .auf::after { display: none; }
.vortrag details[open] summary { padding-bottom: 0.9rem; }
.vortrag details > p { padding: 0 var(--pad) var(--pad); }
.vortrag:target { background: var(--blau-hell); }
@media (min-width: 48rem) {
  .vortraege { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
