:root {
  --header-brand-h: 78px;
  --header-h: 148px;
  --brand-green: #4CAF50;
  --brand-green-dark: #2f6d3a;
  --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;
  min-height: var(--header-brand-h);
}

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

  display: inline-block;
  line-height: 1.05;
  max-width: calc(100% - 24px);
}



/* 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;
}

/* Navigation in a separate row below the centered brand */
.header-links {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(78px + env(safe-area-inset-top));
  padding: 7px 14px 9px;
  box-sizing: border-box;
  font-size: 1rem;
  display: flex;
  gap: 12px;
  z-index: 25;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(255, 255, 255, 0.86);
  border-top: 1px solid rgba(51, 51, 51, 0.07);
  border-bottom: 1px solid rgba(51, 51, 51, 0.12);
  backdrop-filter: blur(12px);
  min-height: 54px;
}

.header-links a {
  text-decoration: none;
  color: #333;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.header-links a:hover,
.header-links a:focus-visible,
.header-links a[aria-current="page"] {
  color: #fff;
  background: var(--brand-green-dark);
  text-decoration: none;
  box-shadow: 0 7px 18px rgba(47, 109, 58, 0.24);
  transform: translateY(-1px);
}

.header-links a:focus-visible {
  outline: 3px solid rgba(217, 167, 46, 0.78);
  outline-offset: 2px;
}

/* Logo */
.logo {
  display: block;
  width: 100%;
  text-decoration: none;
  text-align: center;
  margin-top: 0;
  padding-top: calc(var(--header-h) + 24px);
  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);
}

.revocation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 2px solid #d9a72e;
  border-radius: 999px;
  background: #1e4c29;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}

.revocation-button:hover,
.revocation-button:focus-visible {
  background: #2f6d3a;
  text-decoration: none;
}

/* 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: 900px) {
  :root {
    --header-h: 184px;
  }

  .header-links {
    gap: 5px;
    padding-inline: 10px;
    font-size: 0.9rem;
  }
}

@media (max-width: 650px) {
  :root {
    --header-brand-h: 74px;
    --header-h: 228px;
  }

  .header-links {
    top: calc(74px + env(safe-area-inset-top));
    justify-content: center;
    gap: 4px;
    padding: 6px 8px 8px;
    font-size: 0.86rem;
  }
  .logo {
    margin-top: 0;
  }
  footer {
    font-size: 0.95rem;
  }
}

@media (max-width: 360px) {
  :root {
    --header-h: 250px;
  }

  .header-links {
    font-size: 0.8rem;
  }
}


/* Einheitliche Fußnavigation auf allen Seiten */
.site-footer {
  position: static;
  inset: auto;
  width: 100%;
  padding: 22px max(20px, calc((100% - 1280px) / 2));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  background: rgba(30, 76, 41, 0.98);
  color: #fff;
  box-sizing: border-box;
  box-shadow: none;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: left;
}

.site-footer-brand {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 16px;
}

.site-footer nav a {
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 0;
  background: transparent;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible,
.site-footer nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.site-footer-copy {
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.78);
}

/* Auf der videobasierten Startseite bleibt das Menü am unteren Rand,
   ohne einzelne Rechtsthemen optisch hervorzuheben. */
.site-footer-home {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  padding-top: 11px;
  padding-bottom: calc(11px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.88);
  color: #26372a;
  box-shadow: var(--shadow-top);
  backdrop-filter: blur(12px);
}

.site-footer-home .site-footer-brand,
.site-footer-home nav a {
  color: #26372a;
}

.site-footer-home .site-footer-copy {
  color: rgba(38, 55, 42, 0.72);
}

@media (max-width: 900px) {
  .site-footer {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }

  .site-footer nav {
    justify-content: center;
  }

  .site-footer-home {
    position: static;
    margin-top: 20px;
  }
}
