/* datenschutz.css — Datenschutzerklärung (Langform, DSGVO) */

/* ───────────── Hero ───────────── */
.ds-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 560px at 86% 6%, rgba(114,186,211,0.40), transparent 64%),
    radial-gradient(760px 480px at -6% 94%, rgba(244,97,12,0.16), transparent 60%),
    linear-gradient(135deg, var(--cv-blue-dark) 0%, var(--cv-blue-deep) 100%);
  color: #fff;
  padding: 58px 0 76px;
}
.ds-hero .cv-breadcrumb { margin-bottom: 36px; }
.ds-hero-inner { max-width: 760px; }
.ds-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.20em; text-transform: uppercase; color: var(--cv-blue-light);
  margin-bottom: 22px;
}
.ds-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cv-orange);
  box-shadow: 0 0 0 4px rgba(244,97,12,0.22);
}
.ds-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 64px; line-height: 1.03; letter-spacing: -0.03em;
  margin: 0 0 22px; color: #fff;
}
.ds-title .accent { color: var(--cv-blue-light); }
.ds-lead {
  font-size: 19px; line-height: 1.62; color: rgba(255,255,255,0.84);
  max-width: 640px; margin: 0 0 26px;
}
.ds-lead strong { color: #fff; font-weight: 700; }
.ds-hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.ds-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  font-size: 13px; color: rgba(255,255,255,0.9); font-weight: 600;
}
.ds-hero-badge svg { color: var(--cv-blue-light); }

/* ───────────── Layout ───────────── */
.ds-main { background: #fff; padding: 64px 0 96px; }
.ds-grid {
  display: grid; grid-template-columns: 280px 1fr; gap: 72px;
  align-items: start;
}

/* TOC */
.ds-toc { position: sticky; top: 96px; }
.ds-toc-card {
  border: 1px solid var(--cv-line); border-radius: 18px;
  padding: 22px 20px; background: #fff;
  box-shadow: 0 24px 50px -36px rgba(27,38,74,0.28);
  max-height: calc(100vh - 130px); overflow: auto;
}
.ds-toc-title {
  font-family: var(--font-display); font-weight: 800; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--cv-text-mute);
  margin: 0 0 14px; padding-left: 4px;
}
.ds-toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ds-toc-list a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 8px 10px; border-radius: 10px;
  font-size: 13.5px; line-height: 1.35; color: var(--cv-text-mute);
  transition: background .15s, color .15s;
}
.ds-toc-list a:hover { background: var(--cv-blue-tint); color: var(--cv-blue-dark); }
.ds-toc-list a.is-active { background: var(--cv-blue-dark); color: #fff; }
.ds-toc-list a.is-active .n { color: var(--cv-blue-light); }
.ds-toc-list .n {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  color: var(--cv-blue-light); min-width: 20px; flex-shrink: 0;
}

/* Article */
.ds-article { max-width: 760px; min-width: 0; }
.ds-updated {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--cv-text-mute); margin-bottom: 34px;
  padding-bottom: 22px; border-bottom: 1px solid var(--cv-line);
}
.ds-updated strong { color: var(--cv-blue-dark); font-weight: 700; }

.ds-section { scroll-margin-top: 96px; padding: 38px 0; border-top: 1px solid var(--cv-line); }
.ds-section:first-of-type { border-top: none; padding-top: 0; }
.ds-section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.ds-section-num {
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  color: #fff; background: var(--cv-blue-dark);
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: -0.02em;
}
.ds-section h2 {
  font-family: var(--font-display); font-weight: 800; font-size: 26px;
  color: var(--cv-blue-dark); margin: 0; letter-spacing: -0.015em; line-height: 1.15;
  align-self: center;
}
.ds-section h3 {
  font-family: var(--font-display); font-weight: 800; font-size: 17.5px;
  color: var(--cv-blue-dark); margin: 30px 0 12px; letter-spacing: -0.01em;
}
.ds-section h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--cv-blue-dark); margin: 22px 0 8px;
}

.ds-article p { font-size: 16px; line-height: 1.7; color: var(--cv-text); margin: 0 0 14px; }
.ds-article p:last-child { margin-bottom: 0; }
.ds-article strong { color: var(--cv-blue-dark); font-weight: 700; }
.ds-article a { color: var(--cv-blue-light); font-weight: 600; word-break: break-word; }
.ds-article a:hover { color: var(--cv-orange); }

.ds-article ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 9px; }
.ds-article ul li {
  position: relative; padding-left: 26px;
  font-size: 16px; line-height: 1.62; color: var(--cv-text);
}
.ds-article ul li::before {
  content: ""; position: absolute; left: 6px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--cv-blue-light);
}
.ds-article ul ul { margin: 9px 0 4px; }
.ds-article ul ul li::before { background: var(--cv-orange); width: 5px; height: 5px; top: 11px; }

/* Intro card (Einleitung lead box) */
.ds-intro {
  background: var(--cv-blue-tint); border: 1px solid var(--cv-blue-soft);
  border-radius: 16px; padding: 26px 28px; margin-bottom: 8px;
}
.ds-intro p { margin: 0 0 12px; }
.ds-intro p:last-child { margin-bottom: 0; }

/* Contact / address blocks inside sections */
.ds-addr {
  border-left: 3px solid var(--cv-orange);
  background: #FBFCFD; border-radius: 0 12px 12px 0;
  padding: 18px 22px; margin: 8px 0 16px;
}
.ds-addr p { margin: 0 0 4px; font-size: 15.5px; line-height: 1.5; }
.ds-addr p:last-child { margin-bottom: 0; }
.ds-addr .lbl {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--cv-text-mute);
  margin-bottom: 6px;
}

/* Legal-basis callout */
.ds-legal {
  display: grid; gap: 4px; margin: 4px 0 16px; padding: 14px 18px;
  border: 1px solid var(--cv-line); border-radius: 12px; background: #FBFCFD;
}
.ds-legal .lbl {
  font-family: var(--font-display); font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--cv-blue-light);
}
.ds-legal p { margin: 0; font-size: 15px; }

/* Truncation note */
.ds-pending {
  margin-top: 40px; padding: 22px 26px; border-radius: 14px;
  background: var(--cv-orange-soft); border: 1px solid rgba(244,97,12,0.3);
}
.ds-pending strong { color: #B23E05; }
.ds-pending p { margin: 0; font-size: 15px; color: #7A3414; line-height: 1.6; }

/* ───────────── Responsive ───────────── */
@media (max-width: 960px) {
  .ds-grid { grid-template-columns: 1fr; gap: 36px; }
  .ds-toc { position: static; }
  .ds-toc-card { max-height: none; }
  .ds-title { font-size: 50px; }
}
@media (max-width: 560px) {
  .ds-hero { padding: 44px 0 58px; }
  .ds-title { font-size: 40px; }
  .ds-lead { font-size: 17px; }
  .ds-main { padding: 48px 0 72px; }
  .ds-section h2 { font-size: 22px; }
  .ds-section-num { width: 32px; height: 32px; font-size: 13px; }
}
@media (max-width: 380px) {
  /* smallest phones: long legal headings ("Datenschutzbeauftragter") may hyphenate */
  .ds-section h2 { font-size: 20px; overflow-wrap: break-word; hyphens: auto; }
}
