/* ==========================================================
   Ergänzung „Seiten“ (Handoff: Menü, Räume mieten, Aktuelles, Kontakt)
   und THEME-ERGAENZUNG.md. Stand 14.10.2026.
   ========================================================== */
:root { --zvw-overlay-dunkel: rgba(43, 22, 54, .45); --zvw-overlay-hell: rgba(255, 253, 248, .97); }

/* ---------- Unterseiten: volle Breite wie die Startseite ---------- */
.zvw-seite .site-content .ast-container, .zvw-seite #primary { max-width: none; padding: 0; margin: 0; width: 100%; display: block; }
.zvw-seite .entry-content > *, .zvw-seite .entry-content .wp-block-group { margin-top: 0; margin-bottom: 0; }
.zvw-seite .entry-header, .zvw-start .entry-header { display: none; }
.zvw-seite p, .zvw-seite ol, .zvw-seite ul { margin: 0; }
.zvw-seite .entry-content .zvw-innen, .zvw-seite .entry-content .zvw-abschnitt { max-width: 1120px !important; width: 100%; }

/* Seitenkopf */
.zvw-seitenkopf { background: var(--zvw-goldhauch); }
.zvw-seitenkopf .zvw-innen { padding-top: 72px; padding-bottom: 64px; }
.zvw-seitenkopf .ueberzeile { margin-bottom: 12px; }
.zvw-seitenkopf h1 { margin: 0; }
.zvw-seitenkopf .zvw-einleitung { margin-top: 20px; max-width: 720px; font-size: 17px; }

/* Abschnitte */
.zvw-abschnitt { padding-top: 72px; padding-bottom: 24px; }
.zvw-abschnitt.zvw-letzter { padding-bottom: 88px; }
.zvw-abschnitt > h2, .zvw-abschnitt > .zvw-kopf2 { margin: 0 0 28px; }
.zvw-kopf2 .ueberzeile { margin-bottom: 8px; }
.zvw-kopf2 h2 { margin: 0; }
.zvw-raster { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.zvw-raster-180 { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.zvw-raster-280 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.zvw-raster-300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px; align-items: start; }

/* ---------- Karten ---------- */
.wp-block-group.is-style-karte-neutral, .wp-block-group.is-style-karte-schlicht { display: flex; flex-direction: column; gap: 10px; }
.wp-block-group.is-style-karte-bild {
  background: var(--zvw-weiss); border: 1px solid var(--zvw-linie); border-radius: var(--zvw-radius-karte);
  overflow: hidden; padding: 0; display: flex; flex-direction: column; gap: 8px;
}
.wp-block-group.is-style-karte-bild > .wp-block-image { margin: 0 0 20px; }
.wp-block-group.is-style-karte-bild > .wp-block-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wp-block-group.is-style-karte-bild > .wp-block-image ~ .wp-block-image { display: none; }
.wp-block-group.is-style-karte-bild > :not(.wp-block-image) { padding-inline: 28px; }
.wp-block-group.is-style-karte-bild > :last-child { padding-bottom: 28px; }
.wp-block-group.is-style-karte-bild h3 { margin: 0; }
.is-style-karte-bild[role="button"], .is-style-karte-bild.zvw-klickbar { cursor: pointer; }
.is-style-karte-bild[role="button"] { cursor: zoom-in; }
.is-style-karte-bild[role="button"]:hover, .is-style-karte-bild.zvw-klickbar:hover { border-color: var(--zvw-gold); }
.is-style-karte-bild[role="button"]:focus-visible, .is-style-karte-bild.zvw-klickbar:focus-within { outline: 2px solid var(--zvw-violett); outline-offset: 2px; }
.wp-block-image.is-style-flyer { background: var(--zvw-goldhauch); padding: 16px; margin: 0 0 20px !important; border-bottom: 1px solid var(--zvw-linie); }
.wp-block-image.is-style-flyer img { width: 100%; height: auto; max-height: 520px; aspect-ratio: auto !important; object-fit: contain !important; border-radius: var(--zvw-radius-feld); }
.wp-block-group.is-style-karte-schlicht { background: var(--zvw-weiss); border: 1px solid var(--zvw-linie); border-radius: var(--zvw-radius-karte); padding: 28px; }
.wp-block-group.is-style-karte-schlicht h3, .wp-block-group.is-style-karte-neutral h3 { margin: 0; }
.zvw-mehr a { font-weight: 600; font-size: 15px; }
.zvw-klickbar .zvw-mehr a::after { content: ""; position: absolute; inset: 0; }
.zvw-klickbar { position: relative; }

/* Schritte (Räume mieten) */
.zvw-schritte { list-style: none; padding: 0 !important; margin: 0 !important; }
.zvw-schritte > li { background: var(--zvw-weiss); border: 1px solid var(--zvw-linie); border-top: 3px solid var(--zvw-gold); border-radius: var(--zvw-radius-karte); padding: 28px; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.schritt-nummer { font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 32px; line-height: 1.1; color: var(--zvw-violett); }

/* Teeküche */
/* Teestube: gleiche Bildkarte wie die Räume, nur in Goldhauch. */
.wp-block-group.is-style-karte-bild.zvw-teestube { background: var(--zvw-goldhauch); }
.zvw-teekueche { margin-top: 20px !important; display: flex !important; flex-wrap: wrap; gap: 24px; align-items: center; }
.zvw-teekueche .wp-block-image { margin: 0; flex: 0 0 200px; }
.zvw-teekueche .wp-block-image img { width: 200px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--zvw-radius-feld); display: block; }
.zvw-teekueche h3 { margin: 0 0 6px; }

/* Abschluss (Räume mieten) */
.zvw-abschluss { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.zvw-abschluss .zvw-fett { font-weight: 700; max-width: 720px; }
.zvw-abschluss .wp-block-buttons { gap: 12px; }

/* Vorschau (Aktuelles) */
.zvw-vorschau { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; align-items: center; }
.zvw-vorschau h3 { margin: 0 0 8px; }
.zvw-vorschau-bilder { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; min-width: 0; }
.zvw-vorschau-bilder .wp-block-image { margin: 0; min-width: 0; }
.zvw-vorschau-bilder img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--zvw-radius-feld); display: block; }

/* Hinweiskarte (Aktuelles) */
.zvw-hinweis { flex-direction: row !important; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px !important; }
.zvw-hinweis > p { flex: 1 1 320px; }

/* Zeile 8: weitere Veranstaltungen */
.zvw-mehr-zeile a {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px; align-items: center; padding: 20px 8px;
  border-bottom: 1px solid var(--zvw-linie); color: var(--zvw-violett); text-decoration: none; font-family: "Nunito Sans", sans-serif; font-weight: 700; font-size: 17px;
}
.zvw-mehr-zeile a:hover { background: var(--zvw-goldhauch); color: var(--zvw-gold-dunkel); }
.zvw-mehr-zeile .zvw-symbol { width: 44px; height: 44px; border: 1.5px solid currentColor; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; justify-self: center; }
.zvw-mehr-zeile svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.zvw-va-block:has(.zrb-va-leer) + .zvw-mehr-zeile { display: none; }

/* Kontakt */
.zvw-kontakt-adresse { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.zvw-kontakt-adresse .is-style-karte-neutral { gap: 6px; align-self: stretch; }
.zvw-lageplan { border: 1px solid var(--zvw-linie); border-radius: var(--zvw-radius-karte); overflow: hidden; aspect-ratio: 4 / 3; background: var(--zvw-goldhauch); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.zvw-lageplan img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zvw-lageplan.zvw-karte { padding: 0; display: block; }
.zvw-karte iframe { width: 100%; height: 100%; border: 0; display: block; }
.zvw-karte-quelle { margin: 8px 0 0; font-size: 0.8125rem; color: var(--zvw-text-gedaempft); }
.zvw-anfahrt-abschnitt { scroll-margin-top: 90px; }

/* ---------- Runder Symbol-Button ---------- */
.knopf-rund, .knopf-rund:focus {
  width: 44px; height: 44px; flex: none; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1.5px solid var(--zvw-violett); background: transparent; color: var(--zvw-violett); cursor: pointer;
}
.knopf-rund:hover { background: var(--zvw-goldhauch); color: var(--zvw-violett); }
.knopf-rund svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.knopf-primaer, .knopf-primaer:focus { background: var(--zvw-violett); color: var(--zvw-hintergrund); border: 0; border-radius: 999px; padding: 12px 24px; font: 700 15px "Nunito Sans", sans-serif; cursor: pointer; }
.knopf-primaer:hover { background: var(--zvw-violett-hover); color: var(--zvw-hintergrund); }

/* ---------- Pop-up Kontaktformular ---------- */
body.popup-offen { overflow: hidden; }
.popup-hintergrund {
  position: fixed; inset: 0; z-index: 9999; background: var(--zvw-overlay-dunkel);
  display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto;
  animation: popFade .2s ease-out both;
}
.popup-hintergrund[hidden] { display: none; }
.popup-dialog {
  position: relative; width: 100%; max-width: 640px; box-sizing: border-box; background: var(--zvw-hintergrund);
  border-radius: var(--zvw-radius-karte); padding: 31px 28px 28px; display: flex; flex-direction: column; gap: 20px;
  animation: dIn .5s cubic-bezier(.65,0,.35,1) .15s both;
}
.popup-dialog::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--zvw-gold); border-radius: 20px 20px 0 0; transform-origin: left; animation: dLine .35s cubic-bezier(.2,.8,.2,1) both; }
.popup-dialog > * { animation: dText .3s ease-out both; }
.popup-dialog > :nth-child(1) { animation-delay: .50s; }
.popup-dialog > :nth-child(2) { animation-delay: .58s; }
.popup-dialog > :nth-child(3) { animation-delay: .66s; }
.popup-dialog > :nth-child(4) { animation-delay: .74s; }
.popup-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.popup-kopf .ueberzeile { margin: 0 0 8px; }
.popup-kopf h2 { margin: 0; }
.popup-dialog p { margin: 0; }

/* ---------- Foto-Pop-up ---------- */
.lightbox { position: fixed; inset: 0; z-index: 9999; background: var(--zvw-overlay-hell); display: flex; flex-direction: column; animation: popFade .22s ease-out both; }
.lightbox[hidden] { display: none; }
.lightbox-leiste { border-bottom: 1px solid var(--zvw-linie); }
.lightbox-leiste-innen { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lightbox-zaehler, .lightbox-zoomwert { font-size: 14px; color: var(--zvw-text-gedaempft); }
.lightbox-zoomwert { min-width: 52px; text-align: center; display: inline-block; }
.lightbox-werkzeuge { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lightbox-flaeche { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: hidden; }
.lightbox-rahmen { width: min(1000px, 100%, calc((100vh - 300px) * 4 / 3)); overflow: hidden; border-radius: var(--zvw-radius-feld); touch-action: none; }
.lightbox-bild { display: block; width: 100%; height: auto; border-radius: var(--zvw-radius-feld); transform-origin: center; user-select: none; -webkit-user-drag: none; animation: dInImg .5s cubic-bezier(.65,0,.35,1) .15s backwards; }
.lightbox-rahmen.zoombar { overflow: visible; }
.lightbox-rahmen.zoombar .lightbox-bild { cursor: grab; }
.lightbox-rahmen.zieht .lightbox-bild { cursor: grabbing; }
.lightbox-fuss { position: relative; border-top: 1px solid var(--zvw-linie); }
.lightbox-fuss::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--zvw-gold); transform-origin: left; animation: dLine .35s cubic-bezier(.2,.8,.2,1) both; }
.lightbox-fuss-innen { max-width: 1120px; margin: 0 auto; padding: 16px 24px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lightbox-text { max-width: 720px; text-align: center; flex: 1; animation: dText .3s ease-out .5s both; }
.lightbox-text .ueberzeile { margin: 0; }
.lightbox-name { font: 700 22px/1.25 "Quicksand", sans-serif; color: var(--zvw-text); }
.lightbox-beschreibung { font-size: 14px; color: var(--zvw-text-gedaempft); line-height: 1.5; }

@keyframes popFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes dIn { from { opacity: 0; clip-path: inset(0 0 100% 0 round 20px) } to { opacity: 1; clip-path: inset(0 0 0 0 round 20px) } }
@keyframes dInImg { from { opacity: 0; clip-path: inset(0 0 100% 0 round 12px) } to { opacity: 1; clip-path: inset(0 0 0 0 round 12px) } }
@keyframes dLine { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes dText { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }

/* ---------- Mobiler Menü-Button (Variante 2e) ---------- */
.menu-knopf .striche { position: relative; display: block; width: 20px; height: 14px; }
.menu-knopf .striche span { position: absolute; left: 0; width: 20px; height: 2px; border-radius: 2px; background: var(--zvw-violett); transition: rotate .2s cubic-bezier(.2,.8,.2,1), translate .16s cubic-bezier(.2,.8,.2,1) .2s; }
.menu-knopf .striche span:nth-child(1) { top: 0; }
.menu-knopf .striche span:nth-child(2) { top: 6px; transition: opacity 0s .2s; }
.menu-knopf .striche span:nth-child(3) { top: 12px; }
.menu-knopf[aria-expanded="true"] .striche span { transition: translate .16s cubic-bezier(.2,.8,.2,1), rotate .2s cubic-bezier(.2,.8,.2,1) .16s; }
.menu-knopf[aria-expanded="true"] .striche span:nth-child(1) { translate: 0 6px; rotate: 45deg; }
.menu-knopf[aria-expanded="true"] .striche span:nth-child(2) { opacity: 0; transition: opacity 0s .16s; }
.menu-knopf[aria-expanded="true"] .striche span:nth-child(3) { translate: 0 -6px; rotate: -45deg; }
.menu-knopf .wort { display: block; width: 80px; height: 24px; overflow: hidden; text-align: left; }
.menu-knopf .wort > span { display: flex; flex-direction: column; line-height: 24px; transition: transform .36s cubic-bezier(.65,0,.35,1); }
.menu-knopf[aria-expanded="true"] .wort > span { transform: translateY(-24px); }
.menu-mobil:not([hidden]) { animation: navIn .28s cubic-bezier(.2,.8,.2,1) both; }
.menu-mobil:not([hidden]) a { animation: navItem .25s ease-out both; }
.menu-mobil a:nth-child(1) { animation-delay: .04s; }
.menu-mobil a:nth-child(2) { animation-delay: .08s; }
.menu-mobil a:nth-child(3) { animation-delay: .12s; }
.menu-mobil a:nth-child(4) { animation-delay: .16s; }
.menu-mobil a:nth-child(5) { animation-delay: .20s; }
@keyframes navIn { from { opacity: 0; transform: translateY(-8px) } to { opacity: 1; transform: none } }
@keyframes navItem { from { opacity: 0; transform: translateY(-6px) } to { opacity: 1; transform: none } }

/* ---------- Kacheln und Termine einblenden (Variante 3d) ---------- */
.js-einblenden .einblenden { opacity: 0; }
.einblenden.ist-sichtbar { opacity: 1; animation: fadeIn .4s ease-out both; animation-delay: var(--d, 0s); }
.einblenden.ist-sichtbar:not(.termin) > :not(img):not(.wp-block-image) { animation: dText .35s ease-out both; animation-delay: calc(var(--d, 0s) + .3s); }
.einblenden.mit-linie { position: relative; }
.js-einblenden .einblenden.mit-linie:not(.linie-fertig) { border-top-color: transparent; }
.einblenden.mit-linie.ist-sichtbar::after {
  content: ""; position: absolute; left: -1px; right: -1px; top: -3px; height: 3px; background: var(--zvw-gold);
  border-radius: 20px 20px 0 0; transform-origin: left; animation: dLine .4s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d, 0s) + .05s);
}
.einblenden.mit-linie.linie-fertig::after { display: none; }
.termin.ist-sichtbar .termin-datum { animation: dateIn .35s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0s); }
.termin.ist-sichtbar .termin-text { animation: dText .35s ease-out both; animation-delay: calc(var(--d, 0s) + .08s); }
.js-einblenden .zrb-va-liste.linie-start { border-top-color: transparent; position: relative; }
.zrb-va-liste.linie-an::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--zvw-gold); transform-origin: left; animation: dLine .4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes dateIn { from { opacity: 0; transform: translateY(-10px) } to { opacity: 1; transform: none } }

@media (prefers-reduced-motion: reduce) {
  .popup-hintergrund, .popup-dialog, .popup-dialog::before, .popup-dialog > *, .lightbox, .lightbox-bild, .lightbox-fuss::before, .lightbox-text,
  .menu-mobil, .menu-mobil a, .einblenden, .einblenden > *, .einblenden::after, .termin *, .zrb-va-liste::before { animation: none !important; }
  .menu-knopf * { transition: none !important; }
  .js-einblenden .einblenden { opacity: 1; }
}

/* Zeile 8 ohne Unterstreichung */
.entry-content .zvw-mehr-zeile a, .zvw-mehr-zeile a:hover { text-decoration: none !important; }

/* Newsletter-Anmeldung (Block aus dem Buchungstool) */
.zvw-newsletter { padding-top: 48px; }
.zvw-newsletter-karte { background: var(--zvw-goldhauch); border-radius: var(--zvw-radius-karte); padding: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; align-items: center; }
.zvw-newsletter-text h3 { margin: 0 0 6px; }
.zvw-newsletter-text p { margin: 0; font-size: 15px; color: var(--zvw-text-gedaempft); }
.zvw-newsletter-karte .zrb-newsletter-form > p:last-child { margin-bottom: 0; }

/* Lageplan als Bild */
a.zvw-lageplan { padding: 0; display: block; }
a.zvw-lageplan:hover { border-color: var(--zvw-gold); }

/* Sanftes Scrollen zu Abschnitten (nicht bei „Bewegung reduzieren“); Platz für die feste Kopfzeile. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.zvw-abschnitt[id] { scroll-margin-top: 90px; }
