/* Beecker Adventsfenster – öffentliche Seite
   Mobile first. Farben angelehnt an das Plakat: Tannengrün, Cremeweiß, Gold, Weihnachtsrot. */

@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }

:root {
  --tanne-950: #121b10;
  --tanne-900: #1a2617;
  --tanne-800: #1f2d1b;
  --tanne-700: #2b3d25;
  --tanne-600: #3a5031;
  --oliv: #56683f;
  --creme: #f6efe0;
  --creme-2: #efe5cf;
  --creme-3: #e4d6b8;
  --papier: #fbf7ee;
  --gold: #d9a441;
  --gold-hell: #f0c873;
  --gold-dunkel: #a8781f;
  --rot: #b23a2e;
  --rot-dunkel: #8e2b21;
  --text: #24301f;
  --text-2: #5a6352;
  --radius: 18px;
  --radius-s: 12px;
  --schatten: 0 1px 2px rgba(18, 27, 16, .08), 0 8px 24px rgba(18, 27, 16, .10);
  --schatten-gross: 0 2px 6px rgba(18, 27, 16, .12), 0 24px 48px rgba(18, 27, 16, .18);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tabbar-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--papier);
  overflow-x: hidden;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot-dunkel); text-underline-offset: 3px; }
a:hover { color: var(--rot); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; color: var(--tanne-800); margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--tanne-900); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Kopf ---------- */
.kopf {
  position: relative;
  color: var(--creme);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(240, 200, 115, .16), transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 100%, rgba(178, 58, 46, .18), transparent 70%),
    linear-gradient(180deg, var(--tanne-900), var(--tanne-800) 60%, var(--tanne-700));
  overflow: hidden;
  isolation: isolate;
}
.hauptnav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1120px; margin: 0 auto; padding: 14px 16px;
}
.marke { display: inline-flex; align-items: center; gap: 10px; color: var(--creme); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.marke:hover { color: var(--gold-hell); }
.marke-stern { width: 22px; height: 22px; fill: var(--gold); filter: drop-shadow(0 0 6px rgba(240, 200, 115, .6)); }
.hauptnav ul { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.hauptnav ul a { display: block; padding: 8px 14px; color: var(--creme); text-decoration: none; border-radius: 999px; font-weight: 600; font-size: .98rem; }
.hauptnav ul a:hover, .hauptnav ul a[aria-current="page"] { background: rgba(246, 239, 224, .12); color: var(--gold-hell); }

.held { position: relative; z-index: 2; text-align: center; padding: 20px 16px 96px; max-width: 900px; margin: 0 auto; }
.held-vor { margin: 0 0 .4em; font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-hell); font-weight: 700; }
.held-titel {
  color: var(--creme);
  font-style: italic; font-weight: 500;
  font-size: clamp(2.6rem, 11vw, 5.2rem);
  line-height: 1.02; letter-spacing: -.02em;
  margin: 0 0 .25em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
  overflow-wrap: anywhere;
}
.held-titel .jahr { display: block; font-style: normal; font-weight: 300; color: var(--gold); font-size: .52em; letter-spacing: .12em; margin-top: .15em; }
.held-unter { margin: 0; color: var(--creme-2); font-size: 1.05rem; }
.held-klein { padding: 8px 16px 84px; }
.held-klein .held-titel { font-size: clamp(2rem, 8vw, 3.2rem); }

/* Schnee */
.schnee { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.schnee i {
  position: absolute; top: -12px; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, .75); filter: blur(.4px);
  animation: fallen 14s linear infinite;
}
.schnee i:nth-child(3n) { width: 4px; height: 4px; opacity: .6; animation-duration: 18s; }
.schnee i:nth-child(4n) { width: 3px; height: 3px; opacity: .5; animation-duration: 22s; }
.schnee i:nth-child(1) { left: 4%; animation-delay: -2s; }
.schnee i:nth-child(2) { left: 11%; animation-delay: -9s; }
.schnee i:nth-child(3) { left: 17%; animation-delay: -4s; }
.schnee i:nth-child(4) { left: 23%; animation-delay: -13s; }
.schnee i:nth-child(5) { left: 30%; animation-delay: -6s; }
.schnee i:nth-child(6) { left: 36%; animation-delay: -1s; }
.schnee i:nth-child(7) { left: 42%; animation-delay: -11s; }
.schnee i:nth-child(8) { left: 49%; animation-delay: -7s; }
.schnee i:nth-child(9) { left: 55%; animation-delay: -15s; }
.schnee i:nth-child(10) { left: 61%; animation-delay: -3s; }
.schnee i:nth-child(11) { left: 67%; animation-delay: -10s; }
.schnee i:nth-child(12) { left: 72%; animation-delay: -5s; }
.schnee i:nth-child(13) { left: 78%; animation-delay: -12s; }
.schnee i:nth-child(14) { left: 83%; animation-delay: -8s; }
.schnee i:nth-child(15) { left: 88%; animation-delay: -14s; }
.schnee i:nth-child(16) { left: 93%; animation-delay: -2.5s; }
.schnee i:nth-child(17) { left: 97%; animation-delay: -9.5s; }
.schnee i:nth-child(18) { left: 46%; animation-delay: -16s; }
@keyframes fallen {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(14px, 220px, 0); }
  100% { transform: translate3d(-6px, 460px, 0); opacity: 0; }
}

/* Lichterkette */
.lichterkette {
  position: absolute; left: 0; right: 0; bottom: 46px; z-index: 2;
  display: flex; justify-content: space-between; padding: 0 2%;
  height: 26px;
}
.lichterkette::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px;
  border-bottom: 1.5px solid rgba(246, 239, 224, .25);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.lichterkette i {
  position: relative; top: 12px; width: 8px; height: 12px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--gold-hell);
  box-shadow: 0 0 8px 2px rgba(240, 200, 115, .7);
  animation: funkeln 3.2s ease-in-out infinite;
}
.lichterkette i:nth-child(odd) { top: 16px; }
.lichterkette i:nth-child(3n) { background: #f39a7f; box-shadow: 0 0 8px 2px rgba(243, 154, 127, .6); animation-delay: -1.1s; }
.lichterkette i:nth-child(4n) { animation-delay: -2s; }
.lichterkette i:nth-child(n+12) { display: none; }
@keyframes funkeln { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.vorschau-leiste {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: center;
  background: var(--gold); color: var(--tanne-900); padding: 8px 16px; font-size: .92rem;
}
.vorschau-leiste a { color: var(--tanne-900); font-weight: 700; }
.hinweis-banner { background: var(--rot); color: #fff; text-align: center; padding: 10px 16px; font-weight: 600; }

/* ---------- Abschnitte ---------- */
main { display: block; }
.abschnitt { max-width: 1120px; margin: 0 auto; padding: 40px 16px 8px; }
.abschnitt-kopf { max-width: 680px; margin-bottom: 20px; }
.abschnitt-kopf p { color: var(--text-2); }

/* Heute */
.heute-bereich { max-width: 1120px; margin: -36px auto 0; padding: 0 16px; position: relative; z-index: 3; }
.heute-karte {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgba(240, 200, 115, .30), transparent 45%),
    linear-gradient(160deg, #fffaf0, var(--creme));
  border: 1px solid rgba(168, 120, 31, .25);
  border-radius: 24px;
  padding: 22px 20px 20px;
  box-shadow: var(--schatten-gross);
}
.heute-kopf { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; padding-right: 56px; }
.heute-nr {
  flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--tanne-900);
  background: radial-gradient(circle at 35% 30%, var(--gold-hell), var(--gold) 60%, var(--gold-dunkel));
  box-shadow: 0 0 0 4px rgba(217, 164, 65, .2), 0 0 24px rgba(240, 200, 115, .8);
  animation: gluehen 2.8s ease-in-out infinite;
}
@keyframes gluehen { 0%, 100% { box-shadow: 0 0 0 4px rgba(217, 164, 65, .2), 0 0 18px rgba(240, 200, 115, .55); } 50% { box-shadow: 0 0 0 7px rgba(217, 164, 65, .14), 0 0 32px rgba(240, 200, 115, .95); } }
.heute-etikett { margin: 0 0 2px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rot); }
.heute-titel { font-size: clamp(1.45rem, 5.6vw, 2.1rem); margin: 0; overflow-wrap: anywhere; padding-right: 52px; }
.heute-kopf .heute-titel { padding-right: 0; }
.heute-adresse { margin: 8px 0 4px; font-size: 1.08rem; }
.heute-zeit { font-weight: 700; color: var(--tanne-700); }
.heute-hinweis { background: #fff3d6; border-left: 4px solid var(--gold); padding: 8px 12px; border-radius: 8px; margin: 10px 0; font-weight: 600; }
.heute-morgen { margin: 16px 0 0; padding-top: 12px; border-top: 1px dashed var(--creme-3); color: var(--text-2); font-size: .98rem; }
.heute-deko { position: absolute; right: 14px; top: 14px; width: 48px; opacity: .9; pointer-events: none; }
.countdown { display: flex; gap: 8px; margin: 14px 0 6px; flex-wrap: wrap; align-items: center; min-height: 1.5em; }
.countdown .cd-teil { background: var(--tanne-800); color: var(--creme); border-radius: 12px; padding: 8px 10px 6px; min-width: 64px; text-align: center; }
.countdown .cd-zahl { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown .cd-einheit { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; margin-top: 4px; }
.countdown .cd-label { width: 100%; font-weight: 700; color: var(--tanne-700); margin-bottom: 2px; }
.countdown .cd-offen { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--tanne-800); background: #e5efd9; padding: 8px 14px; border-radius: 999px; }
.countdown .cd-offen::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #4c9a3d; box-shadow: 0 0 0 4px rgba(76, 154, 61, .22); animation: funkeln 1.6s infinite; }

/* Knöpfe */
.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.knopf:active { transform: translateY(1px) scale(.99); }
.knopf-gold { background: linear-gradient(180deg, var(--gold-hell), var(--gold)); color: var(--tanne-900); box-shadow: 0 2px 0 var(--gold-dunkel), 0 6px 16px rgba(168, 120, 31, .3); }
.knopf-gold:hover { color: var(--tanne-900); box-shadow: 0 2px 0 var(--gold-dunkel), 0 8px 22px rgba(168, 120, 31, .45); }
.knopf-hell { background: #fff; color: var(--tanne-800); border: 1.5px solid var(--creme-3); }
.knopf-hell:hover { color: var(--tanne-900); border-color: var(--gold); }
.knopf-gruen { background: var(--tanne-700); color: var(--creme); }
.knopf-gruen:hover { background: var(--tanne-600); color: #fff; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; margin: 6px 0; }
.badge-rot { background: var(--rot); color: #fff; }

/* Einleitung */
.einleitung { display: grid; gap: 24px; align-items: start; }
.einleitung-text { font-size: 1.12rem; max-width: 680px; }
.einleitung-text p:first-child::first-letter {
  font-family: var(--serif); float: left; font-size: 3.4em; line-height: .85; padding: 6px 8px 0 0; color: var(--rot); font-weight: 600;
}
.plakat { display: block; max-width: 260px; text-decoration: none; color: var(--text-2); font-size: .9rem; }
.plakat img { border-radius: 12px; box-shadow: var(--schatten); transform: rotate(-1.5deg); transition: transform .3s; margin-bottom: 8px; }
.plakat:hover img { transform: rotate(0) scale(1.02); }

/* Karte */
.karte-rahmen { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); border: 1px solid var(--creme-3); background: var(--creme-2); }
.karte { height: min(68svh, 560px); min-height: 340px; width: 100%; background: #e9e4d6; }
.karte-klein { height: 280px; min-height: 0; border-radius: var(--radius); overflow: hidden; margin-top: 24px; box-shadow: var(--schatten); }
.karte-vollbild {
  position: absolute; right: 10px; top: 10px; z-index: 500;
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px;
  border-radius: 999px; border: 0; background: rgba(255, 255, 255, .95); color: var(--tanne-800); font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.karte-vollbild svg { width: 18px; height: 18px; fill: currentColor; }
.karte-rahmen.ist-vollbild { position: fixed; inset: 0; z-index: 1000; border-radius: 0; border: 0; }
.karte-rahmen.ist-vollbild .karte { height: 100%; height: 100dvh; max-height: none; }
body.karte-offen { overflow: hidden; }
.karte-nojs { padding: 16px; }
.legende { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 12px 0 0; font-size: .92rem; color: var(--text-2); }
.legende li { display: inline-flex; align-items: center; gap: 8px; }
.legende .pin { position: static; transform: none; width: 26px; height: 26px; font-size: .8rem; }

/* Marker */
.leaflet-container { font-family: var(--sans); }
.af-marker { background: none; border: 0; }
.pin {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  font-weight: 800; font-size: .95rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
  border: 2px solid #fff;
}
.pin > span { transform: rotate(45deg); }
.legende .pin { border-radius: 50%; }
.pin-future { background: var(--creme); color: var(--tanne-800); border-color: var(--tanne-700); }
.pin-past { background: var(--oliv); color: #fff; opacity: .82; }
.pin-today {
  width: 46px; height: 46px; font-size: 1.15rem;
  background: radial-gradient(circle at 35% 30%, var(--gold-hell), var(--gold) 60%, var(--gold-dunkel));
  color: var(--tanne-900); border-color: #fff;
  animation: gluehen 2.4s ease-in-out infinite;
}
.pin-abgesagt { background: #c9c3b6; color: #6d675c; text-decoration: line-through; }
.pin-entwurf { outline: 2px dashed var(--rot); outline-offset: 2px; }
.leaflet-marker-icon.af-today { z-index: 900 !important; }

/* Liste */
.fensterliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fl-knopf {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  background: #fff; border: 1px solid var(--creme-3); border-radius: 14px; padding: 10px 14px; min-height: 60px;
  cursor: pointer; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.fl-knopf:hover:not([disabled]) { border-color: var(--gold); box-shadow: var(--schatten); }
.fl-knopf[disabled] { cursor: default; opacity: .7; background: var(--creme); }
.fl-nr { flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; background: var(--creme-2); color: var(--tanne-800); }
.fl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fl-titel { font-weight: 700; overflow-wrap: anywhere; }
.fl-meta { font-size: .9rem; color: var(--text-2); overflow-wrap: anywhere; }
.fl-status { font-size: .85rem; font-weight: 700; color: var(--oliv); white-space: nowrap; }
.fl-today .fl-knopf { border: 2px solid var(--gold); background: linear-gradient(90deg, #fff7e3, #fff); box-shadow: 0 0 0 4px rgba(217, 164, 65, .15); }
.fl-today .fl-nr { background: var(--gold); color: var(--tanne-900); }
.fl-today .fl-status { color: var(--rot); }
.fl-past .fl-nr { background: var(--oliv); color: #fff; }
.fl-past .fl-titel { color: var(--text-2); }
.fl-abgesagt .fl-titel { text-decoration: line-through; }
.fl-abgesagt .fl-status { color: var(--rot); }
.entwurf { font-style: normal; font-size: .75rem; background: var(--rot); color: #fff; padding: 1px 6px; border-radius: 6px; vertical-align: middle; }

/* Kacheln */
.kachel-reihe { display: grid; gap: 12px; }
.kachel {
  position: relative; display: block; padding: 22px 56px 22px 22px; border-radius: var(--radius); text-decoration: none;
  color: var(--creme); background: linear-gradient(135deg, var(--tanne-800), var(--tanne-600)); box-shadow: var(--schatten); overflow: hidden;
}
.kachel::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 200, 115, .35), transparent 65%); }
.kachel-galerie { background: linear-gradient(135deg, var(--rot-dunkel), var(--rot)); }
.kachel:hover { color: #fff; transform: translateY(-2px); }
.kachel { transition: transform .2s; }
.kachel-titel { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.kachel-text { display: block; opacity: .9; }
.kachel-pfeil { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--gold-hell); }

/* Kalender */
.kalender { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; perspective: 1200px; }
.tuer { aspect-ratio: 3 / 4; }
.tuer button {
  position: relative; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--tanne-900); color: var(--creme); overflow: visible; transform-style: preserve-3d;
}
.tuer button[disabled] { cursor: default; }
.tuer-hinten {
  position: absolute; inset: 0; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, #4b3a1a, var(--tanne-950));
}
.tuer-hinten img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tuer-hinten .fenster-svg { width: 46%; }
.tuer-ort {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 8px; font-size: .78rem; font-weight: 700; line-height: 1.2; text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72)); color: #fff; overflow-wrap: anywhere;
}
.tuer-fluegel {
  position: absolute; inset: 0; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 120%, rgba(240, 200, 115, .18), transparent 60%),
    linear-gradient(160deg, var(--tanne-600), var(--tanne-800));
  border: 1.5px solid rgba(240, 200, 115, .35);
  transform-origin: left center;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
  backface-visibility: hidden;
  box-shadow: inset 0 0 0 5px rgba(0, 0, 0, .12);
}
.tuer-fluegel::before { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px var(--gold-hell); }
.tuer-zahl { font-family: var(--serif); font-size: clamp(1.8rem, 9vw, 2.6rem); font-weight: 600; color: var(--creme); line-height: 1; }
.tuer-tag { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-hell); margin-top: 4px; }
.tuer:nth-child(4n+2) .tuer-fluegel { background: linear-gradient(160deg, #8e3a2e, var(--rot-dunkel)); }
.tuer:nth-child(5n+3) .tuer-fluegel { background: linear-gradient(160deg, #5f6d44, #3f4b2c); }
.tuer-past .tuer-fluegel { transform: rotateY(-108deg); box-shadow: none; }
.tuer-past button:hover .tuer-fluegel { transform: rotateY(-115deg); }
.tuer-today .tuer-fluegel { border: 2px solid var(--gold); box-shadow: 0 0 0 3px rgba(217, 164, 65, .35), 0 0 30px rgba(240, 200, 115, .55); animation: gluehen 2.6s infinite; }
.tuer-today button:hover .tuer-fluegel, .tuer-today button:focus-visible .tuer-fluegel { transform: rotateY(-35deg); }
.tuer-future button:not([disabled]):hover .tuer-fluegel { transform: rotateY(-14deg); }
.tuer-heute { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); z-index: 3; background: var(--rot); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.tuer-abgesagt .tuer-ort { text-decoration: line-through; }

/* Fenster-Illustration */
.fenster-svg .fs-rahmen { fill: #6b4a24; }
.fenster-svg .fs-licht { fill: #f4c86a; }
.fenster-svg .fs-sprosse { stroke: #6b4a24; stroke-width: 4; }
.fenster-svg .fs-stern { fill: #fff6d8; }
.fenster-svg .fs-bank { fill: #f6efe0; }
.fenster-svg.gross { filter: drop-shadow(0 0 12px rgba(244, 200, 106, .7)); }

/* Galerie */
.galerie-raster { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.g-bild { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--creme-2); }
.g-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-bild:hover img { transform: scale(1.04); }
.g-tag { position: absolute; left: 8px; top: 8px; background: rgba(31, 45, 27, .85); color: var(--creme); font-weight: 800; border-radius: 999px; padding: 2px 10px; font-size: .85rem; }
.g-gruppe { margin-bottom: 32px; }
.g-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.g-kopf h2 { font-size: 1.3rem; margin: 0; }
.g-kopf p { margin: 0; color: var(--text-2); font-size: .95rem; }
.g-nr { flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--tanne-800); color: var(--gold-hell); font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.jahre { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.jahre a { padding: 8px 16px; border-radius: 999px; background: var(--creme-2); text-decoration: none; color: var(--tanne-800); font-weight: 700; }
.jahre a[aria-current] { background: var(--tanne-800); color: var(--creme); }
.leer { text-align: center; padding: 40px 16px; color: var(--text-2); }
.leer .fenster-svg { width: 90px; margin: 0 auto 16px; }

/* Detail */
.detail { max-width: 760px; }
.detail-kopf h2 { margin-top: 10px; }
.status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 800; letter-spacing: .04em; margin-right: 6px; }
.status-today { background: var(--gold); color: var(--tanne-900); }
.status-past { background: var(--oliv); color: #fff; }
.status-future { background: var(--creme-2); color: var(--tanne-800); }
.status-entwurf, .status-abgesagt { background: var(--rot); color: #fff; }
.fakten { display: grid; gap: 2px; margin: 16px 0; background: #fff; border-radius: var(--radius-s); border: 1px solid var(--creme-3); overflow: hidden; }
.fakten div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 16px; }
.fakten div + div { border-top: 1px solid var(--creme-2); }
.fakten dt { font-weight: 700; color: var(--text-2); font-size: .92rem; }
.fakten dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.beschreibung { margin: 20px 0; font-size: 1.08rem; }
.detail .galerie-raster { margin-top: 20px; }
.blaettern { display: flex; justify-content: space-between; gap: 12px; margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--creme-3); font-weight: 700; }
.blaettern a { text-decoration: none; padding: 8px 0; }
.rechtstext { max-width: 760px; }
.rechtstext p:first-child { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }

/* Dialog (Detailansicht) */
.dialog {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%; max-height: 92dvh;
  border-radius: 24px 24px 0 0; background: var(--papier); color: var(--text); box-shadow: var(--schatten-gross);
  overflow: hidden;
}
.dialog[open] { animation: hochfahren .32s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; }
.dialog::backdrop { background: rgba(18, 27, 16, .55); backdrop-filter: blur(2px); }
@keyframes hochfahren { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.dialog-innen { overflow-y: auto; overscroll-behavior: contain; padding: 0 0 calc(16px + env(safe-area-inset-bottom)); }
.dlg-kopf {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 18px 64px 14px 18px;
  background: linear-gradient(160deg, var(--tanne-800), var(--tanne-700)); color: var(--creme);
}
.dlg-kopf::before { content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(246, 239, 224, .35); }
.dlg-nr { flex: 0 0 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.4rem; background: var(--creme); color: var(--tanne-800); }
.dlg-today .dlg-nr { background: radial-gradient(circle at 35% 30%, var(--gold-hell), var(--gold)); color: var(--tanne-900); }
.dlg-past .dlg-nr { background: var(--oliv); color: #fff; }
.dlg-kopf h2 { color: var(--creme); font-size: 1.35rem; margin: 0; overflow-wrap: anywhere; }
.dlg-datum { margin: 0; color: var(--gold-hell); font-size: .92rem; font-weight: 600; }
.dlg-zu {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(246, 239, 224, .14); color: var(--creme); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.dlg-zu:hover { background: rgba(246, 239, 224, .26); }
.dlg-rumpf { padding: 16px 18px 4px; }
.dlg-rumpf .fakten { margin-top: 0; }
.dlg-bilder { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 18px 8px; margin: 0 -0px; }
.dlg-bilder a { flex: 0 0 72%; max-width: 320px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; scroll-snap-align: start; background: var(--creme-2); }
.dlg-bilder img { width: 100%; height: 100%; object-fit: cover; }
.dlg-mehr { display: inline-block; margin-top: 12px; font-weight: 700; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 14, 9, .94); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100vw; max-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 56px 8px 16px; }
.lightbox img { max-width: calc(100vw - 16px); max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: var(--creme); margin-top: 10px; text-align: center; padding: 0 12px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-zu { top: 10px; right: 10px; }
.lb-vor { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-nach { right: 8px; top: 50%; transform: translateY(-50%); }

/* Fuß */
.fuss { margin-top: 56px; background: var(--tanne-900); color: var(--creme-2); text-align: center; padding: 40px 16px 32px; }
.fuss-logo { margin: 0 auto 16px; width: 96px; opacity: .92; }
.fuss-text { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--creme); }
.fuss-klein { font-size: .88rem; opacity: .75; margin: 0 0 8px; }
.fuss a { color: var(--gold-hell); }
.fuss-links { list-style: none; padding: 0; margin: 16px 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 20px; }
.fuss-links a { display: inline-block; padding: 6px 0; }

/* Untere Navigationsleiste (Handy) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(26, 38, 23, .97); border-top: 1px solid rgba(240, 200, 115, .25);
  backdrop-filter: blur(8px);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--creme-2); text-decoration: none; font-size: .75rem; font-weight: 700; }
.tabbar svg { width: 24px; height: 24px; fill: currentColor; }
.tabbar a[aria-current], .tabbar a:hover { color: var(--gold-hell); }

/* ---------- größere Bildschirme ---------- */
@media (min-width: 520px) {
  .kalender { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .galerie-raster { grid-template-columns: repeat(3, 1fr); }
  .lichterkette i:nth-child(n+12) { display: block; }
}
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .hauptnav ul { display: flex; }
  .held { padding: 40px 16px 130px; }
  .lichterkette { bottom: 66px; }
  .heute-karte > .heute-titel { padding-right: 110px; }
  .heute-bereich { margin-top: -56px; }
  .heute-karte { padding: 32px 36px 28px; }
  .heute-deko { width: 90px; right: 32px; top: 26px; }
  .heute-kopf { padding-right: 110px; }
  .heute-nr { width: 72px; height: 72px; font-size: 2rem; }
  .einleitung { grid-template-columns: 1fr 260px; gap: 40px; }
  .fensterliste { grid-template-columns: repeat(2, 1fr); }
  .kachel-reihe { grid-template-columns: 1fr 1fr; }
  .kalender { grid-template-columns: repeat(6, 1fr); }
  .galerie-raster { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .dialog { margin: auto; max-width: 640px; border-radius: 24px; max-height: 88vh; }
  .dlg-kopf::before { display: none; }
  .abschnitt { padding-top: 56px; }
}
@media (min-width: 1040px) {
  .fensterliste { grid-template-columns: repeat(3, 1fr); }
}

/* Teilen */
.knopf svg { width: 20px; height: 20px; flex: none; }
.knopf-whatsapp { background: #1f8f4e; color: #fff; box-shadow: 0 2px 0 #166a3a, 0 6px 16px rgba(31, 143, 78, .28); }
.knopf-whatsapp:hover { background: #1a7d44; color: #fff; }
.knopf.ist-ok { border-color: #1f8f4e; color: #166a3a; }
.teilen {
  display: grid; gap: 18px; margin: 28px 0; padding: 18px;
  background: linear-gradient(160deg, var(--tanne-800), var(--tanne-950)); color: var(--creme);
  border-radius: var(--radius); box-shadow: var(--schatten-gross);
}
.teilen h3 { margin: 0 0 4px; color: #fff; font-family: var(--serif); font-size: 1.45rem; }
.teilen p { margin: 0; color: var(--creme-2); }
.teilen .knopfreihe { margin-top: 14px; }
.teilen .knopf-hell { background: rgba(255, 255, 255, .08); color: var(--creme); border-color: rgba(246, 239, 224, .35); }
.teilen .knopf-hell:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: var(--gold-hell); }
.teilen .knopf.ist-ok { border-color: #7fd39f; color: #b9f0cb; }
.teilen-bild { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 26px rgba(0, 0, 0, .45); transform: rotate(-1.2deg); transition: transform .2s; }
.teilen-bild:hover { transform: rotate(0) scale(1.01); }
.teilen-bild img { display: block; width: 100%; height: auto; }
@media (min-width: 760px) {
  .teilen { grid-template-columns: 1fr 1.05fr; align-items: center; padding: 24px; gap: 26px; }
}
.dlg-teilen { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--creme-3); }
.dlg-teilen-titel { margin: 0; font-weight: 700; color: var(--text-2); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.dlg-teilen .knopfreihe { margin-top: 10px; }
.heute-teilen { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; }
.heute-teilen a.heute-story { color: var(--tanne-700); }
.heute-teilen a, .heute-teilen button {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; min-height: 40px;
  background: none; border: 0; font: inherit; font-weight: 700; color: var(--tanne-700); cursor: pointer; text-decoration: none;
}
.heute-teilen a { color: #1a7d44; }
.heute-teilen a:hover, .heute-teilen button:hover { text-decoration: underline; }
.heute-teilen svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .schnee { display: none; }
}

@media print {
  .tabbar, .hauptnav, .schnee, .lichterkette, .karte-rahmen, .fuss-links { display: none !important; }
  .kopf { background: none; color: #000; }
  .held-titel { color: #000; }
}
