/* Seite /ratgeber/ticketing-dsgvo-konform: Fachartikel Datenschutz.
   Nur Tokens aus styles.css, keine eigenen Farben. */

/* ---- Hero: ruhiger Fachartikel, Fliesstext und Datenfluss ---------------- */
.dsgvo-hero__text { max-width: 62ch; margin-bottom: var(--s-6); }
.dsgvo-hero__text p { margin: 0 0 var(--s-3); color: var(--muted); font-size: 1.06rem; line-height: 1.6; }
.dsgvo-hero__text p:last-child { margin-bottom: 0; }

.dsgvo-flow { margin-top: 0; }
@media (min-width: 761px) { .dsgvo-flow .flow__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dsgvo-flow .flow__node { background: var(--card); }
.dsgvo-flow .flow__node > div { min-width: 0; }
.dsgvo-flow .flow__title { font-size: .98rem; }
.dsgvo-flow .flow__text { margin-top: 2px; font-size: .86rem; line-height: 1.4; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 1100px) and (min-width: 761px) {
  .dsgvo-flow .flow__node { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .dsgvo-flow .flow__steps { gap: var(--s-8); }
  .dsgvo-flow .flow__node:not(:last-child)::after {
    bottom: calc(-1 * var(--s-8) + 6px);
    width: calc(var(--s-8) - 12px);
    margin-left: calc((var(--s-8) - 12px) / -2);
  }
}

/* ---- Redaktioneller Hinweis direkt unter dem Hero ------------------------ */
.dsgvo-hinweis { max-width: var(--container-prose); margin-block: 0 var(--s-10); }

/* ---- Breite Visuals: .article__wide reicht ab 1100 px ueber die Prosaspalte
   hinaus bis zur Containerbreite (in styles.css bleibt es bei 720 px) ------ */
@media (min-width: 1100px) {
  .article__body .article__wide { width: calc(var(--container) - 2 * var(--s-6)); }
}

/* ---- Datenkarten mit Absatz statt Liste ---------------------------------- */
.article__body .datacards { margin-top: 0; }
@media (min-width: 561px) and (max-width: 1099px) {
  .article__body .datacards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.datacard h3 { overflow-wrap: anywhere; hyphens: auto; }
.datacard p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* ---- Rollenuebersicht: drei unterschiedliche Rollen auch optisch -------- */
.article__body .dsgvo-parties { margin-top: 0; }
.party--verantwortlich { border-top: 4px solid var(--tann); }
.party--auftrag { border-style: dashed; border-color: var(--line-strong); }
.party--eigen { border-top: 4px solid var(--amber-700); }
.party--eigen .party__role { color: var(--amber-700); }

/* ---- Pruefliste mit fuenf Anbieterfragen (H3 + Erklaerung) ---------------- */
.article__body .pruefliste-box { margin-block: var(--s-6) var(--s-10); }
.article__body .eyebrow + .pruefliste-box { margin-top: var(--s-2); }
.fragenliste__hint { margin: 0; color: var(--muted); font-size: .95rem; }
.fragenliste__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.fragenliste__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3) var(--s-4);
  align-items: start;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--paper);
  transition: background-color .15s ease, border-color .15s ease;
}
@media (max-width: 560px) { .fragenliste__item { padding: var(--s-3) var(--s-4); gap: var(--s-2) var(--s-3); } }
.fragenliste__item:has(input:checked) { background: var(--tann-tint); border-color: var(--line-strong); }
/* Checkboxen beider Listen: sichtbar 22 px, Trefferflaeche 44 px (styles.css hat nur 22 px) */
.fragenliste__item input[type="checkbox"],
.pruefliste input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 44px;
  margin: -10px -11px -11px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: none;
  cursor: pointer;
}
.fragenliste__item input[type="checkbox"] { margin-top: -7px; }
.fragenliste__item input[type="checkbox"]::before,
.pruefliste input[type="checkbox"]::before {
  content: "";
  grid-area: 1 / 1;
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  background: var(--card);
}
.fragenliste__item input[type="checkbox"]::after,
.pruefliste input[type="checkbox"]::after {
  content: "";
  grid-area: 1 / 1;
  width: 6px;
  height: 11px;
  margin-top: -3px;
  border: solid var(--card);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  opacity: 0;
}
.fragenliste__item input[type="checkbox"]:checked::before,
.pruefliste input[type="checkbox"]:checked::before { background: var(--tann); border-color: var(--tann); }
.fragenliste__item input[type="checkbox"]:checked::after,
.pruefliste input[type="checkbox"]:checked::after { opacity: 1; }
.fragenliste__item input[type="checkbox"]:focus-visible,
.pruefliste input[type="checkbox"]:focus-visible { outline: 3px solid var(--amber); outline-offset: -8px; }
@media print {
  .fragenliste__item input[type="checkbox"]::before,
  .pruefliste input[type="checkbox"]::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.fragenliste__item h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.fragenliste__item label { cursor: pointer; display: block; min-height: 28px; }
.fragenliste__item p { margin: var(--s-1) 0 0; color: var(--muted); line-height: 1.55; }

/* Kleine Buttons der Checklisten auf 44 px Trefferhoehe bringen */
.pruefliste-box__actions .btn--sm { min-height: 44px; }

/* ---- Checkliste: H2 sitzt im Kopf der Box -------------------------------- */
.pruefliste-box__head h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }

/* ---- Produktinformationen owntix: sachliche Faktenliste ------------------ */
.fakten { margin: var(--s-6) 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.fakten__row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-2) var(--s-6); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.fakten dt { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tann-700); padding-top: 3px; }
.fakten dd { margin: 0; }
.fakten dd p { margin: 0; line-height: 1.6; }
@media (max-width: 640px) { .fakten__row { grid-template-columns: minmax(0, 1fr); } }

.dsgvo-links { align-items: center; gap: var(--s-3) var(--s-6); margin-top: var(--s-6); }
.dsgvo-links__sec { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* ---- Zwei Beispielnachrichten -------------------------------------------- */
.article__body .messages { margin-top: 0; }
.message__kind { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.message__purpose { margin-top: var(--s-4) !important; padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: .85rem; font-weight: 700; color: var(--tann-700); }
.message--alt .message__purpose { color: var(--amber-700); }

/* ---- FAQ im Artikel ------------------------------------------------------ */
.article__body .faq { margin-top: var(--s-6); }

@media print {
  .dsgvo-flow { display: none; }
  .fragenliste__item { break-inside: avoid; background: none; }
}

/* FAQ-Frage als h3 im summary: optisch wie der bisherige summary-Text */
.faq summary > .faq__frage { font: inherit; letter-spacing: inherit; color: inherit; margin: 0; text-wrap: inherit; }
