:root {
  /* Helles Schema mit leicht blau getöntem Hintergrund */
  --bg: #f6fbff;            /* getöntes Weiß (bläulich) */
  --fg: #0f172a;            /* dunkler Text für gute Lesbarkeit */
  --muted: #475569;         /* Sekundärtext */
  --accent: #4da3ff;        /* Logo-/Akzent-Blau */
  --card: #ffffff;          /* Karten-/Flächenfarbe */
  --border: #e5e7eb;        /* zarter Rand */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Helvetica Neue", "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
 a:hover { text-decoration: underline; }

.container {
  width: min(100%, 960px);
  margin: 24px auto;
  padding: 24px;
  flex: 1 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(2, 14, 34, 0.06);
}

header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 48px; /* doppelt so groß */
  background: var(--accent);
  position: relative;
  z-index: 1000;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  padding: 12px 20px; /* doppelt */
  font-size: 32px; /* doppelt */
  cursor: pointer;
  z-index: 1002; /* über Menüliste */
}

.brand {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 16px; /* doppelt */
  color: #ffffff;
  font-size: 2rem; /* größerer Titel */
}
.brand-logo { height: 64px; width: auto; display: block; } /* feste Größe */

.nav-links { display: flex; gap: 32px; }
.nav-links a { color: #ffffff; font-size: 20px; }
.lang-switch { display: flex; gap: 16px; }
.lang-switch-mobile { display: none; }
.lang-select { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.6); border-radius: 8px; padding: 12px 16px; font-size: 1.1rem; }
.lang-select option { color: #000; }

/* Sprachbuttons im mobilen Menü */
.lang-buttons { display: flex; gap: 12px; padding: 12px 24px; }
.lang-btn {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-btn.active,
.lang-btn[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

footer {
  flex-shrink: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
}

footer .footer-inner {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 16px 24px;
  color: var(--muted);
}

.hero h1 { margin-top: 0; }

.video-section { margin-top: 24px; }
.video-description {
  margin-top: 24px; /* gleicher Abstand wie oben zur Video-Section */
  color: var(--muted);
  text-align: justify; /* Blocksatz für den Fließtext */
}
.video-wrapper {
  position: relative;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.video-wrapper iframe,
.video-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
}
.video-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s;
  z-index: 1;
  border: 0 solid transparent;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-top: 30px solid var(--accent);
  border-bottom: 30px solid var(--accent);
  clip-path: polygon(30% 20%, 30% 80%, 80% 50%);
  background: var(--accent);
}
.video-wrapper video:not([poster])::before,
.video-wrapper.playing::before {
  opacity: 0;
}
.video-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  -webkit-backdrop-filter: saturate(120%) blur(2px);
  backdrop-filter: saturate(120%) blur(2px);
  display: none;
  z-index: 900;
}

@media (max-width: 640px) {
  .nav { gap: 12px; }
  .nav-toggle { display: inline-block; }
  .brand { order: 2; }
  .lang-switch { order: 4; display: none; }
  .nav-links {
    order: 3;
    position: absolute;
    left: 0; right: 0;
    top: calc(56px + 1px);
    background: var(--card);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
    overflow: hidden;
    transition: visibility 0s linear 200ms, opacity 180ms ease, transform 180ms ease, max-height 220ms ease;
    pointer-events: none;
    z-index: 1001;
  }
  .nav-links a { padding: 12px 24px; display: block; color: var(--fg); }
  .nav-links .lang-switch-mobile { display: block; border-top: 1px solid var(--border); }
  .nav-links.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    max-height: 60vh; /* Slide-Down Effekt */
    transition-delay: 0s;
    pointer-events: auto;
  }
  .nav-overlay.show { display: block; }
  .container { padding: 16px; }
  body { font-size: 16px; }
}

@media (min-width: 641px) and (max-width: 1024px) {
  body { font-size: 17px; }
}

@media (min-width: 1025px) {
  body { font-size: 18px; }
}
