/* Popup Öffnungszeiten Weihnachten und Neujahr 2026/27 (Entwurf) */

.wp {
  --gold: #E3CF9E;
  border: 0; padding: 0; margin: auto; background: transparent;
  width: min(520px, calc(100% - 28px)); max-height: calc(100% - 28px);
  color: var(--weiss); overflow: visible;
}
.wp::backdrop { background: rgba(8, 20, 38, .72); backdrop-filter: blur(3px); }
.wp[open] { animation: wp-auf .45s ease-out; }
@keyframes wp-auf { from { opacity: 0; transform: translateY(18px) scale(.98); } }

.wp-karte {
  position: relative; overflow: hidden; border-radius: 10px;
  padding: 108px clamp(22px, 5vw, 44px) clamp(24px, 4vw, 34px);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(159,187,221,.28), transparent 60%),
    linear-gradient(180deg, var(--blau-mittel) 0%, var(--blau) 45%, var(--blau-nacht) 100%);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), inset 0 0 0 1px rgba(227,207,158,.35);
  max-height: calc(100vh - 28px); overflow-y: auto;
}
/* feiner Goldrahmen innen */
.wp-karte::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(227,207,158,.28);
  border-radius: 6px; pointer-events: none;
}

/* Schnee */
.wp-schnee { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.wp-schnee i {
  position: absolute; top: -10px; width: var(--g, 4px); height: var(--g, 4px); border-radius: 50%;
  background: #fff; opacity: var(--o, .7); filter: blur(.4px);
  animation: wp-fall var(--t, 9s) linear var(--v, 0s) infinite;
}
@keyframes wp-fall { to { transform: translate(var(--x, 20px), 760px); } }

/* Kugel mit Faden */
.wp-kopf { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 92px; text-align: center; }
.wp-faden { display: block; width: 1px; height: 18px; margin: 0 auto; background: linear-gradient(var(--gold), rgba(227,207,158,.5)); }
.wp-kugel { display: block; width: 74px; height: auto; margin: -2px auto 0; filter: drop-shadow(0 10px 14px rgba(0,0,0,.45));
  transform-origin: 50% 0; animation: wp-pendel 5s ease-in-out infinite; }
@keyframes wp-pendel { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

.wp-zu {
  position: absolute; top: 16px; right: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(14,32,56,.45); color: #fff;
  font: 300 1.5rem/1 var(--sans); cursor: pointer; transition: background .2s;
}
.wp-zu:hover, .wp-zu:focus-visible { background: rgba(255,255,255,.18); outline: none; }

.wp-kicker { position: relative; margin: 0 0 8px; text-align: center; color: var(--gold);
  font-size: .74rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.wp h2 { position: relative; margin: 0 0 22px; text-align: center; font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 4.6vw, 1.95rem); line-height: 1.2; }

.wp-liste { position: relative; list-style: none; margin: 0; padding: 0; }
.wp-liste li {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--linie-hell); font-size: .97rem;
}
.wp-liste li:first-child { border-top: 1px solid var(--linie-hell); }
.wp-tage { font-weight: 600; }
.wp-tage::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 10px 1px 0; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px rgba(227,207,158,.8); }
.wp-zeit { text-align: right; color: var(--text-hell); }
.wp-zeit small { display: block; font-size: .82rem; opacity: .85; }
.wp-liste .zu .wp-tage { color: rgba(255,255,255,.7); font-weight: 500; }
.wp-liste .zu .wp-tage::before { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.wp-liste .zu .wp-zeit { color: rgba(255,255,255,.6); font-style: italic; }
.wp-liste .wp-spezial { color: var(--gold); font-style: normal; }
.wp-liste .wieder .wp-zeit { color: var(--weiss); }

.wp-gruss { position: relative; margin: 22px 0 0; text-align: center; font-family: var(--serif); font-style: italic;
  font-size: 1.1rem; color: var(--weiss); }
.wp-knoepfe { position: relative; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.wp-knoepfe .btn { cursor: pointer; font-family: inherit; }

@media (max-width: 480px) {
  .wp-karte { padding: 84px 20px 22px; }
  .wp-kugel { width: 58px; }
  .wp h2 { margin-bottom: 14px; }
  .wp-liste li { gap: 2px 10px; padding: 8px 0; font-size: .84rem; }
  .wp-tage::before { margin-right: 7px; }
  .wp-zeit small { font-size: .74rem; }
  .wp-gruss { margin-top: 14px; font-size: 1rem; }
  .wp-knoepfe { margin-top: 14px; }
  .wp-knoepfe .btn { padding: 12px 20px; font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wp[open], .wp-kugel, .wp-schnee i { animation: none; }
  .wp-schnee { display: none; }
}
/* Schließen-Knopf als Rahmen-Knopf (Button hat sonst grauen Standard-Hintergrund) */
.wp-knoepfe button.btn-rand { background: transparent; color: var(--weiss); border-color: rgba(255,255,255,.7); }
.wp-knoepfe button.btn-rand:hover { background: var(--weiss); color: var(--blau); }

@media (max-width: 480px) { .wp-tage { white-space: nowrap; } }
.wp:focus { outline: none; }

/* Knopf bei den Öffnungszeiten, öffnet das Popup wieder */
.wp-auf { margin: 22px 0 4px; background: transparent; color: var(--weiss); border-color: var(--gold, #E3CF9E);
  cursor: pointer; font-family: inherit; --gold: #E3CF9E; }
.wp-auf::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(227,207,158,.8); }
.wp-auf:hover, .wp-auf:focus-visible { background: var(--weiss); color: var(--blau); }
.wp-auf[hidden] { display: none; }

/* Häkchen „Nicht mehr anzeigen“ */
.wp-aus { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px;
  font-size: .82rem; color: var(--text-hell); cursor: pointer; }
.wp-aus input { width: 16px; height: 16px; margin: 0; accent-color: #E3CF9E; cursor: pointer; }
.wp-aus:hover { color: var(--weiss); }
@media (max-width: 480px) { .wp-aus { margin-top: 10px; font-size: .76rem; } }
