/**
 * funkel° legal pages stylesheet — Brand 2.0 (locked 14.05.2026).
 * Matches /index.html: Atkinson Hyperlegible (body, LRS-freundlich) +
 * Fraunces (display only, ≥32px discipline). Amber/Cream/Ink palette.
 * Used by /datenschutz.html, /impressum.html, /agb.html.
 */

/* ── Brand 2.0 Fonts (lokal, DSGVO-konform, kein Google-CDN) ─── */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/atkinson-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/atkinson-700.woff2') format('woff2');
}
/* Display: Fraunces — nur ≥32px für Marker-Momente (h1, Wordmark).
   Niemals Body. Discipline-Regel per Brand 2.0. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('/fonts/fraunces-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/fraunces-italic.woff2') format('woff2-variations');
}

/* ── Brand 2.0 Tokens ────────────────────────────────────────── */
:root {
  /* Amber-Family — Marker (Brand-Identifikation) vs Action (CTA on Light) */
  --fk-amber-marker: #f4a100;    /* 8.36:1 auf Ink — AAA · Wordmark, Highlights, Quote-Tiles */
  --fk-amber-action: #9F5F00;    /* 5.11:1 auf Weiß — AA · CTAs auf Light-BG */
  --fk-amber-light:  #FFF4D6;    /* helle Amber-Tönung für Card-BGs / Hovers */

  /* Legacy-Aliases (Übergangsphase) */
  --fk-accent:       #9F5F00;
  --fk-accent-light: #FFF4D6;
  --fk-cta-fill:     #9F5F00;
  --fk-cta-text:     #FFFFFF;

  /* Ink / Surfaces */
  --fk-ink-primary:  #1C1814;    /* Brand Ink */
  --fk-ink-secondary:#4A4A55;
  --fk-ink-muted:    #7A7066;    /* Brand Muted */
  --fk-page-bg:      #FAF8F4;    /* Brand Paper */
  --fk-card-bg:      #FFFFFF;
  --fk-card-creme:   #F7F2E8;    /* Brand Creme — elevated surfaces */
  --fk-success:      #00B894;
  --fk-warm:         #FEF3C7;
  --fk-warm-ink:     #92400E;
  --fk-border:       rgba(28,24,20,0.08);
  --shadow-sm: 0 1px 3px rgba(28,24,20,.06), 0 1px 2px rgba(28,24,20,.04);
  --shadow-md: 0 4px 6px rgba(28,24,20,.06), 0 2px 4px rgba(28,24,20,.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--fk-page-bg);
  color: var(--fk-ink-primary);
  font-family: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--fk-amber-action); }
a:hover { opacity: 0.85; }

/* ── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(250,248,244,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--fk-border);
  z-index: 100;
}
@media (min-width: 640px) { .nav { padding: 1.1rem 2.5rem; } }

.logo {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  color: var(--fk-ink-primary);
  text-decoration: none;
}
.logo-sup {
  color: var(--fk-amber-marker);
  font-size: 0.6em;
  vertical-align: super;
  margin-left: 0.05em;
}

.nav-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--fk-ink-secondary);
  text-decoration: none;
  transition: color .15s;
}
.nav-back:hover { color: var(--fk-amber-action); opacity: 1; }

/* ── MAIN CONTENT CARD ───────────────────────────────────────── */
main {
  max-width: 760px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
}
@media (min-width: 640px) {
  main { margin: 4rem auto 5rem; padding: 0 2rem; }
}

.legal-card {
  background: var(--fk-card-creme);   /* Brand Creme für elevated surface */
  border: 1px solid var(--fk-border);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-md);
}
@media (min-width: 640px) {
  .legal-card { padding: 3rem 3rem; }
}

main h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  color: var(--fk-ink-primary);
}
.legal-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fk-amber-action);
  margin-bottom: 0.75rem;
}
.legal-meta {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fk-ink-muted);
  margin-bottom: 2rem;
}

main h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2.25rem 0 0.65rem;
  color: var(--fk-ink-primary);
  letter-spacing: -0.01em;
}
main h2:first-of-type { margin-top: 0; }

main h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.25rem 0 0.4rem;
  color: var(--fk-ink-primary);
}

main p,
main li {
  font-size: 0.975rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--fk-ink-secondary);
  margin-bottom: 0.65rem;
}

main ul,
main ol {
  padding-left: 1.4rem;
  margin: 0.4rem 0 0.85rem;
}

main strong {
  color: var(--fk-ink-primary);
  font-weight: 700;
}

main em {
  font-style: italic;
  color: var(--fk-amber-action);
}

/* Highlighted callout box (used for important DSGVO clauses) */
.highlight {
  background: var(--fk-amber-light);
  border-left: 4px solid var(--fk-amber-marker);
  border-radius: 0.875rem;
  padding: 1rem 1.1rem;
  margin: 1.2rem 0;
}
.highlight p { color: var(--fk-ink-primary); margin-bottom: 0; }
.highlight strong { color: var(--fk-amber-action); }

.warm-box {
  background: var(--fk-warm);
  border-left: 4px solid #F59E0B;
  border-radius: 0.875rem;
  padding: 1rem 1.1rem;
  margin: 1.2rem 0;
}
.warm-box p { color: var(--fk-warm-ink); margin-bottom: 0; }
.warm-box strong { color: var(--fk-warm-ink); }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  padding: 2.5rem 1.5rem;
  background: #fff;
  border-top: 1px solid var(--fk-border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 720px) {
  footer { flex-direction: row; justify-content: space-between; padding: 2rem 2.5rem; }
}

.footer-links {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem;
  align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fk-ink-muted);
}
.footer-links a {
  color: var(--fk-ink-muted);
  text-decoration: none;
  transition: color .15s;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.footer-links a:hover { color: var(--fk-amber-action); opacity: 1; }
.footer-copy {
  font-size: 0.82rem;
  color: var(--fk-ink-muted);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
