/* style.css – One Page: Fullscreen Hero + “Overlapping Scroll Panels” */

/* ==========
   RESET / BASIS
   ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: #fff;
  background: #000;
  overflow-x: hidden;
}

:root {
  --logo-y: 40vh;
  --logo-scale: 1;
  --logo-lock-progress: 0;
}

/* Optional: weiches Scrollen (ok für Onepager) */
html {
  scroll-behavior: smooth;
}

/* Bilder responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========
   LAYOUT: Sticky Panels zum "Überdecken"
   ========== */

/*
  Trick:
  - Jede Sektion ist height: 100vh
  - position: sticky; top: 0
  => Beim Scrollen "klebt" die Sektion oben
  - Z-Index staffeln, damit neue Sektionen drüber liegen
*/

.page {
  /* keine besonderen Einstellungen nötig */
}

.panel {
  position: relative;
  min-height: 100vh;
  top: auto;
  width: 100%;
  display: block;
  overflow: visible;
}
.footer {
  position: relative;
  min-height: 10vh;
  top: auto;
  width: 100%;
  display: block;
  overflow: visible;
}

/* Reihenfolge: je weiter unten im Dokument, desto höher der z-index */
.panel--hero  { z-index: 1; }
.panel--one   { z-index: 2; }
.panel--two   { z-index: 3; }
.panel--three { z-index: 4; }
.panel--four  { z-index: 5; }

/* ==========
   HERO
   ========== */

.panel--hero {
  background: #000;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.panel--one,
.panel--two,
.panel--three,
.panel--four {
  position: sticky;
  top: var(--sticky-top, 0px);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video,
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video {
  z-index: 1;
  opacity: 1;
  transition: opacity 1s ease;
}

.hero__video.is-done {
  opacity: 0;
  pointer-events: none;
}

.hero__image {
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: background-image 0.8s ease-in-out;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 24px;
}

.logo {
  width: min(52vw, 520px);
  max-width: 820px;
  min-width: 160px;
  height: auto;
  margin: 0 auto;
  /* Optional: Schatten, damit es immer lesbar bleibt */
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.45));
}

.logo-shell {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 200;
  pointer-events: none;
}

.logo-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(96px, 26vh, 320px);
  z-index: 190;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.38) 42%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: clamp(0, calc((var(--logo-lock-progress) - 0.45) * 2.2), 1);
  transition: opacity 0.16s linear;
}

.logo--sticky {
  transform-origin: center top;
  transform: translate(-50%, var(--logo-y)) scale(var(--logo-scale));
  transition: transform 0.08s linear;
}

.privacy-page {
  background: #000;
}

.logo-shell--static {
  text-decoration: none;
}

.logo--static-top {
  transform: translate(-50%, clamp(12px, 3vh, 28px)) scale(0.52);
}

.logo-gradient--static {
  opacity: 1;
}

.text-panel {
  position: relative;
  top: auto;
  min-height: 100vh;
  overflow: visible;
}

.privacy-section-content {
  max-width: 980px;
  padding-top: clamp(120px, 18vh, 220px);
  padding-bottom: clamp(48px, 8vh, 96px);
}

.privacy-section-content p {
  max-width: 100%;
}

.privacy-section-content a {
  color: #d6e7ff;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.privacy-source {
  margin-top: 20px;
  opacity: 0.8;
  font-size: 0.95rem;
}

.hero__hint {
  margin-top: 18px;
  font-size: 14px;
  opacity: 0.75;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========
   CONTENT-SEKTIONEN
   ========== */

.container {
  margin: 0 auto;
  padding: clamp(18px, 4vw, 48px);
  padding-top: clamp(100px, 19vh, 400px)!important;
}

/* Beispiel-Hintergründe (später nach Wunsch ersetzen) */
.panel--one   { background: linear-gradient(135deg, #111, #1b1b1b); }
.panel--two   { background: linear-gradient(135deg, #0f172a, #111827); }
.panel--three { background: linear-gradient(135deg, #1f2937, #0b1220); }
.panel--four  { background: linear-gradient(135deg, #111, #000); }

h2 {
  margin: 0 0 10px 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
}

h1 {
  margin: 0 0 10px 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
}

h3 {
  margin: 0;
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 500;
}

p {
  margin: 0;
  font-size: clamp(16px, 2.1vw, 18px);
  max-width: 65ch;
  opacity: 0.92;
}

.section-stack {
  display: grid;
  gap: 16px;
}

.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3.5vw, 48px);
  align-items: center;
}

.section-split--gallery-left .section-gallery { order: 1; }
.section-split--gallery-left .section-copy { order: 2; }
.section-split--gallery-right .section-copy { order: 1; }
.section-split--gallery-right .section-gallery { order: 2; }

.text-left {
  text-align: right;
}

.section-copy {
  padding-right: 8px;
}

.section-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.65);
}

.gallery-nav--prev { left: 12px; }
.gallery-nav--next { right: 12px; }

.contact-teaser {
  margin-top: 18px;
}

.contact-teaser a,
.legal-links a {
  color: inherit;
  text-underline-offset: 3px;
}

.contact-block {
  margin-top: 20px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* ==========
   MOBILE FEINSCHLIFF
   ========== */
@media (max-width: 480px) {
  .hero__hint { font-size: 12px; }
  .container { padding: 18px; }
  .logo--sticky {
    width: clamp(300px, 44vw, 220px);
  }
}

@media (max-width: 900px) {
  .section-split {
    grid-template-columns: 1fr;
  }
  .section-split .section-gallery,
  .section-split .section-copy {
    order: initial;
  }
  .section-copy {
    padding-right: 0;
  }
}

/* ==========
   ACCESSIBILITY: Reduce Motion
   ========== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
