/*
Theme Name: Fassadenfarben Ratgeber Nord
Theme URI: https://naturfarben-bremen.de/
Author: Zurynski, Oezdogan & Co GmbH
Description: Hanseatischer Fassaden-Kompass – Fachportal-Theme für naturfarben-bremen.de (Themenraster, Problem-Chips, Eignungs-Ampel, Quellenliste).
Version: 1.0.0
Text Domain: t-naturfarben-bremen-de
License: Proprietary
*/

:root {
	--bg: #f7f4ee;
	--surface: #ffffff;
	--text: #232a2b;
	--muted: #434d4c;       /* Text-Grau mit >= 7:1 auf --bg */
	--muted-line: #6b7473;  /* nur für Linien und Deko */
	--primary: #2f5d50;
	--accent: #b5532f;      /* Backstein: Flächen, Linien, Zahlen in Kreisen */
	--accent-text: #8a3a1c; /* Backstein für kleinen Text, >= 7:1 auf Weiß */
	--link: #1f6f8b;
	--dark: #16231e;
	--sand: #e9dfc8;
	--line: #d8d2c3;
	--radius: 4px;
	--ff-head: "Merriweather", Georgia, "Times New Roman", serif;
	--ff-body: "Source Sans 3", "Segoe UI", system-ui, Arial, sans-serif;
	--wrap: 1180px;
}

*, *::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-family: var(--ff-body);
	font-size: 18px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, [tabindex]:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}
h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--primary); line-height: 1.3; font-weight: 700; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: 10px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* Disclaimer vom Kern: gestylt, nie ausgeblendet */
.ps-disclaimer {
	background: #fbeee4;
	color: #3a1d10;
	border-bottom: 1px dashed var(--accent);
	font: 400 15px/1.5 var(--ff-body);
	padding: 9px 16px;
}
.ps-disclaimer__inner { max-width: var(--wrap); margin: 0 auto; }
.ps-disclaimer strong { color: var(--accent-text); }

/* Kopf: weiße Leiste, Backstein-Unterkante */
.kopf { background: var(--surface); }
.kopf-innen {
	display: flex; align-items: center; justify-content: space-between; gap: 16px 24px;
	padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.wortmarke { text-decoration: none; color: var(--primary); display: block; }
.wortmarke-kicker { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.wortmarke-name { display: block; font-family: var(--ff-head); font-weight: 700; font-size: 26px; line-height: 1.2; }
.kopf-rechts { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; }
.suche { display: flex; gap: 0; }
.suche input[type="search"] {
	font: inherit; font-size: 16px; width: 220px; max-width: 100%;
	padding: 8px 12px; border: 1px solid var(--muted-line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
	background: var(--bg); color: var(--text);
}
.suche button {
	font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
	padding: 8px 14px; border: 1px solid var(--primary); background: var(--primary); color: #fff; border-radius: 0 var(--radius) var(--radius) 0;
}
.suche button:hover { background: #244a40; }
.anzeige-hinweis { font-size: 15px; font-weight: 600; color: var(--accent-text); text-decoration: none; border: 1px dashed var(--accent); padding: 6px 10px; border-radius: var(--radius); white-space: nowrap; }
.anzeige-hinweis:hover { background: #fbeee4; }

.themennav { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 3px solid var(--accent); position: sticky; top: 0; z-index: 50; }
.themennav ul { list-style: none; margin: 0 auto; padding-top: 0; padding-bottom: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.themennav ul::-webkit-scrollbar { display: none; }
.themennav a {
	display: block; padding: 12px 16px; font-weight: 600; font-size: 17px; color: var(--text); text-decoration: none; white-space: nowrap;
	border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.themennav a:hover { color: var(--primary); border-bottom-color: var(--primary); }

main { display: block; }
[id] { scroll-margin-top: 70px; }

/* Hero */
.hero { background: var(--sand); border-bottom: 1px solid var(--line); }
.hero-raster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.hero-kicker { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--accent-text); margin-bottom: 8px; }
.hero h1 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: .45em; }
.hero-lead { font-size: 19px; color: var(--muted); max-width: 40em; }
.chips-frage { font-weight: 600; margin-bottom: 8px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
	display: inline-block; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--primary); background: var(--surface);
	color: var(--primary); font-weight: 600; text-decoration: none; font-size: 17px; line-height: 1.3; min-height: 44px;
}
.chip:hover { background: var(--primary); color: #fff; }
.chip--an { background: var(--primary); color: #fff; }
.hero-bild { margin: 0; }
.hero-bild svg { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--muted-line); }
.hero-bild figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }
.hero-bild figcaption span { margin-right: 12px; white-space: nowrap; }
.hero-bild figcaption b { display: inline-block; background: var(--accent); color: #fff; border-radius: 50%; width: 22px; height: 22px; line-height: 22px; text-align: center; font-size: 14px; }

/* Layout mit Seitenleiste */
.mit-seitenleiste { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 36px; padding-bottom: 56px; align-items: start; }
.seite-schmal { max-width: 820px; padding-top: 24px; padding-bottom: 56px; }
.haupt { min-width: 0; }
.sektion { margin-bottom: 52px; }
.sektion-titel { font-size: 26px; padding-bottom: 8px; border-bottom: 1px solid var(--muted-line); margin-bottom: 14px; }
.sektion-lead { color: var(--muted); max-width: 44em; }

/* Karten */
.karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.karten--liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.karte { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--primary); border-radius: var(--radius); padding: 18px 18px 14px; display: flex; flex-direction: column; }
.karte[hidden] { display: none; }
.karte h3, .karte h2 { font-size: 18px; margin-bottom: .5em; }
.karte h3 a, .karte h2 a { color: var(--primary); text-decoration: none; }
.karte h3 a:hover, .karte h2 a:hover { text-decoration: underline; }
.karte p { font-size: 17px; }
.karte-meta { font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.karte--bald { border-top-style: dashed; border-top-color: var(--muted-line); background: #fbf9f4; }
.bald { font-weight: 600; color: var(--accent-text); font-size: 16px; }
.mehr { margin-top: auto; font-weight: 600; }
.filter-hinweis { margin-top: 14px; padding: 10px 14px; background: var(--surface); border-left: 4px solid var(--accent); }

/* Themenkacheln */
.themen-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.thema { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; }
.thema h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.thema h3::before { content: ""; width: 10px; height: 10px; background: var(--accent); border-radius: 1px; flex: none; }
.thema p { font-size: 17px; }

/* Tabelle mit Ampel */
.tabelle-rahmen { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.vergleich { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 17px; }
.vergleich th, .vergleich td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; word-break: normal; overflow-wrap: normal; hyphens: manual; }
.vergleich thead th { background: var(--primary); color: #fff; font-weight: 600; font-size: 16px; }
.vergleich tbody tr:nth-child(even) { background: #f4f1e8; }
.vergleich tbody th { font-family: var(--ff-head); font-size: 16px; color: var(--primary); }
.vergleich .sub { display: block; font-family: var(--ff-body); font-weight: 400; font-size: 15px; color: var(--muted); }
.ampel { display: inline-block; padding: 3px 11px 3px 28px; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1.4; position: relative; border: 1px solid; }
.ampel::before { content: ""; position: absolute; left: 10px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; }
.ampel--gruen { background: #e5f0ea; color: #173d31; border-color: #2f5d50; }
.ampel--gruen::before { background: #2f5d50; }
.ampel--gelb { background: #fbf0cf; color: #4a3600; border-color: #9a7400; }
.ampel--gelb::before { background: #c79200; }
.ampel--rot { background: #f9e3da; color: #5a1f0b; border-color: var(--accent); }
.ampel--rot::before { background: var(--accent); }
.legende { margin-top: 12px; font-size: 16px; color: var(--muted); }
.legende .ampel { margin-right: 2px; }

/* Bremer Haus */
.bremer-raster { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.haken { list-style: none; padding: 0; margin: 0 0 1em; }
.haken li { position: relative; padding-left: 28px; margin-bottom: .6em; }
.haken li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 11px; height: 6px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.querschnitt { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.querschnitt svg { display: block; width: 100%; border-radius: var(--radius); }
.querschnitt figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* Glossar-Schnellzugriff */
.begriffe { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.begriffe a { display: inline-block; padding: 6px 14px; border: 1px solid var(--muted-line); background: var(--surface); border-radius: 999px; text-decoration: none; font-size: 16px; color: var(--text); }
.begriffe a:hover { border-color: var(--primary); color: var(--primary); }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 18px; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { padding: 12px 18px 0; }
.faq details p:last-child { padding-bottom: 6px; }

.redaktion { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 22px 24px 10px; }
.redaktion .sektion-titel { border: 0; padding: 0; font-size: 22px; }
.quellen-links { padding-left: 20px; }

/* Seitenleiste */
.seitenleiste { position: sticky; top: 64px; display: flex; flex-direction: column; gap: 18px; }
.kasten { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kasten h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; font-family: var(--ff-body); color: var(--muted); margin-bottom: 10px; }
.kat-liste { list-style: none; padding: 0; margin: 0; }
.kat-liste li { padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.kat-liste li:last-child { border: 0; }
.zahl { color: var(--muted); font-size: 15px; }
.glossar-wort { font-family: var(--ff-head); font-weight: 700; color: var(--primary); font-size: 18px; margin-bottom: 4px; }

/* Anzeige-Etikett: gestrichelt, mit Herstellerhinweis */
.anzeige-etikett { border: 2px dashed var(--accent); background: #fffaf5; border-radius: var(--radius); padding: 18px 18px 16px; position: relative; margin-top: 8px; }
.etikett-kopf { position: absolute; top: -13px; left: 14px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 10px; border-radius: 3px; }
.etikett-titel { font-family: var(--ff-head); font-weight: 700; color: var(--text); font-size: 17px; margin-bottom: .4em; }
.anzeige-etikett p { font-size: 17px; }
.etikett-hinweis { font-size: 15px !important; color: var(--muted); }
.knopf { display: inline-block; background: var(--accent-text); color: #fff; text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: var(--radius); min-height: 44px; }
.knopf:hover { background: #6e2d14; }

/* Brotkrumen */
.brotkrumen { font-size: 16px; color: var(--muted); padding: 16px 0 0; }
.brotkrumen a { color: var(--link); }

/* Artikel */
.artikel-raster { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; padding-top: 12px; padding-bottom: 56px; align-items: start; }
.toc-spalte { position: sticky; top: 64px; align-self: start; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; }
.toc summary { cursor: pointer; font-weight: 700; padding: 12px 16px; font-family: var(--ff-head); color: var(--primary); font-size: 16px; }
.toc ol { margin: 0; padding: 0 16px 12px 36px; font-size: 16px; line-height: 1.4; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover, .toc a.aktiv { color: var(--accent-text); text-decoration: underline; }
.toc a.aktiv { font-weight: 700; }
.lesespalte { max-width: 890px; min-width: 0; }
.artikel-titelblock h1 { font-size: clamp(26px, 3.4vw, 36px); }
.kategorie { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }
.kategorie a { color: var(--accent-text); text-decoration: none; }
.artikel-meta { color: var(--muted); font-size: 16px; }
.kernaussage { background: var(--surface); border: 1px solid var(--primary); border-left: 6px solid var(--primary); border-radius: var(--radius); padding: 14px 18px 4px; margin: 18px 0 26px; }
.kernaussage-kopf { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--primary); margin-bottom: 4px; }
.kernaussage p:last-child { font-size: 19px; }

.entry-content { font-size: 19px; line-height: 1.7; }
.entry-content h2 { font-size: 25px; margin-top: 1.7em; padding-top: .5em; border-top: 1px solid var(--muted-line); }
.entry-content h3 { font-size: 20px; margin-top: 1.5em; color: var(--text); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .45em; }
.entry-content .wp-block-table, .entry-content figure.wp-block-table { margin: 1.4em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.entry-content table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 16.5px; line-height: 1.5; }
.entry-content th, .entry-content td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); word-break: normal; overflow-wrap: normal; hyphens: manual; }
.entry-content thead th { background: var(--primary); color: #fff; font-weight: 600; }
.entry-content tbody tr:nth-child(even) { background: #f4f1e8; }
.entry-content tbody tr:last-child td { border-bottom: 0; }
.entry-content td:first-child { font-weight: 600; }

/* Anzeige im Beitragstext: gestricheltes Etikett */
.entry-content .anzeige { border: 2px dashed var(--accent); background: #fffaf5; border-radius: var(--radius); padding: 22px 20px 16px; margin: 2em 0; position: relative; font-size: 17.5px; line-height: 1.6; }
.entry-content .anzeige-label { position: absolute; top: -14px; left: 14px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 10px; border-radius: 3px; }
.entry-content .anzeige-text { display: block; margin-bottom: .7em; }
.entry-content .anzeige-text:first-of-type { font-weight: 600; }
.entry-content .anzeige::after { content: "Hinweis: Leistungsangaben zu diesem Produkt sind Herstellerangaben."; display: block; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--accent); font-size: 15px; color: var(--muted); }

.quellenbox { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--primary); border-radius: var(--radius); padding: 18px 22px 8px; margin: 40px 0 24px; }
.quellenbox h2 { font-size: 20px; }
.quellenbox ul { padding-left: 20px; }
.quellenbox li { margin-bottom: .5em; word-break: normal; overflow-wrap: anywhere; }
.quelle-host { color: var(--muted); font-size: 15px; margin-left: 4px; }
.quelle-host::before { content: "· "; }
.quellen-hinweis { font-size: 16px; color: var(--muted); }
.weitere h2 { font-size: 20px; }
.weitere ul { padding-left: 20px; }

/* Seiten */
.seite h1 { font-size: clamp(26px, 3.4vw, 36px); }
.seite .entry-content { font-size: 18.5px; }
.seite .entry-content h2 { font-size: 22px; }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 8px; }
.az a { display: inline-block; min-width: 40px; min-height: 40px; line-height: 38px; text-align: center; border: 1px solid var(--muted-line); border-radius: var(--radius); background: var(--surface); text-decoration: none; font-weight: 700; color: var(--primary); }
.az a:hover { background: var(--primary); color: #fff; }
.az-gruppe h2 { font-size: 28px; border-bottom: 3px solid var(--accent); display: inline-block; padding-right: 20px; margin: 28px 0 12px; }
.eintrag { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 4px; margin-bottom: 12px; }
.eintrag h3 { font-size: 19px; margin-bottom: .3em; }
.eintrag-kurz { font-weight: 600; color: var(--text); }
.navigation.pagination { margin-top: 24px; }
.navigation .page-numbers { display: inline-block; padding: 6px 12px; border: 1px solid var(--muted-line); border-radius: var(--radius); text-decoration: none; margin-right: 4px; background: var(--surface); }
.navigation .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Fuß: dreispaltig dunkel */
.fuss { background: var(--dark); color: #e9e5da; margin-top: 0; font-size: 17px; }
.fuss-raster { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; padding-top: 44px; padding-bottom: 36px; }
.fuss h2 { font-family: var(--ff-body); font-size: 15px; text-transform: uppercase; letter-spacing: .1em; color: #f0c7b3; margin-bottom: 12px; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 8px; }
.fuss a { color: #bfe3d6; }
.fuss a:hover { color: #fff; }
.fuss .betreiber { font-size: 15.5px; color: #d4d0c5; }
.fuss .transparenz { font-size: 16px; }
.fuss .abgrenzung { font-size: 15.5px; color: #d4d0c5; border-top: 1px dashed #5a6b64; padding-top: 12px; margin-top: 14px; }
.fuss-unten { border-top: 3px solid var(--accent); background: #101a16; font-size: 15px; color: #d4d0c5; padding: 14px 0; }

/* Tablet und Mobil */
@media (max-width: 1020px) {
	.mit-seitenleiste { grid-template-columns: minmax(0, 1fr); }
	.seitenleiste { position: static; }
	.hero-raster { grid-template-columns: minmax(0, 1fr); }
	.karten, .themen-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bremer-raster { grid-template-columns: minmax(0, 1fr); }
	.artikel-raster { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.toc-spalte { position: static; }
	.fuss-raster { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	body { font-size: 17px; }
	.wortmarke-name { font-size: 22px; }
	.kopf-rechts { width: 100%; justify-content: space-between; }
	.suche { flex: 1 1 100%; }
	.suche input[type="search"] { flex: 1; width: auto; }
	.karten, .karten--liste, .themen-raster { grid-template-columns: minmax(0, 1fr); }
	.fuss-raster { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.entry-content { font-size: 18px; }
	.hero-raster { padding-top: 24px; padding-bottom: 24px; }
	.sektion-titel { font-size: 23px; }
	.sektion { margin-bottom: 40px; }
	.mit-seitenleiste { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
