/* ======= FONTS ======= */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/roboto-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ======= VARIABLES ======= */
:root {
  --c-primary:      #3d5068;
  --c-primary-dark: #2b3a4d;
  --c-accent:       #7a95ad;
  --c-bg:           #dde1e9;
  --c-bg-alt:       #e8ecf2;
  --c-text:         #1A1A1A;
  --c-text-muted:   #5A6470;
  --c-border:       #b8c4d0;
  --c-border-light: rgba(184, 196, 208, 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: var(--c-bg);
  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(43, 58, 77, 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;
}

/* ======= FOOTER ======= */
.footer {
  position: sticky;
  bottom: 0;
  z-index: 100;
  padding: 28px 40px;
  background: rgba(43, 58, 77, 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;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--c-bg);
  padding: 24px 20px;
}
.wallpaper-img {
  display: block;
  max-height: 60vh;
  max-width: min(360px, 88vw);
  width: auto;
  height: auto;
}
.wallpaper-caption {
  text-align: center;
  color: var(--c-primary-dark);
  padding: 0 16px;
}
.wallpaper-caption h1 {
  font-size: clamp(18px, 4vw, 32px);
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.2;
}
.wallpaper-caption h1 em {
  font-style: normal;
  font-weight: 700;
}
.wallpaper-caption p {
  margin-top: 12px;
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 300;
  letter-spacing: 2px;
  opacity: 0.65;
}

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