/*
  Tarifchaos – Cookie-Richtlinie (/cookie-richtlinie.html)
  ---------------------------------------------------------------
  DS-03-D-06, Prüfhalt 3 (25. Oktober 2026). Ergänzt die bestehende
  Rechtsseiten-Vorlage (.legal-*, layout.css) um Unterüberschriften und
  Tabellen sowie die helle Darstellung des Einstellungsbereichs (gleiche
  Komponente wie der Banner, consent.css). Nur auf dieser Seite geladen;
  keine neuen Farben oder Assets.
*/

.cookie-richtlinie__h3,
.cookie-richtlinie__h4 {
  margin-bottom: 0;
  overflow-wrap: break-word;
  scroll-margin-top: var(--space-4);
}
.cookie-richtlinie__h3 { font-size: 1.2rem; line-height: 1.35; }
.cookie-richtlinie__h4 { font-size: 1.05rem; line-height: 1.4; }
.legal-section__body > .cookie-richtlinie__h3,
.legal-section__body > .cookie-richtlinie__h4 { margin-top: var(--space-5); }
.cookie-richtlinie__h3:focus { outline: none; }
.cookie-richtlinie__h3:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }

/* Scrollhinweis über breiten Tabellen (DS-03-D-19): schlichte Bedieninformation, eng an der zugehörigen Tabelle. */
.cookie-richtlinie__scrollhinweis {
  margin-bottom: 0;
  font-size: .85rem;
  line-height: 1.4;
  opacity: .8;
}
.legal-section__body > .cookie-richtlinie__scrollhinweis:not([hidden]) + .cookie-richtlinie__tabelle { margin-top: var(--space-1); }

/* Tabellen: eigener Scrollbereich statt Seitenüberlauf; per Tastatur erreichbar. */
.cookie-richtlinie__tabelle {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.cookie-richtlinie__tabelle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.cookie-richtlinie__tabelle table {
  width: 100%;
  min-width: 38rem;
  border-collapse: collapse;
  font-size: .9rem;
  line-height: 1.5;
}
.cookie-richtlinie__tabelle th,
.cookie-richtlinie__tabelle td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
  hyphens: manual;
}
.cookie-richtlinie__tabelle th { background: var(--color-ivory); font-weight: 700; }
.cookie-richtlinie__tabelle tbody tr:last-child td { border-bottom: 0; }

/* Einstellungsbereich (helle Variante der Banner-Komponente). */
.tc-consent-bereich {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-brand-gold);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-ink);
}
.tc-consent-bereich > * + * { margin-top: var(--space-3); }
.tc-consent-bereich p { margin-bottom: 0; }
.tc-consent-bereich__stand { font-weight: 700; }
.tc-consent-bereich .tc-consent__kategorien { margin: 0; padding: 0; border: 0; min-width: 0; }
.tc-consent-bereich .tc-consent__kategorie { border-color: var(--color-border); }
.tc-consent-bereich .tc-consent__fest { color: var(--color-ink); }
.tc-consent-bereich .tc-consent__details,
.tc-consent-bereich .tc-consent__button--zweit { color: var(--color-ink); }
.tc-consent-bereich .tc-consent__check:focus-visible,
.tc-consent-bereich .tc-consent__details:focus-visible,
.tc-consent-bereich .tc-consent__button:focus-visible { outline-color: var(--color-focus); }
.tc-consent-bereich .tc-consent__button:disabled { cursor: not-allowed; opacity: .6; }
.tc-consent-bereich .tc-consent__kattext { padding: 0 0 6px 34px; font-size: .9rem; }

@media (max-width: 767px) {
  .tc-consent-bereich { padding: var(--space-3); }
  .tc-consent-bereich .tc-consent__kattext { padding-left: 0; }
}
