/**
 * Gemeinsames Hosting-Chrome: Tokens, Header, Footer.
 * Kanonische Farb-/Flächen-Tokens → docs/web-style.md
 * Rechtstexte: /static-content/assets/legal.css (@import dieses Sheets).
 * Share/Preview: functions/preview_chrome.css spiegelt denselben :root.
 */

@import url("/fonts/fonts.css");

:root {
  /* Light page */
  --ink: #122033;
  --text: var(--ink); /* Alias (Share/Termin-Inline-CSS) */
  --muted: #5c6670;
  --muted2: #8a8a8a;
  --border: #e8e8e8;
  --line: #e3eaf2;
  --bg: #fafafa;
  --surface: #ffffff;
  --card: var(--surface);
  --surface-tint: #eef3f9; /* Ghost-Buttons, Chips — kein Page-BG */

  /* Brand */
  --brand: #0066cc;
  --brand-pressed: #004a99;
  --brand2: #2dd4bf;
  --brand-soft: rgba(0, 102, 204, 0.08);
  --brand2-soft: rgba(45, 212, 191, 0.1);

  /* Navy (Header-Gradient, Hero-Cards, dunkle Footers) */
  --navy: #001428;
  --navy-from: #050a14;
  --navy-mid: #001a33;
  --navy-to: #003366;
  --ink-on-dark: #f2f5f8;
  --ink-on-dark-muted: rgba(242, 245, 248, 0.72);

  /* Typo — fonts.css; Display = Newsreader (ruhige Serife für Überschriften) */
  --font-sans: Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: Newsreader, Georgia, "Times New Roman", serif;
  --font-display-settings: "opsz" 72;
}

/* -- Site header (dunkles Navy) -- */
.site-header {
  background: linear-gradient(
    165deg,
    var(--navy-from) 0%,
    var(--navy-mid) 55%,
    var(--navy-to) 100%
  );
  border-bottom: none;
  box-shadow: 0 8px 24px rgba(5, 10, 20, 0.18);
}

.site-header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 40px;
  border-radius: 0;
  box-shadow: none;
  flex-shrink: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 0.88rem;
}

.nav a {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-on-dark-muted);
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: #fff;
  border-bottom-color: var(--brand2);
}

.nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: #fff;
}

/* -- Site footer (einheitlich) -- */
.site-footer {
  margin-top: 40px;
  padding: 28px 20px 40px;
  border-top: 1px solid var(--border);
  background: transparent;
  text-align: center;
  color: var(--muted2);
  font-size: 0.86rem;
  line-height: 1.55;
}

.site-footer-inner {
  max-width: 720px;
  margin: 0 auto;
}

.site-footer-brand {
  margin: 0 0 10px;
}

.site-footer-brand a {
  color: inherit;
  text-decoration: none;
}

.site-footer-brand a:hover,
.site-footer-brand a:focus,
.site-footer-brand a:hover strong,
.site-footer-brand a:focus strong {
  color: var(--brand);
  text-decoration: none;
}

.site-footer-brand strong {
  color: var(--muted);
  font-weight: 700;
}

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

.site-footer-nav a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  padding: 2px 8px;
}

.site-footer-nav a:hover {
  text-decoration: underline;
  color: var(--brand-pressed);
}

.site-footer-sep {
  color: var(--muted2);
  font-weight: 400;
  user-select: none;
  pointer-events: none;
}

/* Dunkle Landing-Pages (z. B. Soft-Launch) */
.site-footer--on-dark {
  margin-top: 0;
  padding: 40px 24px 56px;
  border-top: none;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.45);
}

.site-footer--on-dark .site-footer-brand strong {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer--on-dark .site-footer-brand a:hover strong {
  color: #fff;
}

.site-footer--on-dark .site-footer-nav a {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer--on-dark .site-footer-nav a:hover {
  color: #fff;
}

.site-footer--on-dark .site-footer-sep {
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 520px) {
  .site-header-inner {
    padding: 12px 16px 14px;
  }

  .brand-logo {
    height: 36px;
  }

  .nav {
    width: 100%;
    gap: 4px 12px;
    padding-top: 2px;
  }
}
