/* ---------- Grundlagen ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f7;
  --text: #1c2024;
  --muted: #5d6670;
  --line: #e3e6e9;
  --accent: #2f5d62;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  color: #fff;
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}

.site-header.solid {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  color: var(--text);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  font-weight: 600;
  letter-spacing: .2em;
  text-decoration: none;
  color: inherit;
}

.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }

.site-header nav a {
  color: inherit;
  text-decoration: none;
  font-size: .9rem;
  letter-spacing: .04em;
  opacity: .9;
}

.site-header nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #0f1b1e;
}

/* Fallback, solange noch kein Video vorhanden ist */
.hero-fallback {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(60% 60% at 25% 30%, #3d6b73 0%, transparent 60%),
    radial-gradient(55% 55% at 75% 70%, #23424a 0%, transparent 60%),
    #0f1b1e;
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 1%, 0) scale(1.08); }
}

/* Foto-Hintergrund: Datei assets/hero.jpg; fehlt sie, bleibt der Verlauf sichtbar */
.hero-photo {
  position: absolute;
  inset: 0;
  background: url("assets/hero.jpg") center / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, .25) 50%, rgba(0, 0, 0, .45));
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 0 1.5rem;
}

.hero h1 {
  font-weight: 300;
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  width: 28px;
  height: 46px;
  transform: translateX(-50%);
  border: 1.5px solid rgba(255, 255, 255, .7);
  border-radius: 16px;
}

.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: #fff;
  animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

/* ---------- Abschnitte ---------- */
.section { padding: clamp(4rem, 10vw, 8rem) 1.5rem; }
.section-alt { background: var(--bg-alt); }

.container { max-width: 44rem; margin: 0 auto; }

.eyebrow {
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.section h2 {
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.section p + p { margin-top: 1.1rem; }
.section p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem;
  font-size: .85rem;
  color: var(--muted);
}

.site-footer .container {
  max-width: 64rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.page { padding: 7rem 1.5rem 4rem; }
.page h1 { font-weight: 400; font-size: 2rem; margin-bottom: 1.5rem; }
.page p { color: var(--muted); }
.page .back { display: inline-block; margin-bottom: 2rem; font-size: .9rem; }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-fallback, .scroll-hint span { animation: none; }
}
