/* basis.css — Grundlagen für alle Bausteine. Vertrag: ../../../DESIGN.md */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
img, video, iframe, svg { max-width: 100%; height: auto; }
::selection { background: var(--wp--preset--color--orange); color: var(--wp--preset--color--weiss); }

/* Fokus: sichtbar, einheitlich, nie entfernen */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: var(--wp--custom--fokus--breite) solid var(--wp--preset--color--tinte);
	outline-offset: var(--wp--custom--fokus--abstand);
}

/* Links: ruhige Unterstreichung */
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; transition: color var(--wp--custom--dauer) ease; }
a:hover { text-decoration-thickness: 2px; }

/* Sprunglink zum Inhalt */
.la-sprunglink {
	position: absolute; left: 1rem; top: -100px; z-index: 1000;
	background: var(--wp--preset--color--tinte); color: var(--wp--preset--color--weiss);
	padding: 0.75rem 1rem; font-size: var(--wp--preset--font-size--s); font-weight: 600; text-decoration: none;
}
.la-sprunglink:focus { top: 1rem; color: var(--wp--preset--color--weiss); }

/* Dachzeile (Kicker): obere Hälfte der Zweizeilen-Überschrift — Signatur.
   Auch als Block-Stil „Dachzeile" für Absätze (.is-style-dachzeile). */
.la-dachzeile,
p.is-style-dachzeile {
	display: block;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: var(--wp--custom--sperrung--kicker);
	text-transform: uppercase;
	color: var(--wp--preset--color--orange-text);
}
.la-dachzeile { margin: 0; }
/* Im Fließtext behält der Absatz den Abstand nach oben (blockGap), nur unten nichts. */
p.is-style-dachzeile { margin-block-end: 0; }
/* Links: Tippziel ≥ 24px (WCAG 2.5.8) über padding-block, negativer margin hält die Zeilenhöhe. */
:is(.la-dachzeile, p.is-style-dachzeile) a {
	display: inline-block;
	padding-block: 0.25rem;
	margin-block: -0.25rem;
	color: inherit;
	text-decoration: none;
}
:is(.la-dachzeile, p.is-style-dachzeile) a:hover { text-decoration: underline; }
.la-dachzeile .wp-block-post-terms__separator { color: var(--wp--preset--color--grau-text); }
/* Abstand Dachzeile → Überschrift überall gleich. :nth-child(n) hebt die Spezifität auf (0,3,0),
   damit Rhythmus-Regeln der Bausteine (z. B. inhalte.css h2:not(:first-child), 0,2,1) sie nicht schlagen. */
:is(.la-dachzeile, .is-style-dachzeile) + :is(h1, h2, h3, h4, h5, h6, .wp-block-post-title, .wp-block-heading):nth-child(n) { margin-block-start: 0.4rem; }

/* Label: kleines Versal-Label in Tinte (Autorbox, Newsletter, Inhaltsverzeichnis, Muster-Köpfe) */
.la-label {
	display: block;
	margin: 0;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: var(--wp--custom--sperrung--titel);
	text-transform: uppercase;
	color: var(--wp--preset--color--tinte);
}

/* Abschnittstitel auf Übersichten: Versalien mit Sperrung (brands) */
.la-abschnittstitel {
	font-size: var(--wp--preset--font-size--s) !important;
	font-weight: 700;
	letter-spacing: var(--wp--custom--sperrung--titel);
	text-transform: uppercase;
	color: var(--wp--preset--color--tinte);
}

/* Nebentext */
.la-meta, .la-meta a { font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--grau-text); }
.la-meta a { text-decoration: none; }
.la-meta a:hover { color: var(--wp--preset--color--tinte); text-decoration: underline; }

/* Knopf-System — einzige Quelle für Knopfmaße (DESIGN.md › Raster und Komponenten).
   Hauptknopf: .la-knopf · Zweitknopf: .la-knopf.is-rahmen · Kern: core/button, Element-Knopf, Suchknopf. */
.la-knopf,
.wp-block-button__link,
.wp-element-button,
.wp-block-search__button {
	box-sizing: border-box;
	min-height: 48px;
	padding: 0 1.4rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	border: 0;
	border-radius: var(--wp--custom--radius);
	background-color: var(--wp--preset--color--orange-text);
	color: var(--wp--preset--color--weiss);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: var(--wp--custom--sperrung--knopf);
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: background-color var(--wp--custom--dauer) ease, color var(--wp--custom--dauer) ease, box-shadow var(--wp--custom--dauer) ease;
}
:is(.la-knopf, .wp-block-button__link, .wp-element-button, .wp-block-search__button):hover {
	background-color: var(--wp--preset--color--tinte);
	color: var(--wp--preset--color--weiss);
	text-decoration: none;
}
/* Core lädt sein Button-CSS inline NACH basis.css (.wp-block-button__link{display:inline-block}, gleiche Spezifität):
   der Text klebte oben im 48-px-Knopf (gemessen am Newsletter-Knopf, 02.11.2026). Doppelklasse hält das Knopf-System. */
.wp-block-button__link.wp-block-button__link { display: inline-flex; }
/* Zweitknopf. .la-knopf--rahmen und Core-„outline" (Altbeiträge) sehen gleich aus. */
:is(.la-knopf.is-rahmen, .la-knopf.la-knopf--rahmen, .is-style-rahmen > .wp-block-button__link, .is-style-outline > .wp-block-button__link) {
	background-color: transparent;
	color: var(--wp--preset--color--tinte);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--tinte);
}
:is(.la-knopf.is-rahmen, .la-knopf.la-knopf--rahmen, .is-style-rahmen > .wp-block-button__link, .is-style-outline > .wp-block-button__link):hover {
	background-color: var(--wp--preset--color--tinte);
	color: var(--wp--preset--color--weiss);
}

/* Nur für Screenreader */
.la-nur-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Sprungziel <main tabindex="-1">: kein Rahmen um den ganzen Inhalt nach dem Sprung (kein interaktives Element). */
main[tabindex="-1"]:focus { outline: none; }

/* Windows-Kontrastmodus (forced-colors): Der Browser entfernt box-shadow und ersetzt Flächen durch Systemfarben.
   Zweitknöpfe (inset-Schatten) und gefüllte Knöpfe stünden dann als nackter Text da. Echte Kante in ButtonText;
   box-sizing:border-box + min-height halten die Höhe bei 48px. Fokusringe in der Systemfarbe Highlight. */
@media (forced-colors: active) {
	.la-knopf,
	.wp-block-button__link,
	.wp-element-button,
	.wp-block-search__button {
		border: 1px solid ButtonText;
	}
	:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
		outline-color: Highlight;
	}
	/* Scroll-Schatten der Tabellen (inhalte.css): Verläufe im Kontrastmodus aus. */
	.la-tabelle { background: none; }
}

/* Lokales Profilbild statt Monogramm (Autorbox, Autorenkopf): gleiche runde Fläche, Bild füllt sie */
img.la-profilbild { display: block; object-fit: cover; padding: 0; }
