/* Datenschutzerklärung – nur Komposition und die zwei Schemata dieser Seite (Komponenten stehen in site.css) */

/* ---------- Hero: große Überschrift über die ganze Breite, darunter Text links, Netzwerk-Ansicht rechts ---------- */
.ds-hero { padding-top: clamp(1.75rem, 4vw, 3.25rem); }
.ds-hero-grid { display: grid; gap: var(--sp-7); }
.ds-hero-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-5); min-width: 0; }
.ds-hero .h1 { max-width: none; font-size: clamp(2.5rem, .9rem + 5.6vw, 6.25rem); line-height: .98; hyphens: manual; -webkit-hyphens: manual; }
.ds-hero-copy { gap: 26px; }
.ds-meta { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.ds-meta li { display: flex; flex-direction: column; gap: 4px; color: var(--text); font-size: .9375rem; line-height: 1.4; }
@media (min-width: 30em) {
  .ds-meta { gap: 14px 0; }
  .ds-meta li { padding-right: 24px; margin-right: 24px; border-right: 1px solid var(--line-2); }
  .ds-meta li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
}
.ds-meta-k { font: 500 var(--fs-xs)/1.2 var(--ff-display); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.ds-jump { display: flex; flex-wrap: wrap; gap: 0 28px; }
.ds-stage { width: 100%; max-width: 34rem; }
@media (min-width: 68.75em) {
  .ds-hero-grid { grid-template-columns: minmax(0, 12fr) minmax(0, 10fr); column-gap: clamp(2.5rem, 5vw, 5rem); row-gap: var(--sp-8); align-items: start; }
  .ds-hero-head { grid-column: 1 / -1; }
  .ds-hero-copy { padding-top: 6px; }
  .ds-stage { justify-self: end; }
}

/* ---------- Netzwerk-Ansicht (Mockup datenschutz-netzwerk) ---------- */
.ui-net .ui-kicker { gap: 12px; }
.net-head, .net-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-inline: 16px; }
.net-head { padding-block: 9px; border-bottom: 1px solid var(--line); font: 500 var(--fs-micro)/1.3 var(--ff-display); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.net-list { padding-block: 4px; }
.net-row { padding-block: 7px; border-bottom: 1px solid rgba(238, 241, 247, .05); }
.net-row:last-child { border-bottom: 0; }
.net-file { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--text-3); }
/* Dateinamen nie kürzen: lieber an Bindestrich/Leerzeichen umbrechen (lange Namen wie SpaceGrotesk-normal-latin.woff2) */
.ui .net-name { display: block; min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; color: var(--text); font-size: .78125rem; font-variant-numeric: tabular-nums; }
.ui .net-type { display: none; font-size: var(--fs-micro); color: var(--text-3); }
.ui .net-src { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-micro); color: var(--ok); white-space: nowrap; }
.ui .net-src .ico { width: 12px; height: 12px; }
.net-src-h { text-align: right; }
.net-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.net-stat { padding: 12px 16px 14px; }
@media (max-width: 22.5em) { .net-stat { padding-inline: 12px; } }
.net-stat + .net-stat { border-left: 1px solid var(--line); }
.ui .net-fig { font: 300 1.625rem/1 var(--ff-display); letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.ui .net-lab { margin-top: 6px; font-size: var(--fs-micro); letter-spacing: .04em; color: var(--text-2); }
@media (min-width: 30em) {
  .net-head, .net-row { grid-template-columns: minmax(0, 1fr) 5.25rem auto; }
  .ui .net-type { display: block; }
  .net-head .net-type { font-size: var(--fs-micro); }
}

/* ---------- Erklärung: Inhaltsverzeichnis + Abschnitte ---------- */
.ds-doc { padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.ds-grid { display: grid; gap: var(--sp-8); }
.ds-toc { padding: 18px 18px 8px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-2); }
.ds-toc .m-label { margin-bottom: 6px; }
.ds-toc-list a {
  display: flex; align-items: center; gap: 14px; min-height: 44px; padding-block: 8px;
  border-top: 1px solid var(--line); color: var(--text-2); text-decoration: none; font-size: .9375rem; line-height: 1.35;
  transition: color .3s var(--ease);
}
.ds-toc-list li:first-child a { border-top: 0; }
.ds-toc-list a:hover, .ds-toc-list a.is-current { color: var(--text); }
.ds-toc-n { flex: none; width: 1.75rem; font: 400 .875rem/1 var(--ff-display); letter-spacing: -.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (min-width: 37.5em) {
  .ds-toc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .ds-toc-list li:nth-child(2) a { border-top: 0; }
}
@media (min-width: 68.75em) {
  .ds-grid { grid-template-columns: 15.5rem minmax(0, 1fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .ds-toc { position: sticky; top: calc(var(--header-h) + 32px); padding: 0; border: 0; border-radius: 0; background: none; }
  .ds-toc .m-label { margin-bottom: 14px; }
  .ds-toc-list { display: block; border-left: 1px solid var(--line-2); }
  .ds-toc-list a { position: relative; min-height: 40px; padding: 6px 0 6px 18px; border-top: 0; font-size: .9375rem; }
  .ds-toc-list a::before { content: ""; position: absolute; left: -1px; top: 50%; width: 1px; height: 0; background: var(--grad); transform: translateY(-50%); transition: height .4s var(--ease); }
  .ds-toc-list a:hover::before, .ds-toc-list a:focus-visible::before, .ds-toc-list a.is-current::before { height: 60%; }
}

.ds-body { min-width: 0; max-width: 46rem; }
.ds-sec { padding-block: clamp(2.75rem, 5.5vw, 4.25rem); border-top: 1px solid var(--line); }
.ds-sec:first-child { padding-top: 0; border-top: 0; }
.ds-sec:last-child { padding-bottom: 0; }
.ds-sec > * + * { margin-top: 24px; }
.ds-sec > .ds-h { margin-top: 10px; }
.ds-num { font: 300 1.75rem/1 var(--ff-display); letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: max-content; padding-right: .05em; }
.ds-h { font: var(--fw-display) clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem)/1.1 var(--ff-display); letter-spacing: -.03em; color: var(--text); text-wrap: balance; }
.ds-prose { max-width: none; }
.ds-prose h3 { font: 500 clamp(1.1875rem, 1.1rem + .3vw, 1.375rem)/1.3 var(--ff-display); letter-spacing: -.01em; }
.ds-prose > h3:first-child { margin-top: 0; }
.ds-prose a { color: var(--text); }
.ds-prose .ds-list { list-style: none; padding-left: 0; }
.ds-list li { position: relative; padding-left: 26px; }
.ds-list li::before { content: ""; position: absolute; left: 0; top: .85em; width: 14px; height: 2px; border-radius: 1px; background: var(--grad); }
.ds-nw { white-space: nowrap; }
.ds-small { font-size: .9375rem; line-height: 1.65; color: var(--text-3); }
.ds-doc .f-ph, .ds-end .f-ph { display: inline; min-height: 0; padding: 0; font-size: inherit; line-height: inherit; color: var(--accent-soft); }

/* Anschrift als ruhige Karte */
.ds-address { display: grid; gap: 2px; padding: 20px 22px; border: 1px solid var(--line-2); border-left: 2px solid var(--accent); border-radius: var(--r-md); background: var(--bg-2); color: var(--text-2); line-height: 1.6; }
.ds-address-n { font: 500 1.125rem/1.4 var(--ff-display); color: var(--text); }

/* Hinweis-Zeile (Verschlüsselung, E-Mail) */
.ds-note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: rgba(34, 211, 238, .035); font-size: .96875rem; line-height: 1.6; color: var(--text-2); }
.ds-note .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }

/* Das Wichtigste in Kürze */
.ds-facts { display: grid; gap: 22px 28px; }
.ds-facts li { position: relative; display: flex; gap: 16px; align-items: flex-start; padding-top: 20px; border-top: 1px solid var(--line-2); }
.ds-facts li::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 1px; background: var(--grad); }
.ds-fact-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--accent); }
.ds-fact-ico .ico { width: 18px; height: 18px; }
.ds-facts p { font-size: .9375rem; line-height: 1.55; color: var(--text-2); }
.ds-facts b { display: block; margin-bottom: 4px; font: 500 1.0625rem/1.3 var(--ff-display); color: var(--text); }
@media (min-width: 34em) { .ds-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ds-aside { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px dashed var(--line-3); border-radius: var(--r-md); font-size: .9375rem; line-height: 1.6; color: var(--text-2); }
.ds-aside .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--accent-2-soft); }
.ds-sec > .ds-aside { margin-top: 32px; }

/* Schema „Weg Ihrer Anfrage“ (Mockup datenschutz-anfrage-weg) */
.ds-figure { max-width: 46rem; }
.ds-sec > .ds-figure { margin-top: 32px; }
.flow { display: grid; gap: 12px; padding: 16px; }
.ui .flow-step { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: rgba(255, 255, 255, .015); }
.ui .flow-end { border-color: rgba(34, 211, 238, .4); background: rgba(34, 211, 238, .05); }
.ui .flow-step + .flow-step::before { content: ""; position: absolute; left: 31px; top: -13px; width: 1px; height: 12px; background: var(--grad); }
.ui .flow-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ui .flow-no { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-3); font: 500 var(--fs-micro)/1 var(--ff-display); color: var(--text-2); }
.ui .flow-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--accent); }
.ui .flow-ico .ico { width: 16px; height: 16px; }
.ui .flow-od { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; font: 500 .75rem/1 var(--ff-display); letter-spacing: .04em; color: var(--text); }
.ui .flow-t { font: 500 .9375rem/1.3 var(--ff-display); color: var(--text); }
.ui .flow-d { font-size: .78125rem; line-height: 1.45; color: var(--text-2); }
.ui .flow-step .tag { margin-top: 4px; }
.ui .flow-nogo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 16px 14px; border-top: 1px solid var(--line); }
.ui .flow-nogo-h { width: 100%; font: 500 var(--fs-micro)/1.3 var(--ff-display); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.ui .flow-x { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px dashed var(--line-3); border-radius: var(--r-pill); font-size: .75rem; color: var(--text-2); text-decoration: line-through; text-decoration-color: rgba(252, 165, 165, .7); }
.ui .flow-x .ico { width: 11px; height: 11px; color: var(--danger); }
@media (min-width: 40em) {
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .ui .flow-step + .flow-step::before { left: -15px; top: 31px; width: 14px; height: 1px; }
  .ui .flow-nogo-h { width: auto; margin-right: 6px; }
}

/* Tabelle „Welche Angaben übermittelt werden“ – Handy: Karten, ab 768 px: Tabelle.
   display:block nimmt Safari/VoiceOver die Tabellen-Bedeutung – deshalb stehen die Rollen (table/rowgroup/row/columnheader/rowheader/cell)
   ausdrücklich in der Quelle; der Tabellenkopf ist auf dem Handy nur optisch versteckt und wird weiter vorgelesen. */
.ds-table-wrap { max-width: 46rem; }
.ds-sec > .ds-table-wrap { margin-top: 18px; }
.ds-table { width: 100%; border-collapse: collapse; }
.ds-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ds-table, .ds-table tbody, .ds-table tr, .ds-table th, .ds-table td { display: block; width: 100%; text-align: left; }
.ds-table tr { border: 1px solid var(--line-2); border-radius: var(--r-md); margin-bottom: 10px; overflow: hidden; background: rgba(255, 255, 255, .012); }
.ds-table tbody th { padding: 14px 16px 8px; font: 500 1rem/1.4 var(--ff-display); color: var(--text); }
.ds-table td { padding: 0 16px; font-size: .9375rem; line-height: 1.5; color: var(--text-2); }
.ds-table td:last-child { padding: 8px 16px 14px; }
.ds-cell { display: block; }
.ds-table td:last-child .ds-cell { position: relative; padding-left: 22px; }
.ds-table td:last-child .ds-cell::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--accent); }
.ds-req, .ds-opt, .ds-auto { display: inline-block; margin-right: 6px; padding: 1px 9px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font: 500 .8125rem/1.5 var(--ff-text); white-space: nowrap; }
.ds-req { color: var(--accent-soft); border-color: rgba(34, 211, 238, .4); background: rgba(34, 211, 238, .07); }
.ds-opt { color: var(--text-2); }
.ds-auto { color: var(--accent-2-soft); border-color: rgba(167, 139, 250, .45); background: rgba(139, 92, 246, .1); }
@media (min-width: 48em) {
  .ds-table { display: table; table-layout: fixed; border-top: 1px solid var(--line-2); }
  .ds-table thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: table-header-group; }
  .ds-table tbody { display: table-row-group; }
  .ds-table tr { display: table-row; border: 0; border-radius: 0; background: none; }
  .ds-table th, .ds-table td { display: table-cell; width: auto; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
  .ds-table td:last-child { padding: 14px 0 14px 0; }
  .ds-table td:last-child .ds-cell { padding-left: 0; }
  .ds-table td:last-child .ds-cell::before { content: none; }
  .ds-table thead th { padding-block: 12px; font: 500 var(--fs-xs)/1.3 var(--ff-display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
  .ds-table thead th:nth-child(1) { width: 40%; }
  .ds-table thead th:nth-child(2) { width: 22%; }
  .ds-table tbody th { padding-left: 0; font-size: .96875rem; border-bottom: 1px solid var(--line); }
  .ds-table td:last-child { padding-right: 0; }
}

/* Ihre Rechte */
.ds-rights { display: grid; gap: 12px; }
.ds-rights li { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: rgba(255, 255, 255, .012); }
.ds-art { font: 500 var(--fs-xs)/1.3 var(--ff-display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.ds-rights b { font: 500 1.1875rem/1.3 var(--ff-display); color: var(--text); letter-spacing: -.01em; }
.ds-right-x { font-size: .9375rem; line-height: 1.55; color: var(--text-2); }
@media (min-width: 34em) {
  .ds-rights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-rights li:last-child { grid-column: 1 / -1; }
}
.ds-objection {
  max-width: 46rem; padding: clamp(20px, 3vw, 28px); border: 1px solid transparent; border-radius: var(--r-lg);
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box;
}
.ds-sec > .ds-objection { margin-top: 28px; }
.ds-objection-t { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font: 500 clamp(1.1875rem, 1.1rem + .3vw, 1.375rem)/1.3 var(--ff-display); color: var(--text); }
.ds-objection-t .ico { width: 20px; height: 20px; color: var(--accent); }
.ds-objection p { font-size: 1.0625rem; line-height: 1.7; font-weight: 350; color: var(--text); }

/* ---------- Abschluss ---------- */
.ds-end-grid { display: grid; gap: var(--sp-8); align-items: center; }
.ds-end .sub { max-width: 32rem; }
.ds-end-links { margin-top: 4px; }
.ds-end-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(22px, 3.5vw, 36px); border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--c-ink-875); box-shadow: var(--shadow-ui); }
.ds-end-card .od-mark { width: 48px; height: 48px; }
.ds-end-k { font: 500 var(--fs-xs)/1.3 var(--ff-display); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.ds-end-t { font: var(--fw-display) clamp(1.375rem, 1.2rem + .7vw, 1.75rem)/1.2 var(--ff-display); letter-spacing: -.02em; color: var(--text); text-wrap: balance; }
.ds-end-x { color: var(--text-2); max-width: 34rem; }
.ds-end-card .cta-stack { margin-top: 6px; }
@media (min-width: 56.25em) {
  .ds-end-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(2.5rem, 6vw, 6rem); }
}
