/*
Theme Name: t-best-nano-de
Theme URI: https://best-nano.de/
Description: Pruefstand-Vergleichsportal (Nano-Daemmung Kompass) fuer best-nano.de. Weisse Kopfleiste, Themenleiste, Zwei-Spalten-Hero mit Auswahl-Chips, Schichtaufbau-Motiv.
Author: Zurynski, Oezdogan & Co GmbH
Version: 1.0.0
Text Domain: t-best-nano-de
*/

:root {
	--bg: #f4f7f8;
	--surface: #ffffff;
	--text: #14222a;
	--muted: #5b6b73;
	--muted-text: #43535b;
	--primary: #0b5d73;
	--primary-dark: #08414f;
	--accent: #e07a1f;
	--link: #0a7a94;
	--line: #cfdadf;
	--line-soft: #e3eaed;
	--warm: #fff3e6;
	--radius: 4px;
	--head: 'Barlow', 'Segoe UI', Arial, sans-serif;
	--body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.65 var(--body); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--primary); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.2; color: var(--text); margin: 0 0 .5em; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Disclaimer des Kerns: stylen, nie verstecken */
.ps-disclaimer { background: var(--warm) !important; color: var(--text) !important; border-bottom: 1px solid var(--accent) !important; font: 400 15px/1.5 var(--body) !important; padding: 9px 20px !important; }
.ps-disclaimer__inner { max-width: 1140px !important; }

/* Kopf */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand__mark { display: block; width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font: 600 26px/1.1 var(--head); color: var(--primary); letter-spacing: .01em; }
.brand__sub { font: 500 13px/1.3 var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--muted-text); margin-top: 3px; }
.search { display: flex; align-items: stretch; border: 1px solid var(--muted); border-radius: var(--radius); background: var(--surface); width: 300px; max-width: 100%; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 16px/1.2 var(--body); padding: 9px 12px; color: var(--text); }
.search button { border: 0; border-left: 1px solid var(--line); background: var(--bg); color: var(--primary); padding: 0 12px; cursor: pointer; }
.themen { background: var(--surface); border-bottom: 3px solid var(--primary); }
.themen__toggle { display: none; }
.themen__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
.themen__list li { margin: 0; }
.themen__list a { display: block; padding: 11px 18px 10px 0; margin-right: 18px; font: 500 16px/1.2 var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--text); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.themen__list a:hover, .themen__list .is-current a { color: var(--primary); border-bottom-color: var(--accent); }

.site-main { padding-bottom: 56px; }

/* Hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.eyebrow { font: 600 14px/1.2 var(--head); text-transform: uppercase; letter-spacing: .14em; color: var(--muted-text); margin: 0 0 12px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 52px); color: var(--primary); margin-bottom: 16px; }
.hero__lede { font-size: 20px; max-width: 34em; margin: 0 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font: 600 17px/1 var(--head); letter-spacing: .03em; text-decoration: none; color: var(--primary); background: var(--surface); border: 2px solid var(--primary); border-radius: var(--radius); padding: 12px 18px; }
.chip:hover { background: var(--primary); color: #fff; }
.chip::before { content: ""; width: 9px; height: 9px; background: var(--accent); }
.hero__note { font-size: 16px; color: var(--muted-text); margin: 0; }
.schnitt { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 16px; }
.schnitt svg { display: block; width: 100%; }
.schnitt figcaption { font-size: 16px; color: var(--muted-text); margin-top: 10px; }
.legend { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 16px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { flex: none; width: 16px; height: 16px; border: 1px solid var(--text); }

/* Layout Startseite / Seiten */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-top: 40px; align-items: start; }
.sidebar { position: sticky; top: 16px; display: grid; gap: 20px; }
.sec { margin-bottom: 52px; scroll-margin-top: 20px; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-bottom: 2px solid var(--primary); padding-bottom: 8px; margin-bottom: 20px; }
.sec__head h2 { font-size: 30px; margin: 0; color: var(--primary); }
.sec__head p { margin: 0; font-size: 16px; color: var(--muted-text); }
.sec__intro { max-width: 40em; margin-top: 0; }

.fall-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fall { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: var(--radius); padding: 18px; scroll-margin-top: 20px; }
.fall:target { border-top-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.fall h3 { font-size: 22px; margin-bottom: 6px; }
.fall p { font-size: 16px; margin: 0 0 8px; }
.fall img { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; }
.fall__src { color: var(--muted-text); }

/* Tabellen */
.tabelle-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.raster, .entry-content table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 16px; line-height: 1.45; background: var(--surface); }
.raster th, .raster td, .entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; word-break: normal; overflow-wrap: normal; hyphens: manual; }
.raster thead th, .entry-content thead th { background: var(--primary); color: #fff; font: 600 15px/1.3 var(--head); letter-spacing: .05em; text-transform: uppercase; border-color: var(--primary-dark); }
.raster tbody th, .entry-content tbody th { background: var(--bg); font-weight: 700; }
.raster tbody tr:nth-child(even) td, .entry-content tbody tr:nth-child(even) td { background: #f9fbfb; }
.raster td:first-child, .entry-content td:first-child { font-weight: 600; }
.tabelle-note { font-size: 15px; color: var(--muted-text); margin: 8px 0 0; }

/* Karten */
.karten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.karte--bald { background: var(--bg); border-style: dashed; }
.karte__meta { font: 500 14px/1.3 var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--muted-text); margin: 0; }
.karte h3 { font-size: 22px; margin: 0; }
.karte h3 a { color: var(--text); text-decoration: none; }
.karte h3 a:hover { color: var(--primary); text-decoration: underline; }
.karte p { margin: 0; font-size: 16px; }
.karte__more { margin-top: auto; font: 600 16px/1 var(--head); letter-spacing: .04em; text-transform: uppercase; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--primary); border: 1px solid var(--primary); border-radius: var(--radius); padding: 5px 8px; background: var(--surface); }
.badge::before { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg) translateY(-2px); }

/* Glossar */
.gloss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.gloss dt { font: 600 19px/1.3 var(--head); color: var(--primary); padding-top: 14px; border-top: 1px solid var(--line); }
.gloss dd { margin: 4px 0 14px; font-size: 16px; }
.gloss--page { grid-template-columns: 1fr; }

/* Checkliste */
.check { list-style: none; padding: 0; margin: 0; counter-reset: c; display: grid; gap: 10px; }
.check li { counter-increment: c; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 12px 16px 12px 58px; position: relative; font-size: 17px; }
.check li::before { content: counter(c); position: absolute; left: 14px; top: 10px; width: 30px; height: 30px; border: 2px solid var(--primary); border-radius: var(--radius); text-align: center; font: 600 17px/26px var(--head); color: var(--primary); }
.check strong { font-family: var(--head); font-weight: 600; }
.stand { font-size: 16px; color: var(--muted-text); margin: 12px 0 0; }

/* Anzeige */
.anzeige-box { background: var(--warm); border: 2px solid var(--accent); border-radius: var(--radius); padding: 18px; }
.anzeige-tag, .entry-content .anzeige-label { display: inline-block; font: 600 13px/1 var(--head); text-transform: uppercase; letter-spacing: .12em; background: var(--surface); color: var(--text); border: 1px solid var(--accent); border-radius: var(--radius); padding: 5px 8px; }
.anzeige-box h3 { font-size: 21px; margin: 12px 0 6px; }
.anzeige-box p { font-size: 16px; margin: 0 0 10px; }
.anzeige-box .btn { display: inline-block; background: var(--primary); color: #fff; font: 600 16px/1 var(--head); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; padding: 12px 16px; border-radius: var(--radius); }
.anzeige-box .btn:hover { background: var(--primary-dark); color: #fff; }
.anzeige-box .small { font-size: 15px; color: var(--muted-text); margin-top: 12px; margin-bottom: 0; }

.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.box h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin: 0 0 10px; font-weight: 600; }
.box ul { list-style: none; margin: 0; padding: 0; font-size: 16px; }
.box li { padding: 6px 0; border-top: 1px solid var(--line-soft); }
.box li:first-child { border-top: 0; }
.box p { font-size: 16px; margin: 0 0 8px; }

/* Brotkrumen */
.crumbs { font-size: 15px; color: var(--muted-text); padding: 18px 0 0; }
.crumbs a { color: var(--link); }
.crumbs span[aria-hidden] { margin: 0 6px; }

/* Artikel */
.artikel-layout { display: grid; grid-template-columns: 250px minmax(0, 740px); gap: 48px; padding-top: 24px; justify-content: center; align-items: start; }
.toc-side { position: sticky; top: 16px; display: grid; gap: 18px; }
.toc-side .box { padding: 14px 16px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; font-size: 16px; }
.toc li { counter-increment: t; padding: 6px 0 6px 28px; position: relative; border-top: 1px solid var(--line-soft); line-height: 1.35; }
.toc li:first-child { border-top: 0; }
.toc li::before { content: counter(t, decimal-leading-zero); position: absolute; left: 0; top: 7px; font: 600 14px/1.3 var(--head); color: var(--muted-text); }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--primary); text-decoration: underline; }
.toc--inline { display: none; }
.artikel__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 15px; color: var(--muted-text); margin: 0 0 12px; }
.artikel__tag { font: 600 13px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; background: var(--primary); color: #fff; padding: 5px 8px; border-radius: var(--radius); }
.artikel h1 { font-size: clamp(30px, 4vw, 44px); color: var(--text); }
.strip { display: block; width: 100%; max-width: 360px; height: 18px; margin: 0 0 16px; }

.fazit { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 28px; }
.fazit__title { font: 600 20px/1.2 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--primary); margin: 0 0 10px; }
.fazit ol { margin: 0 0 16px; padding-left: 22px; font-size: 17px; }
.fazit li { margin-bottom: 6px; }
.proc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.proc > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.proc h3 { font: 600 15px/1.2 var(--head); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 6px; }
.proc ul { margin: 0; padding: 0; list-style: none; font-size: 16px; }
.proc li { position: relative; padding-left: 20px; margin-bottom: 5px; line-height: 1.45; }
.proc li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.proc__pro { border-left: 4px solid var(--primary) !important; }
.proc__pro li::before { content: "+"; color: var(--primary); }
.proc__con { border-left: 4px solid var(--accent) !important; }
.proc__con li::before { content: "\2212"; color: #9a4a06; }

.entry-content { font-size: 19px; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: 30px; margin: 1.7em 0 .5em; padding-top: .5em; border-top: 1px solid var(--line); color: var(--primary); scroll-margin-top: 16px; }
.entry-content h3 { font-size: 23px; margin: 1.4em 0 .4em; }
.entry-content p, .entry-content li { overflow-wrap: break-word; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content .wp-block-table, .entry-content figure { margin: 1.5em 0; overflow-x: auto; }
.entry-content .anzeige { background: var(--warm); border: 2px solid var(--accent); border-radius: var(--radius); padding: 18px 20px 6px; margin: 1.8em 0; }
.entry-content .anzeige p { font-size: 17px; }
.entry-content .anzeige-label { margin-right: 6px; }

.quellen { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-top: 36px; }
.quellen h2 { font-size: 22px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); }
.quellen ol { margin: 0; padding-left: 22px; font-size: 16px; }
.quellen li { margin-bottom: 6px; overflow-wrap: anywhere; }
.pruef { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 0; font-size: 15px; color: var(--muted-text); }
.weiter { margin-top: 40px; }
.weiter h2 { font-size: 24px; color: var(--primary); }

/* Seiten */
.seite h1 { font-size: clamp(32px, 4vw, 44px); color: var(--primary); }
.seite .entry-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.seite .entry-content > :first-child { margin-top: 0; }
.seite .entry-content h2:first-child { border-top: 0; padding-top: 0; }
.layout--seite { grid-template-columns: minmax(0, 1fr) 340px; }
.layout--eng { grid-template-columns: minmax(0, 820px); justify-content: center; }

.suche-liste { display: grid; gap: 16px; }

/* Fuss */
.site-foot { background: #14222a; color: #e4edf0; border-top: 6px solid var(--primary); margin-top: 24px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 40px; padding-top: 44px; padding-bottom: 32px; }
.site-foot h2 { font: 600 17px/1.2 var(--head); text-transform: uppercase; letter-spacing: .12em; color: #fff; margin: 0 0 12px; }
.site-foot p, .site-foot li { font-size: 16px; line-height: 1.6; margin: 0 0 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot a { color: #9fdcec; }
.site-foot a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid #34454e; padding: 18px 0 28px; font-size: 15px; color: #c9d6db; }
.foot-bottom p { margin: 0 0 8px; font-size: 15px; }
.foot-bottom .foot-betreiber { color: #e4edf0; }

/* 404 */
.nf { padding: 56px 0 24px; max-width: 720px; }
.nf h1 { font-size: 44px; color: var(--primary); }

/* Mobil / Tablet */
@media (max-width: 1020px) {
	.layout, .layout--seite { grid-template-columns: minmax(0, 1fr); }
	.sidebar { position: static; }
	.artikel-layout { grid-template-columns: minmax(0, 740px); gap: 0; }
	.toc-side { display: none; }
	.toc--inline { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 24px; padding: 12px 16px; }
	.toc--inline summary { cursor: pointer; font: 600 17px/1.3 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--primary); }
	.toc--inline ol { margin-top: 10px; }
	.hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; padding-bottom: 32px; }
	.foot-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.fall-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
	body { font-size: 17px; }
	.wrap { padding-left: 16px; padding-right: 16px; }
	.site-head__bar { flex-wrap: wrap; gap: 12px; }
	.brand__name { font-size: 23px; }
	.search { width: 100%; }
	.themen__toggle { display: block; width: 100%; text-align: left; background: var(--surface); border: 0; border-bottom: 1px solid var(--line); font: 600 16px/1.2 var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--primary); padding: 13px 0; cursor: pointer; }
	.themen__list { display: none; flex-direction: column; padding-bottom: 8px; }
	.themen__list.is-open { display: flex; }
	.themen__list a { padding: 11px 0; margin: 0; border-bottom: 1px solid var(--line-soft); }
	.themen { border-bottom-width: 3px; }
	.karten, .gloss, .proc, .legend { grid-template-columns: minmax(0, 1fr); }
	.sec__head h2 { font-size: 26px; }
	.entry-content { font-size: 17px; }
	.entry-content h2 { font-size: 26px; }
	.seite .entry-content { padding: 20px 16px; }
	.hero__lede { font-size: 18px; }
	.check li { padding-left: 54px; }
}
@media print {
	.site-head, .site-foot, .sidebar, .ps-disclaimer, .toc-side, .toc--inline { display: none !important; }
	body { background: #fff; }
}
