* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #000;
  color: white;
  overflow-x: hidden;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.4s ease;
}

header.scrolled {
  background: rgba(0,0,0,0.92);
}

/* ─── Logo als Bild ─────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}

.logo img {
  height: 44px;           /* Größe des Logos – hier kannst du später anpassen */
  width: auto;
  max-height: 100%;
  transition: transform 0.25s ease;
}

.logo:hover img {
  transform: scale(1.06);
}

/* Auf sehr kleinen Bildschirmen etwas kleiner */
@media (max-width: 480px) {
  .logo img {
    height: 38px;
  }
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

nav a:hover,
nav a.active {
  color: #29d59a;
}

/* Hero Video */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.25) 40%,
    rgba(0,0,0,0.55) 65%,
    rgba(0,0,0,0.85) 82%,
    #000000 94%,
    #000000 100%
  );
  z-index: -1;
  pointer-events: none;
}

/* Overlay für Überschrift + Buttons */
.headline-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5vw;
}

/* Headline Basis */
.headline {
  font-weight: 800;
  line-height: 0.7; /* kompakter Zeilenabstand */
  letter-spacing: -1px;
  text-align: center;
  white-space: pre-line;
  margin-bottom: 2rem; /* Platz zu Buttons */
}

/* Standard: kleinste Screens → 5 Zeilen */
.headline-5 { display: block; font-size: 3rem; }
.headline-3,
.headline-2 { display: none; }

/* ≥576px → 5 Zeilen, Schriftgröße etwas größer */
@media (min-width: 576px) {
  .headline-5 { font-size: 3.5rem; }
}

/* ≥768px → 3 Zeilen */
@media (min-width: 768px) {
  .headline-5 { display: none; }
  .headline-3 { display: block; font-size: 4.5rem; }
  .headline-2 { display: none; }
}

/* ≥992px → 2 Zeilen */
@media (min-width: 992px) {
  .headline-3,
  .headline-5 { display: none; }
  .headline-2 { display: block; font-size: 5.5rem; }
}

/* ≥1200px → 2 Zeilen, Schriftgröße etwas größer */
@media (min-width: 1200px) {
  .headline-2 { font-size: 6rem; }
}

/* ≥1400px → 2 Zeilen, Schriftgröße noch größer */
@media (min-width: 1400px) {
  .headline-2 { font-size: 6.5rem; }
}

/* Buttons */
.buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem; /* Mindestabstand zur Überschrift */
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: #29d59a;
  color: #000;
  border: none;
}

.btn-primary:hover {
  background: white;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(41,213,154,0.3);
}

.btn-secondary {
  background: white;
  color: #000;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: #29d59a;
  color: #000;
  border-color: #29d59a;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(41,213,154,0.3);
}

/* Spacer */
.spacer {
  height: 20vh;
  min-height: 140px;
}

/* Footer */
footer {
  padding: 3rem 5vw;
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: #aaa;
}

.footer-menu {
  display: flex;
  gap: 2.2rem;
}

.footer-menu a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-menu a:hover {
  color: #29d59a;
}

/* Responsive Footer / Nav */
@media (max-width: 640px) {
  header {
    padding: 0 6vw;
  }
  nav ul {
    gap: 1.6rem;
  }
  .buttons {
    flex-direction: column;
    gap: 1.2rem;
  }
  footer {
    flex-direction: column;
    text-align: center;
  }
}