/*
Theme Name: WDVS.io Lexikon
Theme URI: https://wdvs.io/
Author: Zurynski, Oezdogan & Co GmbH
Description: Fachlexikon-Theme fuer wdvs.io - Wiki/Lexikon-Portal zu WDVS-Grundlagen mit A-Z-Register am linken Seitenrand und WDVS-Schichtaufbau-Schema im Kopfbereich.
Version: 1.0.0
Text Domain: t-wdvs-io
*/

/* -------------------------------------------------------------------------
 * Tokens
 * ---------------------------------------------------------------------- */
:root {
	--lx-bg: #fbfcfc;
	--lx-surface: #eaeef0;
	--lx-text: #263035;
	--lx-muted: #586b74;
	--lx-primary: #305698;
	--lx-secondary: #344a70;
	--lx-accent: #2e98b9;
	--lx-link: #21488c;
	--lx-border: #c7d1d5;
	--lx-max: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--lx-bg);
	color: var(--lx-text);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 17px;
	line-height: 1.6;
	overflow-x: hidden;
}

h1, h2, h3, h4 {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	line-height: 1.25;
	color: var(--lx-text);
}

a { color: var(--lx-link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--lx-secondary); }
a:focus-visible, button:focus-visible, input:focus-visible {
	outline: 2px solid var(--lx-primary);
	outline-offset: 2px;
}

img { max-width: 100%; display: block; }
table { border-collapse: collapse; width: 100%; }

.lx-skip {
	position: absolute; left: -9999px; top: 0;
	background: var(--lx-primary); color: #ffffff; padding: 8px 14px; z-index: 200;
}
.lx-skip:focus { left: 16px; top: 16px; }

.lx-container { max-width: var(--lx-max); margin: 0 auto; padding: 0 20px; }

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */
.lx-header {
	background: #fbfcfc;
	color: #263035;
	border-bottom: 2px solid var(--lx-text);
}
.lx-header__top {
	max-width: var(--lx-max);
	margin: 0 auto;
	padding: 16px 20px 12px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
}
.lx-logo {
	font-size: 22px;
	font-weight: 700;
	text-decoration: none;
	color: var(--lx-text);
	letter-spacing: 0.2px;
	margin-right: auto;
}
.lx-logo span { color: var(--lx-primary); }
.lx-logo small {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: var(--lx-muted);
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.lx-nav {
	border-top: 1px solid var(--lx-border);
	background: var(--lx-surface);
}
.lx-nav__list {
	max-width: var(--lx-max);
	margin: 0 auto;
	padding: 0 20px;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 2px 4px;
}
.lx-nav__list li { margin: 0; }
.lx-nav__list a {
	display: block;
	padding: 10px 14px;
	color: var(--lx-text);
	text-decoration: none;
	font-size: 15px;
	border-bottom: 3px solid transparent;
}
.lx-nav__list a:hover,
.lx-nav__list a.is-active {
	border-bottom-color: var(--lx-primary);
	color: var(--lx-primary);
}

/* -------------------------------------------------------------------------
 * Themen-Tag-Navigation (horizontale Breadcrumb-/Tag-Leiste im Kopfbereich,
 * ersetzt Suchfeld und dient als Alleinstellung ggue. Sidebar-Wikis)
 * ---------------------------------------------------------------------- */
.lx-topics { background: var(--lx-bg); border-top: 1px solid var(--lx-border); }
.lx-topics__list {
	max-width: var(--lx-max);
	margin: 0 auto;
	padding: 10px 20px;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.lx-topics__list li { margin: 0; }
.lx-topics__list a {
	display: inline-block;
	padding: 4px 11px;
	border: 1px solid var(--lx-border);
	color: var(--lx-muted);
	font-size: 13px;
	text-decoration: none;
	white-space: nowrap;
}
.lx-topics__list a:hover,
.lx-topics__list a.is-active {
	background: var(--lx-primary);
	border-color: var(--lx-primary);
	color: #ffffff;
}

/* -------------------------------------------------------------------------
 * Shell: ein durchgehender Content-Fluss (kein permanentes Sidebar-Skelett) -
 * das A-Z-Register liegt als horizontales Register-Band ueber der Hauptspalte.
 * ---------------------------------------------------------------------- */
.lx-shell {
	max-width: var(--lx-max);
	margin: 0 auto;
	padding: 28px 20px 56px;
}

.lx-az {
	border: 1px solid var(--lx-border);
	background: var(--lx-surface);
	padding: 16px 20px 18px;
	margin: 0 0 28px;
}
.lx-az__title {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--lx-muted);
	margin: 0 0 10px;
	font-weight: 700;
}
.lx-az__strip {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}
.lx-az__strip li { margin: 0; }
.lx-az__strip a,
.lx-az__strip span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	font-size: 12px;
	font-weight: 700;
	border: 1px solid var(--lx-border);
	color: var(--lx-text);
	text-decoration: none;
}
.lx-az__strip a:hover { background: var(--lx-primary); color: #ffffff; border-color: var(--lx-primary); }
.lx-az__strip span { color: var(--lx-muted); background: transparent; opacity: 0.4; }

/* Begriffsliste als Grid mit Anteilsbreiten (1fr) statt fester Spaltenbreite -
 * bricht dadurch auf jeder Bildschirmbreite sauber um. */
.lx-az__terms {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 4px 24px;
}
.lx-az__group { margin: 0; }
.lx-az__letter {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: var(--lx-primary);
	border-bottom: 1px solid var(--lx-border);
	padding-bottom: 2px;
	margin-bottom: 4px;
}
.lx-az__group a {
	display: block;
	font-size: 14px;
	line-height: 1.4;
	padding: 2px 0;
	color: var(--lx-text);
	text-decoration: none;
}
.lx-az__group a:hover { color: var(--lx-primary); text-decoration: underline; }

.lx-main { min-width: 0; }

/* -------------------------------------------------------------------------
 * Breadcrumb
 * ---------------------------------------------------------------------- */
.lx-breadcrumb {
	font-size: 13px;
	color: var(--lx-muted);
	margin: 0 0 18px;
}
.lx-breadcrumb a { color: var(--lx-muted); }

/* -------------------------------------------------------------------------
 * Homepage: kein Marketing-Hero, direkter Einstieg
 * ---------------------------------------------------------------------- */
.lx-intro { margin: 0 0 28px; }
.lx-intro h1 {
	font-size: 30px;
	margin: 0 0 10px;
}
.lx-intro p {
	color: var(--lx-muted);
	font-size: 17px;
	max-width: 68ch;
	margin: 0;
}

.lx-schema {
	background: var(--lx-surface);
	border: 1px solid var(--lx-border);
	padding: 22px 22px 18px;
	margin: 0 0 34px;
}
.lx-schema h2 {
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--lx-muted);
	margin: 0 0 16px;
}
.lx-schema__figure { display: block; }
.lx-schema__svg {
	display: block;
	width: 100%;
	max-width: 640px;
	height: auto;
	margin: 0 auto 20px;
}
.lx-schema__legend {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 6px 28px;
}
.lx-schema__legend li {
	display: flex;
	gap: 10px;
	align-items: baseline;
	padding: 5px 0;
	border-bottom: 1px dotted var(--lx-border);
	font-size: 15px;
}
.lx-schema__swatch {
	flex: 0 0 15px;
	width: 15px;
	height: 15px;
	border: 2px solid var(--lx-text);
	margin-top: 3px;
}
.lx-schema__legend strong { color: var(--lx-text); }

.lx-section-title {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--lx-muted);
	border-bottom: 2px solid var(--lx-text);
	padding-bottom: 8px;
	margin: 0 0 18px;
}

/* Lexikoneintraege auf der Startseite */
.lx-entries { list-style: none; margin: 0 0 30px; padding: 0; }
.lx-entry {
	border-bottom: 1px solid var(--lx-border);
	padding: 20px 0;
}
.lx-entry:first-child { padding-top: 0; }
.lx-entry__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
}
.lx-entry__title {
	font-size: 21px;
	margin: 0;
}
.lx-entry__title a { text-decoration: none; color: var(--lx-text); }
.lx-entry__title a:hover { color: var(--lx-primary); text-decoration: underline; }
.lx-entry__meta { font-size: 13px; color: var(--lx-muted); white-space: nowrap; }
.lx-entry__excerpt { margin: 8px 0 0; color: var(--lx-text); max-width: 74ch; }
.lx-entry__more { font-size: 14px; white-space: nowrap; }

/* Inline-Textlink-Anzeige (theme_ad) */
.lx-ad {
	border: 1px solid var(--lx-border);
	border-left: 4px solid var(--lx-accent);
	background: var(--lx-surface);
	padding: 14px 18px;
	margin: 0 0 34px;
	font-size: 15px;
}
.lx-ad__label {
	display: inline-block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	font-weight: 700;
	color: #ffffff;
	background: var(--lx-secondary);
	padding: 2px 7px;
	margin-right: 8px;
	vertical-align: middle;
}
.lx-ad p { margin: 8px 0 0; }
.lx-ad a { font-weight: 700; }

/* -------------------------------------------------------------------------
 * Artikel/Lexikoneintrag (single.php)
 * ---------------------------------------------------------------------- */
.lx-article__head { margin: 0 0 22px; border-bottom: 2px solid var(--lx-text); padding-bottom: 18px; }
.lx-article__kicker {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.7px;
	color: var(--lx-muted);
	margin: 0 0 8px;
}
.lx-article__head h1 { font-size: 30px; margin: 0 0 10px; }
.lx-article__def {
	font-size: 18px;
	color: var(--lx-text);
	margin: 0;
	max-width: 72ch;
}
.lx-article__def strong { color: var(--lx-primary); }
.lx-article__meta { font-size: 13px; color: var(--lx-muted); margin: 10px 0 0; }

.lx-content { font-size: 17px; max-width: 74ch; }
.lx-content h2 {
	font-size: 22px;
	margin: 34px 0 14px;
	padding-top: 6px;
	border-top: 1px solid var(--lx-border);
}
.lx-content h2:first-child { border-top: 0; margin-top: 0; }
.lx-content h3 { font-size: 18px; margin: 22px 0 10px; color: var(--lx-secondary); }
.lx-content p { margin: 0 0 16px; }
.lx-content ul, .lx-content ol { margin: 0 0 16px; padding-left: 22px; }
.lx-content li { margin: 0 0 6px; }
.lx-content blockquote {
	margin: 0 0 16px;
	padding: 4px 18px;
	border-left: 3px solid var(--lx-primary);
	color: var(--lx-muted);
	font-style: italic;
}
.lx-content table { margin: 0 0 20px; font-size: 15px; }
.lx-content th, .lx-content td {
	border: 1px solid var(--lx-border);
	padding: 8px 10px;
	text-align: left;
	vertical-align: top;
}
.lx-content th { background: var(--lx-surface); font-weight: 700; }
.lx-content code {
	background: var(--lx-surface);
	border: 1px solid var(--lx-border);
	padding: 1px 5px;
	font-size: 0.92em;
}
.lx-content figure { margin: 0 0 20px; }
.lx-content figcaption { font-size: 13px; color: var(--lx-muted); margin-top: 6px; }

/* Anzeige-Bloecke im Artikelinhalt (bereits im Content vorhanden) */
.lx-content .anzeige,
.lx-content .anzeige-block {
	border: 1px solid var(--lx-border);
	border-left: 4px solid var(--lx-accent);
	background: var(--lx-surface);
	padding: 16px 20px;
	margin: 24px 0;
}
.lx-content .anzeige p:first-child::before,
.lx-content .anzeige-block .anzeige-label {
	display: inline-block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	font-weight: 700;
	color: #ffffff;
	background: var(--lx-secondary);
	padding: 2px 7px;
	margin-bottom: 8px;
}
.lx-content .anzeige-block .anzeige-label { margin: 0 0 8px; }
.lx-content .anzeige p { margin: 0 0 10px; }
.lx-content .anzeige h3,
.lx-content .anzeige-block h3 { font-size: 17px; margin: 6px 0 10px; }

/* Belegstatus */
.lx-content h2#belegstatus,
.lx-belegstatus h2 { font-size: 16px; }
.lx-belegstatus {
	background: var(--lx-surface);
	border: 1px solid var(--lx-border);
	padding: 16px 20px;
	margin: 30px 0 0;
	font-size: 14px;
	max-width: 74ch;
}
.lx-belegstatus h2 {
	margin: 0 0 10px;
	border: 0;
	padding: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 13px;
	color: var(--lx-muted);
}
.lx-belegstatus ul { margin: 0; padding-left: 20px; }
.lx-belegstatus li { margin: 0 0 6px; color: var(--lx-muted); }

/* Verwandte Begriffe (Querverlinkung) */
.lx-related {
	margin: 36px 0 0;
	padding: 20px 22px;
	border: 1px solid var(--lx-border);
	max-width: 74ch;
}
.lx-related h2 {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--lx-muted);
	margin: 0 0 12px;
	border: 0;
	padding: 0;
}
.lx-related ul { list-style: none; margin: 0; padding: 0; }
.lx-related li { margin: 0 0 10px; }
.lx-related a { font-size: 16px; font-weight: 700; text-decoration: none; }
.lx-related a:hover { text-decoration: underline; }
.lx-related p { margin: 2px 0 0; font-size: 14px; color: var(--lx-muted); }

/* -------------------------------------------------------------------------
 * Seiten (page.php) / Glossar
 * ---------------------------------------------------------------------- */
.lx-page__head h1 { font-size: 28px; margin: 0 0 20px; border-bottom: 2px solid var(--lx-text); padding-bottom: 14px; }
.lx-page-content { max-width: 74ch; font-size: 17px; }
.lx-page-content h2 { font-size: 20px; margin: 28px 0 12px; }
.lx-page-content p { margin: 0 0 14px; }
.lx-page-content ul { padding-left: 22px; }

.lx-glossary dt {
	font-size: 18px;
	font-weight: 700;
	color: var(--lx-text);
	margin: 26px 0 6px;
	padding-top: 16px;
	border-top: 1px solid var(--lx-border);
	scroll-margin-top: 16px;
}
.lx-glossary dt:first-of-type { border-top: 0; padding-top: 0; margin-top: 12px; }
.lx-glossary dd { margin: 0 0 4px; max-width: 70ch; }
.lx-glossary dd.lx-glossary__src { font-size: 14px; color: var(--lx-muted); margin-bottom: 0; }

/* -------------------------------------------------------------------------
 * 404 / Suche
 * ---------------------------------------------------------------------- */
.lx-404 h1 { font-size: 26px; }
.lx-search-results ul { list-style: none; padding: 0; }

/* -------------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------------- */
.lx-footer {
	background: #fbfcfc;
	color: #263035;
	border-top: 2px solid var(--lx-text);
	margin-top: 40px;
	font-size: 14px;
}
.lx-footer__inner {
	max-width: var(--lx-max);
	margin: 0 auto;
	padding: 26px 20px 30px;
}
.lx-footer__nav {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	padding: 0;
	margin: 0 0 14px;
}
.lx-footer__nav a { color: var(--lx-text); text-decoration: none; }
.lx-footer__nav a:hover { color: var(--lx-primary); text-decoration: underline; }
.lx-footer p { margin: 0 0 8px; color: var(--lx-muted); max-width: 78ch; }
.lx-footer .lx-footer__betreiber { color: var(--lx-text); }
.lx-footer a.lx-footer__pscoat { color: var(--lx-link); font-weight: 700; }

.lx-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--lx-text);
	color: #ffffff;
	border: 0;
	cursor: pointer;
	font-size: 18px;
	text-decoration: none;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
}
.lx-top.is-visible { opacity: 1; pointer-events: auto; }
.lx-top:hover { background: var(--lx-primary); }

/* -------------------------------------------------------------------------
 * Mobil (<= 720px): A-Z-Register horizontal scrollbar, 1-spaltig
 * ---------------------------------------------------------------------- */
@media (max-width: 720px) {
	body { font-size: 16px; }
	.lx-header__top { padding: 14px 16px 10px; }
	.lx-logo { flex: 1 1 auto; }
	.lx-nav__list { padding: 0 16px; flex-wrap: wrap; gap: 2px 6px; }
	.lx-nav__list a { white-space: normal; padding: 8px 10px; }
	.lx-topics__list { padding: 8px 16px; }

	.lx-shell { padding: 20px 16px 44px; }

	.lx-az { padding: 14px 16px 16px; margin: 0 0 22px; }
	.lx-az__strip { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
	.lx-az__strip li { flex: 0 0 auto; }
	.lx-az__terms { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 4px 16px; }

	.lx-schema__svg { max-width: 100%; }

	.lx-entry__head { flex-direction: column; align-items: flex-start; gap: 4px; }

	.lx-content, .lx-page-content, .lx-related, .lx-belegstatus { max-width: 100%; }
}

@media (max-width: 480px) {
	.lx-intro h1 { font-size: 25px; }
	.lx-article__head h1 { font-size: 24px; }
}
