/* ============================================================
   Well Next Door – 1:1 Nachbau
   Rekonstruierte Styles (Original: Webflow)
   ============================================================ */

/* ---------- Reset / Basis ---------- */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: #000;
  color: #333;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: inline-block;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}

/* ---------- Wrapper ---------- */
.wrapper {
  width: 100vw;
  height: 100vh;
  position: static;
  inset: 0%;
  overflow: hidden;
}

/* ---------- Hintergrundvideo ---------- */
#bgVideoWrap {
  overflow: hidden;
  will-change: transform;
  width: 100vw;
  height: 100vh;
  position: fixed;
  inset: 0;
  background: #000;
  isolation: isolate;
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
}

#bgFrame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max(100vw, 177.78vh);
  height: max(100vh, 56.25vw);
  min-width: 100%;
  min-height: 100%;
  border: 0;
  pointer-events: none;
  display: block;
}

/* Lese-Layer über dem Video: oben/unten stärker abgedunkelt (Vignette),
   damit Navigation, Überschrift und Footer immer gut lesbar sind. */
#bgVideoWrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, .78) 0%,
    rgba(0, 0, 0, .52) 22%,
    rgba(0, 0, 0, .52) 68%,
    rgba(0, 0, 0, .84) 100%);
}

/* ---------- Navigation ---------- */
.navbar {
  color: #fff;
  background-color: transparent;
  position: fixed;
  inset: 0% 0% auto;
  z-index: 1000;
}

.container {
  color: #fff;
  width: 940px;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

.nav-menu {
  color: #fff;
  display: flex;
  position: relative;
}

.link {
  color: #fff;
  letter-spacing: 1px;
  padding: 1.5rem 1rem;
  text-decoration: none;
  transition: opacity .2s;
  display: inline-block;
}

.link:hover {
  font-weight: 700;
  text-decoration: line-through;
}

.text-span {
  text-decoration-color: #fff;
}

/* Hamburger-Button (nur mobil sichtbar) */
.menu-button {
  display: none;
  padding: 18px;
  margin-left: auto;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.menu-button .nav-icon {
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
  display: block;
}

.menu-button .nav-icon::before,
.menu-button .nav-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #fff;
}

.menu-button .nav-icon::before { top: -7px; }
.menu-button .nav-icon::after { top: 7px; }

/* ---------- Hero (Startseite) ---------- */
.hero-section {
  position: fixed;
  inset: 0%;
  z-index: 1;
}

.div-block-2 {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 999;
}

.div-block-3 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Great Vibes", cursive;
  position: static;
  z-index: 2147483647;
}

.heading {
  color: #fff;
  letter-spacing: 10px;
  margin: 0;
  font-family: "Libertinus Serif", serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 2.7rem;
  z-index: 2147483647;
  text-align: center;
}

/* ---------- Hero (Live-Seite) ---------- */
.heading-6 {
  color: #fff;
  margin: 0 0 4rem;
  font-family: "Libertinus Serif", serif;
  font-size: 3rem;
  line-height: 2.5rem;
  text-align: center;
}

.div-block-7 {
  width: 80vw;
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  border-bottom: 1px dashed #fff;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr 1fr;
  place-items: center stretch;
  padding-bottom: .5rem;
  margin-bottom: 1.25rem;
  display: grid;
}

/* ---------- Live Dates – Terminliste ---------- */
.events-wrap {
  width: min(720px, 90vw);
  margin: 0 auto;
}

.group-label {
  font-family: "Libertinus Serif", serif;
  font-size: .8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  padding-bottom: 1rem;
  margin-bottom: .75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.event-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 1.6rem;
  padding: 1.15rem .6rem;
  border-radius: 6px;
  transition: background .2s;
}

.event-row + .event-row {
  border-top: 1px solid rgba(255, 255, 255, .12);
}

@media (hover: hover) {
  .event-row:hover {
    background: rgba(255, 255, 255, .05);
  }
}

/* Datums-Box mit Wochentag */
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .12rem;
  padding: .55rem .25rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 4px;
  line-height: 1;
  color: #fff;
}

.ed-dow {
  font-size: .62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.ed-dow:empty {
  display: none;
}

.ed-day {
  font-family: "Libertinus Serif", serif;
  font-size: 1.95rem;
}

.ed-mon {
  font-size: .68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}

.ed-yr {
  font-size: .6rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, .4);
}

.event-info {
  min-width: 0;
}

.ei-name {
  font-family: "Libertinus Serif", serif;
  font-size: 1.28rem;
  color: #fff;
  line-height: 1.2;
}

.ei-meta {
  font-size: .9rem;
  color: rgba(255, 255, 255, .6);
  margin-top: .35rem;
}

/* Rechte Spalte: Uhrzeit + Kalender-Button */
.event-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
}

.event-time {
  font-family: "Libertinus Serif", serif;
  font-size: 1.05rem;
  color: #fff;
  white-space: nowrap;
}

.cal-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 2px;
  padding: .4rem .7rem;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}

.cal-btn:hover,
.cal-btn:focus-visible {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.cal-ic {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  flex: 0 0 auto;
}

/* Hinweis, wenn keine kommenden Termine vorhanden sind */
.events-empty {
  color: rgba(255, 255, 255, .7);
  font-family: "Libertinus Serif", serif;
  font-size: 1.05rem;
  text-align: center;
  padding: 2.5rem 0 1rem;
}

@media screen and (max-width: 600px) {
  .event-row {
    grid-template-columns: 64px 1fr;
    gap: 1rem;
    padding: 1rem .4rem;
  }

  .ed-day {
    font-size: 1.7rem;
  }

  /* Uhrzeit + Button unter die Info-Spalte, nebeneinander */
  .event-cta {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.1rem;
    margin-top: .55rem;
  }
}

/* Live-Seite: die ganze Seite scrollt (Footer NICHT fixed).
   Hintergrundvideo + Overlay bleiben fix, Navi bleibt oben. */
.live-page .wrapper {
  height: auto;
  min-height: 100vh;
  width: 100%;
  overflow-x: clip;
  overflow-y: visible;
}

.live-page .hero-section {
  position: relative;
  inset: auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.live-page .div-block-2 {
  height: auto;
  width: 100%;
  padding: 120px 1rem 70px;
}

.live-page .heading-6 {
  margin-bottom: 2.25rem;
}

/* Footer liegt im Fluss am Seitenende (nicht fixed), aber über dem Video */
.live-page .footer-dark {
  position: relative;
  z-index: 5;
}

.div-block-8 {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-right: 1rem;
}

.div-block-8.second {
  justify-content: center;
  align-items: center;
}

.div-block-8.third {
  justify-content: flex-end;
  align-items: center;
  padding-right: 0;
}

.paragraph-2 {
  color: #fff;
  margin-bottom: 0;
  font-family: "Libertinus Serif", serif;
  font-size: 1rem;
}

.bold-text {
  font-weight: 400;
}

/* ---------- Footer ---------- */
.footer-dark {
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  background-color: transparent;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr 1fr;
  place-items: stretch stretch;
  margin: 0;
  padding: 1rem 2rem;
  display: grid;
  position: fixed;
  inset: auto 0% 0%;
  z-index: 2147483647;
}

.footer-divider {
  background-color: transparent;
  border-top: 1px solid #fff;
  width: auto;
  height: auto;
  margin: 0;
  padding: 1rem 0;
}

.div-block-5 {
  grid-column-gap: .3rem;
  display: flex;
}

.link-footer {
  color: #fff;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: .875rem;
  line-height: 1rem;
  text-decoration: underline;
}

.div-block-4 {
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  border-top: 1px transparent;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  grid-auto-columns: 1fr;
  justify-content: space-between;
  place-items: start stretch;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 0;
  display: grid;
}

.social-links {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image {
  filter: invert();
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-copyright-center {
  color: #fff;
  text-align: center;
  border-top: 1px solid #fff;
  padding: 1rem 0;
  font-family: "Libertinus Serif", serif;
  font-size: .875rem;
  line-height: 1rem;
}

/* ---------- Rechtsseiten (Datenschutz / Nutzungsbedingungen) ---------- */
.legal-page {
  min-height: 100vh;
  background: #000;
  overflow: visible;
  height: auto;
}

.legal-page .footer-dark {
  position: static;
  inset: auto;
}

.div-block-6 {
  width: 100vw;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  padding: 5rem 2rem 0;
}

.pp-doc,
.pp-doc-1 {
  color: #e8e8e8;
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem 8rem;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: .875rem;
  line-height: 1.7;
}

.pp-doc h1,
.pp-doc-1 h1,
.heading-2,
.heading-3 {
  color: #fff;
  font-family: "Libertinus Serif", serif;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.pp-doc h2,
.pp-doc-1 h2,
.heading-4,
.heading-5 {
  color: #fff;
  font-family: "Libertinus Serif", serif;
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
}

.pp-doc h3,
.pp-doc-1 h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-top: 1.75rem;
  margin-bottom: .5rem;
}

.pp-doc p,
.pp-doc-1 p {
  margin: 0 0 1rem;
}

.pp-doc ul,
.pp-doc-1 ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.pp-doc li,
.pp-doc-1 li {
  margin-bottom: .4rem;
}

.pp-doc a,
.pp-doc-1 a {
  color: #fff;
}

.pp-doc hr,
.pp-doc-1 hr {
  border: 0;
  border-top: 1px solid #444;
  margin: 2.5rem 0 1.5rem;
}

/* ============================================================
   Responsive – Webflow-Breakpoints
   ============================================================ */

/* Tablet / Medium (<= 991px): Menü kollabiert */
@media screen and (max-width: 991px) {
  .container {
    width: 100%;
    max-width: none;
    padding: 0 1rem;
    justify-content: flex-end;
    align-items: center;
  }

  .menu-button {
    display: block;
  }

  .nav-menu {
    display: none;
    background-color: #000;
    flex-flow: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .link {
    text-align: center;
  }

  .div-block-7 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Small / Mobile (<= 767px): Footer einspaltig */
@media screen and (max-width: 767px) {
  .footer-dark {
    grid-template-rows: auto auto auto;
    grid-template-columns: 1fr;
    place-items: center stretch;
    padding-left: 0;
    padding-right: 0;
  }

  .footer-divider {
    margin-top: 60px;
  }

  .div-block-5 {
    justify-content: center;
  }

  .div-block-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    place-items: start stretch;
  }

  .div-block-8 {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .heading {
    font-size: 2rem;
    letter-spacing: 6px;
  }

  .heading-3,
  .heading-2 {
    font-size: 2rem;
  }
}
