/* ============ Grundlagen & Variablen ============ */
:root {
  --bg: #16161a;
  --bg-alt: #1d1d23;
  --text: #f2f0eb;
  --text-muted: #b7b4bf;
  --blue: #4da3ff;
  --violet: #9a6bff;
  --gradient: linear-gradient(120deg, var(--blue), var(--violet));
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --max-width: 1140px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--blue);
  color: #101014;
  padding: 0.6em 1em;
  border-radius: 8px;
  z-index: 1000;
  transition: top 0.2s ease;
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  border: 2px solid transparent;
}
.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--gradient);
  color: #0d0d10;
}
.btn-secondary {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  border-color: var(--blue);
}
.btn-large {
  font-size: 1.05rem;
  padding: 1em 2em;
}

/* ============ Header / Navigation ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(22, 22, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1.1;
}
.brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 0.95em;
}

.main-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.main-nav a:hover, .main-nav a:focus-visible {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 20, 0.35) 0%, rgba(15, 15, 20, 0.55) 55%, rgba(15, 15, 20, 0.95) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  width: 100%;
}
.slogan {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.6em;
}
.hero-text {
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ============ Social Strip ============ */
.social-strip {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 1.25rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.social-link:hover, .social-link:focus-visible {
  color: var(--blue);
}

/* ============ Sections ============ */
.section {
  padding: 5rem 1.25rem;
  position: relative;
}
.section-alt {
  background: var(--bg-alt);
}

/* Sanfter Übergang zwischen Abschnitten */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.section-alt::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0));
}

/* Sanftes Einblenden beim Scrollen (nur aktiv, wenn JS die Klasse setzt) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-inner.narrow {
  max-width: 640px;
}
.center {
  text-align: center;
}
.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.form-box {
  margin-top: 2rem;
  padding: 2rem 1.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-box p {
  color: var(--text-muted);
}
.btn-placeholder {
  background: transparent;
  border: 2px dashed var(--border);
  color: var(--text-muted);
}
.btn-placeholder:hover, .btn-placeholder:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.5em;
}
.eyebrow.center {
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split.reverse .split-media {
  order: 2;
}
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5em 0 0;
  display: grid;
  gap: 0.6em;
}
.feature-list li {
  padding-left: 1.6em;
  position: relative;
  color: var(--text-muted);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}

/* ============ Galerie ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2.5rem 0;
}
.gallery-item {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  position: relative;
}
.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img, .gallery-item:focus-visible img {
  transform: scale(1.06);
}
.gallery-item:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.video-block {
  margin-top: 3rem;
  text-align: center;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 640px;
  margin: 0 auto;
}
.video-block video {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #000;
}
.hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 1.25rem 2rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.footer-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  margin: 0 auto 1rem;
}
.footer-brand {
  font-weight: 700;
  margin-bottom: 0.3em;
}
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
}
.footer-socials a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}
.footer-socials a:hover, .footer-socials a:focus-visible {
  color: var(--blue);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.legal-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
}
.legal-toggle:hover, .legal-toggle:focus-visible {
  color: var(--blue);
}
.legal-text {
  max-width: 480px;
  margin: 0 auto 1.5rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.legal-text a {
  color: var(--blue);
}
.legal-note {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 1em;
  margin-bottom: 0;
}
.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* ============ Lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}
.lightbox[hidden] {
  display: none;
}
.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover, .lightbox-nav:hover,
.lightbox-close:focus-visible, .lightbox-nav:focus-visible {
  border-color: var(--blue);
}
.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}
.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .brand-logo {
    width: 50px;
    height: 50px;
  }
  .main-nav {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open {
    max-height: 400px;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1.5rem;
  }
  .main-nav li {
    border-bottom: 1px solid var(--border);
  }
  .main-nav a {
    display: block;
    padding: 0.9rem 0;
  }
  .nav-toggle {
    display: flex;
  }

  .split {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-media {
    order: 0;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item.large {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 4 / 3;
  }

  .video-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .lightbox-prev, .lightbox-next {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  .lightbox-close {
    width: 38px;
    height: 38px;
    top: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 0.95rem;
    gap: 0.5rem;
  }
  .brand-logo {
    width: 46px;
    height: 46px;
  }
  .hero {
    min-height: 100svh;
  }
  .hero-buttons,
  .contact-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-buttons .btn,
  .contact-buttons .btn {
    text-align: center;
    border-radius: 12px;
  }
  .social-strip {
    gap: 1.5rem;
  }
  .fun-gallery .gallery-item {
    width: 45%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
