:root {
  --nacht: #0f1d33;
  --nacht-hell: #1d3352;
  --silhouette: #0a1526;
  --silhouette-fern: #16294a;
  --schnee: #f4f6f9;
  --frost: #dfe7ef;
  --frost-dunkel: #b9c9d8;
  --kerze: #f5c45e;
  --kerze-hell: #ffe3a1;
  --backstein: #9a3b2c;
  --backstein-dunkel: #6f2b22;
  --tanne: #24453a;
  --holz: #6b4630;
  --tinte: #172539;
  --tinte-leise: #4a5a70;

  --schrift-zier: "Grenze Gotisch", "UnifrakturMaguntia", Georgia, serif;
  --schrift-text: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;

  --rand: clamp(16px, 4vw, 48px);
  --breite: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--nacht);
  color: var(--schnee);
  font-family: var(--schrift-text);
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--kerze);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprunglink {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--kerze); color: var(--tinte);
  padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.sprunglink:focus { top: 12px; }

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

.kopf {
  position: relative;
  overflow: hidden;
  min-height: min(100svh, 920px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 500px at 50% 115%, rgba(245, 196, 94, 0.16), transparent 70%),
    linear-gradient(to bottom, #08121f 0%, var(--nacht) 45%, var(--nacht-hell) 100%);
}

.schnee {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
}

.mond {
  position: absolute;
  top: clamp(40px, 9vh, 90px);
  right: clamp(24px, 12vw, 200px);
  width: clamp(54px, 7vw, 92px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fffaf0 0 40%, #f1e6cc 100%);
  box-shadow: 0 0 60px 18px rgba(255, 236, 190, 0.18);
}
.mond::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  transform: translate(26%, -14%);
  background: #0c1829;
}

.kopf__inhalt {
  position: relative; z-index: 3;
  width: min(100% - 2 * var(--rand), 900px);
  margin: 0 auto;
  padding-top: clamp(56px, 11vh, 120px);
  text-align: center;
}

.titel {
  font-family: var(--schrift-zier);
  font-weight: 700;
  display: flex; flex-direction: column; align-items: center;
  color: var(--schnee);
  text-shadow: 0 2px 30px rgba(245, 196, 94, 0.25);
}
.titel__ort {
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
}
.titel__wort {
  font-size: clamp(3rem, 12.5vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.titel__jahr {
  margin-top: 0.35em;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  font-weight: 500;
  color: var(--kerze);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.titel__jahr::before, .titel__jahr::after {
  content: ""; width: 2.4em; height: 1px;
  background: linear-gradient(to var(--r, right), transparent, currentColor);
}
.titel__jahr::after { --r: left; }

.kopf__text {
  max-width: 34em;
  margin: 1.4rem auto 0;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--frost);
}

/* Karte „Heute“ */
.heute {
  margin: 2rem auto 0;
  max-width: 30rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  align-items: center;
  text-align: left;
  padding: 16px 20px 16px 16px;
  border-radius: 18px;
  background: rgba(10, 21, 38, 0.62);
  border: 1px solid rgba(245, 196, 94, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.heute:empty { display: none; }
.heute__stern {
  grid-row: span 3;
  width: 56px; height: 56px;
  color: var(--kerze);
  filter: drop-shadow(0 0 12px rgba(245, 196, 94, 0.55));
}
.heute__wann { color: var(--kerze); font-weight: 700; font-size: 0.95rem; }
.heute__was { font-size: 1.15rem; line-height: 1.3; }
.heute__aktion { margin-top: 6px; justify-self: start; }

.knopf {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  background: var(--kerze);
  color: var(--tinte);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}
.knopf:hover { background: var(--kerze-hell); }
.knopf:active { transform: scale(0.97); }
.knopf--rand {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.knopf--rand:hover { background: rgba(23, 37, 57, 0.07); }

/* Dorf-Silhouette */
.dorf {
  position: relative; z-index: 1;
  display: block;
  width: 100%;
  height: clamp(190px, 30vw, 330px);
  margin-top: auto;
}
.dorf .fenster { fill: var(--kerze); fill-opacity: 0; }
.dorf .fenster.an { fill-opacity: 0.95; animation: anknipsen 900ms ease-out both; animation-delay: var(--v, 0s); }
@keyframes anknipsen {
  0% { fill-opacity: 0; }
  40% { fill-opacity: 1; }
  55% { fill-opacity: 0.6; }
  100% { fill-opacity: 0.95; }
}

/* ---------- Abschnitte ---------- */

.abschnitt__kopf {
  width: min(100% - 2 * var(--rand), 44rem);
  margin: 0 auto;
  text-align: center;
}
.abschnitt__kopf h2 {
  font-family: var(--schrift-zier);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
}
.abschnitt__kopf p { margin-top: 0.8rem; }

/* ---------- Straße mit Häusern ---------- */

.strasse {
  position: relative;
  padding: clamp(40px, 7vw, 80px) 0 clamp(70px, 9vw, 110px);
  background:
    linear-gradient(to bottom, var(--schnee) 0 6px, transparent 6px),
    linear-gradient(to bottom, var(--nacht-hell), #132642 60%, var(--nacht));
}
.strasse .abschnitt__kopf p { color: var(--frost); }

.haeuser {
  --spalten: 4;
  --luecke: clamp(10px, 1.6vw, 22px);
  list-style: none;
  margin: clamp(36px, 5vw, 60px) auto 0;
  padding: 0;
  width: min(100% - 2 * var(--rand), var(--breite));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  column-gap: var(--luecke);
  row-gap: calc(var(--luecke) * 2.6);
}
@media (min-width: 640px) { .haeuser { --spalten: 6; } }
@media (min-width: 1000px) { .haeuser { --spalten: 9; } }

.haus {
  --einheit: calc((100% - (var(--spalten) - 1) * var(--luecke)) / var(--spalten));
  flex: 0 0 var(--einheit);
  position: relative;
  container-type: inline-size;
}
.haus--breit { flex-basis: calc(var(--einheit) * 2 + var(--luecke)); }

/* Schneewehe vor dem Haus */
.haus::after {
  content: "";
  position: absolute;
  left: -14%; right: -14%;
  bottom: -9px;
  height: 18px;
  border-radius: 50%;
  background: var(--schnee);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 2;
  pointer-events: none;
}

.haus__knopf {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.haus__knopf:focus-visible { outline-offset: 6px; border-radius: 10px; }

/* Dach */
.haus__dach {
  display: block;
  position: relative;
  width: 112%;
  margin: 0 -6%;
  aspect-ratio: 2.2 / 1;
  background: linear-gradient(to bottom, var(--schnee) 0 26%, #d3dde7 26% 30%, var(--dach, #2c3443) 30%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.haus--breit .haus__dach { aspect-ratio: 4.2 / 1; }
.dach--treppe .haus__dach {
  width: 100%; margin: 0;
  aspect-ratio: 1.6 / 1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14'%3E%3Cpath d='M0 .5H24M0 7.5H24M.5 0V7M12.5 7V14' stroke='rgba(0,0,0,.22)' fill='none'/%3E%3C/svg%3E"),
    var(--wand);
  background-size: 18px 10.5px, auto;
  clip-path: polygon(38% 0, 62% 0, 62% 18%, 74% 18%, 74% 40%, 86% 40%, 86% 62%, 100% 62%, 100% 100%, 0 100%, 0 62%, 14% 62%, 14% 40%, 26% 40%, 26% 18%, 38% 18%);
}
.haus--breit.dach--treppe .haus__dach { aspect-ratio: 3 / 1; }
.dach--walm .haus__dach {
  aspect-ratio: 3.4 / 1;
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  background: linear-gradient(to bottom, var(--schnee) 0 30%, #d3dde7 30% 36%, var(--dach, #2c3443) 36%);
}

/* Fassade */
.haus__fassade {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  aspect-ratio: 1 / var(--hoehe, 1.2);
  padding: 9cqw 10cqw 0;
  background: var(--wand);
  box-shadow: inset 0 -14px 20px -10px rgba(0, 0, 0, 0.35);
}
.haus--breit .haus__fassade { aspect-ratio: 2.1 / var(--hoehe, 1.2); padding-inline: 8cqw; }

.wand--backstein { --wand: #9a3b2c; --dach: #2c3443; }
.wand--backstein-dunkel { --wand: #74302a; --dach: #262c38; }
.wand--backstein .haus__fassade,
.wand--backstein-dunkel .haus__fassade {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14'%3E%3Cpath d='M0 .5H24M0 7.5H24M.5 0V7M12.5 7V14' stroke='rgba(0,0,0,.22)' fill='none'/%3E%3C/svg%3E");
  background-size: 18px 10.5px;
}
.wand--putz { --wand: #e8e3da; --dach: #7b2e25; }
.wand--frost { --wand: #b9cad9; --dach: #2c3443; }
.wand--tanne { --wand: #3b5d4f; --dach: #1f2a33; }
.wand--fachwerk { --wand: #ece7de; --dach: #6e2a22; --balken: #3d2b22; }
.wand--fachwerk .haus__fassade {
  background:
    linear-gradient(to right, var(--balken) 0 5%, transparent 5% 95%, var(--balken) 95%),
    linear-gradient(to bottom, var(--balken) 0 4%, transparent 4% 33%, var(--balken) 33% 37%, transparent 37%),
    linear-gradient(135deg, transparent 0 calc(50% - 2px), var(--balken) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)) 5% 4% / 22% 29% no-repeat,
    linear-gradient(45deg, transparent 0 calc(50% - 2px), var(--balken) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)) 95% 4% / 22% 29% no-repeat,
    var(--wand);
}

/* kleine Fenster oben */
.haus__fenster {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: auto;
}
.haus__fenster i {
  width: 22cqw;
  aspect-ratio: 1 / 1.15;
  border-radius: 2px;
  background:
    linear-gradient(var(--sprosse, #2a3244), var(--sprosse, #2a3244)) 50% 0 / 2px 100% no-repeat,
    linear-gradient(var(--sprosse, #2a3244), var(--sprosse, #2a3244)) 0 50% / 100% 2px no-repeat,
    #1b2638;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
  transition: background-color 400ms ease, box-shadow 400ms ease;
}
.haus--breit .haus__fenster i { width: 11cqw; }
.haus.ist-frei .haus__fenster i {
  background-color: var(--kerze);
  --sprosse: #7a5a2a;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55), 0 0 14px 2px rgba(245, 196, 94, 0.55);
}
.haus.ist-frei .haus__fenster i {
  background-image:
    linear-gradient(#7a5a2a, #7a5a2a),
    linear-gradient(#7a5a2a, #7a5a2a),
    radial-gradient(circle at 50% 70%, var(--kerze-hell), var(--kerze) 70%);
  background-size: 2px 100%, 100% 2px, auto;
  background-position: 50% 0, 0 50%, 0 0;
  background-repeat: no-repeat;
}

/* Tür */
.haus__tuer {
  position: relative;
  width: 66cqw;
  aspect-ratio: 1 / 1.32;
  margin-top: 8cqw;
  border-radius: 34cqw 34cqw 0 0;
  background: #2a1a10;
  box-shadow: 0 0 0 3cqw rgba(255, 255, 255, 0.18);
  perspective: 600px;
  isolation: isolate;
}
.haus--breit .haus__tuer { width: 40cqw; border-radius: 20cqw 20cqw 0 0; box-shadow: 0 0 0 1.6cqw rgba(255, 255, 255, 0.18); margin-top: 4cqw; }
.tuer--eckig .haus__tuer { border-radius: 2px 2px 0 0; }

.haus__licht {
  position: absolute; inset: 0;
  border-radius: inherit;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 62%, #fff4cf 0, var(--kerze) 38%, #c27a2a 100%);
  overflow: hidden;
}
.haus__licht svg { width: 42%; color: #fff8e2; }

/* Nach dem Aufschwingen: kein 3D mehr, der Flügel entfällt. Das verhindert Flackern des Lichts. */
.haus.ist-fertig .haus__tuer { perspective: none; isolation: auto; }
.haus.ist-fertig .haus__fluegel { display: none; }

.haus__fluegel {
  position: absolute; inset: 0;
  border-radius: inherit;
  display: grid; place-items: center;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.2), transparent 12% 88%, rgba(0, 0, 0, 0.25)),
    repeating-linear-gradient(to right, transparent 0 7cqw, rgba(0, 0, 0, 0.12) 7cqw calc(7cqw + 1px)),
    var(--tuer, var(--tanne));
  transform-origin: left center;
  transition: transform 750ms cubic-bezier(0.3, 0.7, 0.2, 1), box-shadow 750ms ease;
  backface-visibility: hidden;
  box-shadow: inset 0 0 0 1.5cqw rgba(0, 0, 0, 0.18);
}
.tuer--rot { --tuer: #7e2a24; }
.tuer--blau { --tuer: #20375a; }
.tuer--holz { --tuer: #6b4630; }
.tuer--gruen { --tuer: var(--tanne); }

.haus__zahl {
  font-family: var(--schrift-zier);
  font-weight: 700;
  font-size: 40cqw;
  line-height: 1;
  color: var(--kerze);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
  margin-top: 6cqw;
}
.haus--breit .haus__zahl { font-size: 24cqw; margin-top: 3cqw; }
.haus--breit .haus__zahl--wort { font-size: 8.5cqw; margin-top: 0; }

/* Türknauf */
.haus__fluegel::after {
  content: "";
  position: absolute;
  right: 10%; top: 80%;
  width: 6cqw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2c4, #b88a2e);
}
.haus--breit .haus__fluegel::after { width: 3cqw; }

.haus__knopf:hover .haus__fluegel { transform: rotateY(-14deg); }
.haus.ist-offen .haus__fluegel,
.haus.ist-offen .haus__knopf:hover .haus__fluegel {
  transform: rotateY(-112deg);
  box-shadow: inset 0 0 0 1.5cqw rgba(0, 0, 0, 0.3);
  /* Nach dem Aufschwingen ganz ausblenden: der Flügel ist von hinten ohnehin unsichtbar,
     würde aber sonst weiter in 3D berechnet und an den Kanten flackern. */
  visibility: hidden;
  transition: transform 750ms cubic-bezier(0.3, 0.7, 0.2, 1), box-shadow 750ms ease, visibility 0s linear 750ms;
}
.haus.ist-zu .haus__knopf:hover .haus__fluegel { transform: none; }
.haus.ist-zu .haus__knopf { cursor: default; }

.haus.wackelt .haus__fluegel { animation: wackeln 420ms ease; }
@keyframes wackeln {
  0%, 100% { transform: rotateY(0); }
  25% { transform: rotateY(-9deg); }
  55% { transform: rotateY(-4deg); }
  80% { transform: rotateY(-7deg); }
}

/* Heiligabend: Stern über dem Giebel */
.haus--heiligabend .haus__dach { overflow: visible; }
.haus--heiligabend::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  translate: -50% -78%;
  width: 18%; aspect-ratio: 1;
  background: var(--kerze);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 10px rgba(245, 196, 94, 0.8));
  z-index: 1;
}
.haus--heiligabend.ist-heute::before { display: none; }

/* Stern auf dem Dach / Heute-Markierung */
.haus__schild {
  position: absolute;
  left: 50%; top: 0;
  translate: -50% -60%;
  z-index: 3;
  padding: 3px 10px 4px;
  border-radius: 999px;
  background: var(--kerze);
  color: var(--tinte);
  font-weight: 700;
  font-size: max(0.78rem, 11cqw);
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 0 22px 4px rgba(245, 196, 94, 0.5);
  pointer-events: none;
}
.haus--breit .haus__schild { font-size: max(0.78rem, 6cqw); }
.haus.ist-heute .haus__tuer { box-shadow: 0 0 0 3cqw rgba(255, 255, 255, 0.18), 0 0 26px 6px rgba(245, 196, 94, 0.45); }
.haus.ist-heute:not(.ist-offen) .haus__tuer { animation: leuchten 2.6s ease-in-out infinite; }
@keyframes leuchten {
  50% { box-shadow: 0 0 0 3cqw rgba(255, 255, 255, 0.18), 0 0 40px 12px rgba(245, 196, 94, 0.7); }
}

/* ---------- Programm ---------- */

.programm {
  background: var(--frost);
  color: var(--tinte);
  padding: clamp(56px, 8vw, 100px) 0;
}
.programm .abschnitt__kopf p { color: var(--tinte-leise); }
.programm .abschnitt__kopf .knopf { margin-top: 1.2rem; }

.programm__liste {
  list-style: none;
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding: 0;
  width: min(100% - 2 * var(--rand), 54rem);
}
.tagzeile {
  display: grid;
  grid-template-columns: clamp(3.4rem, 12vw, 5.2rem) 1fr;
  gap: 0 clamp(14px, 3vw, 32px);
  padding: 18px 0;
  border-top: 1px solid rgba(23, 37, 57, 0.14);
}
.tagzeile:last-child { border-bottom: 1px solid rgba(23, 37, 57, 0.14); }
.tagzeile__datum { text-align: right; }
.tagzeile__zahl {
  display: block;
  font-family: var(--schrift-zier);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 0.9;
  color: var(--backstein);
}
.tagzeile__wochentag { font-size: 0.95rem; color: var(--tinte-leise); }
.tagzeile__besonders {
  display: inline-block;
  margin-bottom: 6px;
  padding: 1px 10px 2px;
  border-radius: 999px;
  background: var(--tanne);
  color: var(--schnee);
  font-size: 0.85rem;
  font-weight: 700;
}
.tagzeile--sonntag .tagzeile__zahl { color: var(--tanne); }
.tagzeile ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tagzeile li { line-height: 1.35; }
.tagzeile__zeit { font-weight: 700; margin-right: 0.4em; }
.tagzeile__titel { font-weight: 500; }
.tagzeile__wer { display: block; font-size: 0.95rem; color: var(--tinte-leise); }
.tagzeile__frei { color: var(--tinte-leise); font-style: italic; }
.tagzeile__oeffnen {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--backstein);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.marke {
  display: inline-block;
  margin-left: 6px;
  padding: 0 8px 1px;
  border-radius: 6px;
  background: rgba(154, 59, 44, 0.12);
  color: var(--backstein-dunkel);
  font-size: 0.8rem;
  font-weight: 700;
  vertical-align: 2px;
}

/* ---------- Mitmachen ---------- */

.mitmachen {
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(245, 196, 94, 0.14), transparent 70%),
    var(--tanne);
  padding: clamp(56px, 8vw, 100px) var(--rand);
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
}
@media (min-width: 860px) {
  .mitmachen { grid-template-columns: minmax(0, 30rem) minmax(0, 28rem); }
}
.mitmachen h2 {
  font-family: var(--schrift-zier);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}
.mitmachen__inhalt p { margin-top: 1rem; color: #e3ece6; }
.mitmachen__kontakt a { color: var(--kerze); font-weight: 700; }
.mitmachen__dabei h3 { font-size: 1.15rem; color: var(--kerze); }
.dabei {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  color: #e3ece6;
}
.dabei span::before {
  content: "✶";
  margin-right: 0.45em;
  color: var(--kerze);
  font-size: 0.8em;
}

/* ---------- Fuß ---------- */

.fuss {
  padding: 36px var(--rand) 48px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--frost-dunkel);
  background: var(--silhouette);
}
.fuss nav { margin-top: 10px; display: flex; gap: 20px; justify-content: center; }
.fuss a { color: var(--frost); }

/* ---------- Dialog ---------- */

.tag {
  width: min(100% - 24px, 40rem);
  max-height: min(88svh, 900px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--schnee);
  color: var(--tinte);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.tag[open] { display: flex; flex-direction: column; animation: aufgehen 380ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.tag::backdrop { background: rgba(6, 12, 22, 0.72); backdrop-filter: blur(3px); }
.tag[open]::backdrop { animation: einblenden 300ms ease; }
@keyframes aufgehen { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
@keyframes einblenden { from { opacity: 0; } }

.tag__kopf {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px 18px 22px 24px;
  background:
    radial-gradient(260px 160px at 12% 60%, rgba(245, 196, 94, 0.28), transparent 70%),
    var(--nacht);
  color: var(--schnee);
}
.tag__zahl {
  font-family: var(--schrift-zier);
  font-weight: 700;
  font-size: 4.4rem;
  line-height: 0.85;
  color: var(--kerze);
  min-width: 1.1em;
  text-align: center;
}
.tag__zahl--wort { font-size: 2.4rem; }
.tag__besonders { color: var(--kerze); font-weight: 700; font-size: 0.95rem; }
.tag__besonders:empty { display: none; }
.tag__titel { font-size: clamp(1.4rem, 4vw, 1.75rem); font-weight: 700; }
.tag__zu {
  align-self: start;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.tag__zu:hover { background: rgba(255, 255, 255, 0.2); }
.tag__zu svg { width: 22px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }

.tag__inhalt {
  overflow-y: auto;
  padding: 8px 24px 8px;
  overscroll-behavior: contain;
}
.termin {
  padding: 20px 0;
  border-bottom: 1px solid rgba(23, 37, 57, 0.12);
}
.termin:last-child { border-bottom: 0; }
.termin__zeit {
  display: inline-block;
  font-weight: 700;
  color: var(--backstein);
  font-size: 1rem;
}
.termin__titel { font-size: 1.35rem; font-weight: 700; margin-top: 2px; }
.termin__daten { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 1rem; }
.termin__daten dt { color: var(--tinte-leise); }
.termin__daten dd { margin: 0; }
.termin__text { margin-top: 10px; }
.termin__aktionen { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.termin__aktionen .knopf { background: var(--backstein); color: var(--schnee); }
.termin__aktionen .knopf:hover { background: var(--backstein-dunkel); }
.termin__aktionen svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }
.termin__plakat { display: block; margin-top: 14px; max-width: 260px; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 24px rgba(23, 37, 57, 0.2); }
.termin__plakat img { display: block; width: 100%; height: auto; }
.termin--leer { text-align: center; padding: 34px 6px; }
.termin--leer p + p { margin-top: 10px; color: var(--tinte-leise); }

.tag__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid rgba(23, 37, 57, 0.1);
  background: #eaeff4;
}
.tag__nav .knopf { background: transparent; color: var(--tinte); box-shadow: inset 0 0 0 1.5px rgba(23, 37, 57, 0.3); font-weight: 500; }
.tag__nav .knopf:hover { background: rgba(23, 37, 57, 0.06); }
.tag__nav .knopf[disabled] { visibility: hidden; }
.tag__nav svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hinweis (Toast) ---------- */

.hinweis {
  position: fixed;
  left: 50%; bottom: 24px;
  z-index: 40;
  translate: -50% 20px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--schnee);
  color: var(--tinte);
  font-weight: 500;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, translate 220ms ease;
}
.hinweis.sichtbar { opacity: 1; translate: -50% 0; }

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  .haus__fluegel { transition: none; }
  .haus.wackelt .haus__fluegel,
  .haus.ist-heute .haus__tuer,
  .tag[open], .tag[open]::backdrop { animation: none; }
  .dorf .fenster.an { animation: none; }
}

/* ---------- Druck ---------- */

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .kopf, .strasse, .mitmachen, .fuss, .sprunglink, .hinweis, .tag, [data-drucken], .tagzeile__oeffnen { display: none !important; }
  .programm { background: #fff; padding: 0; }
  .programm .abschnitt__kopf p { display: none; }
  .programm .abschnitt__kopf h2::after { content: " im Handorfer Adventskalender 2026"; font-size: 0.5em; }
  .tagzeile { break-inside: avoid; padding: 8px 0; }
  .tagzeile__zahl { font-size: 1.8rem; }
}

/* ---------- Impressum und Datenschutz ---------- */

.recht-kopf {
  padding: 22px var(--rand);
  background: var(--silhouette);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.recht-kopf a { color: var(--kerze); font-weight: 700; text-decoration: none; }
.recht-kopf a:hover, .recht-kopf a:focus-visible { text-decoration: underline; }

.recht {
  max-width: 46rem;
  margin: clamp(24px, 5vw, 56px) auto;
  padding: clamp(22px, 5vw, 48px) clamp(18px, 5vw, 52px);
  width: min(100% - 2 * var(--rand), 46rem);
  background: #fbf7ee;
  color: var(--tinte);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
.recht h1 {
  font-family: var(--schrift-zier);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.1rem);
  line-height: 1.1;
  color: var(--backstein-dunkel);
}
.recht h2 {
  font-family: var(--schrift-zier);
  font-weight: 700;
  font-size: 1.5rem;
  margin-top: 2rem;
  color: var(--backstein-dunkel);
}
.recht h3 { font-size: 1.1rem; margin-top: 1.2rem; }
.recht p, .recht ul { margin-top: 0.7rem; }
.recht ul { padding-left: 1.3rem; }
.recht li { margin-top: 0.3rem; }
.recht a { color: var(--backstein); overflow-wrap: anywhere; }
.recht address { font-style: normal; margin-top: 0.7rem; }
.recht .stand { color: var(--tinte-leise); font-size: 0.95rem; }
.recht .fehlt { background: #ffe08a; color: #5a3b00; padding: 0 4px; border-radius: 4px; }
.recht button {
  margin-top: 0.9rem;
  font: inherit; font-weight: 700;
  padding: 10px 18px;
  min-height: 44px;
  border: 0; border-radius: 999px;
  background: var(--backstein); color: #fff;
  cursor: pointer;
}
.recht button:hover { background: var(--backstein-dunkel); }
.recht button:focus-visible { outline: 3px solid var(--kerze); outline-offset: 2px; }
