/* ==========================================================================
   KehrmaschinenTest.de – Redaktionelles Magazin-Layout
   ========================================================================== */

:root {
	--paper: #f7f5f0;
	--card: #fffdf8;
	--ink: #14110c;
	--ink-soft: #3a342a;
	--muted: #6b6255;
	--line: #e2dacb;
	--line-strong: #cabfa9;
	--accent: #b45309;
	--accent-dark: #8a3f06;
	--accent-soft: #fbeed9;
	--teal: #0f766e;
	--teal-soft: #e2f1ef;
	--gold: #c99a2e;
	--shadow: 0 10px 30px rgba(20, 17, 12, 0.07);
	--radius: 10px;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; font-size: 16px; }

body {
	font-family: var(--sans);
	color: var(--ink);
	background: var(--paper);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
ul, ol { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ===== MASTHEAD ===== */
.masthead {
	background: var(--ink);
	color: #f2ede2;
	font-size: 0.74rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.masthead-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 38px;
	gap: 16px;
}

.masthead-meta { display: flex; gap: 18px; align-items: center; }
.masthead-meta span { opacity: 0.75; }
.masthead .pub-name { font-family: var(--serif); font-size: 0.95rem; letter-spacing: 0.02em; text-transform: none; color: #fff; }
.masthead .pub-name b { color: var(--gold); }

/* ===== HEADER ===== */
.site-header {
	background: var(--card);
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 200;
	transition: box-shadow 0.2s;
}

.site-header.scrolled { box-shadow: 0 6px 22px rgba(20,17,12,0.08); }

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 70px;
	gap: 20px;
}

.logo {
	font-family: var(--serif);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--ink);
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}

.logo:hover { color: var(--ink); text-decoration: none; }
.logo strong { color: var(--accent); }

.logo-mark {
	width: 34px;
	height: 34px;
	color: var(--accent);
	flex: none;
}

.main-nav ul { display: flex; gap: 2px; }

.main-nav a {
	display: block;
	padding: 9px 15px;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ink-soft);
	border-radius: 40px;
}

.main-nav a:hover { background: var(--accent-soft); color: var(--accent-dark); text-decoration: none; }
.main-nav a.active { background: var(--ink); color: #fff; }

.lang-switch { display: flex; align-items: center; gap: 7px; margin-left: 6px; }
.lang-switch a, .lang-switch span { font-size: 1.15rem; line-height: 1; text-decoration: none; }
.lang-switch a { opacity: 0.35; transition: opacity 0.15s; }
.lang-switch a:hover { opacity: 1; }

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--line-strong);
	color: var(--ink);
	font-size: 1.2rem;
	line-height: 1;
	padding: 7px 12px;
	border-radius: 6px;
	cursor: pointer;
}

/* ===== LAYOUT ===== */
.layout {
	display: grid;
	grid-template-columns: 264px minmax(0, 1fr);
	gap: 44px;
	align-items: start;
	padding-top: 40px;
	padding-bottom: 60px;
}

.layout.layout-solo { grid-template-columns: minmax(0, 1fr); max-width: 900px; }

.sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; }
.widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.widget-title { font-family: var(--serif); font-size: 1rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }

.toc { font-size: 0.9rem; }
.toc a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); color: var(--muted); }
.toc a:hover { color: var(--accent-dark); border-left-color: var(--accent); text-decoration: none; }
.toc a.current { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }

.rating-card { text-align: center; }
.rating-card .rc-score { font-family: var(--serif); font-size: 2.8rem; line-height: 1; color: var(--accent); }
.rating-card .rc-of { font-size: 0.8rem; color: var(--muted); }
.rating-card .rc-label { font-size: 0.85rem; margin-top: 8px; color: var(--ink-soft); }
.rating-card .btn { width: 100%; margin-top: 14px; }

/* ===== HERO / ARTICLE HEAD ===== */
.article-hero { margin-bottom: 30px; }
.kicker {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 14px;
}
.display { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.15rem); line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 18px; }
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }
.byline { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.byline strong { color: var(--ink-soft); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* ===== PROSE ===== */
.prose h2 { font-family: var(--serif); font-size: 1.75rem; line-height: 1.25; margin: 40px 0 14px; }
.prose h3 { font-family: var(--serif); font-size: 1.25rem; margin: 28px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 0; padding-left: 0; }
.prose ul li, .prose ol li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.prose ul li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; }
.prose ol li::before { content: counter(li) "."; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.prose a { border-bottom: 1px solid rgba(180,83,9,0.35); }

.dropcap::first-letter {
	float: left;
	font-family: var(--serif);
	font-size: 3.6rem;
	line-height: 0.8;
	padding: 6px 12px 0 0;
	color: var(--accent);
}

.pullquote {
	margin: 30px 0;
	padding: 6px 0 6px 26px;
	border-left: 4px solid var(--accent);
	font-family: var(--serif);
	font-size: 1.3rem;
	line-height: 1.45;
	color: var(--ink);
}

.chapter { display: flex; align-items: baseline; gap: 14px; margin: 44px 0 6px; }
.chapter-num { font-family: var(--serif); font-size: 1.1rem; color: var(--accent); font-weight: 700; letter-spacing: 0.05em; }
.chapter h2 { margin: 0 !important; }

.section-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

.highlight-text { background: linear-gradient(transparent 62%, var(--accent-soft) 62%); padding: 0 2px; }

/* ===== CHIPS / BADGES ===== */
.brand-badge { display: inline-block; color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 4px; }
.meta-chip { display: inline-block; font-size: 0.78rem; background: var(--paper); border: 1px solid var(--line-strong); color: var(--ink-soft); padding: 4px 11px; border-radius: 40px; }
.pill { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: 40px; background: var(--accent-soft); color: var(--accent-dark); }
.verdict-badge { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 14px; border-radius: 4px; }

/* ===== BUTTONS ===== */
.btn {
	display: inline-block;
	font-size: 0.92rem;
	font-weight: 700;
	padding: 12px 22px;
	border-radius: 40px;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform 0.12s, background 0.15s, color 0.15s;
	text-align: center;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-amazon { background: var(--ink); color: #fff; }
.btn-amazon:hover { background: #000; color: #fff; }
.btn-sm { padding: 8px 15px; font-size: 0.82rem; }

/* ===== REVIEW BOX (Galerie + Infos) ===== */
.review-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.review-gallery-main { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; cursor: zoom-in; }
.review-gallery-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.review-thumbs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 10px; }
.review-thumbs img { border: 2px solid transparent; border-radius: 6px; cursor: pointer; aspect-ratio: 1 / 1; object-fit: cover; background: #fff; }
.review-thumbs img.active { border-color: var(--accent); }
.review-info h1 { font-family: var(--serif); font-size: 1.9rem; line-height: 1.2; margin: 10px 0 8px; }
.review-info .meta-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.review-price { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin: 12px 0; }
.review-price small { display: block; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); font-weight: 400; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.pros-list, .cons-list { border-radius: var(--radius); padding: 16px 18px; }
.pros-list { background: var(--teal-soft); border: 1px solid #bfe0db; }
.cons-list { background: #fbeee6; border: 1px solid #f0d3bf; }
.pros-list h4, .cons-list h4 { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.pros-list h4 { color: var(--teal); }
.cons-list h4 { color: #b45309; }
.pros-list li, .cons-list li { position: relative; padding-left: 22px; font-size: 0.9rem; margin-bottom: 7px; }
.pros-list li::before { content: "+"; position: absolute; left: 2px; color: var(--teal); font-weight: 700; }
.cons-list li::before { content: "–"; position: absolute; left: 2px; color: #b45309; font-weight: 700; }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.specs-table, .comparison-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.specs-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs-table tr:last-child td { border-bottom: none; }
.specs-table td:first-child { color: var(--muted); width: 42%; }
.specs-table td:last-child { font-weight: 600; }
.comparison-table th { background: var(--ink); color: #fff; text-align: left; padding: 12px 14px; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.comparison-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.comparison-table tbody tr:nth-child(even) { background: rgba(180,83,9,0.035); }
.comparison-table .highlight-row { background: var(--accent-soft) !important; }
.comparison-table .highlight-row td { font-weight: 600; }
.rating-cell { display: flex; align-items: center; gap: 6px; }

.source-note { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }

/* ===== CALLOUTS ===== */
.callout, .tip-box, .warning-box, .affiliate-notice, .quick-verdict {
	border-radius: var(--radius);
	padding: 18px 22px;
	margin: 22px 0;
	font-size: 0.95rem;
}
.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); }
.tip-box { background: var(--teal-soft); border-left: 4px solid var(--teal); }
.warning-box { background: #fbeee6; border-left: 4px solid #d97706; }
.affiliate-notice { background: var(--card); border: 1px dashed var(--line-strong); color: var(--muted); font-size: 0.85rem; }
.quick-verdict { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--accent); }
.quick-verdict h2 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 10px; }
.quick-verdict ul li { position: relative; padding-left: 24px; margin-bottom: 6px; }
.quick-verdict ul li::before { content: "\2713"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.callout strong, .tip-box strong, .warning-box strong { display: block; margin-bottom: 4px; }

/* ===== FEATURE GRID ===== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.feature-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature-icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 12px; }
.feature-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--ink-soft); }

/* ===== PRODUCT CARDS (Vergleich) ===== */
.product-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin: 22px 0; }
.product-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.product-card.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.product-card h3 { font-family: var(--serif); font-size: 1.2rem; margin: 10px 0 6px; }
.product-card p { font-size: 0.86rem; color: var(--ink-soft); margin: 10px 0; }
.product-card .mini-facts { margin: 12px 0; border-top: 1px solid var(--line); }
.product-card .mini-facts li { display: flex; justify-content: space-between; font-size: 0.84rem; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--line); }
.product-card .mini-facts strong { color: var(--ink); }
.product-card .card-price { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); margin: auto 0 12px; padding-top: 12px; }
.card-badge { position: absolute; top: -11px; left: 18px; background: var(--accent); color: #fff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 11px; border-radius: 40px; }
.pill-sm { font-size: 0.62rem; padding: 3px 9px; vertical-align: middle; }

/* ===== FAQ ===== */
.faq-list { border-top: 1px solid var(--line); margin-top: 8px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
	width: 100%;
	background: none;
	border: none;
	text-align: left;
	font-family: var(--serif);
	font-size: 1.08rem;
	color: var(--ink);
	padding: 18px 40px 18px 0;
	position: relative;
	cursor: pointer;
	line-height: 1.4;
}
.faq-question::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.4rem; color: var(--accent); font-family: var(--sans); }
.faq-item.open .faq-question::after { content: "\2013"; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.faq-answer-inner { padding: 0 0 20px; color: var(--ink-soft); font-size: 0.95rem; }

/* ===== BREADCRUMB ===== */
.breadcrumb { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.02em; padding: 18px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span + span::before { content: " / "; color: var(--line-strong); }

/* ===== SECTION ===== */
.section { margin: 46px 0; }
.section-header { margin-bottom: 20px; }
.section-header h1 { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.18; }
.section-header h2 { font-family: var(--serif); font-size: 1.75rem; line-height: 1.22; }
.section-header p { color: var(--ink-soft); margin-top: 10px; max-width: 68ch; }
.section-alt { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }

/* ===== AD SLOT ===== */
.ad-slot { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; }
.ad-label { display: block; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

/* ===== STARS ===== */
.stars { color: var(--gold); font-size: 1rem; letter-spacing: 1px; white-space: nowrap; }
.star-empty { color: #d9d2c4; }
.rating-text { color: var(--muted); font-size: 0.85rem; }

/* ===== MODAL ===== */
.gallery-modal { display: none; position: fixed; inset: 0; background: rgba(20,17,12,0.9); z-index: 500; align-items: center; justify-content: center; padding: 30px; }
.gallery-modal.open { display: flex; }
.gallery-modal img { max-width: 90vw; max-height: 88vh; border-radius: 6px; }
.gallery-close { position: absolute; top: 20px; right: 26px; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; background: none; border: none; }

/* ===== FOOTER ===== */
.site-footer { background: var(--ink); color: #cfc8ba; padding: 46px 0 24px; margin-top: 40px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 28px; }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand .logo strong { color: var(--gold); }
.footer-brand p { color: #a89f8e; font-size: 0.86rem; }
.footer-col h4 { font-family: var(--serif); color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: #bcb3a2; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; color: #928a7a; font-size: 0.8rem; }
.footer-bottom nav a { color: #bcb3a2; }

/* ===== HELPERS ===== */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.section-cta { text-align: center; margin: 30px 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
	.layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	.sidebar { position: static; }
	.review-box { grid-template-columns: minmax(0, 1fr); }
	.pros-cons { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
	.main-nav {
		position: absolute;
		top: 70px;
		left: 0;
		right: 0;
		background: var(--card);
		border-bottom: 1px solid var(--line);
		display: none;
		box-shadow: var(--shadow);
	}
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; padding: 10px 16px 18px; gap: 2px; }
	.main-nav a { border-radius: 8px; }
	.nav-toggle { display: block; }
	.review-thumbs { grid-template-columns: repeat(4, 1fr); }
	.footer-grid { grid-template-columns: 1fr; }
	.display { font-size: 2rem; }
}
