*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    -webkit-system-font, "Segoe UI", Roboto, sans-serif;
  background: #050509;
  color: #f5f5f7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

/* HEADER + NAV */

.site-header {
  position: relative;
  background: #050509;
  color: #f5f5f7;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-logo-main {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-logo-sub {
  font-size: 0.82rem;
  opacity: 0.8;
}

.main-nav {
  display: flex;
  gap: 10px;
  font-size: 0.86rem;
}

.main-nav a,
.main-nav a:visited {
  color: #f5f5f7;
  text-decoration: none;
  opacity: 0.8;
  position: relative;
  padding: 6px 10px;
  border-radius: 999px;
  transition: opacity 160ms ease, background 160ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 1px;
  background: rgba(255,255,255,0.25);
  opacity: 0;
  transition: opacity 160ms ease;
}

.main-nav a:hover {
  opacity: 1;
  background: rgba(255,255,255,0.06);
}

.main-nav a:hover::after {
  opacity: 1;
}

/* HERO */

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: #050509;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,5,9,0.2), rgba(5,5,9,0.9));
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 120px 24px 120px;
  text-align: center;
}

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .78;
  margin: 0 0 8px;
}

.hero-inner h1 {
  font-size: clamp(2.6rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.hero-sub {
  font-size: 1.05rem;
  opacity: 0.9;
  margin: 0 0 8px;
}

.hero-sub.small {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* SECTIONS */

main {
  background: #050509;
}

.section.split {
  position: relative;
  padding: 90px 0;
}

/* abwechselnd hell/dunkel */
.section.split:nth-of-type(odd) {
  background: #f5f5f7;
  color: #111118;
}

.section.split:nth-of-type(even) {
  background: #050509;
  color: #f5f5f7;
}

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

/* Reihenfolge */
.section-media.left { order: 1; }
.section-content.right { order: 2; }

.section-media.right { order: 2; }
.section-content.left { order: 1; }

.section-media {
  position: relative;
}

.section-media img {
  border-radius: 22px;
  transform: translateY(8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

/* Text anfangs unsichtbar, wird über Typewriter eingeblendet */
.section-content {
  max-width: 560px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.section-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-content h2 {
  font-size: 2.05rem;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.section-content .lead {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

/* Hover-Mikrobewegung für Bilder */
.section.split:hover .section-media img {
  transform: translateY(0);
  box-shadow: 0 26px 52px rgba(0,0,0,0.45);
}

/* CONTACT / FORM / IMPRESSUM */

.section.contact {
  background: #050509;
  color: #f5f5f7;
  padding: 90px 24px;
}

.contact-inner {
  max-width: 800px;
  margin: 0 auto;
}

.contact-inner h2 {
  font-size: 2rem;
  margin: 0 0 12px;
}

.contact-inner p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 24px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-row label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.field-row input,
.field-row textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(15,15,25,0.9);
  color: #f5f5f7;
}

.field-row input:focus,
.field-row textarea:focus {
  outline: none;
  border-color: #ffffff;
}

/* Map im Impressum */

.map-wrap {
  margin-top: 24px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
}

.map-wrap iframe {
  width: 100%;
  height: 260px;
  border: 0;
}

/* Buttons */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  color: #000;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:hover {
  background: #e5e5e5;
}

/* AUDIO TOGGLE */

.audio-toggle {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 9999;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(5,5,9,0.9);
  color: #f5f5f7;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.audio-toggle.hidden {
  display: none;
}

/* SCROLL TOP – mittig unten */

.scroll-top {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 9999;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  font-size: 12px;
  background: rgba(230,230,235,0.95); /* hellgrau wie gewünscht */
  color: #111118;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.scroll-top.hidden {
  display: none;
}

/* FOOTER */

footer {
  padding: 32px 24px 48px;
  text-align: center;
  font-size: 0.9rem;
  background: #050509;
  color: rgba(245,245,247,0.7);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .main-nav {
    display: none; /* später optional Burger-Menü */
  }

  .section-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .section-media.left,
  .section-media.right,
  .section-content.left,
  .section-content.right {
    order: unset;
  }

  .hero-inner {
    padding: 96px 22px 96px;
  }
}

@media (max-width: 600px) {
  .hero-inner h1 {
    font-size: 2.2rem;
  }

  .section-content h2 {
    font-size: 1.7rem;
  }

  .section.split {
    padding: 70px 0;
  }

  .audio-toggle {
    top: 10px;
    left: 10px;
    font-size: 11px;
    padding: 5px 10px;
  }
}
