/*
Theme Name: dibt.io Chronik
Theme URI: https://dibt-io.pscoat-seo.benotable.de/
Author: Zurynski, Oezdogan & Co GmbH
Description: Eigenständiges Chronik-/Zeitleisten-Theme für dibt.io — redaktionelle Übersicht zu abZ, ETA und der Marktüberwachung des DIBt. Kein amtlicher Auftritt.
Version: 1.0.0
Text Domain: t-dibt-io
*/

/* -------------------------------------------------------------------------
 * Tokens
 * ---------------------------------------------------------------------- */
:root {
	--bg: #f8f8f8;
	--surface: #ebeded;
	--text: #242728;
	--muted: #677478;
	--primary: #555f63;
	--secondary: #32496b;
	--accent: #3c6cbe;
	--link: #205e8d;
	--header-bg: #f8f8f8;
	--header-text: #242728;
	--footer-bg: #f8f8f8;
	--footer-text: #242728;
	--border: #d6dadb;
	--maxw: 780px;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--link);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover,
a:focus {
	text-decoration-thickness: 2px;
}

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--text);
	color: #ffffff;
	padding: 10px 16px;
	z-index: 1000;
}

.skip-link:focus {
	left: 12px;
	top: 12px;
}

/* -------------------------------------------------------------------------
 * Disclaimer-Banner: nicht ausblenden, nur an Design anpassen
 * ---------------------------------------------------------------------- */
.ps-disclaimer {
	background: #d9e1f0;
	color: #0e1a2f;
	border-bottom: 1px solid #a2b7db;
	font: 14px/1.5 Arial, Helvetica, sans-serif;
	padding: 10px 16px;
}

.ps-disclaimer__inner {
	max-width: var(--maxw);
	margin: 0 auto;
}

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */
.site-header {
	background: var(--header-bg);
	color: var(--header-text);
	border-bottom: 1px solid var(--border);
}

.site-header__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 20px;
}

.site-logo {
	font-size: 20px;
	font-weight: 700;
	color: var(--header-text);
	text-decoration: none;
	letter-spacing: -0.01em;
}

.site-logo span {
	color: var(--secondary);
}

.site-nav ul {
	list-style: none;
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
}

.site-nav a {
	color: var(--header-text);
	text-decoration: none;
	font-size: 15px;
	font-weight: 700;
	padding: 4px 2px;
	border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus {
	border-bottom-color: var(--accent);
}

.nav-toggle {
	display: none;
}

/* -------------------------------------------------------------------------
 * Hero / Titelzeile (kein Foto)
 * ---------------------------------------------------------------------- */
.page-intro {
	padding: 40px 0 8px;
}

.page-intro__eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--secondary);
	margin: 0 0 10px;
}

.page-intro h1 {
	font-size: 30px;
	line-height: 1.25;
	margin: 0 0 14px;
	color: var(--text);
}

.page-intro p {
	color: var(--muted);
	font-size: 17px;
	max-width: 62ch;
	margin: 0 0 8px;
}

/* -------------------------------------------------------------------------
 * Filterleiste (Startseite) — Kategorie-Filter statt Datums-Zeitleiste
 * ---------------------------------------------------------------------- */
.filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 28px 0 0;
}

.filter-btn {
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	color: var(--secondary);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 7px 16px;
	cursor: pointer;
}

.filter-btn:hover,
.filter-btn:focus {
	border-color: var(--secondary);
}

.filter-btn.is-active {
	background: var(--secondary);
	border-color: var(--secondary);
	color: #ffffff;
}

/* -------------------------------------------------------------------------
 * Kartenraster (Startseite) — signature component
 * ---------------------------------------------------------------------- */
.cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	margin: 24px 0 0;
	padding: 0;
}

.card {
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 22px 22px 18px;
	display: flex;
	flex-direction: column;
}

.card.is-hidden {
	display: none;
}

.card__tag {
	display: inline-block;
	align-self: flex-start;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--secondary);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 3px;
	padding: 3px 9px;
	margin: 0 0 12px;
}

.card__title {
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 1.35;
}

.card__title a {
	color: var(--text);
	text-decoration: none;
}

.card__title a:hover,
.card__title a:focus {
	color: var(--link);
	text-decoration: underline;
}

.card__teaser {
	margin: 0 0 14px;
	color: var(--text);
	flex-grow: 1;
}

.card__meta {
	font-size: 14px;
	color: var(--muted);
	margin: 0;
	border-top: 1px solid var(--border);
	padding-top: 12px;
}

.card__readmore {
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

/* Hinweiskarten (Transparenz, Kontakt) — separat vom Themenraster,
 * damit sie bei Kategorie-Filterung immer sichtbar bleiben. */
.notes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin: 28px 0 0;
}

.note-card {
	background: var(--surface);
	border-left: 3px solid var(--accent);
	border-radius: 2px;
	padding: 14px 18px;
	font-size: 15px;
	color: var(--text);
}

.note-card p {
	margin: 0 0 6px;
}

.note-card p:last-child {
	margin-bottom: 0;
}

.note-card__label {
	font-weight: 700;
	color: var(--secondary);
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.03em;
}

.note-card--kontakt {
	border-left-color: var(--primary);
}

/* -------------------------------------------------------------------------
 * Artikel als einzelne Zeitleisten-Station
 * ---------------------------------------------------------------------- */
.back-to-overview {
	display: inline-block;
	margin: 26px 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: var(--secondary);
	text-decoration: none;
}

.back-to-overview::before {
	content: "← ";
}

.back-to-overview:hover,
.back-to-overview:focus {
	text-decoration: underline;
}

.article-head {
	padding: 18px 0 0;
	border-bottom: 1px solid var(--border);
	margin-bottom: 28px;
	padding-bottom: 24px;
}

.article-head__tag {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--secondary);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 3px;
	padding: 3px 9px;
	margin: 0 0 12px;
}

.article-head h1 {
	font-size: 27px;
	line-height: 1.32;
	margin: 0 0 8px;
}

.article-head__meta {
	color: var(--muted);
	font-size: 14px;
	margin: 0;
}

.entry-content {
	padding-bottom: 20px;
}

.entry-content h2 {
	font-size: 22px;
	margin: 34px 0 14px;
	color: var(--text);
	border-top: 1px solid var(--border);
	padding-top: 24px;
}

.entry-content > h2:first-of-type {
	border-top: none;
	padding-top: 0;
}

.entry-content h3 {
	font-size: 18px;
	margin: 22px 0 10px;
	color: var(--secondary);
}

.entry-content p {
	margin: 0 0 16px;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 18px;
	padding-left: 22px;
}

.entry-content li {
	margin-bottom: 8px;
}

.entry-content blockquote {
	margin: 0 0 18px;
	padding: 4px 18px;
	border-left: 3px solid var(--accent);
	color: var(--muted);
	font-style: italic;
}

.entry-content figure {
	margin: 0 0 20px;
}

.entry-content figcaption {
	font-size: 13px;
	color: var(--muted);
	margin-top: 6px;
}

.entry-content code {
	background: var(--surface);
	padding: 2px 5px;
	border-radius: 3px;
	font-size: 0.9em;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 22px;
	font-size: 15px;
}

.entry-content caption {
	caption-side: top;
	text-align: left;
	color: var(--muted);
	font-size: 13px;
	margin-bottom: 6px;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--border);
	padding: 9px 12px;
	text-align: left;
	vertical-align: top;
}

.entry-content thead th {
	background: var(--surface);
	color: var(--text);
}

.entry-content tbody tr:nth-child(even) {
	background: #fbfbfb;
}

/* Amtlicher Abgrenzungs-Hinweis im Artikel */
.entry-content .hinweis-amtlich {
	background: var(--surface);
	border: 1px solid var(--border);
	border-left: 4px solid var(--primary);
	padding: 14px 18px;
	border-radius: 2px;
	margin: 0 0 26px;
	font-size: 15px;
}

.entry-content .hinweis-amtlich p {
	margin: 0;
}

/* Anzeige-Kasten (bereits im Artikelinhalt enthalten) */
.entry-content .anzeige,
.entry-content .anzeige-block {
	background: #f6f7fa;
	border: 1px solid #c3cdde;
	border-left: 4px solid var(--accent);
	padding: 16px 20px;
	border-radius: 2px;
	margin: 0 0 26px;
}

.entry-content .anzeige p,
.entry-content .anzeige-block p {
	margin: 0 0 10px;
}

.entry-content .anzeige p:last-child,
.entry-content .anzeige-block p:last-child {
	margin-bottom: 0;
}

.entry-content .anzeige > p:first-child strong,
.entry-content .anzeige-block > p:first-child strong,
.entry-content .anzeige-label {
	display: inline-block;
	background: var(--accent);
	color: #0b1628;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 2px;
}

/* Belegstatus: letzte h2 + folgende Liste im Artikel */
.entry-content h2:last-of-type {
	font-size: 17px;
	color: var(--muted);
	border-top: 1px solid var(--border);
}

.entry-content h2:last-of-type + ul {
	background: var(--surface);
	border-radius: 3px;
	padding: 16px 18px 16px 34px;
	font-size: 14px;
	color: var(--muted);
}

.entry-content h2:last-of-type + ul li {
	margin-bottom: 10px;
}

.entry-content h2:last-of-type + ul li:last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
 * Generische Seiten (Über, Impressum, Datenschutz)
 * ---------------------------------------------------------------------- */
.page-content {
	padding: 30px 0 50px;
}

.page-content h1 {
	font-size: 27px;
	margin: 0 0 22px;
}

.page-content .entry-content h2 {
	border-top: none;
	padding-top: 0;
	margin-top: 30px;
}

/* -------------------------------------------------------------------------
 * 404
 * ---------------------------------------------------------------------- */
.error-404 {
	padding: 60px 0 80px;
	text-align: center;
}

.error-404 h1 {
	font-size: 26px;
	margin: 0 0 14px;
}

.error-404 p {
	color: var(--muted);
}

.error-404 a {
	font-weight: 700;
}

/* -------------------------------------------------------------------------
 * Nach-oben
 * ---------------------------------------------------------------------- */
.to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--secondary);
	color: #ffffff;
	border: none;
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	font-size: 18px;
	line-height: 1;
	z-index: 500;
}

.to-top.is-visible {
	display: flex;
}

.to-top:hover,
.to-top:focus {
	background: var(--link);
}

/* -------------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------------- */
.site-footer {
	background: var(--footer-bg);
	color: var(--footer-text);
	border-top: 1px solid var(--border);
	padding: 30px 0 34px;
	margin-top: 20px;
	font-size: 14px;
}

.footer-links ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0 0 16px;
	padding: 0;
}

.footer-links a {
	color: var(--footer-text);
	font-weight: 700;
	text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
	text-decoration: underline;
}

.footer-transparenz,
.footer-betreiber {
	color: var(--muted);
	margin: 0 0 8px;
	max-width: 62ch;
}

.footer-transparenz a {
	color: var(--link);
}

.footer-copyright {
	color: var(--muted);
	margin: 14px 0 0;
}

/* -------------------------------------------------------------------------
 * Mobil: Kartenraster wird einspaltig, Filterleiste bleibt scrollbar
 * ---------------------------------------------------------------------- */
@media (max-width: 640px) {
	.site-header__row {
		flex-wrap: wrap;
		gap: 8px 16px;
	}

	.site-nav ul {
		gap: 16px;
		flex-wrap: wrap;
	}

	.page-intro h1 {
		font-size: 25px;
	}

	.cards-grid,
	.notes-grid {
		grid-template-columns: 1fr;
	}

	.entry-content table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	.footer-links ul {
		gap: 8px 14px;
	}
}
/* -------------------------------------------------------------------------
 * Additiv (06.10.2026): Einstiegsblock auf der Startseite, verlinkt die
 * neue Seite "Dämm-Innovationen im Vergleich" (front-page.php). Steht hier
 * statt in der seiteneigenen daemm-innovationen.css, weil front-page.php
 * nur das Grund-Stylesheet lädt, nicht die Seiten-eigenen Assets.
 * ---------------------------------------------------------------------- */
.di-einstieg {
	margin: 28px 0 0;
	padding: 22px clamp(18px, 4vw, 28px);
	background: var(--surface);
	border: 1px solid var(--border);
	border-left: 4px solid var(--accent);
	border-radius: 4px;
}

.di-einstieg__eyebrow {
	display: inline-block;
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--secondary);
}

.di-einstieg h2 {
	margin: 0 0 10px;
	font-size: 22px;
	line-height: 1.3;
	color: var(--text);
}

.di-einstieg p {
	margin: 0 0 14px;
	color: var(--muted);
	max-width: 62ch;
}

.di-einstieg__knopf {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	border-radius: 4px;
	background: var(--secondary);
	color: #ffffff;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
}

.di-einstieg__knopf:hover,
.di-einstieg__knopf:focus {
	background: var(--link);
}
