/* ======= VARIABLES ======= */
:root {
  --c-primary:      #1F3A5F;
  --c-primary-dark: #15293F;
  --c-accent:       #2E75B6;
  --c-bg-alt:       #F7FAFC;
  --c-text:         #1A1A1A;
  --c-text-muted:   #5A6470;
  --c-border:       #D5DCE4;
  --c-border-light: rgba(213, 220, 228, 0.6);
  --font-sans:      'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-md:      12px;
  --radius-lg:      20px;
}

/* ======= RESET ======= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ======= BASE BODY ======= */
body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Applied only on index.html via <html class="no-scroll"> */
html.no-scroll,
html.no-scroll body {
  height: 100%;
  overflow: hidden;
}

/* ======= NAV ======= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(31, 58, 95, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand {
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-dot {
  width: 8px;
  height: 8px;
  background: var(--c-accent);
  border-radius: 50%;
  display: inline-block;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 6px 14px;
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.2s;
}
.lang-toggle:hover { border-color: #fff; color: #fff; }
.lang-toggle .active-lang { color: #fff; font-weight: 700; }
.lang-toggle .separator { color: rgba(255, 255, 255, 0.4); }

/* ======= FOOTER ======= */
.footer {
  position: sticky;
  bottom: 0;
  z-index: 100;
  padding: 28px 40px;
  background: rgba(31, 58, 95, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.footer-brand {
  flex: 1;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.5px;
}
.footer-legal {
  flex-shrink: 0;
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-brand a:hover,
.footer-legal a:hover { color: #fff; }

/* ======= WALLPAPER (index.html) ======= */
.wallpaper {
  flex: 1;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary);
}
.wallpaper-frame {
  position: absolute;
  top: 72px;
  bottom: 85px;
  left: 0;
  right: 0;
  overflow: hidden;
}
.wallpaper-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  display: block;
}
.wallpaper-caption {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 24px;
  margin-top: 72px;
}
.wallpaper-caption h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.wallpaper-caption h1 em {
  font-style: normal;
  font-weight: 700;
}
.wallpaper-caption p {
  margin-top: 16px;
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 300;
  letter-spacing: 2px;
  opacity: 0.9;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* ======= LEGAL PAGES (impressum.html / datenschutz.html) ======= */
.legal-page {
  flex: 1;
  padding: 110px 24px 80px;
}
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 40px;
  transition: gap 0.2s;
}
.back-link:hover { gap: 14px; }
.legal-content h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  color: var(--c-primary);
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}
.legal-subtitle {
  font-size: 14px;
  color: var(--c-text-muted);
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--c-border-light);
}
.legal-content h2 {
  font-size: 16px;
  font-weight: 500;
  color: var(--c-primary);
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 32px;
  border-top: 1px solid var(--c-border-light);
}
.legal-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal-content h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-primary);
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-content p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-text-muted);
  margin-bottom: 12px;
}
.legal-content ul {
  margin: 8px 0 16px 20px;
  color: var(--c-text-muted);
  font-size: 14px;
  line-height: 1.75;
}
.legal-content li { margin-bottom: 4px; }
.legal-content a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover { color: var(--c-primary); }
.legal-block {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 32px;
}
.legal-block p { margin-bottom: 6px; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-note {
  margin-top: 32px;
  font-size: 12px;
  color: rgba(90, 100, 112, 0.6);
}

/* ======= RESPONSIVE ======= */
@media (max-width: 640px) {
  .nav { padding: 16px 20px; }
  .footer { padding: 24px 20px; }
  .wallpaper-frame { bottom: 85px; }
  .legal-page { padding-top: 90px; }
}
