/* ── Local Fonts ── */
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-400.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-500.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-600.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-700.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --primary: #2082b5;
  --primary-light: #2cb0f0;
  --secondary: #eb5a4f;
  --accent: #f88154;
  --ink: #1e3a5f;
  --text: #2a4a6b;
  --text-light: #5a7a94;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --stroke: rgba(32,130,181,0.10);
  --radius: 20px;
}

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

body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Kopfzeile ── */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px clamp(1.2rem, 5vw, 3rem);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--stroke);
}
.legal-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}
.legal-nav .brand img { height: 30px; width: auto; }
.legal-nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.legal-nav-links a {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.legal-nav-links a:hover { background: rgba(32,130,181,0.08); color: var(--primary); text-decoration: none; }
.legal-nav-links a[aria-current="page"] { background: rgba(32,130,181,0.10); color: var(--primary); font-weight: 600; }

/* ── Inhalt ── */
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.2rem, 5vw, 2rem) 5rem;
}

.legal-wrap h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.6rem;
}
.legal-meta {
  font-size: 0.86rem;
  color: var(--text-light);
  margin: 0 0 2.5rem;
}

.legal-wrap h2 {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 2.8rem 0 0.9rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--stroke);
}
.legal-wrap h2:first-of-type { border-top: none; padding-top: 0; margin-top: 1.5rem; }

.legal-wrap h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.8rem 0 0.6rem;
}

.legal-wrap p { margin: 0 0 1rem; font-size: 0.95rem; }
.legal-wrap ul { margin: 0 0 1.2rem; padding-left: 1.3rem; font-size: 0.95rem; }
.legal-wrap li { margin-bottom: 0.4rem; }

.legal-address {
  font-style: normal;
  background: var(--bg-soft);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Hervorgehobenes Widerspruchsrecht (Art. 21 Abs. 4 DSGVO verlangt
   eine von anderen Informationen getrennte, deutliche Darstellung) */
.legal-highlight {
  background: rgba(32,130,181,0.05);
  border: 1px solid rgba(32,130,181,0.22);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  margin: 1.5rem 0;
}
.legal-highlight h3 { margin-top: 0; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.92rem; }
.legal-highlight p { font-weight: 500; margin-bottom: 0.8rem; }
.legal-highlight p:last-child { margin-bottom: 0; }

/* ── Platzhalter, die noch ausgefüllt werden müssen ── */
.ph {
  display: inline-block;
  background: #fff4d6;
  border: 1px dashed #d99e00;
  border-radius: 5px;
  padding: 1px 8px;
  color: #8a6400;
  font-weight: 600;
  font-size: 0.9em;
  white-space: nowrap;
}

.todo-banner {
  background: #fff8e6;
  border: 1px solid #e8c766;
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin: 0 0 2.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #7a5a00;
}
.todo-banner strong { display: block; margin-bottom: 0.4rem; color: #6b4e00; font-size: 0.95rem; }
.todo-banner ul { margin: 0.6rem 0 0; padding-left: 1.2rem; font-size: 0.88rem; }

/* ── Fußzeile ── */
.legal-footer {
  border-top: 1px solid var(--stroke);
  background: var(--bg-soft);
  padding: 2.5rem clamp(1.2rem, 5vw, 3rem);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}
.legal-footer a { margin: 0 0.6rem; }

@media (max-width: 600px) {
  .legal-nav { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .legal-wrap h2 { font-size: 1.15rem; }
}

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

:where(a, button):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Kleingedruckte Erläuterungen unter einzelnen Abschnitten */
.legal-note {
  font-size: 0.86rem;
  color: var(--text-light);
}
