/* ============================================================
   BETRIEBSURLAUB – Pop-up (Startseite) und Hinweise bei den
   Öffnungszeiten. Gesteuert von /js/betriebsurlaub.js – ohne
   aktiven Zeitraum erzeugt das Skript nichts, diese Regeln
   greifen dann nicht.
   Farben/Schrift aus style.css (Fallbacks für den Fall, dass ein
   Browser noch eine ältere style.css im Zwischenspeicher hat).
   ============================================================ */

/* Seite hinter dem Pop-up nicht scrollen */
html.urlaub-offen { overflow: hidden; }

/* ---- Pop-up ---------------------------------------------------------- */
.urlaub {
  /* Zentrieren: style.css setzt für alle Elemente margin: 0 – das hebt die
     eingebaute Zentrierung von <dialog> auf, deshalb hier ausdrücklich. */
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  /* Rundung + Schatten am Dialog selbst – an der Karte würde der Schatten
     vom Dialogrand (overflow) rechteckig abgeschnitten */
  border-radius: var(--r-xl, 36px);
  box-shadow: 0 30px 80px rgba(26, 24, 22, .28), 0 6px 20px rgba(26, 24, 22, .12);
  background: transparent;
  color: var(--ink-80, #2a2724);
  overflow: auto;
  overscroll-behavior: contain;
}
.urlaub::backdrop {
  background: rgba(26, 24, 22, .5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.urlaub__karte {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding: clamp(40px, 7vw, 56px) clamp(24px, 6vw, 56px) clamp(32px, 6vw, 48px);
  border-radius: var(--r-xl, 36px);
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(233, 186, 95, .14), transparent 60%),
    radial-gradient(110% 60% at 0% 100%, rgba(45, 107, 58, .08), transparent 60%),
    var(--cream, #fbf6ee);
  border: 1px solid rgba(210, 176, 128, .55);
}
/* feiner Goldrahmen innen – Kartencharakter statt Werbefenster */
.urlaub__karte::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(210, 176, 128, .5);
  border-radius: calc(var(--r-xl, 36px) - 10px);
  pointer-events: none;
  z-index: -1;
}
/* weiche Formen wie im Hero der Startseite */
.urlaub__deko {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.urlaub__deko--1 {
  width: 220px; height: 220px;
  top: -110px; right: -80px;
  background: radial-gradient(circle, rgba(210, 176, 128, .35), rgba(210, 176, 128, 0) 70%);
}
.urlaub__deko--2 {
  width: 260px; height: 260px;
  bottom: -150px; left: -110px;
  background: radial-gradient(circle, rgba(74, 149, 88, .18), rgba(74, 149, 88, 0) 70%);
}

.urlaub__logo {
  display: block;
  height: clamp(60px, 13vw, 84px);
  width: auto;
  aspect-ratio: 500 / 364;
  margin: 0 auto;
}
.urlaub__linie {
  display: block;
  width: 44px;
  height: 2px;
  margin: clamp(16px, 3vw, 22px) auto;
  border-radius: 2px;
  background: var(--gold, #e9ba5f);
}

.urlaub__titel {
  font-family: var(--f-display, 'Nunito', system-ui, sans-serif);
  font-size: clamp(34px, 7.5vw, 48px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--ink, #1a1816);
  margin: 0;
}
.urlaub__titel em {
  font-style: italic;
  font-weight: 600;
  color: var(--green, #2d6b3a);
}
.urlaub__titel:focus { outline: none; }

.urlaub__text {
  max-width: 420px;
  margin: clamp(18px, 3.5vw, 24px) auto 0;
  font-size: clamp(16px, 2.4vw, 18px);
  line-height: 1.65;
  color: var(--ink-60, #4a4643);
}
.urlaub__text p { margin: 0; }
.urlaub__text p + p { margin-top: 12px; }

.urlaub__betont {
  display: inline-block;
  white-space: nowrap;
  padding: 1px 12px;
  margin-block: 2px;
  border-radius: var(--r-full, 9999px);
  font-weight: 600;
  line-height: 1.55;
}
.urlaub__betont--zeitraum {
  background: var(--sand-50, #f5edd8);
  color: var(--green-deep, #124a12);
  box-shadow: inset 0 0 0 1px rgba(210, 176, 128, .7);
}
.urlaub__betont--wieder {
  background: var(--green-50, #eaf3eb);
  color: var(--green, #2d6b3a);
  box-shadow: inset 0 0 0 1px var(--green-100, #d4e8d6);
}

.urlaub__gruss {
  margin: clamp(20px, 3.5vw, 26px) 0 0;
  font-size: clamp(17px, 2.4vw, 19px);
  font-style: italic;
  font-weight: 500;
  color: var(--green, #2d6b3a);
}

.urlaub__knopf {
  margin-top: clamp(22px, 4vw, 30px);
  min-width: 190px;
  justify-content: center;
}

.urlaub__x {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--warm-200, #e0d8cd);
  background: rgba(255, 255, 255, .9);
  color: var(--ink, #1a1816);
  box-shadow: 0 2px 8px rgba(26, 24, 22, .08);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.urlaub__x:hover {
  background: #fff;
  color: var(--green, #2d6b3a);
  border-color: var(--green-100, #d4e8d6);
  transform: rotate(90deg);
}
.urlaub__x:focus-visible,
.urlaub__knopf:focus-visible {
  outline: 2px solid var(--green, #2d6b3a);
  outline-offset: 3px;
}

/* sanft einblenden */
.urlaub[open] { animation: urlaub-ein .45s cubic-bezier(.22, 1, .36, 1) both; }
.urlaub[open]::backdrop { animation: urlaub-hintergrund .35s ease both; }
@keyframes urlaub-ein {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes urlaub-hintergrund {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .urlaub[open],
  .urlaub[open]::backdrop { animation: none; }
  .urlaub__x:hover { transform: none; }
}

/* schmale Smartphones */
@media (max-width: 380px) {
  .urlaub { width: calc(100vw - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .urlaub__karte { padding-inline: 20px; }
  .urlaub__betont { padding-inline: 9px; }
  .urlaub__x { top: 12px; right: 12px; }
}
/* niedrige Bildschirme (Smartphone quer, kleine Laptops mit Zoom) */
@media (max-height: 600px) {
  .urlaub__karte { padding: 28px 28px 24px; }
  .urlaub__logo { height: 48px; }
  .urlaub__linie { margin: 12px auto; }
  .urlaub__titel { font-size: 30px; }
  .urlaub__text { margin-top: 12px; font-size: 15.5px; line-height: 1.55; }
  .urlaub__text p + p { margin-top: 6px; }
  .urlaub__gruss { margin-top: 12px; font-size: 16px; }
  .urlaub__knopf { margin-top: 16px; padding: 12px 28px; }
  .urlaub__x { top: 12px; right: 12px; width: 40px; height: 40px; }
}
@media (max-height: 420px) {
  .urlaub__logo, .urlaub__linie { display: none; }
  .urlaub__karte { padding: 22px 56px 20px; }
}

/* ---- Hinweise bei den Öffnungszeiten ------------------------------------ */
.urlaub-hinweis { font-family: var(--f-body, 'Nunito', system-ui, sans-serif); }

/* Kasten im Kopfbereich der Startseite (Desktop) */
.urlaub-hinweis--kasten {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: var(--r-full, 9999px);
  background: var(--sand-50, #f5edd8);
  box-shadow: inset 0 0 0 1px rgba(210, 176, 128, .6);
  font-size: 12px;
  line-height: 1.4;
  color: var(--green-deep, #124a12);
}
.urlaub-hinweis--kasten .urlaub-hinweis__titel { font-weight: 600; }
.urlaub-hinweis--kasten .urlaub-hinweis__zeit  { font-weight: 600; white-space: nowrap; }

/* Tabelle (Startseite) und Kontaktseite */
.urlaub-hinweis--block {
  display: block;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--r-md, 14px);
  background: var(--sand-30, #faf5ec);
  border: 1px solid rgba(210, 176, 128, .55);
  border-left: 3px solid var(--gold, #e9ba5f);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-60, #4a4643);
}
.urlaub-hinweis--block .urlaub-hinweis__kopf { display: block; color: var(--green-deep, #124a12); }
.urlaub-hinweis--block .urlaub-hinweis__titel { font-weight: 600; }
.urlaub-hinweis--block .urlaub-hinweis__zeit  { font-weight: 600; white-space: nowrap; }
.urlaub-hinweis--block .urlaub-hinweis__danach { display: block; }
.urlaub-hinweis--kontakt { margin-top: 10px; padding: 10px 14px; font-size: 13.5px; }

/* Fußzeile (dunkel) */
.footer__col .urlaub-hinweis--fuss,
.urlaub-hinweis--fuss {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--gold, #e9ba5f);
}

/* Instagram-Linkseite */
.urlaub-hinweis--zeile {
  display: table;
  margin: 6px auto 2px;
  padding: 2px 12px;
  border-radius: var(--r-full, 9999px);
  background: var(--sand-50, #f5edd8);
  box-shadow: inset 0 0 0 1px rgba(210, 176, 128, .6);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--green-deep, #124a12);
}

/* Satz auf „Über uns“ (dunkler Kasten) */
.urlaub-hinweis--satz {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  color: var(--gold, #e9ba5f);
}
