/* ===== Font Faces ===== */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-400.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ===== Design Tokens ===== */
:root {
  --color-gold: #96a5ba;
  --color-gold-light: #b4becd;
  --color-gold-text: #4a5665;
  --color-anthracite: #011333;
  --color-hero-video-bg: #011032; /* exakter Hintergrundton des Hero-Videos, nur fuer Hero-Sektion */
  --color-sand: #f7f5f1;
  --color-white: #ffffff;
  --color-text: #33363a;
  --color-text-muted: #6b6f73;
  --color-border: #e4e0d8;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1200px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  --radius: 2px;
  --transition: 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--color-anthracite);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 var(--space-2);
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 var(--space-2); color: var(--color-text-muted); }
.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold-text);
  margin-bottom: var(--space-1);
  display: block;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.section { padding: var(--space-6) 0; }
.section--tight { padding: var(--space-5) 0; }
.section--dark {
  background: var(--color-anthracite);
  color: var(--color-sand);
}
.section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--dark p { color: rgba(247, 245, 241, 0.75); }
.section--dark .eyebrow { color: var(--color-gold); }

.grid { display: grid; gap: var(--space-4); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn--primary {
  background: var(--color-gold);
  color: var(--color-anthracite);
}
.btn--primary:hover { background: var(--color-gold-light); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--color-anthracite);
}
.btn--ghost:hover { background: var(--color-anthracite); color: var(--color-white); }
.section--dark .btn--ghost { color: var(--color-white); }
.section--dark .btn--ghost:hover { background: var(--color-white); color: var(--color-anthracite); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 241, 0.92);
  border-bottom: 1px solid var(--color-border);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.site-header .logo img { height: 34px; width: auto; }
.main-nav ul { display: flex; gap: var(--space-4); align-items: center; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-anthracite);
  transition: color var(--transition);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--color-gold-text); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: var(--space-1); }
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-anthracite);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--color-sand);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--transition), visibility 0s linear var(--transition);
  }
  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }
  .main-nav ul { flex-direction: column; align-items: flex-start; padding: var(--space-4) var(--space-3); gap: var(--space-3); }
  .main-nav a { font-size: 1.3rem; }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-anthracite);
  color: rgba(247, 245, 241, 0.7);
  padding: var(--space-5) 0 var(--space-3);
}
.site-footer a { color: rgba(247, 245, 241, 0.9); }
.site-footer a:hover { color: var(--color-gold); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(247, 245, 241, 0.15);
}
.footer-tagline {
  color: rgba(247, 245, 241, 0.6);
  font-size: 0.9rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h3 { color: var(--color-white); font-size: 1rem; font-family: var(--font-sans); font-weight: 600; margin-bottom: var(--space-2); }
.footer-grid li { margin-bottom: 0.5rem; font-size: 0.92rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-3);
  font-size: 0.85rem;
}

/* ===== Cards ===== */
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: var(--space-4);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(1,19,51,0.25); }
.card p { flex-grow: 1; }
.card .btn { margin-top: var(--space-2); }
.card__icon { width: 44px; height: 44px; margin-bottom: var(--space-2); color: var(--color-gold-text); }

/* ===== Forms ===== */
.form-field { margin-bottom: var(--space-3); }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--color-anthracite); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--color-white);
  color: var(--color-text);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 1px;
}
.form-note { font-size: 0.82rem; color: var(--color-text-muted); }
.form-success {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-gold);
  padding: var(--space-3);
  border-radius: var(--radius);
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-prose { max-width: 62ch; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--color-gold); color: var(--color-anthracite);
  padding: 0.8rem 1.2rem; font-weight: 600;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

/* ===== Cookie-Hinweis ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  background: var(--color-anthracite);
  color: var(--color-white);
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.4;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; color: var(--color-white); max-width: 60ch; }
.cookie-banner a { color: var(--color-white); }
.cookie-banner__dismiss {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-family: var(--font-sans);
  cursor: pointer;
}
.cookie-banner__dismiss:hover { background: rgba(255,255,255,0.12); }

/* ===== Hero (index.html) ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--color-hero-video-bg);
  color: var(--color-white);
}
.hero__stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero__video-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* Exakter Hintergrundton des Video-Assets -- fuellt den Raum links/rechts
     (oder oben/unten auf schmalen Viewports) neben dem quadratischen Video,
     ohne sichtbaren Farbbruch zum Video selbst. */
  background: var(--color-hero-video-bg);
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none; /* rein dekorativ, verhindert Browser-Hover-Overlay (PiP/Cast-Icons) */
}
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none; /* rein dekorativ, gleiches Verhalten wie zuvor .hero__video */
}
.hero__video::-webkit-media-controls,
.hero__video::-webkit-media-controls-overlay-play-button,
.hero__video::-webkit-media-controls-picture-in-picture-button {
  display: none !important;
}
.hero__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--space-3);
}
.js-hero-ready .hero__content { opacity: 0; }
.hero__content h1 { color: var(--color-white); max-width: 16ch; }
.hero__content p { color: rgba(247, 245, 241, 0.8); max-width: 46ch; margin: var(--space-2) auto var(--space-3); }
.hero__cta { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: center; }
.hero__scroll-hint {
  position: absolute; bottom: var(--space-3); left: 50%; transform: translateX(-50%);
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(247, 245, 241, 0.6);
}
