/*
Theme Name: Vakuumglas.io Vergleich
Theme URI: https://vakuumglas.io/
Author: PSCoat-SEO
Description: Eigenständiges Vergleichsportal-Theme für vakuumglas.io — Vakuumisolierglas erklärt, Kosten und Abgrenzung zu Vakuumdämmplatte und Dreifachverglasung.
Version: 1.0.0
Text Domain: t-vakuumglas-io
*/

/* -------------------------------------------------------------------------
   Tokens
------------------------------------------------------------------------- */
:root {
	--bg: #fbfbfb;
	--surface: #eeefef;
	--surface-2: #e2e5e6;
	--text: #242728;
	--muted: #5e696e;
	--primary: #36b9b0;
	--primary-text: #242728;
	--secondary: #2a5e5a;
	--accent: #2762ba;
	--link: #18817a;
	--border: #dbdee0;
	--header-bg: #fbfbfb;
	--header-text: #242728;
	--footer-bg: #fbfbfb;
	--footer-text: #242728;
	--radius: 4px;
	--maxw: 1180px;
	--font-heading: "Figtree", "Segoe UI", Arial, sans-serif;
	--font-body: "Mulish", "Segoe UI", Arial, sans-serif;
}

/* -------------------------------------------------------------------------
   Reset & Grundlagen
------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
svg { width: 1em; height: 1em; vertical-align: -0.125em; flex: none; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--secondary); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 2.2em 0 0.7em; font-weight: 600; }
h3 { font-size: 1.2rem; margin: 1.4em 0 0.5em; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #ffffff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; }
button { font-family: inherit; cursor: pointer; }

/* -------------------------------------------------------------------------
   Topbar
------------------------------------------------------------------------- */
.topbar { background: var(--secondary); color: #ffffff; font-size: 0.86rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #ffffff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__info { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.topbar__info svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* -------------------------------------------------------------------------
   Header
------------------------------------------------------------------------- */
.site-header { background: var(--header-bg); color: var(--header-text); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 20px; }
.site-logo { display: flex; flex-direction: column; text-decoration: none; color: var(--header-text); }
.site-logo__name { font-family: var(--font-heading); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.01em; }
.site-logo__name b { color: var(--secondary); font-weight: 700; }
.site-logo__tag { font-size: 0.72rem; color: var(--muted); font-weight: 600; }

.burger { display: none; background: transparent; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; }
.burger svg { width: 22px; height: 22px; display: block; }

.main-nav { display: flex; }
.main-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; align-items: stretch; }
.main-nav > ul > li { position: relative; display: flex; align-items: center; }
.main-nav > ul > li > a,
.main-nav > ul > li > button.nav-toggle {
	display: block;
	padding: 10px 14px;
	text-decoration: none;
	color: var(--header-text);
	font-weight: 700;
	font-size: 0.97rem;
	border-radius: var(--radius);
	background: transparent;
	border: none;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > button.nav-toggle:hover,
.main-nav > ul > li.is-open > button.nav-toggle {
	background: var(--surface);
	color: var(--secondary);
}
.main-nav .nav-toggle { display: flex; align-items: center; gap: 5px; }
.main-nav .nav-toggle svg { width: 13px; height: 13px; transition: transform .15s; }
.main-nav li.is-open .nav-toggle svg { transform: rotate(180deg); }

/* Mega-Menu */
.mega {
	position: absolute; top: 100%; left: 0;
	background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius);
	box-shadow: 0 12px 28px rgba(36, 37, 40, 0.14);
	padding: 18px; display: none; gap: 22px; width: 620px; z-index: 50;
}
li.is-open .mega { display: flex; }
.mega__col { flex: 1; min-width: 0; }
.mega__col h4 {
	margin: 0 0 8px; font-family: var(--font-heading); font-size: 0.76rem; text-transform: uppercase;
	letter-spacing: 0.05em; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 6px;
}
.mega__col a { display: block; padding: 7px 4px; color: var(--text); text-decoration: none; font-size: 0.94rem; font-weight: 700; border-radius: var(--radius); }
.mega__col a:hover { background: var(--surface); color: var(--secondary); }
.mega__col p { font-size: 0.82rem; color: var(--muted); margin: 0 0 6px; padding: 0 4px; }

/* -------------------------------------------------------------------------
   Hero
------------------------------------------------------------------------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 44px 0 40px; }
.hero__inner { max-width: 800px; }
.hero__kicker {
	display: inline-block; font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.06em; color: var(--secondary); background: var(--surface-2); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 4px 10px; margin-bottom: 14px;
}
.hero h1 { margin: 0 0 14px; }
.hero__lead { font-size: 1.12rem; color: var(--text); max-width: 64ch; }
.hero__quick { margin-top: 26px; }
.hero__quick-label { font-family: var(--font-heading); font-size: 0.86rem; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.quick-select { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.quick-select a {
	display: inline-flex; align-items: center; gap: 8px; background: #ffffff; border: 1.5px solid var(--secondary);
	color: var(--secondary); font-weight: 700; font-size: 0.95rem; padding: 11px 16px; border-radius: var(--radius); text-decoration: none;
}
.quick-select a svg { width: 16px; height: 16px; flex: none; }
.quick-select a:hover { background: var(--secondary); color: #ffffff; }
.hero__cta { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 22px; border-radius: var(--radius); font-weight: 700; text-decoration: none; font-size: 0.98rem; border: 1.5px solid transparent; }
.btn-primary { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.btn-primary:hover { background: #2ea59d; color: var(--primary-text); }
.btn-outline { background: transparent; color: var(--secondary); border-color: var(--secondary); }
.btn-outline:hover { background: var(--secondary); color: #ffffff; }

/* -------------------------------------------------------------------------
   Sections generic
------------------------------------------------------------------------- */
.section { padding: 46px 0; }
.section--alt { background: var(--surface); }
.section__head { max-width: 720px; margin: 0 0 26px; }
.section__head h2 { margin-top: 0; }
.section__head p { color: var(--muted); font-size: 1.02rem; }

/* Themenkarten */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topic-card { background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.topic-card__icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border-radius: var(--radius); color: var(--secondary); margin-bottom: 14px; }
.topic-card__icon svg { width: 22px; height: 22px; }
.topic-card h3 { margin: 0 0 8px; font-size: 1.14rem; }
.topic-card p { color: var(--text); font-size: 0.96rem; flex: 1; }
.topic-card .meta { font-size: 0.8rem; color: var(--muted); margin: 10px 0 12px; display: flex; gap: 12px; }
.topic-card a.readmore { font-weight: 700; text-decoration: none; }
.topic-card a.readmore:hover { text-decoration: underline; }

/* Vergleichskarten (Methoden, kein Anbietervergleich) */
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.compare-card { background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.compare-card__head { background: var(--secondary); color: #ffffff; padding: 16px 18px; }
.compare-card--alt .compare-card__head { background: var(--text); }
.compare-card__head .badge {
	display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
	background: rgba(255,255,255,0.18); padding: 3px 8px; border-radius: 3px; margin-bottom: 8px;
}
.compare-card__head h3 { margin: 0; color: #ffffff; font-size: 1.1rem; font-family: var(--font-heading); }
.compare-card__body { padding: 4px 0; flex: 1; }
.compare-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.compare-row:last-child { border-bottom: none; }
.compare-row dt { color: var(--muted); font-weight: 700; flex: 0 0 40%; }
.compare-row dd { margin: 0; text-align: right; font-weight: 600; }
.compare-card__foot { padding: 14px 18px; border-top: 1px solid var(--border); font-size: 0.84rem; color: var(--muted); }
.compare-card__foot a { font-weight: 700; }

/* Ratgeber-Feature */
.feature-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.feature-item { display: grid; grid-template-columns: 90px 1fr; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--border); align-items: start; }
.feature-item__num { width: 48px; height: 48px; border-radius: 50%; background: var(--surface-2); color: var(--secondary); font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); }
.feature-item h3 { margin: 0 0 6px; font-size: 1.24rem; }
.feature-item .meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; display: flex; gap: 14px; flex-wrap: wrap; }
.feature-item p.excerpt { color: var(--text); margin-bottom: 10px; }

/* Q&A im Fließtext statt Akkordeon */
.qa-list { max-width: 820px; display: flex; flex-direction: column; gap: 20px; }
.qa-item { border-top: 1px solid var(--border); padding-top: 16px; }
.qa-item .q { font-weight: 700; font-family: var(--font-heading); font-size: 1.03rem; margin: 0 0 6px; color: var(--secondary); }
.qa-item .a { margin: 0; color: var(--text); }
.qa-item .a a { font-weight: 700; }

/* PSCoat-Hinweisblock (inline Textlink, keine grafische Fläche) */
.ps-hint { border-top: 1px solid var(--border); padding-top: 20px; font-size: 0.94rem; color: var(--muted); max-width: 820px; }
.ps-hint .ad-label {
	display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
	color: #ffffff; background: var(--muted); padding: 2px 8px; border-radius: 3px; margin-right: 8px; vertical-align: 1px;
}
.ps-hint a { font-weight: 700; }

/* -------------------------------------------------------------------------
   Article page
------------------------------------------------------------------------- */
.breadcrumb { font-size: 0.84rem; color: var(--muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--secondary); text-decoration: underline; }
.article-head { padding: 18px 0 30px; border-bottom: 1px solid var(--border); }
.article-head h1 { margin: 8px 0 14px; max-width: 46ch; }
.article-head .meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.88rem; color: var(--muted); }
.article-head .meta svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

.article-body { max-width: 760px; margin: 0 auto; padding: 34px 0 10px; }
.article-body h2 { border-top: 1px solid var(--border); padding-top: 0.7em; }
.article-body h2:first-child { border-top: none; padding-top: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-body table { width: 100%; min-width: 480px; border-collapse: collapse; margin: 1.4em 0; font-size: 0.94rem; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.article-body th { background: var(--surface); font-weight: 700; font-family: var(--font-heading); }
.article-body tr:nth-child(even) td { background: #fafafa; }
.article-body blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 4px solid var(--secondary); color: var(--text); font-style: italic; background: var(--surface); }
.article-body figure { margin: 1.4em 0; }
.article-body figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.article-body code { background: var(--surface); padding: 2px 6px; border-radius: 3px; font-size: 0.9em; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; }
.article-body li { margin-bottom: 0.35em; }

.article-body .anzeige, .article-body .anzeige-block {
	background: var(--surface-2); border: 1px solid var(--secondary); border-left: 5px solid var(--secondary);
	border-radius: var(--radius); padding: 18px 20px; margin: 1.8em 0;
}
.article-body .anzeige-label,
.article-body .anzeige > p:first-child strong:first-child,
.article-body .anzeige-block > p:first-child strong:first-child {
	display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
	color: #ffffff; background: var(--secondary); padding: 3px 10px; border-radius: 3px; margin: 0 0 10px !important;
}
.article-body .anzeige p, .article-body .anzeige-block p { margin-bottom: 0.6em; }
.article-body .anzeige h3, .article-body .anzeige-block h3 { margin-top: 0.2em; }
.article-body .anzeige em, .article-body .anzeige-block em { color: var(--muted); font-size: 0.86rem; }

.article-body .belegstatus {
	margin-top: 2.4em; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.9rem;
}
.article-body .belegstatus h2 { margin-top: 0; border-top: none; padding-top: 0; font-size: 1.02rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.article-body .belegstatus li { color: var(--muted); }

.related-box { max-width: 760px; margin: 30px auto 0; padding: 22px 0 0; border-top: 1px solid var(--border); }
.related-box h2 { margin-top: 0; }
.related-box ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.related-box a { font-weight: 700; text-decoration: none; }
.related-box a:hover { text-decoration: underline; }

/* -------------------------------------------------------------------------
   Page content (Impressum, Datenschutz, Über, Kontakt)
------------------------------------------------------------------------- */
.page-head { padding: 20px 0 4px; }
.page-body { max-width: 760px; margin: 0 auto; padding: 20px 0 50px; }
.page-body h2 { border-top: none; }
.page-body p { color: var(--text); }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin: 1.4em 0; }
.contact-card dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; margin: 0; }
.contact-card dt { color: var(--muted); font-weight: 700; }
.contact-card dd { margin: 0; }
.contact-card a { font-weight: 700; }

/* -------------------------------------------------------------------------
   Footer — schlank, nur 2 Linkspalten
------------------------------------------------------------------------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); border-top: 1px solid var(--border); margin-top: 20px; }
.footer-links { padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 560px; }
.footer-col h4 { font-family: var(--font-heading); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--footer-text); text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: var(--secondary); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0 26px; font-size: 0.84rem; color: var(--muted); }
.footer-bottom p { margin: 0 0 8px; }
.footer-bottom .transparenz a { color: var(--link); font-weight: 700; }
.footer-legal-nav { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.footer-legal-nav a { color: var(--muted); text-decoration: underline; }

/* -------------------------------------------------------------------------
   Back to top
------------------------------------------------------------------------- */
.to-top {
	position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%;
	background: var(--secondary); color: #ffffff; border: none; display: none; align-items: center; justify-content: center;
	box-shadow: 0 6px 16px rgba(36,37,40,0.25); z-index: 60;
}
.to-top.is-visible { display: flex; }
.to-top svg { width: 20px; height: 20px; }

/* -------------------------------------------------------------------------
   404
------------------------------------------------------------------------- */
.notfound { padding: 70px 0; text-align: center; }
.notfound .code { font-family: var(--font-heading); font-size: 4rem; font-weight: 700; color: var(--secondary); margin-bottom: 6px; }

/* -------------------------------------------------------------------------
   Bild-Nachweis
------------------------------------------------------------------------- */
.credit { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }

/* -------------------------------------------------------------------------
   Responsive
------------------------------------------------------------------------- */
@media (max-width: 980px) {
	.grid-3, .compare-grid { grid-template-columns: repeat(2, 1fr); }
	.mega { width: 480px; }
}

@media (max-width: 780px) {
	.topbar .container { justify-content: center; text-align: center; }
	.burger { display: block; }
	.main-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0; background: #ffffff;
		border-bottom: 1px solid var(--border); box-shadow: 0 12px 20px rgba(36,37,40,0.1); z-index: 80;
	}
	.main-nav.is-open { display: block; }
	.site-header { position: relative; }
	.main-nav > ul { flex-direction: column; padding: 10px 16px 16px; gap: 0; }
	.main-nav > ul > li { display: block; }
	.main-nav > ul > li > a, .main-nav > ul > li > button.nav-toggle { width: 100%; padding: 13px 6px; justify-content: space-between; }
	.mega { position: static; box-shadow: none; border: none; width: auto; padding: 4px 0 10px 10px; flex-direction: column; gap: 14px; }
	.mega__col a { padding: 8px 4px; }
	.grid-3, .compare-grid { grid-template-columns: 1fr; }
	.feature-item { grid-template-columns: 56px 1fr; }
	.feature-item__num { width: 40px; height: 40px; font-size: 0.95rem; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.contact-card dl { grid-template-columns: 1fr; }
	.compare-row dt { flex: 0 0 55%; }
}

@media (max-width: 480px) {
	body { font-size: 16px; }
	.hero { padding: 32px 0; }
	.footer-grid { grid-template-columns: 1fr; }
	.quick-select a { width: 100%; justify-content: center; }
}
