/* =====================================================
   PAUL G. — Datenschutzerklärung CSS
   Same design system as portfolio (home.css + style.css)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ─────────────────────────────────────────
   CSS VARIABLES
───────────────────────────────────────── */
:root {
  --bg-deep:       #07091e;
  --bg-base:       #0a0f2c;
  --bg-card:       rgba(255,255,255,0.04);
  --blue:          #3b82f6;
  --blue-light:    #60a5fa;
  --violet:        #8b5cf6;
  --violet-light:  #a78bfa;
  --white:         #ffffff;
  --white-dim:     rgba(255,255,255,0.75);
  --white-muted:   rgba(255,255,255,0.45);
  --white-ghost:   rgba(255,255,255,0.08);
  --glass-bg:      rgba(255,255,255,0.055);
  --glass-border:  rgba(255,255,255,0.10);
  --glow-blue:     rgba(59,130,246,0.4);
  --glow-violet:   rgba(139,92,246,0.4);
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
  --content-max:   780px;
  --radius:        16px;
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--white-dim);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--violet), var(--blue));
  border-radius: 3px;
}

/* ─────────────────────────────────────────
   BACKGROUND BLOBS (same as portfolio)
───────────────────────────────────────── */
.blob-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  will-change: transform;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  top: -10%; left: -8%;
  animation: blobFloat1 20s ease-in-out infinite;
}
.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  top: 30%; right: -10%;
  animation: blobFloat2 24s ease-in-out infinite;
}
.blob-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #60a5fa, #8b5cf6, transparent 70%);
  bottom: 10%; left: 15%;
  animation: blobFloat3 28s ease-in-out infinite;
}
@keyframes blobFloat1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(40px,-30px) scale(1.07); }
}
@keyframes blobFloat2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-35px, 50px) scale(1.05); }
}
@keyframes blobFloat3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(50px,-40px) scale(1.08); }
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
}

/* ─────────────────────────────────────────
   NAVBAR
───────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(20px,5vw,64px);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,15,44,0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.75; }
.logo-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 800;
  box-shadow: 0 0 12px var(--glow-violet);
  flex-shrink: 0;
  color: white;
  text-decoration: none;
}
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--white-muted);
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.3s;
}
.nav-back:hover {
  color: var(--white);
  border-color: rgba(139,92,246,0.35);
  box-shadow: 0 0 16px var(--glow-violet);
}
.nav-back svg { width: 14px; height: 14px; }

/* ─────────────────────────────────────────
   PAGE WRAPPER
───────────────────────────────────────── */
.site-wrapper {
  position: relative;
  z-index: 2;
}

.page-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 108px clamp(20px,5vw,48px) clamp(80px,12vw,140px);
}

/* ─────────────────────────────────────────
   PAGE HEADER
───────────────────────────────────────── */
.page-header {
  margin-bottom: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--glass-border);
}
.page-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 24px;
  animation: fadeUp 0.6s var(--ease-out) 0.1s both;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 8px var(--glow-blue);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:.4; transform:scale(.6); }
}

.page-header h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.10;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, var(--blue-light) 50%, var(--violet-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.7s var(--ease-out) 0.2s both;
}
.page-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  animation: fadeUp 0.7s var(--ease-out) 0.3s both;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  font-size: 0.75rem;
  color: var(--white-muted);
}
.meta-chip svg { width: 11px; height: 11px; opacity: 0.6; }

@keyframes fadeUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ─────────────────────────────────────────
   TABLE OF CONTENTS
───────────────────────────────────────── */
.toc-box {
  margin-bottom: 56px;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  animation: fadeUp 0.7s var(--ease-out) 0.4s both;
}
.toc-box h2 {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 18px;
}
.toc-box ul.index {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toc-box ul.index li { display: flex; align-items: center; }
.toc-box ul.index li::before {
  content: '';
  display: inline-block;
  width: 16px; height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  margin-right: 12px;
  flex-shrink: 0;
  opacity: 0.6;
}
.toc-box a.index-link {
  font-size: 0.88rem;
  color: var(--white-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.toc-box a.index-link:hover { color: var(--blue-light); }

/* ─────────────────────────────────────────
   MAIN DOCUMENT BODY
───────────────────────────────────────── */
.dsg-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Section anchors get spacing */
.dsg-content h2[id] {
  scroll-margin-top: 88px;
}

/* ── H2 section headers */
.dsg-content h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  letter-spacing: -0.02em;
  color: var(--white);
  margin-top: 56px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
}
.dsg-content h2::before {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 40px; height: 1.5px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--glow-blue);
}
/* Don't top-margin the first h2 */
.dsg-content > h2:first-child { margin-top: 0; }

/* ── H3 sub-headers */
.dsg-content h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--white-dim);
  margin-top: 28px;
  margin-bottom: 10px;
}

/* ── Paragraphs */
.dsg-content p {
  font-size: 0.93rem;
  line-height: 1.80;
  color: var(--white-muted);
  margin-bottom: 14px;
}
.dsg-content p:last-child { margin-bottom: 0; }

/* ── Inline strong */
.dsg-content strong {
  font-weight: 500;
  color: var(--white-dim);
}

/* ── Links */
.dsg-content a {
  color: var(--blue-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(96,165,250,0.25);
  transition: color 0.2s, border-color 0.2s;
  word-break: break-word;
}
.dsg-content a:hover {
  color: var(--violet-light);
  border-color: rgba(167,139,250,0.45);
}

/* ── Standard lists (ul / li) */
.dsg-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  padding-left: 0;
}
.dsg-content ul li {
  position: relative;
  padding-left: 22px;
  font-size: 0.91rem;
  color: var(--white-muted);
  line-height: 1.70;
}
.dsg-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 1.5px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  border-radius: 2px;
}

/* ── Metadata element list (.m-elements) — card style */
.dsg-content ul.m-elements {
  gap: 0;
  margin-top: 16px;
  margin-bottom: 0;
}
.dsg-content ul.m-elements > li {
  padding: 14px 18px;
  padding-left: 18px;
  margin-bottom: 4px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.65;
  transition: background 0.25s, border-color 0.25s;
}
.dsg-content ul.m-elements > li::before { display: none; }
.dsg-content ul.m-elements > li:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
}
.dsg-content ul.m-elements > li strong {
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* ── Glossary list */
.dsg-content ul.glossary {
  gap: 0;
}
.dsg-content ul.glossary > li {
  padding: 18px 20px;
  padding-left: 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: var(--white-muted);
  line-height: 1.72;
  transition: background 0.25s;
}
.dsg-content ul.glossary > li::before { display: none; }
.dsg-content ul.glossary > li:hover { background: rgba(255,255,255,0.065); }
.dsg-content ul.glossary > li strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--white-dim);
  margin-bottom: 6px;
  background: linear-gradient(90deg, var(--blue-light), var(--violet-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Blurred premium sections */
.dsg-license-content-blurred {
  display: inline;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  color: transparent;
  user-select: none;
  cursor: not-allowed;
  filter: blur(4px);
  opacity: 0.4;
}

/* ── Seal / generator credit */
.dsg-content p.seal {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}
.dsg-content p.seal a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.22);
  border-bottom-color: transparent;
  letter-spacing: 0.02em;
}
.dsg-content p.seal a:hover { color: rgba(255,255,255,0.45); }

/* ─────────────────────────────────────────
   SECTION DIVIDER ACCENT
───────────────────────────────────────── */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin: 8px 0;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  padding: 40px clamp(20px,5vw,64px);
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(7,9,30,0.55);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 2;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  background: linear-gradient(90deg, var(--blue-light), var(--violet-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.22);
}
.footer a {
  color: var(--white-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--white);
}
/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 640px) {
  .page-content { padding-top: 92px; }
  .toc-box { padding: 20px; }
  .dsg-content h2 { font-size: 1.1rem; margin-top: 44px; }
  .dsg-content ul.m-elements > li { font-size: 0.82rem; }
  .footer { flex-direction: column; text-align: center; }
}
