/* Construction Ahead — Production Stylesheet (constructionahead.de)
 * Designsystem: „Bauleiter-Klemmbrett & Tageslicht-Bake“ (game_theme.gd)
 */
@font-face {
  font-family: 'Barlow Condensed';
  src: url('assets/fonts/BarlowCondensed-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('assets/fonts/BarlowCondensed-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('assets/fonts/BarlowCondensed-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #F28500;
  --accent-hover: #FF9414;
  --accent-dark: #C26400;
  --accent-ink: #1C1104;
  --accent-on-light: #A85200;

  --asphalt: #1D222B;
  --bitumen: #2C323D;
  --asphalt-line: #3C4452;

  --yellow: #F5C400;
  --beacon-red: #C82828;
  --sign-blue: #1E5FA8;
  --sign-blue-dark: #15457D;
  --good: #207A41;
  --good-bg: #E6F4EB;
  --warn: #AE6400;

  --paper: #F7F4EC;
  --paper-soft: #EBE5D8;
  --paper-hover: #E0D8C6;
  --white: #FFFFFF;
  --line: #CFC6B4;
  --line-strong: #B5AA95;

  --text: #1D222B;
  --text-dim: #5A6270;

  --radius: 14px;
  --shadow-sm: 0 6px 18px rgba(26, 20, 12, 0.08);
  --shadow-md: 0 14px 34px rgba(26, 20, 12, 0.14);
  --shadow-lg: 0 22px 50px rgba(18, 22, 28, 0.28);

  --font-display: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(181, 170, 149, 0.17) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181, 170, 149, 0.17) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

:focus-visible {
  outline: 2.5px solid var(--sign-blue);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  background: var(--sign-blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

/* Hazard Strip */
.hazard-strip {
  height: 7px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow),
    var(--yellow) 11px,
    var(--asphalt) 11px,
    var(--asphalt) 22px
  );
}
.hazard-strip--rounded { border-radius: 3px; }

/* Sticky Header + Arbeitstag-Phasenleiste */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 236, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-link img { height: 38px; width: auto; display: block; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.desktop-nav a.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 2px;
}
.desktop-nav a.nav-link:hover { color: var(--text); }

.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  background: var(--paper-soft);
  border: 1px solid var(--line-strong);
  box-shadow: 0 2px 0 var(--line-strong);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 215px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.mobile-menu-panel a:hover { background: var(--paper-soft); }

@media (max-width: 780px) {
  .header-inner { padding: 8px 16px; }
  .brand-link img { height: 32px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
}

/* Arbeitstag-Phasenleiste */
.day-hud {
  background: rgba(235, 229, 216, 0.86);
  border-top: 1px solid rgba(181, 170, 149, 0.45);
}
.day-hud-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 5px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.day-phase-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--asphalt);
  white-space: nowrap;
  min-width: 148px;
}
.day-segments {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  flex: 1;
}
.day-seg {
  height: 6px;
  border-radius: 4px;
  background: #D6CEBE;
  overflow: hidden;
  position: relative;
}
.day-seg::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--good);
  border-radius: 4px;
  transition: width 0.25s ease, background 0.25s ease;
}
.day-seg.done::after { width: 100%; background: var(--good); }
.day-seg.active::after { width: 100%; background: var(--accent); }
.day-status {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--good);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
@media (max-width: 640px) {
  .day-hud-inner { padding: 5px 16px; gap: 10px; }
  .day-status { display: none; }
  .day-phase-label { min-width: auto; font-size: 13px; }
}

/* Tactile Buttons (Zero Layout-Reflow) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: var(--paper-soft);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: 0 3px 0 var(--line-strong);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease;
}
.btn:hover { background: var(--paper-hover); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line-strong); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border: 1px solid var(--accent-dark);
  box-shadow: 0 4px 0 var(--accent-dark);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--accent-dark);
  background: #DF7700;
  color: var(--accent-ink);
}
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: 13.5px; }

.btn-dark {
  background: var(--bitumen);
  color: var(--paper);
  border: 1px solid #4A5363;
  box-shadow: 0 3px 0 #101319;
}
.btn-dark:hover { background: #373E4B; }
.btn-dark:active { transform: translateY(2px); box-shadow: 0 1px 0 #101319; }

/* Tags & Keycaps */
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.tag-blue { background: #E6EFF9; color: var(--sign-blue); border-color: rgba(30, 95, 168, 0.24); }
.tag-orange { background: #FFF0D6; color: var(--accent-on-light); border-color: rgba(168, 82, 0, 0.26); }
.tag-green { background: var(--good-bg); color: var(--good); border-color: rgba(32, 122, 65, 0.25); }
.tag-soft { background: var(--paper-soft); color: var(--text-dim); border-color: rgba(90, 98, 112, 0.22); }

.keycap {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--line-strong);
  box-shadow: 0 2px 0 var(--line-strong);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--asphalt);
  line-height: 1.5;
}

/* ============================================================
   HERO: UI-FREIES DIORAMA + MONTIERTES BAUSCHILD (V2-A)
   ============================================================ */
.hero-diorama {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 46px 24px 64px;
  overflow: hidden;
  background: #4E7A34;
}
.hero-diorama-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}
.hero-diorama-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 26, 34, 0.56) 0%, rgba(22, 26, 34, 0.22) 48%, rgba(22, 26, 34, 0.04) 100%),
    linear-gradient(to bottom, transparent 78%, var(--paper) 100%);
}
.hero-diorama-inner {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.bauschild-hero {
  position: relative;
  width: 100%;
  max-width: 476px;
  background: rgba(247, 244, 236, 0.98);
  border: 2px solid var(--asphalt);
  box-shadow: 0 6px 0 var(--asphalt), var(--shadow-lg);
  border-radius: 16px;
  overflow: hidden;
  transform: rotate(-0.45deg);
}
@media (max-width: 640px) {
  .hero-diorama { min-height: auto; padding: 24px 16px 40px; }
  .bauschild-hero { transform: none; }
}
.screw {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8E95A0;
  border: 1px solid #4A515C;
  z-index: 3;
}
.screw.tl { top: 10px; left: 10px; }
.screw.tr { top: 10px; right: 10px; }
.screw.bl { bottom: 10px; left: 10px; }
.screw.br { bottom: 10px; right: 10px; }

.bauschild-bar {
  background: var(--asphalt);
  color: var(--yellow);
  padding: 8px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bauschild-content { padding: 20px 24px 22px; }
.bauschild-content h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 4.4vw, 52px);
  line-height: 0.96;
  color: var(--asphalt);
  margin: 8px 0 8px;
}
.bauschild-content h1 .hl { color: var(--accent-on-light); }
.cozy-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--sign-blue);
  margin-bottom: 10px;
}
.bauschild-pitch {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 18px;
}
.hero-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}
.diorama-pill {
  background: rgba(247, 244, 236, 0.96);
  border: 1px solid var(--line-strong);
  box-shadow: 0 3px 0 var(--line-strong), var(--shadow-sm);
  border-radius: 999px;
  padding: 8px 15px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--asphalt);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); }

/* Sections */
.section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 60px 24px;
}
@media (max-width: 640px) { .section { padding: 42px 16px; } }
.sec-cap {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sign-blue);
  margin-bottom: 4px;
}
.sec-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.04;
  color: var(--text);
  margin-bottom: 10px;
}
.sec-lead {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 660px;
  margin-bottom: 26px;
}

/* Gameplay Stage Switcher */
.stage-panel {
  background: var(--white);
  border: 1px solid var(--line-strong);
  box-shadow: 0 4px 0 var(--line-strong), var(--shadow-md);
  border-radius: 16px;
  padding: 14px;
}
.stage-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.stage-tab {
  min-height: 44px;
  padding: 8px 13px;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  background: var(--paper-soft);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: 0 2px 0 var(--line-strong);
  cursor: pointer;
}
.stage-tab:hover { background: var(--paper-hover); }
.stage-tab[aria-selected="true"] {
  background: var(--sign-blue);
  color: #fff;
  border-color: var(--sign-blue-dark);
  box-shadow: 0 2px 0 var(--sign-blue-dark);
}
.stage-frame {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--asphalt);
}
.stage-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.stage-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 4px 2px;
  font-size: 14px;
  color: var(--text-dim);
}

/* 5-Phasen Loop Strip */
.loop-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .loop-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .loop-strip { grid-template-columns: 1fr; } }
.loop-step {
  background: var(--white);
  border: 1px solid var(--line-strong);
  box-shadow: 0 3px 0 var(--line-strong);
  border-radius: 12px;
  padding: 15px;
}
.loop-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-on-light);
  margin-bottom: 4px;
  display: block;
}
.loop-step h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 5px; }
.loop-step p { font-size: 14px; color: var(--text-dim); }

/* Auftragsbrett */
.jobs-board {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: 0 4px 0 var(--line-strong), var(--shadow-md);
  border-radius: 16px;
  padding: 24px;
}
.jobs-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0 18px;
}
.jobs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .jobs-grid { grid-template-columns: 1fr; } }
.job-card {
  background: var(--white);
  border: 1px solid var(--line-strong);
  box-shadow: 0 3px 0 var(--line-strong);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.job-card h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.1; }
.job-card p { font-size: 14.5px; color: var(--text-dim); flex: 1; }
.job-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--paper-soft);
  font-size: 13.5px;
}
.job-foot span { color: var(--text-dim); }
.job-foot strong { color: var(--accent-on-light); }

/* Asphalt Band + Interaktive Ladefläche */
.asphalt-band {
  background: var(--asphalt);
  color: var(--paper);
  padding: 64px 24px;
}
@media (max-width: 640px) { .asphalt-band { padding: 48px 16px; } }
.asphalt-inner { max-width: 1140px; margin: 0 auto; }
.road-dashes {
  height: 5px;
  margin-bottom: 28px;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--yellow), var(--yellow) 34px, transparent 34px, transparent 64px);
}
.cap-yellow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 4px;
}
.title-light {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.05;
  color: var(--paper);
  margin-bottom: 10px;
}
.lead-light { font-size: 15.5px; color: #C7CDD8; max-width: 660px; margin-bottom: 26px; }

.fleet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 36px; }
@media (max-width: 920px) { .fleet-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .fleet-grid { grid-template-columns: 1fr; } }

.fleet-card {
  background: var(--bitumen);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 0 #11141B;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fleet-key {
  align-self: flex-start;
  background: var(--yellow);
  color: var(--asphalt);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  padding: 2px 9px;
  border-radius: 6px;
}
.fleet-card h3 { font-family: var(--font-display); font-size: 24px; color: var(--paper); }
.fleet-card p { font-size: 14px; color: #C5CBD6; flex: 1; }
.fleet-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 6px;
  font-size: 12.5px;
  color: #D9DFE8;
  align-items: center;
}

/* Download, Starthilfe & Feedback */
.dl-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .dl-layout { grid-template-columns: 1fr; } }
.card-panel {
  background: var(--white);
  border: 1px solid var(--line-strong);
  box-shadow: 0 4px 0 var(--line-strong), var(--shadow-sm);
  border-radius: 16px;
  padding: 24px;
}
.os-cta-box { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.os-secondary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--text-dim); }
.os-secondary a { color: var(--sign-blue); font-weight: 600; }

.mobile-only-note {
  display: none;
  background: #FFF7E8;
  border: 1px solid rgba(242, 133, 0, 0.4);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 12px;
}
@media (max-width: 720px) { .mobile-only-note { display: block; } }

.help-details { border-top: 1px solid var(--paper-soft); padding-top: 12px; margin-top: 12px; }
.help-details details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.help-details summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--text); }
.help-details p, .help-details ul { font-size: 13.5px; color: var(--text-dim); margin-top: 8px; }
.help-details ul { padding-left: 18px; }

.feedback-q {
  list-style: decimal;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 12px 0 16px;
}
.next-strip {
  margin-top: 20px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: 0 3px 0 var(--line-strong);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Feierabend-Bericht */
.feierabend-section { max-width: 1140px; margin: 0 auto; padding: 12px 24px 56px; }
@media (max-width: 640px) { .feierabend-section { padding: 8px 16px 40px; } }
.feierabend-card {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: 0 4px 0 var(--line-strong), var(--shadow-md);
  border-radius: 16px;
  padding: 22px 24px 24px;
}
.feierabend-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap; margin: 14px 0 16px;
}
.stamp-good {
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
  color: var(--good); background: var(--good-bg);
  border: 2px solid var(--good); border-radius: 10px; padding: 5px 14px;
}
.feierabend-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 720px) { .feierabend-facts { grid-template-columns: repeat(2, 1fr); } }
.fb-box { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.fb-box strong { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; line-height: 1.05; }
.fb-box span { font-size: 13px; color: var(--text-dim); }
.crew-quote {
  background: var(--paper-soft);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-weight: 500;
}

/* Footer */
.site-footer { background: var(--asphalt); color: var(--paper); padding: 36px 24px 32px; }
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: 14px; font-weight: 600; color: #D2CABA; text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }
.rsa-note {
  max-width: 1140px; margin: 18px auto 0; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px; color: #B4BCC8;
}

/* Subpages (Impressum, Datenschutz, Credits, 404) */
.doc-wrap { max-width: 820px; margin: 0 auto; padding: 48px 24px 64px; }
.doc-card {
  background: var(--white);
  border: 1px solid var(--line-strong);
  box-shadow: 0 4px 0 var(--line-strong), var(--shadow-md);
  border-radius: 16px;
  padding: 28px 32px;
}
@media (max-width: 640px) { .doc-card { padding: 20px; } }
.doc-card h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.5vw, 44px);
  line-height: 1.05;
  margin: 16px 0 12px;
}
.doc-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  margin: 24px 0 8px;
  color: var(--asphalt);
}
.doc-card p, .doc-card li { font-size: 15px; color: var(--text-dim); margin-bottom: 10px; }
.doc-card ul { padding-left: 20px; margin-bottom: 12px; }
.doc-card a { color: var(--sign-blue); font-weight: 600; }
.todo-box {
  background: #FFF7E8;
  border: 1px solid rgba(242, 133, 0, 0.45);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 14px 0;
  font-size: 14px;
  color: var(--text);
}
.credits-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  font-size: 14px;
}
.credits-table th, .credits-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--paper-soft);
  vertical-align: top;
}
.credits-table th {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sign-blue);
  font-size: 13.5px;
}
