/* ─── VARIABLES ─── */
:root {
  --accent:      #0071e3;
  --accent-dark: #005bb5;
  --ink:         #1D1D1F;
  --ink-soft:    #515154;
  --muted:       #8a8a8e;
  --line:        #e5e5ea;
  --nav-bg:      rgba(255,255,255,0.85);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── BASE ─── */
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ─── BACKGROUND ─── */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(0, 113, 227, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(52, 170, 220, 0.05), transparent 60%),
    #FFFFFF;
}

/* ─── NAV ─── */
.nav--sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 58px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.logo-dot { color: var(--accent); }

.logo-mini {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-mini svg { width: 100%; height: 100%; display: block; }

.back-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.back-link:hover { opacity: 0.75; }

/* ─── MAIN ─── */
main {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}

h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #1D1D1F 0%, #515154 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.last-updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 64px;
  margin-bottom: 16px;
  scroll-margin-top: 100px;
  color: var(--ink);
}

h2:first-of-type { margin-top: 0; }

h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--ink);
}

p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
}

ul {
  margin-bottom: 16px;
  padding-left: 22px;
}

ul li {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 6px;
}

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

main a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 500;
  word-break: break-word;
  transition: color 0.2s;
}

main a:hover { color: var(--accent); text-decoration: underline; }

/* ─── TABLE OF CONTENTS (Datenschutz) ─── */
.toc-card {
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.04), rgba(0, 91, 181, 0.02));
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 56px;
}

.toc-card h2 {
  margin-top: 0;
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

ul.index {
  columns: 2;
  column-gap: 32px;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

ul.index li {
  margin-bottom: 8px;
  break-inside: avoid;
  padding-left: 14px;
  position: relative;
}

ul.index li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 700;
  transition: transform 0.2s;
}

ul.index li:hover::before { transform: translateX(2px); }

ul.index a.index-link { color: var(--ink-soft); font-size: 14px; font-weight: 500; }
ul.index a.index-link:hover { color: var(--accent-dark); text-decoration: none; }

/* ─── INFO CARD ─── */
.info-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.info-card p:last-child { margin-bottom: 0; }

.info-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}

.info-row:last-child { margin-bottom: 0; }
.info-label { color: var(--ink); font-weight: 600; font-size: 14px; min-width: 80px; }
.info-value { color: var(--ink-soft); font-size: 15px; }

/* ─── PROCESSING ELEMENTS LIST (Datenschutz) ─── */
ul.m-elements {
  background: #FAFAFA;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px 20px 42px;
  margin: 20px 0;
  list-style: none;
}

ul.m-elements li {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 8px;
  position: relative;
  padding-left: 0;
}

ul.m-elements li::before {
  content: '•';
  color: var(--accent);
  font-weight: 700;
  position: absolute;
  left: -16px;
}

ul.m-elements li:last-child { margin-bottom: 0; }

/* ─── GLOSSARY (Datenschutz) ─── */
ul.glossary { list-style: none; padding-left: 0; margin-bottom: 0; }

ul.glossary li {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}

ul.glossary li strong { display: block; margin-bottom: 4px; font-size: 15px; }

/* ─── SEAL ─── */
.seal {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  line-height: 1.6;
}

.seal a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.15);
}

/* ─── FOOTER ─── */
footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 28px;
  border-top: 1px solid var(--line);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.footer-left { display: flex; align-items: center; gap: 16px; }

.footer-tagline { font-size: 13px; color: var(--muted); font-weight: 500; }

.social-icons { display: flex; align-items: center; gap: 10px; }

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0,0,0,0.05);
  color: var(--muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.social-icon:hover { background: rgba(0,113,227,0.08); color: var(--accent); }
.social-icon svg { width: 16px; height: 16px; }

.footer-links { display: flex; gap: 20px; }

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  main { padding: 56px 20px 80px; }
  h2 { font-size: 22px; margin-top: 48px; }
  ul.index { columns: 1; }
  .toc-card { padding: 24px; }
  .info-row { flex-direction: column; gap: 2px; }
  .info-label { min-width: auto; }
  .nav--sticky { padding: 0 20px; }
  footer { padding: 16px 20px; flex-direction: column; align-items: flex-start; }
}
