/* ─────────────────────────────────────────────────────────────
   legal.css — Geteilte Stile für impressum.html & datenschutz.html
   Übernimmt 1:1 die Design-Token, Header (Nav), Footer, Buttons
   und Typografie der Hauptseite (index.html).
   ───────────────────────────────────────────────────────────── */

/* ─── DESIGN-TOKEN (identisch zur Hauptseite) ─── */
:root {
  --navy:        #0B1C3F;
  --navy-deep:   #07142E;
  --navy-soft:   #1B2C4F;
  --navy-line:   rgba(11, 28, 63, 0.12);
  --gold:        #C4973C;
  --gold-soft:   #D9B768;
  --gold-deep:   #9C7423;
  --gold-tint:   rgba(196, 151, 60, 0.10);
  --linen:       #F5F0E6;
  --paper:       #FBF8F2;
  --sand:        #ECE4D2;
  --ink:         #1A1A1A;
  --ink-soft:    #4A4A4A;
  --ink-mute:    #8A8478;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans:  'Inter Tight', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:  'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
html, body { overflow-x: hidden; }
body {
  margin: 0; background: var(--linen); color: var(--ink);
  font-family: var(--sans); line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.eyebrow {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 500;
}
.display {
  font-family: var(--serif); font-weight: 500;
  letter-spacing: -0.025em; line-height: 1.0; color: var(--navy);
}
.display em { font-style: italic; font-weight: 400; color: var(--gold-deep); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 500; font-size: 15px;
  padding: 16px 28px; border-radius: 2px; cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn .arr { transition: transform 0.18s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); }
.btn--ghost-dark {
  color: var(--navy); border-bottom: 1px solid var(--navy);
  border-radius: 0; padding: 12px 4px;
}
.btn--ghost-dark:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

/* ─── NAV (identisch zur Hauptseite) ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 56px; transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(245, 240, 230, 0.92);
  backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--navy-line);
}
/* Legal-Seiten haben keinen Hero hinter der Leiste → dauerhaft hinterlegt */
.nav--solid { background: rgba(245, 240, 230, 0.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--navy-line); }
.nav-brand { display: flex; align-items: center; gap: 18px; }
.nav-brand-mark { height: 52px; width: auto; display: block; }
.nav-brand-name {
  font-family: var(--serif); font-size: 23px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--navy); line-height: 1.1;
}
.nav-brand-name span { color: var(--gold-deep); }
.nav-brand-sub {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-mute); margin-top: 3px;
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--navy);
  opacity: 0.75; transition: opacity 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { opacity: 1; color: var(--gold-deep); }
.nav-cta {
  background: var(--navy); color: #fff !important;
  padding: 11px 20px; font-size: 13px; font-weight: 500; opacity: 1 !important;
  transition: background 0.18s ease;
}
.nav-cta:hover { background: var(--gold); color: #fff !important; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; margin: -10px -6px; flex: none; z-index: 95;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.28s ease, opacity 0.2s ease; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-scrim { display: none; }

/* ─── LEGAL-INHALT ─── */
.legal-hero {
  background: var(--paper); padding: 150px 56px 64px;
  border-bottom: 1px solid var(--navy-line);
}
.legal-hero-inner { max-width: 880px; margin: 0 auto; }
.legal-hero .eyebrow { margin-bottom: 20px; display: block; }
.legal-hero h1 { font-size: clamp(40px, 5.5vw, 68px); }
.legal-hero p {
  margin-top: 22px; font-family: var(--serif); font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5; color: var(--ink-soft); max-width: 60ch;
}
.legal-main { padding: 64px 56px 110px; }
.legal-content { max-width: 880px; margin: 0 auto; }
.legal-content h2 {
  font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); font-weight: 500;
  color: var(--navy); letter-spacing: -0.02em; line-height: 1.15;
  margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--navy-line);
}
.legal-content > h2:first-child, .legal-content > *:first-child { margin-top: 0; }
.legal-content h3 {
  font-family: var(--serif); font-size: clamp(20px, 2.2vw, 24px); font-weight: 500;
  color: var(--navy); letter-spacing: -0.01em; margin-top: 36px; margin-bottom: 4px;
}
.legal-content h4 {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  color: var(--navy); margin-top: 22px; margin-bottom: 2px;
}
.legal-content p, .legal-content li {
  font-family: var(--sans); font-size: 16px; line-height: 1.7; color: var(--ink-soft);
}
.legal-content p { margin-top: 14px; }
.legal-content ul { margin-top: 14px; padding-left: 24px; list-style: disc; }
.legal-content li { margin-top: 8px; padding-left: 4px; }
.legal-content li::marker { color: var(--gold-deep); }
.legal-content strong { color: var(--navy); font-weight: 600; }
.legal-content a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; word-break: break-word; }
.legal-content a:hover { color: var(--navy); }
.legal-content address { font-style: normal; }
.legal-divider { margin: 0; border: 0; }

/* Hervorgehobener Datenblock (z. B. Anschrift im Impressum) */
.legal-card {
  margin-top: 18px; padding: 24px 28px;
  background: var(--paper); border: 1px solid var(--navy-line); border-radius: 2px;
}
.legal-card p { margin-top: 4px; }
.legal-card p:first-child { margin-top: 0; }

/* ─── FOOTER (identisch zur Hauptseite) ─── */
footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: 80px 56px 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr 1.1fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-name { font-family: var(--serif); font-size: 26px; color: #fff; letter-spacing: -0.01em; font-weight: 500; }
.footer-brand-name em { color: var(--gold-soft); font-style: italic; }
.footer-brand-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; color: rgba(255,255,255,0.4); margin-top: 8px; text-transform: uppercase; }
.footer-vkb { margin-top: 28px; height: 56px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-col-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--gold-soft); margin-bottom: 18px; text-transform: uppercase; }
.footer-col li { padding: 4px 0; font-size: 14px; list-style: none; }
.footer-col { list-style: none; padding: 0; margin: 0; }
.footer-col a { transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-legal { padding-top: 28px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-legal-links { display: flex; gap: 24px; align-items: center; }
.footer-legal-links a, .footer-legal-links .cc-reopen {
  display: inline-flex; align-items: center; min-height: 44px; transition: color 0.15s ease;
}
.footer-legal-links a:hover, .footer-legal-links .cc-reopen:hover { color: #fff; }

/* ─── RESPONSIVE (an Hauptseite angelehnt) ─── */
@media (max-width: 1024px) {
  .nav { padding: 16px 24px; }
  .nav-toggle { display: flex; }
  .nav-scrim { display: block; position: fixed; inset: 0; background: rgba(7,20,46,0.45); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 80; }
  .nav.open .nav-scrim { opacity: 1; pointer-events: auto; }
  .nav-links {
    display: flex; position: fixed; top: 0; right: 0;
    width: min(80vw, 320px); height: 100vh; height: 100dvh;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 92px 28px 32px; background: var(--linen);
    box-shadow: -10px 0 44px rgba(11,28,63,0.20);
    transform: translateX(100%); transition: transform 0.34s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto; z-index: 90;
  }
  .nav.open .nav-links { transform: translateX(0); }
  .nav-links li { width: 100%; list-style: none; }
  .nav-links ul { list-style: none; padding: 0; margin: 0; width: 100%; }
  .nav-links a { display: block; width: 100%; font-size: 16px; opacity: 1; padding: 16px 0; border-bottom: 1px solid var(--navy-line); }
  .nav-links .nav-cta { margin-top: 20px; text-align: center; padding: 15px 20px; font-size: 14px; border-bottom: 0; }
  .legal-hero { padding: 120px 24px 48px; }
  .legal-main { padding: 48px 24px 80px; }
  footer { padding: 56px 24px 24px; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-legal { flex-direction: column; gap: 16px; align-items: flex-start; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 72px; }
  .nav { padding: 14px 18px; }
  .nav-brand { gap: 10px; min-width: 0; }
  .nav-brand-mark { height: 38px; }
  .nav-brand-name { font-size: 19px; }
  .nav-brand-sub { white-space: nowrap; font-size: clamp(6px, 1.9vw, 9px); letter-spacing: 0.02em; }
  .legal-hero { padding: 104px 20px 40px; }
  .legal-main { padding: 40px 20px 64px; }
  /* Fließtext bleibt bei 16px für gute Lesbarkeit; Überschriften kompakter */
  .legal-hero h1 { font-size: clamp(28px, 7.5vw, 40px); }
  .legal-content h2 { font-size: clamp(21px, 5.5vw, 27px); margin-top: 48px; padding-top: 32px; }
  .legal-content h3 { font-size: clamp(19px, 4.6vw, 22px); }
  footer { padding: 48px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; padding-bottom: 32px; }
  .footer-col-title { font-size: 10px; margin-bottom: 14px; }
  .footer-col li { font-size: 12.5px; padding: 2px 0; }
  .footer-col a { display: inline-block; padding: 7px 0; }
  .footer-brand-name { font-size: 22px; }
  .footer-vkb { height: 48px; margin-top: 22px; }
  /* Rechtliche Links gestapelt & gut tippbar (44px Touch-Ziel, ≥8px Abstand) */
  .footer-legal { gap: 12px; }
  .footer-legal-links { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 380px) {
  .nav { padding: 12px 14px; }
  .nav-brand { gap: 8px; }
  .nav-brand-mark { height: 32px; }
  .nav-brand-name { font-size: 17px; }
}
