/* lightview – nur Startseite */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2rem) var(--pad-x) 7rem;
  display: flex; flex-direction: column; justify-content: center;
  /* Fallback, solange das Video lädt oder fehlt */
  background:
    radial-gradient(ellipse 55% 85% at 0% 30%, rgb(110 30 130 / .75), transparent 70%),
    radial-gradient(ellipse 50% 90% at 80% 35%, rgb(30 70 170 / .7), transparent 70%),
    #07061a;
}

/* ---------- Hintergrundvideo ---------- */
.hero-media { position: absolute; inset: 0; z-index: -2; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.slide.is-active { opacity: 1; }
.slide video, .slide img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .8s; }
.js .slide video:not(.is-ready) { opacity: 0; }
.hero::before { /* Abdunklung: links für den Text, unten für Kontaktleiste und Kacheln */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(7 6 26 / .6) 0%, rgb(7 6 26 / .3) 38%, rgb(7 6 26 / 0) 62%),
    linear-gradient(0deg, rgb(7 6 26 / .5), transparent 25%);
}

/* ---------- Text ---------- */
.hero-content { max-width: 36rem; }
.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 300;
  font-size: clamp(3rem, 1.8rem + 4.2vw, 5.4rem); line-height: 1.04; letter-spacing: -.01em;
}
.rule { display: block; width: 3.25rem; height: 1px; margin: 2.25rem 0 2rem; background: var(--line); }
.hero-text { margin: 0; max-width: 24em; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.5; color: var(--text); }
.hero-content .btn-outline { margin-top: 2.25rem; }

/* ---------- Kontakt und Bereiche (unter dem Hero) ---------- */
.home-info { scroll-margin-top: var(--header-h); padding: clamp(4rem, 8vw, 6.5rem) var(--pad-x) clamp(5rem, 9vw, 7rem); }
.contact-strip {
  margin: 0;
  display: grid; grid-template-columns: repeat(3, max-content); align-items: stretch;
}
.contact-strip > div { padding: .25rem clamp(1.5rem, 3.5vw, 3.5rem); border-left: 1px solid rgb(244 242 248 / .25); }
.contact-strip > div:first-child { padding-left: 0; border-left: 0; }
.contact-strip dt { font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--text-soft); }
.contact-strip dd { margin: .85rem 0 0; font-size: 1.05rem; }
.contact-strip a { text-decoration: none; }
.contact-strip a:hover { text-decoration: underline; text-underline-offset: .25em; text-decoration-color: var(--line); }

/* ---------- Bereiche ---------- */
.areas {
  list-style: none; margin: clamp(2.5rem, 5vw, 3.5rem) calc(var(--pad-x) * -.2) 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.6rem, 1vw, 1rem);
}
.area a {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  text-decoration: none; color: var(--text);
  outline-offset: 3px;
  background: var(--area-light), #0e0e12;
  border: 1px solid rgb(244 242 248 / .06);
}
.area--ausstellung { --area-light: radial-gradient(ellipse 70% 80% at 50% 25%, rgb(60 100 220 / .75), transparent 70%); }
.area--event       { --area-light: radial-gradient(ellipse 70% 80% at 55% 35%, rgb(210 25 30 / .8), transparent 70%); }
.area--theater     { --area-light: radial-gradient(ellipse 60% 80% at 50% 10%, rgb(90 140 255 / .7), transparent 70%); }
.area--architektur { --area-light: radial-gradient(ellipse 70% 70% at 45% 45%, rgb(220 150 70 / .6), transparent 70%); }
.area img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .5s; }
.area img.is-missing { opacity: 0; }
.area a::after { /* Lesbarkeit der Beschriftung */
  content: ""; position: absolute; inset: 45% -1px -1px; background: linear-gradient(transparent, rgb(0 0 0 / .8));
}
.area-label, .area-arrow { position: absolute; z-index: 1; bottom: 1.3rem; }
.area-label { left: 1.1rem; font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.area-arrow { right: 1.1rem; bottom: 1.15rem; transition: transform .35s var(--ease); }
.area a:hover img { transform: scale(1.04); }
.area a:hover .area-arrow { transform: translateX(4px); }

/* ---------- Scroll-Hinweis ---------- */
.scroll-hint {
  position: absolute; left: var(--pad-x); bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 1.25rem; padding: .5rem 0;
  font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; color: var(--text-soft);
}
.scroll-line { position: relative; width: 6.5rem; height: 1px; background: rgb(244 242 248 / .22); overflow: hidden; }
.scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--text); transform: scaleX(.35); transform-origin: left; }
.scroll-hint:hover { color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .scroll-line::after { animation: scroll-run 2.6s var(--ease) infinite; }
  @keyframes scroll-run { 0% { transform: translateX(-100%) scaleX(.5); } 100% { transform: translateX(200%) scaleX(.5); } }
}

/* ---------- Slide-Zähler und Pfeile ---------- */
.slide-nav {
  position: absolute; right: var(--pad-x); bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: .25rem;
}
.slide-counter {
  display: flex; align-items: center; gap: 1rem; margin-right: 1.25rem;
  font-size: .78rem; letter-spacing: .12em; color: var(--text-soft); font-variant-numeric: tabular-nums;
}
.counter-track { position: relative; width: 6.5rem; height: 1px; background: rgb(244 242 248 / .22); }
.counter-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--text); }
.slide-counter.is-single .counter-fill { width: 100%; }
.counter-total { color: var(--text-dim); }
.slide-prev, .slide-next {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; color: var(--text); cursor: pointer; transition: transform .25s var(--ease), opacity .2s;
}
.slide-prev:hover { transform: translateX(-3px); }
.slide-next:hover { transform: translateX(3px); }
.slide-prev:disabled, .slide-next:disabled { opacity: .35; cursor: default; transform: none; }

/* ---------- Pause-Knopf fürs Video ---------- */
.media-toggle {
  position: absolute; right: calc(var(--pad-x) - .75rem); top: calc(var(--header-h) + 1rem);
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; color: var(--text-dim); cursor: pointer;
}
.media-toggle:hover { color: var(--text); }
.media-toggle .icon-play { display: none; }
.media-toggle[aria-pressed="true"] .icon-play { display: block; }
.media-toggle[aria-pressed="true"] .icon-pause { display: none; }
.media-toggle.is-hidden { display: none; }

/* Einblendung beim Laden – ein ruhiger Moment */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; }
  .hero-content > :nth-child(2) { animation-delay: .12s; }
  .hero-content > :nth-child(3) { animation-delay: .3s; }
  .hero-content > :nth-child(4) { animation-delay: .38s; }
  .hero-content > :nth-child(5) { animation-delay: .46s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

@media (max-width: 64rem) {
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 0; }
}
@media (max-width: 52rem) {
  .hero { justify-content: flex-end; padding-bottom: 8rem; }
  .hero::before { background: linear-gradient(0deg, rgb(7 6 26 / .85) 0%, rgb(7 6 26 / .45) 55%, rgb(7 6 26 / .2)); }
  .scroll-line { display: none; }
  .counter-track { width: 2.5rem; }
  .slide-nav { right: calc(var(--pad-x) - .6rem); }
  .slide-counter { margin-right: .25rem; gap: .6rem; }
  .contact-strip { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-strip > div { padding: 0; border-left: 0; }
}
@media (max-width: 40rem) {
  /* Hero: Text unten, ruhige untere Leiste */
  .hero { padding-bottom: 6.5rem; }
  .hero h1 { font-size: clamp(2.7rem, 11.5vw, 3.4rem); }
  .rule { margin: 1.75rem 0 1.5rem; }
  .hero-text { font-size: 1rem; }
  .hero-content .btn-outline { margin-top: 1.75rem; width: 100%; justify-content: space-between; }
  .scroll-hint { bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px)); }
  .slide-nav { bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); }
  .slide-nav.is-single { display: none; }
  .media-toggle { top: auto; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); right: calc(var(--pad-x) - .75rem); }
  .slide-nav:not(.is-single) ~ .media-toggle { right: auto; left: 50%; transform: translateX(-50%); }

  /* Kontaktleiste: E-Mail volle Breite, Telefon + Standort nebeneinander */
  .home-info { padding-top: 3rem; padding-bottom: 3.5rem; }
  .contact-strip { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; padding-bottom: 2rem; border-bottom: 1px solid rgb(244 242 248 / .1); }
  .contact-strip > div:first-child { grid-column: 1 / -1; }
  .contact-strip dt { font-size: .64rem; }
  .contact-strip dd { margin-top: .5rem; font-size: .98rem; }
  .areas { margin-top: 2rem; gap: .6rem; }

  .area-label { left: .85rem; right: 2.6rem; bottom: 1rem; font-size: .66rem; letter-spacing: .14em; }
  .area-arrow { right: .75rem; bottom: .9rem; width: 18px; }
}
