@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-full-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --pine: #1f4a35;
  --pine-dark: #12301f;
  --pine-soft: #e7efe9;
  --berry: #a3212b;
  --berry-dark: #7a1219;
  --gold: #c99a2e;
  --gold-soft: #f6ecd2;
  --paper: #fbf7ee;
  --card: #ffffff;
  --ink: #23251f;
  --muted: #6b6a62;
  --line: #e7dfcc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 48, 31, 0.06), 0 6px 20px rgba(18, 48, 31, 0.08);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --night: #172640;
  --gold-light: #f2c879;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--berry); }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ---------- Kopfbereich ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 14px 24px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 20, 40, 0.88) 0%, rgba(10, 20, 40, 0.55) 40%, rgba(10, 20, 40, 0.15) 75%),
    #1b2f55 url("header.svg") center 78% / cover no-repeat;
}
.hero-inner { position: relative; z-index: 2; margin-right: auto; }
.kicker {
  margin: 0 0 2px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9d7ee;
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 10px rgba(8, 16, 34, 0.6);
}
.hero h1 a { color: inherit; text-decoration: none; }
.hero h1 .t1 { font-style: italic; font-weight: 400; color: var(--gold-light); }
.tabs {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 2px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(8, 16, 34, 0.25);
  white-space: nowrap;
}
.tabs a {
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--night);
  font-weight: 800;
  font-size: 0.95rem;
}
.tabs a:hover { background: #eef2f8; }
.tabs a[aria-current="page"] { background: var(--night); color: #fff; }

.wa-link {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(10, 20, 40, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
}
.wa-link:hover { background: rgba(10, 20, 40, 0.65); }
.wa-link svg { width: 18px; height: 18px; flex-shrink: 0; }

@media (max-width: 900px) {
  .wa-link { width: 44px; padding: 0; }
  .wa-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (max-width: 640px) {
  .hero { flex-wrap: wrap; padding: 12px 16px 14px; gap: 10px; background-position: center 82%; }
  .hero-inner { flex: 1; min-width: 0; }
  .hero h1 { font-size: 1.45rem; }
  .kicker { font-size: 0.62rem; letter-spacing: 0.1em; }
  .k-year { display: none; }
}

/* sanfter Schneefall im Kopfbereich */
.snow, .snow::after {
  position: absolute;
  inset: -240px 0 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(3px 3px at 20px 30px, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 90px 80px, #fff 50%, transparent 52%),
    radial-gradient(3.5px 3.5px at 160px 20px, #fff 50%, transparent 52%),
    radial-gradient(2.5px 2.5px at 230px 100px, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 290px 50px, #fff 50%, transparent 52%),
    radial-gradient(3px 3px at 60px 150px, #fff 50%, transparent 52%),
    radial-gradient(2.5px 2.5px at 200px 180px, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 320px 200px, #fff 50%, transparent 52%),
    radial-gradient(2.5px 2.5px at 130px 120px, #fff 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 250px 30px, #fff 50%, transparent 52%),
    radial-gradient(3px 3px at 40px 210px, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 180px 70px, #fff 50%, transparent 52%),
    radial-gradient(2.4px 2.4px at 300px 140px, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 110px 15px, #fff 50%, transparent 52%);
  background-size: 260px 240px;
  animation: snowfall 9s linear infinite;
}
.snow::after {
  content: "";
  inset: 0;
  background-size: 260px 240px;
  background-position: 70px 40px;
  opacity: 0.7;
  animation-duration: 14s;
}
@keyframes snowfall { to { transform: translateY(240px); } }
@media (prefers-reduced-motion: reduce) { .snow, .snow::after { animation: none; } }

.wa-card {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.wa-card:hover { border-color: #25d366; }
.wa-card svg { width: 28px; height: 28px; flex-shrink: 0; color: #1da851; }
.wa-card b { display: block; color: var(--night); }
.wa-card span { font-size: 0.88rem; color: var(--muted); }

/* ---------- Karten-Seite ---------- */
.map-page { position: fixed; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
.map-layout { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#map { position: relative; flex: 1; min-height: 0; background: #eef3f8; }
.leaflet-container { font-family: var(--font); }
.map-wa { padding: 16px 16px 28px; }



/* Winterkarte: normale Kacheln, leicht entsättigt; Schnee + Schlitten liegen in eigener Ebene unter den Kugeln */
.osm-tiles { filter: saturate(0.7) brightness(1.04); }
.sat-tiles { filter: grayscale(0.8) brightness(1.7) contrast(1.3); }
.sat-roads { opacity: 0.85; }
.map-buttons a { display: grid !important; place-items: center; color: var(--night) !important; }
.map-buttons svg { width: 18px; height: 18px; }
.map-buttons a.busy svg { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.view-toggle { display: flex; padding: 3px; gap: 2px; background: #fff; border-radius: 999px; box-shadow: 0 2px 8px rgba(23, 38, 64, 0.25); }
.view-toggle button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font: inherit; font-weight: 800; font-size: 0.85rem; color: var(--night); cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: var(--night); color: #fff; }
.winter-layer { position: absolute; left: 0; top: 0; overflow: hidden; pointer-events: none; box-shadow: inset 0 0 40px 6px rgba(255, 255, 255, 0.75); }
.winter-layer canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sleigh { position: absolute; left: 0; top: 0; width: 220px; opacity: 0; will-change: transform; pointer-events: none; transition: opacity 0.4s; }
.sleigh.is-flying { opacity: 1; pointer-events: auto; cursor: pointer; }
.sleigh svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 4px rgba(23, 38, 64, 0.3)); overflow: visible; }
.sleigh .legs, .sleigh .head, .sleigh .arm, .sleigh .nose-glow, .sleigh .rd { transform-box: fill-box; }
.sleigh .rd { animation: rd-bounce 0.42s ease-in-out infinite alternate; }
.sleigh .legs { transform-origin: 50% 0; animation: rd-gallop 0.42s ease-in-out infinite alternate; }
.sleigh .lb { animation-direction: alternate-reverse; }
.sleigh .head { transform-origin: 0 100%; animation: rd-nod 0.42s ease-in-out infinite alternate; }
.sleigh .rd-1, .sleigh .rd-1 .legs, .sleigh .rd-1 .head { animation-delay: -0.14s; }
.sleigh .rd-2, .sleigh .rd-2 .legs, .sleigh .rd-2 .head { animation-delay: -0.28s; }
.sleigh .nose-glow { animation: rd-nose 1.1s ease-in-out infinite alternate; }
.sleigh .arm { transform-origin: 0 100%; animation: santa-wave 0.7s ease-in-out infinite alternate; }
.hoho {
  position: absolute; left: 4%; top: -34px;
  padding: 3px 10px; border-radius: 12px; background: #fff; color: var(--berry);
  font-weight: 900; font-size: 0.9rem; white-space: nowrap; box-shadow: 0 2px 8px rgba(23, 38, 64, 0.25);
  transform: scaleX(var(--dir, 1)); opacity: 0; pointer-events: none;
}
.sleigh.says-hoho .hoho { animation: hoho 1.8s ease-out; }
@keyframes rd-bounce { from { transform: translateY(-2px); } to { transform: translateY(2.5px); } }
@keyframes rd-gallop { from { transform: rotate(-30deg); } to { transform: rotate(24deg); } }
@keyframes rd-nod { from { transform: rotate(-7deg); } to { transform: rotate(5deg); } }
@keyframes rd-nose { from { opacity: 0.35; } to { opacity: 1; } }
@keyframes santa-wave { from { transform: rotate(-18deg); } to { transform: rotate(16deg); } }
@keyframes hoho { 0% { opacity: 0; translate: 0 6px; } 15%, 75% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -10px; } }
@media (max-width: 640px) { .sleigh { width: 160px; } }

/* Leiste „Als Nächstes“ */
.next-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(18, 48, 31, 0.06);
  position: relative;
  z-index: 2;
}
.next-info { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.next-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.next-nav .tabs { background: #eef2f8; box-shadow: none; }
.next-nav .tabs a:hover { background: #dfe6f1; }
.next-nav .wa-link { background: transparent; border-color: var(--line); color: var(--night); }
.next-nav .wa-link:hover { background: #eef2f8; }
.next-nav .wa-link svg { color: #1da851; }
.subbar-only { padding-top: 10px; padding-bottom: 10px; }
@media (min-width: 761px) { .hero-nav { display: none; } .hero { min-height: 96px; } }
.tabs a { display: inline-flex; align-items: center; gap: 6px; }
.tabs a svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 760px) {
  .hero-nav { display: none; }
  .next-bar { gap: 10px; }
  .next-nav { margin-left: auto; }
  .next-nav .wa-link { display: none; }
  .next-nav .tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; border-radius: 18px; padding: 3px; }
  .next-nav .tabs .tab-wa { display: inline-flex; }
  .next-nav .tabs a { justify-content: center; padding: 7px 10px; font-size: 0.85rem; }
  .next-nav .tabs a.tab-main { grid-column: 1 / -1; }
  .subbar-only { padding: 8px 16px; }
  .subbar-only .next-nav .tabs { display: flex; border-radius: 999px; }
  .subbar-only .next-nav .tabs a.tab-main { padding: 7px 16px; }
  .next-nav .tab-icon .tab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .next-nav .tab-icon svg { width: 21px; height: 21px; }
}
.next-date {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffe28a, #d4a020 55%, #8a6206);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  color: #4a3000;
  text-align: center;
  line-height: 1;
}
.next-date b { font-weight: 900; font-size: 1.45rem; font-variant-numeric: lining-nums; }
.next-date small { display: block; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 1px; }
.next-main { min-width: 0; }
.next-main .eyebrow { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--berry); }
.next-main h2 { margin: 1px 0 0; font-size: 1.12rem; line-height: 1.25; color: var(--night); }
.next-main p { margin: 1px 0 0; font-size: 0.9rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-main p a { color: var(--berry); font-weight: 700; }
.next-actions { display: flex; gap: 6px; }
@media (max-width: 760px) {
  .next-bar { padding: 12px 16px; }
  .next-info { gap: 12px; }
  .next-date { width: 50px; height: 50px; }
  .next-date b { font-size: 1.25rem; }
  .nb-extra { display: none; }
  .next-actions { display: none; }
}

.today-card {
  background: var(--night);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.today-card .eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.today-card h2 { margin: 4px 0 2px; font-size: 1.35rem; line-height: 1.25; }
.today-card p { margin: 4px 0 0; color: #d9e2f0; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.today-card > .btn { margin-top: 12px; }
.today-card .small { font-size: 0.85rem; color: #aebdd6; margin-top: 10px; }
.today-card .small a { color: var(--gold-light); font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  background: var(--berry);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--berry-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-light { background: #fff; color: var(--pine-dark); }
.btn-light:hover { background: var(--gold-soft); }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.6); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn-ghost { background: transparent; color: var(--pine); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--pine-soft); }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: 0.9rem; }

.list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 22px 2px 8px;
}
.list-head h2 { margin: 0; font-size: 1.05rem; color: var(--pine-dark); }
.list-head label { font-size: 0.85rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }

.day-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.day-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.day-item:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.day-item.is-next { border: 2px solid var(--gold); background: #fffaf0; box-shadow: 0 0 0 4px rgba(201, 154, 46, 0.18); }
.day-item.is-past { opacity: 0.55; }
.day-item.is-free { cursor: default; background: transparent; border-style: dashed; }
.day-item.is-free:hover { box-shadow: none; border-color: var(--line); }

.door {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
  color: #fff;
  background: linear-gradient(145deg, #b8323b, var(--berry-dark));
  box-shadow: inset 0 0 0 2px rgba(201, 154, 46, 0.7);
}
.is-free .door { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }

.day-meta { font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.day-meta .badge { margin-left: 4px; }
.day-name { font-weight: 800; color: var(--pine-dark); line-height: 1.3; }
.day-offer { font-size: 0.92rem; color: var(--ink); margin-top: 2px; }
.day-addr { font-size: 0.85rem; color: var(--muted); }

.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--gold-soft);
  color: #7a5a12;
}
.badge-today, .badge-next { background: var(--berry); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chip { font-size: 0.75rem; padding: 1px 8px; border-radius: 999px; background: var(--pine-soft); color: var(--pine-dark); font-weight: 700; }

.empty-note { color: var(--muted); font-size: 0.9rem; padding: 6px 2px; }

/* ---------- Christbaumkugel-Marker ---------- */
.ornament-icon { background: none; border: 0; }
.ornament {
  position: relative;
  width: 40px; height: 40px;
  margin: 10px auto 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 32% 30%, #ff6b6b, #b3141f 55%, #6e0b10);
  box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: 50% -8px;
}
.ornament::before { /* Kappe */
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  width: 12px; height: 7px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(90deg, #a77d1e, #f0cf6d, #a77d1e);
}
.ornament::after { /* Öse */
  content: "";
  position: absolute;
  top: -12px; left: 50%;
  width: 7px; height: 7px;
  transform: translateX(-50%);
  border: 2px solid var(--gold);
  border-radius: 50%;
}
.ornament span {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  margin-top: 2px;
}
.ornament-icon:hover .ornament { transform: rotate(-8deg) scale(1.08); }
.ornament.is-past { filter: saturate(0.35) brightness(1.05); opacity: 0.75; }
.ornament.is-next {
  background: radial-gradient(circle at 32% 30%, #ffe28a, #d4a020 55%, #8a6206);
  animation: glow 2s ease-in-out infinite alternate;
}
.ornament.is-next span { color: #5a3a00; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); }
.ornament.is-draggable { cursor: grab; }
@keyframes glow {
  from { box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(212, 160, 32, 0.6); }
  to { box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.45), 0 0 0 12px rgba(212, 160, 32, 0); }
}
@media (prefers-reduced-motion: reduce) { .ornament.is-next { animation: none; } }

/* Popup */
.leaflet-popup-content-wrapper { border-radius: var(--radius); box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 14px 16px; font-size: 0.95rem; line-height: 1.45; min-width: 220px; }
.popup .day-meta { margin-bottom: 2px; }
.popup h3 { margin: 0; font-size: 1.1rem; color: var(--pine-dark); }
.popup p { margin: 6px 0 0; }
.popup .note { font-size: 0.85rem; color: var(--muted); font-style: italic; }
.popup .actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.popup .actions a { text-decoration: none; }
.leaflet-container a.btn { color: #fff; }
.leaflet-container a.btn-ghost { color: var(--pine); }

/* ---------- Formular ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 20px 16px 0; }
.intro { margin: 4px 0 18px; }
.intro h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: 1.7rem; line-height: 1.2; color: var(--pine-dark); }
.intro p { margin: 0; color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card > h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: var(--pine-dark);
  display: flex; align-items: center; gap: 10px;
}
.card > h3 .step {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--berry); color: #fff;
  font-weight: 800; font-size: 0.95rem;
}
.card > .hint { margin: 0 0 14px; color: var(--muted); font-size: 0.92rem; }

.field { display: grid; gap: 4px; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label, .field .label { font-weight: 700; font-size: 0.92rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field small { color: var(--muted); font-size: 0.82rem; }
.row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .row-2 { grid-template-columns: 1fr 1fr; } }

input[type="text"], input[type="email"], input[type="tel"], input[type="time"], input[type="password"], input[type="number"], input[type="date"], input[type="url"], input[type="search"], textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}
textarea { min-height: 84px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px var(--pine-soft); }

/* Tageswahl als Türchen-Raster */
.door-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 520px) { .door-grid { grid-template-columns: repeat(6, 1fr); } }
.door-pick { position: relative; }
.door-pick input { position: absolute; opacity: 0; pointer-events: none; }
.door-pick label {
  display: grid;
  gap: 0;
  place-items: center;
  min-height: 70px;
  padding: 6px 2px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.door-pick .n { font-weight: 800; font-size: 1.35rem; line-height: 1; color: var(--berry); }
.door-pick .wd { font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.door-pick .adv { font-size: 0.62rem; font-weight: 800; color: #7a5a12; line-height: 1.1; }
.door-pick label:hover { border-color: var(--gold); }
.door-pick input:checked + label { background: var(--berry); border-color: var(--berry); transform: scale(1.04); }
.door-pick input:checked + label .n, .door-pick input:checked + label .wd, .door-pick input:checked + label .adv { color: #fff; }
.door-pick input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.door-pick input:disabled + label {
  cursor: not-allowed;
  background: repeating-linear-gradient(135deg, #f4f1ea, #f4f1ea 6px, #ece7dc 6px, #ece7dc 12px);
  border-style: dashed;
}
.door-pick input:disabled + label .n { color: #b7b1a3; }

.legend-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 0.82rem; color: var(--muted); }
.legend-row span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1.5px solid var(--line); }
.legend-row .l-free::before { background: #fff; }
.legend-row .l-taken::before { background: #ece7dc; border-style: dashed; }
.legend-row .l-mine::before { background: var(--berry); border-color: var(--berry); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--berry); flex-shrink: 0; }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.3rem; color: var(--pine); cursor: pointer; border-radius: 50%; }
.stepper button:hover { background: var(--pine-soft); }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; font-size: 1.1rem; }

.tag-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-picks label {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  user-select: none;
}
.tag-picks input { position: absolute; opacity: 0; pointer-events: none; }
.tag-picks input:checked + span { color: #fff; }
.tag-picks label:has(input:checked) { background: var(--pine); border-color: var(--pine); color: #fff; }
.tag-picks label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

#pick-map { height: 260px; border-radius: 12px; border: 1.5px solid var(--line); margin-top: 10px; }
.geo-status { font-size: 0.85rem; color: var(--muted); margin-top: 6px; min-height: 1.3em; }
.geo-status.ok { color: var(--pine); }
.geo-status.warn { color: var(--berry); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  background: #fdecec;
  border: 1px solid #f2c4c4;
  color: var(--berry-dark);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-weight: 700;
}
.submit-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.success {
  text-align: center;
  padding: 28px 20px;
}
.success .big { font-size: 3rem; line-height: 1; }
.success h2 { margin: 10px 0 6px; color: var(--pine-dark); }
.edit-link {
  display: flex; gap: 8px; margin: 16px auto 0; max-width: 520px;
}
.edit-link input { font-size: 0.85rem; }

.footer-note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 24px; }

.day-item .day-meta, .day-item .day-name, .day-item .day-addr, .day-item .day-offer, .day-item .empty-note { display: block; }
.day-item .empty-note { padding: 0; }

/* ---------- Kalender ---------- */
.cal-page { max-width: 1180px; margin: 0 auto; padding: 22px 16px 0; }
.cal-head h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: 1.8rem; color: var(--night); }
.cal-head p { margin: 2px 0 16px; color: var(--muted); }
.cal-layout { display: grid; gap: 16px; }
@media (min-width: 1000px) { .cal-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .cal-detail { position: sticky; top: 16px; } }

.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-wd { text-align: center; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-bottom: 2px; }
.cal-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 112px;
  padding: 8px 9px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.cal-cell:hover { border-color: var(--gold); }
.cal-cell.is-out { background: transparent; border: 1px dashed var(--line); cursor: default; }
.cal-cell.is-free { background: rgba(255, 255, 255, 0.5); }
.cal-cell.is-past { opacity: 0.5; }
.cal-cell.is-next { border: 2px solid var(--gold); background: #fffaf0; box-shadow: 0 0 0 4px rgba(201, 154, 46, 0.18); }
.cal-cell.is-selected { outline: 3px solid var(--night); outline-offset: 1px; }
.cal-num { font-family: var(--font); font-weight: 900; font-variant-numeric: lining-nums tabular-nums; font-size: 1.5rem; line-height: 1; letter-spacing: -0.02em; color: var(--berry); }
.is-free .cal-num { color: #b6ae9c; }
.cal-adv { font-size: 0.66rem; font-weight: 800; color: #7a5a12; }
.cal-name { font-weight: 800; font-size: 0.86rem; line-height: 1.2; color: var(--night); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal-time { font-size: 0.78rem; color: var(--muted); }
.cal-free { font-size: 0.78rem; color: #b6ae9c; }
.cal-dot { display: none; }
.cal-flag { margin-top: auto; padding: 1px 7px; border-radius: 999px; background: var(--berry); color: #fff; font-size: 0.68rem; font-weight: 800; }

.cal-detail { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); min-height: 120px; }
.cal-detail h3 { margin: 4px 0 2px; font-size: 1.2rem; color: var(--night); }
.cal-detail p { margin: 8px 0 0; }
.cal-detail .note { font-size: 0.88rem; color: var(--muted); font-style: italic; }
.cal-detail .actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cal-detail > .btn { margin-top: 12px; }

@media (max-width: 700px) {
  .cal-grid { gap: 4px; }
  .cal-cell { min-height: 58px; padding: 6px 4px; align-items: center; justify-content: flex-start; border-radius: 10px; }
  .cal-num { font-size: 1.2rem; }
  .cal-name, .cal-time, .cal-free, .cal-adv { display: none; }
  .cal-dot { display: block; width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff6b6b, #b3141f 60%); }
  .is-next .cal-dot { background: radial-gradient(circle at 35% 30%, #ffe28a, #c8941a 60%); }
  .cal-flag { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); margin: 0; padding: 0 5px; font-size: 0.58rem; white-space: nowrap; }
  .cal-wd { font-size: 0.68rem; letter-spacing: 0.02em; }
}

@media (max-width: 640px) {
  .today-card h2 { font-size: 1.15rem; }
  .card-actions .btn { min-height: 40px; padding: 8px 14px; font-size: 0.92rem; }
}

.sub-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 16px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.sub-card h3 { margin: 0; font-size: 1.05rem; color: var(--night); }
.sub-card p { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }
.sub-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* Nikolaus am 6. Dezember */
.ornament.is-nikolaus::before, .ornament.is-nikolaus::after { display: none; }
.ornament .nik-hat { position: absolute; top: -17px; left: 50%; width: 36px; transform: translateX(-46%) rotate(-12deg); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3)); }
.cal-cell .nik-hat { position: absolute; top: 4px; right: 4px; width: 36px; transform: rotate(12deg); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25)); }
@media (max-width: 700px) { .cal-cell .nik-hat { top: -8px; right: 0; width: 26px; } }

/* Impressum & Datenschutz */
.site-foot { text-align: center; padding: 16px 16px 28px; font-size: 0.85rem; color: var(--muted); }
.site-foot a { color: var(--muted); }
.legal h2 { margin: 8px 0 12px; font-family: var(--font-display); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: 1.7rem; color: var(--night); }
.legal h2 + p { margin-top: 0; }
.legal #datenschutz { margin-top: 40px; }
.legal h3 { margin: 22px 0 6px; font-size: 1.05rem; color: var(--night); }
.legal p { margin: 0 0 12px; max-width: 68ch; }

/* Vollbild als Web-App: Inhalte bis unter Statusleiste/Kamera, Bedienelemente in den sicheren Bereich */
.hero { padding-top: calc(14px + env(safe-area-inset-top)); padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
@media (max-width: 640px) { .hero { padding-top: calc(12px + env(safe-area-inset-top)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); } }
.leaflet-bottom { padding-bottom: env(safe-area-inset-bottom); }
.leaflet-container .leaflet-control-attribution { font-size: 10px; line-height: 1.4; padding: 1px 6px; background: rgba(255, 255, 255, 0.7); border-radius: 6px 0 0 0; }
@media (max-width: 640px) {
  .leaflet-container .leaflet-control-attribution { max-width: 100vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 9px; }
}
.leaflet-left { padding-left: env(safe-area-inset-left); }
.leaflet-right { padding-right: env(safe-area-inset-right); }
.site-foot { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.next-main p.next-note { color: var(--berry); font-weight: 700; white-space: normal; }
.next-date b { font-size: 1.6rem; }
.next-date.one-digit b { font-size: 2rem; }
.ornament span.one-digit { font-size: 1.3rem; }
@media (max-width: 640px) {
  .ornament { width: 30px; height: 30px; margin-top: 8px; transform-origin: 50% -6px; box-shadow: 1px 4px 7px rgba(0, 0, 0, 0.45); }
  .ornament::before { top: -5px; width: 9px; height: 6px; }
  .ornament::after { top: -9px; width: 5px; height: 5px; border-width: 1.5px; }
  .ornament span { font-size: 0.8rem; margin-top: 1px; }
  .ornament span.one-digit { font-size: 1rem; }
  .ornament .nik-hat { top: -13px; width: 27px; }
}
@media (max-width: 760px) { .next-date b { font-size: 1.3rem; } .next-date.one-digit b { font-size: 1.6rem; } }

.next-link { display: flex; align-items: center; gap: 16px; min-width: 0; color: inherit; text-decoration: none; border-radius: 12px; }
.next-link .next-main > span { display: block; }
.next-link .eyebrow { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--berry); }
.next-title { margin-top: 1px; font-size: 1.12rem; font-weight: 800; line-height: 1.25; color: var(--night); }
.next-street { margin-top: 1px; font-size: 0.9rem; color: var(--muted); }
.next-link .next-note { margin-top: 1px; font-size: 0.9rem; color: var(--berry); font-weight: 700; }
.next-link:hover .next-title { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
@media (max-width: 760px) { .next-link { gap: 12px; } }

/* Leiste unter dem Kopfbereich als Schneedecke, die in die Häuser übergeht */
.next-bar {
  background:
    radial-gradient(1.5px 1.5px at 12% 30%, rgba(160, 180, 205, 0.5) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 47% 70%, rgba(160, 180, 205, 0.45) 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 81% 40%, rgba(160, 180, 205, 0.5) 50%, transparent 52%),
    linear-gradient(180deg, #f4f7fb 0%, #e8eef5 100%);
  border-bottom: 0;
  box-shadow: 0 6px 14px -8px rgba(23, 38, 64, 0.35);
}
.next-bar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -43px;
  height: 44px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20400%2044%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22m%22%20x%3D%22-5%25%22%20y%3D%22-60%25%22%20width%3D%22110%25%22%20height%3D%22220%25%22%3E%3CfeGaussianBlur%20stdDeviation%3D%225%22%2F%3E%3C%2Ffilter%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23f4f7fb%22%20stop-opacity%3D%220%22%2F%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%23f4f7fb%22%20stop-opacity%3D%22.55%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f4f7fb%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20y%3D%220%22%20width%3D%22400%22%20height%3D%2244%22%20fill%3D%22url%28%23g%29%22%20opacity%3D%22.7%22%2F%3E%3Cpath%20d%3D%22M0%2044%20V26%20C20%2020%2038%2018%2058%2023%20C80%2029%2096%2016%20122%2018%20C146%2020%20158%2028%20182%2025%20C206%2022%20214%2014%20240%2016%20C266%2018%20274%2027%20300%2026%20C324%2025%20334%2017%20358%2019%20C378%2021%20390%2025%20400%2024%20V44Z%22%20fill%3D%22%23f4f7fb%22%20opacity%3D%22.7%22%20filter%3D%22url%28%23m%29%22%2F%3E%3Cpath%20d%3D%22M0%2044%20V34%20C20%2028%2038%2026%2058%2031%20C80%2037%2096%2024%20122%2026%20C146%2028%20158%2036%20182%2033%20C206%2030%20214%2022%20240%2024%20C266%2026%20274%2035%20300%2034%20C324%2033%20334%2025%20358%2027%20C378%2029%20390%2033%20400%2032%20V44Z%22%20fill%3D%22%23f4f7fb%22%2F%3E%3Cpath%20d%3D%22M0%2034%20C20%2028%2038%2026%2058%2031%20C80%2037%2096%2024%20122%2026%20C146%2028%20158%2036%20182%2033%20C206%2030%20214%2022%20240%2024%20C266%2026%20274%2035%20300%2034%20C324%2033%20334%2025%20358%2027%20C378%2029%20390%2033%20400%2032%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.next-nav .tabs { background: #fff; box-shadow: 0 1px 4px rgba(23, 38, 64, 0.12); }
.next-nav .wa-link { background: #fff; }
.hero { padding-bottom: 36px; }
@media (min-width: 761px) { .hero { min-height: 112px; } }
.next-bar { padding-top: 8px; }
.hero { padding-bottom: 24px; }
@media (max-width: 760px) { .hero { padding-bottom: 12px; } }
.tabs .tab-wa { display: none; }
@media (max-width: 760px) { .next-nav .tabs .tab-wa { display: inline-flex; } }
@media (max-width: 760px) { .next-nav .tabs a.tab-icon { padding: 7px 8px; } }
.intro p + p { margin-top: 8px; }
#deadline { font-weight: 700; color: var(--ink); }
#deadline:empty { display: none; }
.popup-head { display: flex; align-items: center; gap: 12px; }
.popup-head .next-date { width: 50px; height: 50px; }
.next-date.is-red { background: radial-gradient(circle at 32% 30%, #ff6b6b, #b3141f 55%, #6e0b10); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.next-date.is-past { filter: saturate(0.35) brightness(1.05); opacity: 0.75; }
.popup-head .next-date b { font-size: 1.3rem; }
.popup-head .next-date.one-digit b { font-size: 1.6rem; }
.popup-head .day-meta { font-size: 0.82rem; font-weight: 800; color: var(--berry); }
.next-date { position: relative; }
.next-date .nik-hat { position: absolute; top: -21px; left: 50%; width: 36px; transform: translateX(-30%) rotate(-14deg); z-index: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3)); }
#deadline { margin-top: 16px; }
.intro-sign { margin-top: 6px; font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--berry); }
.success .intro-sign { margin: 4px 0 18px; }

/* Seitenwechsel: Kopfbereich und Leiste bleiben stehen, nur der Inhalt blendet über */
@view-transition { navigation: auto; }
.hero { view-transition-name: hero; }
[data-subbar] { view-transition-name: subbar; }
::view-transition-old(hero), ::view-transition-new(hero),
::view-transition-old(subbar), ::view-transition-new(subbar) { animation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.18s; }
.snow { animation-delay: var(--snow-delay, 0s); }
.snow::after { animation-delay: var(--snow-delay2, 0s); }

/* Umbrüche: Einheiten zusammenhalten, am Handy an Sinngrenzen brechen */
.nw { white-space: nowrap; }
.m-show { display: none; }
@media (min-width: 761px) { .m-br { display: none; } }
@media (max-width: 760px) { .m-hide { display: none; } .m-show { display: inline; } }
h1, h2, h3, .next-title, .cal-detail h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.m-br.m-br-off { display: none; }
.next-link { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; }
.next-link .next-date { grid-row: 1 / span 2; }
.next-link .next-note { grid-column: 2; display: block; }
@media (max-width: 760px) {
  .next-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "badge main nav" ". note note"; column-gap: 12px; row-gap: 2px; align-items: center; }
  .next-bar .next-info, .next-bar .next-link { display: contents; }
  .next-link .next-date { grid-area: badge; grid-row: auto; }
  .next-link .next-main { grid-area: main; }
  .next-link .next-note { grid-area: note; }
  .next-bar .next-nav { grid-area: nav; }
  .subbar-only { display: flex; }
}

.next-link { align-items: center; }
.next-link .next-main { align-self: end; }
.next-link .next-note { align-self: start; margin-top: 1px; }
@media (max-width: 760px) { .next-link .next-main, .next-link .next-note { align-self: center; } }
@media (max-width: 370px) {
  .next-title { font-size: 1rem; }
  .next-nav .tabs a.tab-icon { padding: 6px 6px; }
  .next-nav .tabs a.tab-main { padding: 6px 8px; font-size: 0.8rem; }
  .next-bar { column-gap: 8px; }
}

.next-link { display: flex; }
.next-link .next-date { grid-row: auto; }
.next-link .next-main, .next-link .next-note { align-self: auto; }
.note-phone { display: none; }
@media (max-width: 760px) {
  .note-wide { display: none !important; }
  .note-phone { display: block; grid-area: note; }
}
.next-link .note-phone { display: none; }
@media (max-width: 760px) { .next-link .note-phone { display: block; } }

/* Handy: Titel bleibt über der Schneewehe */
@media (max-width: 760px) {
  .hero { padding-bottom: 30px; }
  .next-bar::before { top: -33px; height: 34px; }
}
/* Web-App auf dem iPhone: volle Bildschirmhöhe, auch wenn der Browser zu wenig meldet */
/* iOS-Web-App mit durchsichtiger Statusleiste: ohne Mindesthöhe bleibt unten ein Streifen frei */
html { min-height: calc(100% + env(safe-area-inset-top)); }
.standalone:has(body.map-page), .standalone body.map-page { background: #eef3f8; }
.next-date b { font-size: 1.75rem; }
.next-date.one-digit b { font-size: 2.3rem; }
.next-date small { margin-top: -1px; }
@media (max-width: 760px) { .next-date b { font-size: 1.5rem; } .next-date.one-digit b { font-size: 2.05rem; } }
.popup-head .next-date b { font-size: 1.5rem; }
.popup-head .next-date.one-digit b { font-size: 2.05rem; }

/* Schneekante unten: Leiste läuft weich in die Karte aus */
#map { z-index: 0; }
.next-bar { z-index: 2; box-shadow: none; }
.next-bar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -27px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20400%2040%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22m%22%20x%3D%22-5%25%22%20y%3D%22-60%25%22%20width%3D%22110%25%22%20height%3D%22220%25%22%3E%3CfeGaussianBlur%20stdDeviation%3D%225%22%2F%3E%3C%2Ffilter%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23e8eef5%22%20stop-opacity%3D%22.9%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23e8eef5%22%20stop-opacity%3D%220%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22400%22%20height%3D%2240%22%20fill%3D%22url%28%23g%29%22%20opacity%3D%22.6%22%2F%3E%3Cpath%20d%3D%22M0%200%20V14%20C20%2014%2038%2017%2058%2013%20C80%209%2096%2018%20122%2016%20C146%2012%20158%208%20182%2011%20C206%2015%20214%2019%20240%2017%20C266%2014%20274%209%20300%2010%20C324%2012%20334%2018%20358%2015%20C378%2013%20390%2011%20400%2012%20V0Z%22%20fill%3D%22%23e8eef5%22%20opacity%3D%22.7%22%20filter%3D%22url%28%23m%29%22%2F%3E%3Cpath%20d%3D%22M0%200%20V8%20C20%208%2038%2011%2058%207%20C80%203%2096%2012%20122%2010%20C146%206%20158%202%20182%205%20C206%209%20214%2013%20240%2011%20C266%208%20274%203%20300%204%20C324%206%20334%2012%20358%209%20C378%207%20390%205%20400%206%20V0Z%22%20fill%3D%22%23e8eef5%22%2F%3E%3Cpath%20d%3D%22M0%208%20C20%208%2038%2011%2058%207%20C80%203%2096%2012%20122%2010%20C146%206%20158%202%20182%205%20C206%209%20214%2013%20240%2011%20C266%208%20274%203%20300%204%20C324%206%20334%2012%20358%209%20C378%207%20390%205%20400%206%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%221.5%22%20opacity%3D%22.8%22%2F%3E%3C%2Fsvg%3E") center top / 100% 100% no-repeat;
  pointer-events: none;
}
.map-page .leaflet-top { top: 18px; }
.cal-page, .page, .admin-wrap { padding-top: 34px; }
.next-date small { font-size: 0.78rem; letter-spacing: 0.04em; margin-top: -2px; }
@media (max-width: 760px) { .next-date small { font-size: 0.72rem; } }
.popup-head .next-date small { font-size: 0.72rem; }

/* Zusagen */
.rsvp { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.rsvp p { margin: 0; }
.rsvp-count { font-size: 0.88rem; color: var(--muted); }
.rsvp-mine { font-size: 0.95rem; color: var(--pine-dark); }
.rsvp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rsvp-form { display: grid; gap: 8px; }
.rsvp-step { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 0.92rem; }
.rsvp-step .stepper button { width: 38px; height: 38px; }
.rsvp-name { min-height: 40px; font-size: 0.92rem; }
.rsvp-error { color: var(--berry); font-weight: 700; font-size: 0.88rem; }
.leaflet-popup-content .rsvp .btn { color: #fff; }
.leaflet-popup-content .rsvp .btn-ghost { color: var(--pine); }
.host-rsvps { margin-top: 10px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.rsvp-hint { margin-top: -4px; font-size: 0.8rem; color: var(--muted); }
.host-rsvps ul { margin: 6px 0 4px; padding-left: 18px; }
.host-rsvps li { margin: 2px 0; }
.host-rsvps small { color: var(--muted); }

/* Formular: gleichmäßiger Rhythmus, Felder in einer Reihe gleich hoch */
[hidden] { display: none !important; }
.card .field, .card .row { margin-bottom: 18px; }
.card .row .field { margin-bottom: 0; }
.card > .field:last-child, .card > .row:last-child { margin-bottom: 0; }
.row { align-items: start; }
.field { align-content: start; }
.field > input:not([type="checkbox"]):not([type="radio"]), .field > select { height: 46px; min-height: 46px; }
.field-short { max-width: 180px; }
.card > .check { margin-top: 4px; }
.card .row { gap: 18px 16px; }


/* Nikolaus auf der Karte */
.nikolaus-icon { background: none; border: 0; }
.nikolaus { position: relative; width: 34px; cursor: pointer; filter: drop-shadow(0 2px 2px rgba(23, 38, 64, 0.35)); }
.nikolaus svg { display: block; width: 100%; height: auto; overflow: visible; }
.nikolaus.left svg { transform: scaleX(-1); }
.nikolaus .nk-body { animation: nk-bob 0.5s ease-in-out infinite alternate; }
.nikolaus .nk-leg-a, .nikolaus .nk-leg-b { transform-box: fill-box; transform-origin: 50% 0; animation: nk-step 0.5s ease-in-out infinite alternate; }
.nikolaus .nk-leg-b { animation-direction: alternate-reverse; }
@keyframes nk-bob { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }
@keyframes nk-step { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
.nk-say {
  position: absolute; left: 50%; bottom: 100%; margin-bottom: 4px; transform: translateX(-50%);
  padding: 3px 9px; border-radius: 10px; background: #fff; color: var(--berry);
  font-weight: 800; font-size: 0.8rem; white-space: nowrap; box-shadow: 0 2px 8px rgba(23, 38, 64, 0.25);
  opacity: 0; pointer-events: none;
}
.nikolaus.says .nk-say { animation: hoho 2.4s ease-out; }

/* Nikolaus tritt: vorderes Bein holt aus und schnellt nach vorn */
  0% { transform: rotate(0deg); }
  30% { transform: rotate(35deg); }
  55% { transform: rotate(-80deg); }
  100% { transform: rotate(0deg); }
}

.rsvp-link { margin-top: 4px; }
.rsvp-link input { min-width: 0; min-height: 36px; font-size: 0.8rem; }
.rsvp-link-hint { margin-top: 2px; }
.hoho, .nk-say { width: max-content; max-width: 210px; white-space: normal; text-align: center; }
.next-nav .tabs:not(:has(.tab-wa)) { grid-template-columns: repeat(2, 1fr); }

/* Willkommensseite einer Nachbarschaft */
.welcome .greeting p { margin: 0 0 10px; font-size: 1.05rem; text-wrap: pretty; }
.welcome-card .intro-sign { margin: 4px 0 0; }
.welcome-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .welcome-grid { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto 1fr; align-items: start; }
  .welcome-grid > .card { display: grid; grid-template-rows: subgrid; grid-row: span 3; align-content: start; }
  .welcome-grid > .card > .btn { justify-self: start; align-self: start; }
  .welcome-grid > .host-card { display: block; align-self: start; }
  .host-card .btn { margin-top: 4px; }
}
.welcome-grid .card > h3 { margin-top: 0; }
.join-done { margin: 0; font-weight: 700; color: var(--pine-dark); }
.example-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; background: var(--gold-soft, #fff4d6); color: #5a4300; text-align: center; font-size: 0.92rem; padding: 8px 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.example-bar a { color: inherit; font-weight: 800; white-space: nowrap; }
.site-foot .platform { white-space: nowrap; }
.welcome-grid > .card { margin: 0; }
.welcome-card { margin-bottom: 16px; }
.letter { position: relative; padding-top: 30px; overflow: hidden; }
.letter::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--berry) 0 18px, #fff 18px 26px, var(--pine) 26px 44px, #fff 44px 52px);
  opacity: 0.85;
}
.letter .greeting p:first-child { font-family: var(--font-display); font-size: 1.25rem; color: var(--night); }
.host-card { background: var(--night); border-color: var(--night); color: #dbe5f5; }
.host-card h3 { color: var(--gold-light); }
.host-card .hint { color: #b9c8e0; }
.host-card .btn { background: var(--gold-light); color: var(--night); box-shadow: none; }
.host-card .btn:hover { background: #f7d696; }
.welcome .check { margin: 4px 0 16px; }

.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { color: #fff; text-decoration: underline; }
.hero h1 .t-name { white-space: nowrap; }

.site-foot .resp {
  max-width: 728px; margin: 0 auto 22px; padding: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  text-align: left; color: var(--ink);
}
.resp-h { margin: 0 0 12px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--night); }
.resp-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px 20px; }
.resp-person { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.resp-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-soft); color: #7a5a12; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em; }
.resp-text { display: grid; min-width: 0; line-height: 1.3; }
.resp-text b { color: var(--night); font-size: 1.02rem; overflow-wrap: anywhere; }
.site-foot .resp-num { color: var(--muted); text-decoration: none; font-size: 0.92rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.resp-acts { display: flex; gap: 6px; }
.site-foot .resp-act { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--pine-soft); color: var(--pine); transition: transform 0.15s, background 0.15s; }
.site-foot .resp-act:hover { background: #d6e6db; transform: translateY(-1px); }
.site-foot .resp-act.is-wa { background: #25d366; color: #fff; }
.resp-act svg { width: 18px; height: 18px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 0; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-note { max-width: 34em; margin: 10px auto 0; font-size: 0.78rem; color: var(--muted); opacity: 0.85; text-wrap: pretty; }
.resp-people { container-type: inline-size; }
@container (max-width: 380px) {
  .resp-person { grid-template-columns: 44px minmax(0, 1fr); row-gap: 8px; }
  .resp-acts { grid-column: 2; }
}
