/* ============================================================
   AXR-Systems — Impressum, Datenschutz, Cookie-Einstellungen.

   Drei Spalten auf großen Schirmen: Inhaltsverzeichnis, Text,
   Angaben. Der Text bleibt in Lesebreite — die volle Seitenbreite
   nutzt das Layout, nicht die Zeile.
   ============================================================ */

.ax-recht { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }

@media (min-width: 1000px) {
	.ax-recht { grid-template-columns: 230px minmax(0, 1fr); gap: 3rem; align-items: start; }
}
@media (min-width: 1280px) {
	/* Ab hier passt auch die rechte Spalte — vorher säße sie unter dem Text
	   und wäre dort eine Wiederholung statt einer Randspalte. */
	.ax-recht { grid-template-columns: 230px minmax(0, 1fr) 280px; gap: 3.2rem; }
}

/* ---------- Inhaltsverzeichnis ---------- */
.ax-recht-nav { font-size: .88rem; }
@media (min-width: 1000px) {
	.ax-recht-nav { position: sticky; top: 104px; max-height: calc(100vh - 140px); overflow-y: auto; }
}
.ax-recht-nav-h,
.ax-recht-karte-h {
	display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 700;
	letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem;
}

/* Das Verzeichnis steckt in einem <details>. Unter 1000 px ist es
   zugeklappt (das Skript setzt das Attribut), darüber immer offen und
   der Zusammenklapp-Griff verschwindet — dort ist es eine Randspalte,
   kein Bedienelement. */
.ax-recht-nav-box > summary {
	cursor: pointer; list-style: none; display: flex; align-items: center; gap: .55rem;
	margin-bottom: .7rem;
}
.ax-recht-nav-box > summary::-webkit-details-marker { display: none; }
.ax-recht-nav-zahl {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 999px;
	background: color-mix(in srgb, var(--ink) 7%, transparent);
	color: var(--muted); font-size: .68rem; letter-spacing: 0;
}
.ax-recht-nav-box > summary::after {
	content: ""; margin-left: auto; width: .5rem; height: .5rem;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); transition: transform .18s var(--ease);
}
.ax-recht-nav-box[open] > summary::after { transform: rotate(-135deg); }
.ax-recht-nav-box > summary:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 8px; }

@media (max-width: 999px) {
	/* Zugeklappt sieht das Verzeichnis wie eine Schaltfläche aus — sonst
	   steht ein Rahmen ohne Inhalt in der Seite. */
	.ax-recht-nav-box {
		border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1rem;
		background: var(--surface);
	}
	.ax-recht-nav-box > summary { margin-bottom: 0; }
	.ax-recht-nav-box[open] > summary { margin-bottom: .7rem; }
}
@media (min-width: 1000px) {
	.ax-recht-nav-box > summary { cursor: default; pointer-events: none; }
	.ax-recht-nav-box > summary::after { display: none; }
	.ax-recht-nav-zahl { display: none; }
}
.ax-recht-nav ol { list-style: none; margin: 0; padding: 0; counter-reset: recht; display: grid; gap: .1rem; }
.ax-recht-nav li { margin: 0; padding: 0; }
.ax-recht-nav a {
	display: block; padding: .42rem .7rem; border-radius: 9px; text-decoration: none;
	color: var(--muted); line-height: 1.45; border-left: 2px solid transparent;
	transition: color .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease);
}
.ax-recht-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 4%, transparent); border-left-color: var(--brand-2); }
.ax-recht-nav a:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

/* Der gerade gelesene Abschnitt. Wird vom Skript gesetzt; ohne
   JavaScript sieht das Verzeichnis genauso aus wie bisher. */
.ax-recht-nav a.is-hier {
	color: var(--ink); font-weight: 600;
	background: color-mix(in srgb, var(--brand-2) 8%, transparent);
	border-left-color: var(--brand-2);
}

/* ---------- Textspalte ---------- */
.ax-recht-text { max-width: var(--measure); }
.ax-recht-text > h2 {
	scroll-margin-top: 100px; margin-top: 2.6rem; padding-top: 1.6rem;
	border-top: 1px solid var(--line);
}
.ax-recht-text > h2:first-of-type { margin-top: 1rem; padding-top: 0; border-top: 0; }
.ax-recht-text .lead { font-size: 1.06rem; color: var(--ink-2); }
.ax-recht-text code {
	font-size: .88em; padding: .1rem .38rem; border-radius: 6px;
	background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink);
}
.ax-recht-text .ax-klein { display: block; font-size: .74rem; color: var(--muted); margin-top: .15rem; }
/* Tabellen in Rechtstexten: nüchtern und linksbündig. Die zentrierte
   Ausrichtung der Vergleichstabellen passt zu Preisen, nicht zu einer
   Cookie-Liste — dort liest man Zeile für Zeile von links. Die Auswahl trägt
   beide Klassen des Elements, damit sie die Regel aus main.css schlägt. */
.entry-content.ax-recht-text .ax-compare table { min-width: 520px; }
.entry-content.ax-recht-text .ax-compare th,
.entry-content.ax-recht-text .ax-compare td,
.entry-content.ax-recht-text .ax-compare thead th { text-align: left; vertical-align: top; }

/* ---------- Randspalte ---------- */
.ax-recht-seite { display: grid; gap: 1rem; }
@media (min-width: 1280px) {
	.ax-recht-seite { position: sticky; top: 104px; }
}
.ax-recht-karte {
	background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.25rem;
}
.ax-recht-karte dl { margin: 0; display: grid; gap: .85rem; }
.ax-recht-karte dt { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ax-recht-karte dd { margin: .15rem 0 0; font-size: .88rem; line-height: 1.6; color: var(--ink-2); }
.ax-recht-karte a { color: var(--brand-2); text-decoration: none; }
.ax-recht-karte a:hover { text-decoration: underline; }
.ax-recht-karte ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ax-recht-karte li { font-size: .88rem; line-height: 1.5; }
.ax-recht-karte--links a { display: inline-flex; align-items: center; gap: .35rem; }
.ax-recht-karte--links a::after { content: "›"; color: var(--muted); }

/* Der Artikelbereich hängt an jede Aufzählung einen grünen Haken. In der
   Randspalte ist das falsch — dort stehen Verweise, keine Vorteile. */
.entry-content .ax-recht-karte ul { list-style: none; margin: 0; padding: 0; }
.entry-content .ax-recht-karte li { padding-left: 0; margin: 0; }
.entry-content .ax-recht-karte li::before,
.entry-content .ax-recht-karte li::after { content: none; display: none; }

@media print {
	.ax-recht-nav, .ax-recht-seite { display: none; }
	.ax-recht-text { max-width: none; }
}
