/* Shared styles for the legal subpages (Datenschutz, Impressum).
   Design tokens mirror index.html so all pages read as one site. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --card: #ffffff;
  --gutter: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #1d1d1f;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --line: #3a3a3d;
    --accent: #2997ff;
    --accent-hover: #57a8ff;
    --card: #1d1d1f;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-alt: #1d1d1f; --text: #f5f5f7; --text-2: #a1a1a6;
  --line: #3a3a3d; --accent: #2997ff; --accent-hover: #57a8ff; --card: #1d1d1f;
}
:root[data-theme="light"] {
  --bg: #ffffff; --bg-alt: #f5f5f7; --text: #1d1d1f; --text-2: #6e6e73;
  --line: #d2d2d7; --accent: #0071e3; --accent-hover: #0077ed; --card: #ffffff;
}

* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  height: 48px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 20px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.nav .logo {
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  justify-self: start; text-decoration: none; color: var(--text);
}
.nav .logo span { color: var(--accent); }
.nav .links { display: flex; gap: 28px; justify-self: center; }
.nav .links a { color: var(--text); text-decoration: none; opacity: 0.88; }
.nav .links a:hover { opacity: 1; }
.nav .cta { justify-self: end; }
.nav .cta a { color: var(--text); text-decoration: none; opacity: 0.88; }
.nav .cta a:hover { opacity: 1; }
@media (max-width: 720px) {
  .nav {
    height: auto;
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo cta" "links links";
    row-gap: 8px;
    padding: 9px 20px 10px;
  }
  .nav .logo { grid-area: logo; }
  .nav .cta { grid-area: cta; }
  .nav .links {
    grid-area: links;
    justify-self: stretch; justify-content: center;
    gap: 20px; overflow-x: auto; white-space: nowrap;
    scrollbar-width: none;
  }
  .nav .links::-webkit-scrollbar { display: none; }
}

/* ---------- legal page layout ---------- */
.legal-head {
  padding-top: clamp(48px, 8vw, 76px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.legal-head .eyebrow {
  font-size: 19px; font-weight: 600; color: var(--accent); margin-bottom: 6px;
}
.legal-head h1 { font-size: clamp(36px, 5.4vw, 60px); }
.legal-head p.lede {
  font-size: 19px; line-height: 1.5; color: var(--text-2);
  max-width: 54ch; margin: 16px 0 40px;
}

.legal-body {
  max-width: 720px;
  padding-top: clamp(40px, 6vw, 56px);
  padding-bottom: clamp(64px, 9vw, 96px);
  display: flex; flex-direction: column; gap: clamp(32px, 4.5vw, 44px);
}
.legal-body section { display: flex; flex-direction: column; gap: 12px; }
.legal-body h2 { font-size: 26px; }
.legal-body h3 { font-size: 18px; margin-top: 8px; }
.legal-body p, .legal-body li {
  font-size: 16px; line-height: 1.65; color: var(--text-2);
}
.legal-body ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-body a { color: var(--accent); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }
.legal-body strong { color: var(--text); font-weight: 600; }

/* definition-list style block for Impressum contact data */
.contact {
  display: grid; grid-template-columns: 200px 1fr; gap: 2px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.contact dt, .contact dd {
  background: var(--card); margin: 0; padding: 16px 18px; font-size: 15px;
}
.contact dt { color: var(--text-2); }
.contact dd { color: var(--text); }
@media (max-width: 560px) {
  .contact { grid-template-columns: 1fr; }
  .contact dt { padding-bottom: 2px; }
  .contact dd { padding-top: 2px; }
}

/* callout for items the operator must complete before publishing */
.todo {
  border: 1px dashed var(--accent);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.todo .todo-title {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); text-transform: uppercase;
}
.todo p { font-size: 14.5px; }

.updated { font-size: 13px; color: var(--text-2); }

/* ---------- footer ---------- */
footer { padding: 40px 0 50px; border-top: 1px solid var(--line); }
footer .legal-note { font-size: 12px; color: var(--text-2); line-height: 1.6; max-width: 720px; margin-bottom: 22px; }
footer .links {
  display: flex; flex-wrap: wrap; gap: 0; font-size: 12px; color: var(--text-2);
  border-top: 1px solid var(--line); padding-top: 18px;
}
footer .links a {
  text-decoration: none; color: var(--text-2);
  padding-right: 14px; margin-right: 14px; border-right: 1px solid var(--line);
}
footer .links a:last-child { border-right: none; }
footer .links a:hover { color: var(--text); }
footer .copy { font-size: 12px; color: var(--text-2); margin-top: 16px; }
