:root {
    --header-h: 88px;
--brand-green: #4CAF50;
  --header-bg: rgba(255, 255, 255, 0.6);
  --footer-bg: rgba(255, 255, 255, 0.7);
  --text: #333;
  --shadow-top: 0 -5px 10px rgba(0,0,0,0.2);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

body {
  background: #000;
}

/* Background video */
.video-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  background: #000;
}

.video-bg.video-disabled {
  display: none;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus {
  left: 10px;
  top: calc(10px + env(safe-area-inset-top));
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: calc(12px + env(safe-area-inset-top)) 12px 12px;
  box-sizing: border-box;
  background: var(--header-bg);
  font-weight: bold;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.header-link {
  font-size: clamp(1.15rem, 3.8vw, 2rem);
  text-decoration: none;
  color: inherit;
  cursor: pointer;

  display: inline-block;
  line-height: 1.05;
}



/* Zweizeiliger Titel im Header */
.header-link .title-main {
  display: block;
  letter-spacing: 0.2px;
}

.header-link .title-sub {
  display: block;
  font-weight: 600;
  font-size: 0.58em;
  opacity: 0.95;
}

/* Top-right links */
.header-links {
  position: fixed;
  right: 16px;
  top: calc(16px + env(safe-area-inset-top));
  font-size: 1rem;
  display: flex;
  gap: 12px;
  z-index: 25;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-links a {
  text-decoration: none;
  color: #333;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
}

.header-links a:hover {
  text-decoration: underline;
}

.header-links a:focus-visible {
  outline: 3px solid rgba(76,175,80,0.6);
  outline-offset: 2px;
}

/* Logo */
.logo {
  display: block;
  width: 100%;
  text-decoration: none;
  text-align: center;
  margin-top: 0;
  padding-top: calc(var(--header-h) + 12px);
  cursor: pointer;
}

.logo img {
  max-width: 300px;
  width: min(80%, 320px);
  height: auto;
}

/* Footer */
footer {
  width: 100%;
  background-color: var(--footer-bg);
  color: #333;
  text-align: center;
  font-size: 1.05rem;
  font-weight: bold;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 20;
  box-shadow: var(--shadow-top);
}

/* Utility */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion: remove fancy animations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive header/link placement */
@media (max-width: 650px) {
  :root {
    --header-h: 128px;
  }

  .header-links {
    left: 10px;
    right: 10px;
    top: calc(56px + env(safe-area-inset-top));
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
  }
  .logo {
    margin-top: 70px;
  }
  footer {
    font-size: 0.95rem;
  }
}

@media (max-width: 360px) {
  .header-links {
    font-size: 0.9rem;
  }
}
