/* =====================================================================
   Rechtsseiten: /impressum/ und /datenschutz/.
   Baut auf start.css auf, hier nur, was es dort nicht gibt.
   Aufbau nach TN-Designsprache Abschnitt 8: oben Kategorie, H1, Lead, Stand,
   dann ein ruhiges Wien-Bildband, dann zweispaltig mit mitlaufendem
   Inhaltsverzeichnis "Auf dieser Seite" links und Text rechts (~760 px).
   Drei Abstandsstufen: --u-abschnitt, --u-block, --u-satz. Keine Einzelwerte.
   Fehlende Angaben: <mark class="fehlt">folgt: ...</mark>, gut sichtbar gelb.
   ===================================================================== */

.seite-recht {
  --u-abschnitt: clamp(36px, 4vw, 52px);
  --u-block: 28px;
  --u-satz: 14px;
  --toc-oben: 104px;
}

/* ---------- Kopf: Brotkrumen, Kategorie, H1, Lead, Stand ---------- */
.recht-kopf { padding: clamp(24px, 3.5vw, 44px) 0 0; }
.recht-kopf::before {
  -webkit-mask-image: radial-gradient(ellipse 55% 85% at 0% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 55% 85% at 0% 0%, #000 30%, transparent 80%);
}
.brotkrumen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: clamp(28px, 4vw, 44px); font-size: 14px; color: var(--ink-3); }
.brotkrumen a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-mid); text-underline-offset: 3px; transition: color .2s var(--ease); }
.brotkrumen a:hover { color: var(--gruen-ink); text-decoration-color: currentColor; }
.brotkrumen [aria-current] { color: var(--ink); font-weight: 600; }

.recht-kategorie { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font: 600 15px/1.4 var(--text); color: var(--gruen-ink); }
.recht-kategorie::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.recht-kopf h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.08; max-width: 16em; hyphens: manual; }
.recht-lead { max-width: 36em; margin-top: var(--u-block); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; }
.recht-stand { margin-top: var(--u-satz); font-size: 14.5px; color: var(--ink-3); }

/* Ruhiges Bildband: Wiens Daecher, leicht zurueckgenommen, ohne Text darauf */
.recht-band {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: clamp(32px, 4.5vw, 52px);
  height: clamp(132px, 17vw, 232px);
  border-radius: var(--r-big);
  border: 1px solid var(--line-mid);
  background: var(--tint);
}
.recht-band img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 46%; filter: saturate(.78) contrast(.96); }
.recht-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(253, 253, 251, .16) 0%, rgba(253, 253, 251, 0) 45%, rgba(10, 42, 27, .16) 100%);
}

/* ---------- Zweispaltig: Inhaltsverzeichnis links, Text rechts ---------- */
.recht-raster {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--u-block);
  padding-top: clamp(36px, 5vw, 72px); padding-bottom: var(--section);
}

.recht-toc details { border: 1px solid var(--line-mid); border-radius: var(--r-card); background: var(--tint-weak); }
.recht-toc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 14px 18px; list-style: none; cursor: pointer;
  font: 400 16px/1.3 var(--head); color: var(--ink);
}
.recht-toc summary::-webkit-details-marker { display: none; }
.recht-toc summary .ic { width: 18px; height: 18px; color: var(--ink-3); transition: transform .25s var(--ease); }
.recht-toc details[open] summary .ic { transform: rotate(180deg); }
.recht-toc ol { display: grid; gap: 2px; padding: 0 10px 12px; }
.recht-toc a {
  display: block; padding: 8px 10px; border-radius: var(--r-btn);
  font-size: 14.5px; line-height: 1.4; color: var(--ink-2); hyphens: manual;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.recht-toc a:hover { color: var(--gruen-ink); }
.recht-toc a[aria-current] { color: var(--gruen-ink); font-weight: 600; background: var(--tint); }

@media (min-width: 1000px) {
  .recht-raster { grid-template-columns: 250px minmax(0, 760px); gap: clamp(56px, 6vw, 96px); }
  .recht-toc { position: sticky; top: var(--toc-oben); align-self: start; max-height: calc(100dvh - var(--toc-oben) - 24px); overflow-y: auto; overscroll-behavior: contain; }
  .recht-toc details { border: 0; background: none; }
  .recht-toc summary { min-height: 0; padding: 0 0 14px; cursor: default; font: 600 13.5px/1.3 var(--text); color: var(--ink-3); }
  .recht-toc summary .ic { display: none; }
  .recht-toc ol { padding: 0; gap: 0; border-left: 1px solid var(--line-mid); }
  .recht-toc a { margin-left: -1px; padding: 7px 0 7px 16px; border-radius: 0; border-left: 2px solid transparent; font-size: 14px; }
  .recht-toc a[aria-current] { background: none; border-left-color: var(--gruen); }
}

/* ---------- Rechtstext ---------- */
.recht-text { max-width: 760px; min-width: 0; font-size: 17px; line-height: 1.75; color: var(--ink-2); overflow-wrap: break-word; hyphens: manual; }
.recht-abschnitt + .recht-abschnitt { margin-top: var(--u-abschnitt); padding-top: var(--u-abschnitt); border-top: 1px solid var(--line); }
.recht-text h2 { font-size: clamp(24px, 2.5vw, 30px); line-height: 1.22; hyphens: manual; }
.recht-text h3 { margin-top: var(--u-block); font-size: 19.5px; line-height: 1.3; }
.recht-text p, .recht-text ul, .recht-text dl, .recht-text address { margin-top: var(--u-satz); }
.recht-text h2 + p, .recht-text h2 + ul, .recht-text h2 + dl, .recht-text h2 + .recht-karte { margin-top: var(--u-block); }
.recht-text strong { font-weight: 700; color: var(--ink); }
.recht-text address { font-style: normal; }
.recht-text a { color: var(--gruen-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gruen) 40%, transparent); text-underline-offset: 3px; transition: text-decoration-color .2s var(--ease); }
.recht-text a:hover { text-decoration-color: currentColor; }
.recht-text ul { list-style: none; display: grid; gap: 8px; }
.recht-text ul li { position: relative; padding-left: 26px; }
.recht-text ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--gruen); }
.recht-text .nw { white-space: nowrap; }

/* Angaben als Zeilen: Begriff links, Wert rechts. Nur Linie unten. */
.recht-daten { display: grid; }
.recht-daten > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.recht-daten > div:first-child { padding-top: 0; }
.recht-daten > div:last-child { border-bottom: 0; padding-bottom: 0; }
.recht-daten dt { font: 600 14.5px/1.5 var(--text); color: var(--ink); }
.recht-daten dd { font-size: 16.5px; line-height: 1.65; }
@media (min-width: 760px) {
  .recht-daten > div { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  .recht-daten dt { padding-top: 2px; }
}

/* Anschrift als Karte (Medieninhaber, Verantwortlicher) mit Monogramm als Wasserzeichen */
.recht-karte {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line-mid); border-radius: var(--r-card);
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(31, 122, 77, .08) 0, transparent 70%),
    linear-gradient(160deg, #FFFFFF 0%, var(--tint-weak) 100%);
}
.recht-karte::after {
  content: ""; position: absolute; z-index: -1; right: -26px; bottom: -22px; width: 134px; aspect-ratio: 1;
  background: rgba(31, 122, 77, .13);
  -webkit-mask: url(/assets/img/anbo-zeichen-weiss.svg?v=1) center / contain no-repeat; mask: url(/assets/img/anbo-zeichen-weiss.svg?v=1) center / contain no-repeat;
  pointer-events: none;
}
.recht-karte-name { font: 400 22px/1.3 var(--head); color: var(--ink); letter-spacing: -.01em; }
.recht-karte-rolle { margin-top: 4px !important; font-size: 15.5px; color: var(--ink-3); }
.recht-karte address { margin-top: var(--u-block); line-height: 1.7; }
.recht-karte .recht-daten { margin-top: var(--u-block); padding-top: var(--u-block); border-top: 1px solid var(--line-mid); }
.recht-karte .recht-daten > div { grid-template-columns: 90px minmax(0, 1fr); gap: 16px; padding: 8px 0; border-bottom: 0; }
.recht-karte .recht-daten dt { padding-top: 1px; font-weight: 500; color: var(--ink-3); }
.recht-karte .recht-daten dd { font-weight: 600; color: var(--ink); }

/* Dezentes Rot-Weiss-Rot neben "Oesterreich" */
.rwr { display: inline-block; width: 18px; height: 12px; margin-left: 8px; vertical-align: -1px; border-radius: 2px; background: linear-gradient(#C8102E 0 33.4%, #FFFFFF 33.4% 66.6%, #C8102E 66.6%); box-shadow: 0 0 0 1px rgba(27, 38, 33, .12); }

/* Fehlende Angaben: gut sichtbar gelb, bis ANBO sie liefert */
mark.fehlt {
  padding: 1px 7px; border-radius: 4px;
  background: #FFE66D; color: #3D3200;
  box-shadow: inset 0 0 0 1px #E3C000;
  font-weight: 600; font-size: .94em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.recht-fehlt-block { padding: 14px 16px; border-radius: var(--r-btn); background: #FFF8D1; border: 1px dashed #E3C000; }
.recht-fehlt-block mark.fehlt { box-shadow: none; }
.recht-fehlt-block + .recht-daten { margin-top: var(--u-block); }

/* Cookie-Einstellungen direkt aus der Datenschutzerklaerung */
.recht-aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: var(--u-block); padding: 18px 20px; border-radius: var(--r-card); background: var(--tint-weak); border: 1px solid var(--line); }
.recht-aktion p { margin: 0 !important; flex: 1 1 260px; font-size: 15.5px; line-height: 1.55; }
.recht-aktion .btn { flex: none; }
html:not(.js) .recht-aktion { display: none; }

/* Aktuelle Rechtsseite im Fuss */
.fuss-spalte a[aria-current="page"] { color: var(--gruen-ink); font-weight: 700; }

@media (max-width: 759px) {
  .recht-text { font-size: 16.5px; }
  .recht-band { border-radius: var(--r-card); }
  .recht-aktion .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .recht-toc summary .ic { transition: none; }
}
