/* Weihnachts-Popup und Weihnachtsseite (weihnachten.jsx).
   Ebenen: Popup 110 und Weihnachtsseite 120 liegen über Kopfleiste und Reservierungsfenster (100),
   die Großansicht (FotoZoom, 130) liegt darüber. */
.wh-backdrop {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(15,12,8,.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; justify-content: center; padding: 20px;
  overflow-y: auto; overscroll-behavior: contain;
  animation: wh-auf .3s ease;
}
@keyframes wh-auf { from { opacity: 0; } to { opacity: 1; } }
@keyframes wh-hoch { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.wh-karte {
  position: relative; margin: auto 0;
  display: grid; grid-template-columns: 1.05fr 1fr;
  width: min(900px, 100%);
  background: var(--wine); color: var(--paper);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  animation: wh-hoch .45s cubic-bezier(.2,.8,.2,1) both;
}
.wh-zu, .wh-welt-zu {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(15,12,8,.55); color: var(--paper);
  font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.wh-karte-bild { position: relative; min-height: 520px; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: var(--wine-deep); }
.wh-karte-bild img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); transition: opacity 1s ease, transform 6s linear;
}
.wh-karte-bild img.is-aktiv { opacity: 1; transform: scale(1); }
/* Produktgrafiken mit Schrift ganz zeigen, Rand in ihrer Hintergrundfarbe */
.wh-karte-bild img.is-grafik { object-fit: contain; background: #cbbb9e; }
.wh-stempel {
  position: absolute; left: 16px; top: 16px;
  background: var(--paper); color: var(--wine);
  border-radius: 999px; padding: 8px 14px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
}
.wh-karte-text { padding: 46px 40px 34px; display: flex; flex-direction: column; }

.wh-eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; }
.wh-eyebrow--hell { color: #e9c98f; }
.wh-eyebrow--gold { color: var(--gold); }
.wh-titel { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 44px; line-height: 1.02; margin: 10px 0 14px; }
.wh-titel em { color: #e9c98f; }
.wh-punkte { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-family: var(--sans); font-size: 15px; line-height: 1.45; }
.wh-punkte li { display: flex; gap: 10px; }
.wh-punkte li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--gold); }
.wh-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: auto 0 22px; }
.wh-mini button { padding: 0; border: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 1; cursor: pointer; opacity: .85; transition: opacity .2s, transform .2s; background: var(--wine-deep); }
.wh-mini button:hover { opacity: 1; transform: translateY(-2px); }
.wh-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }

.wh-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
.wh-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.wh-cta--hell { background: var(--paper); color: var(--wine); }
.wh-cta--wein { background: var(--wine); color: var(--paper); }
.wh-cta--rand { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px currentColor; }
.wh-cta--weinrand { color: var(--wine); }

/* ── Weihnachtsseite ── */
.wh-welt {
  position: fixed; inset: 0; z-index: 120;
  background: var(--paper); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  animation: wh-auf .3s ease;
}
.wh-welt-zu { position: fixed; top: 14px; right: 14px; background: var(--ink); }
.wh-welt-kopf { display: grid; grid-template-columns: 1fr 1fr; min-height: 78vh; background: var(--wine); color: var(--paper); }
.wh-welt-kopf-text { padding: clamp(28px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; }
.wh-welt-kopf-text .wh-eyebrow { color: #e9c98f; }
.wh-welt-kopf-text .wh-titel { font-size: clamp(46px, 6vw, 84px); }
.wh-welt-kopf-text p { font-family: var(--sans); font-size: 17px; line-height: 1.6; opacity: .88; max-width: 44ch; margin: 0 0 28px; }
.wh-welt-kopf-bilder { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; }
.wh-welt-kopf-bilder .wh-foto:first-child { grid-row: span 2; }
.wh-foto { display: block; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--paper-2); position: relative; }
.wh-foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.wh-foto:hover img { transform: scale(1.04); }

.wh-teil { max-width: 1180px; margin: 0 auto; padding: 72px 24px 0; }
.wh-teil h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(38px, 5vw, 60px); line-height: 1; color: var(--wine); margin: 8px 0 12px; }
.wh-lede { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-soft); margin: 0 0 28px; max-width: 56ch; }
.wh-sorten { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.wh-sorten div { background: #fffaf2; border-radius: 10px; padding: 16px 18px; font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.25; }
.wh-sorten small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--gold); margin-bottom: 4px; }
.wh-flyer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.wh-flyer .wh-foto { border-radius: 10px; aspect-ratio: 5 / 4; }
.wh-galerie { columns: 3 260px; column-gap: 14px; }
.wh-galerie .wh-foto { width: 100%; margin: 0 0 14px; border-radius: 10px; break-inside: avoid; }
.wh-galerie .wh-foto img { height: auto; }
.wh-verpackt { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 14px; }
.wh-verpackt .wh-foto { border-radius: 10px; height: 420px; }
.wh-verpackt-text { background: var(--wine); color: var(--paper); border-radius: 10px; padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.wh-verpackt-text h4, .wh-gans h4 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 34px; line-height: 1.1; margin: 0 0 10px; }
.wh-verpackt-text p, .wh-gans p { font-family: var(--sans); margin: 0; opacity: .85; line-height: 1.55; }
.wh-gans { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: var(--ink); color: var(--paper); border-radius: 14px; padding: 32px 36px; }
.wh-gans-zeichen { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 34px; }
.wh-welt-leiste {
  position: sticky; bottom: 0; z-index: 4; margin-top: 72px;
  background: rgba(243,236,224,.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(29,26,20,.12);
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.wh-welt-leiste .wh-cta { padding: 16px 34px; font-size: 16px; }

/* Kleine Leiste unten rechts nach dem Schließen, links neben dem WhatsApp-Knopf (dessen Breite: --wa-breite) */
.wh-leiste {
  position: fixed; right: calc(22px + var(--wa-breite, 0px)); bottom: 22px; z-index: 44;
  display: inline-flex; align-items: center; gap: 6px;
  height: 50px; padding: 4px 18px 4px 4px; border: 0; border-radius: 999px;
  background: var(--wine); color: var(--paper);
  font-family: var(--sans); text-align: left;
  cursor: pointer; transition: transform .2s, background .2s;
  animation: wh-hoch .4s ease both;
}
.wh-leiste:hover { transform: translateY(-2px); background: var(--wine-deep); }
.wh-leiste--weg { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px); transition: opacity .25s ease, visibility .25s ease, transform .25s ease; }
.wh-leiste-bild {
  position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
  background: var(--wine-deep); box-shadow: 0 0 0 2px var(--wine);
}
.wh-leiste-bild--2 { margin-left: -14px; margin-right: 6px; }
.wh-leiste-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.wh-leiste-bild img.is-aktiv { opacity: 1; }
.wh-leiste-baum { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; opacity: 0; transition: opacity .8s ease; }
.wh-leiste-baum.is-aktiv { opacity: 1; }
.wh-leiste-bild--2 .wh-leiste-baum { font-size: 0; }
.wh-leiste-text { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.wh-leiste-text strong { font-size: 13px; font-weight: 600; white-space: nowrap; }
.wh-leiste-zeilen { position: relative; display: block; height: 14px; min-width: 150px; }
.wh-leiste-zeilen em {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font-family: var(--serif); font-style: italic; font-size: 14px; color: #e9c98f;
  opacity: 0; transform: translateY(4px); transition: opacity .6s ease, transform .6s ease;
}
.wh-leiste-zeilen em.is-aktiv { opacity: 1; transform: none; }
@media (max-width: 560px) {
  .wh-leiste { right: calc(16px + var(--wa-breite, 0px)); bottom: 16px; padding-right: 14px; }
  .wh-leiste-bild--2 { display: none; }
  .wh-leiste-bild { margin-right: 4px; }
  .wh-leiste-zeilen { min-width: 130px; }
}

/* ── Tablet ── */
@media (max-width: 860px) {
  .wh-welt-kopf { grid-template-columns: 1fr; min-height: 0; }
  .wh-welt-kopf-bilder { height: 340px; order: -1; }
  .wh-flyer { grid-template-columns: 1fr 1fr; }
  .wh-verpackt { grid-template-columns: 1fr 1fr; }
  .wh-verpackt-text { grid-column: span 2; }
  .wh-verpackt .wh-foto { height: 300px; }
  .wh-gans { grid-template-columns: auto 1fr; }
  .wh-gans .wh-cta { grid-column: span 2; }
}

/* ── Handy ── */
@media (max-width: 640px) {
  .wh-backdrop { padding: 12px; align-items: flex-start; }
  .wh-karte { grid-template-columns: 1fr; margin: 0 0 12px; border-radius: 16px; }
  .wh-karte-bild { min-height: 0; height: 230px; }
  .wh-karte-text { padding: 22px 20px 22px; }
  .wh-titel { font-size: 34px; margin: 8px 0 12px; }
  .wh-punkte { font-size: 14px; margin-bottom: 16px; }
  .wh-mini { margin: 0 0 18px; gap: 6px; }
  .wh-knoepfe .wh-cta { flex: 1 1 100%; }
  .wh-welt-kopf-bilder { height: 260px; }
  .wh-welt-kopf-text { padding: 28px 20px 32px; }
  .wh-welt-kopf-text p { font-size: 15px; }
  .wh-teil { padding: 52px 16px 0; }
  .wh-lede { font-size: 18px; }
  .wh-sorten { grid-template-columns: 1fr 1fr; gap: 8px; }
  .wh-sorten div { font-size: 16px; padding: 12px 14px; }
  .wh-galerie { columns: 2; column-gap: 8px; }
  .wh-galerie .wh-foto { margin-bottom: 8px; }
  .wh-flyer { grid-template-columns: 1fr; }
  .wh-verpackt { grid-template-columns: 1fr 1fr; gap: 8px; }
  .wh-verpackt .wh-foto { height: 220px; }
  .wh-verpackt-text { padding: 22px; }
  .wh-gans { grid-template-columns: 1fr; padding: 24px 20px; gap: 14px; }
  .wh-gans .wh-cta { grid-column: auto; }
  .wh-welt-leiste { margin-top: 52px; padding-left: 12px; padding-right: 12px; gap: 8px; }
  .wh-welt-leiste .wh-cta { flex: 1 1 100%; padding: 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .wh-backdrop, .wh-karte, .wh-welt { animation: none; }
  .wh-karte-bild img, .wh-foto img { transition: none; transform: none; }
  .wh-leiste-bild img, .wh-leiste-zeilen em { transition: none; }
}
