/* ==========================================================================
   IDEALBETTEN – Design-System
   Übersetzt aus den Claude-Design-Exporten (design/*.dc.html).
   Responsive-Schicht: Breakpoints 1060 / 840 / 600 (Design ist Desktop-first).
   ========================================================================== */

/* ---- Fonts (lokal, latin) ---- */

@font-face {
	font-family: 'Newsreader';
	font-style: normal;
	font-weight: 400 500;
	font-display: swap;
	src: url('../fonts/newsreader-400-500.woff2') format('woff2');
}
@font-face {
	font-family: 'Newsreader';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/newsreader-italic-400.woff2') format('woff2');
}
@font-face {
	font-family: 'Hanken Grotesk';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/hanken-grotesk-400-700.woff2') format('woff2');
}

/* ---- Tokens ---- */

:root {
	--bg: #f6f2ea;
	--surface: #fbf9f4;
	--surface-alt: #f2ede3;
	--border: #e6dfd0;
	--border-strong: #cfc7b6;
	--border-input: #dcd4c4;
	--ink: #2e2b26;
	--ink-soft: #5c564d;
	--ink-mid: #6b6559;
	--ink-muted: #8a8378;
	--accent: #6f7f66;
	--accent-soft: #e8ede2;
	--error: #b5543f;
	--error-bg: #f7e6e0;
	--error-border: #eccabe;
	--font-serif: 'Newsreader', Georgia, serif;
	--font-sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
	--radius-pill: 999px;
	--container: 1180px;
	--gutter: 28px;
	--header-h: 72px;
	--shadow-panel: 0 20px 50px rgba(60, 50, 30, 0.06);
}
body[data-theme='terra'] { --accent: #a9765a; --accent-soft: #f0e5db; }
body[data-theme='nacht'] { --accent: #4c5a6b; --accent-soft: #e2e7ec; }

/* ---- Base ---- */

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

html {
	overflow-x: clip; /* nicht "hidden" auf Sticky-Vorfahren! */
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	/* Sticky Footer: kurze Seiten enden nicht im Nichts */
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
#main { flex: 1 0 auto; }

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

a { color: inherit; }

h1, h2, h3, h4, h5 { margin: 0; }

button { font: inherit; }

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

::selection { background: var(--accent-soft); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed !important;
	top: 12px; left: 12px;
	z-index: 100;
	width: auto; height: auto;
	clip-path: none;
	background: var(--accent);
	color: #fff;
	padding: 10px 18px;
	border-radius: var(--radius-pill);
	text-decoration: none;
}

/* ---- Layout-Utilities ---- */

.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.container--medium { max-width: calc(900px + 2 * var(--gutter)); }

.band {
	background: var(--surface-alt);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.section-pad-bottom { padding-bottom: clamp(56px, 8vw, 84px); }

/* ---- Eyebrow ---- */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11.5px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--accent);
	font-weight: 600;
	margin-bottom: 14px;
}
.eyebrow--line::before {
	content: '';
	width: 22px;
	height: 1px;
	background: var(--accent);
}

/* ---- Buttons & Pills ---- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 15px 28px;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: filter 0.15s, border-color 0.15s, background 0.15s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { filter: brightness(0.94); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--ink-muted); }
.btn--light { background: var(--surface); color: var(--ink); }
.btn--light:hover { filter: brightness(0.97); }
.btn--inverse { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn--inverse:hover { background: rgba(255, 255, 255, 0.22); }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn:focus-visible, .pill:focus-visible, .fabric-card:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-row--center { justify-content: center; }

.text-link {
	color: var(--accent);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	border-bottom: 1px solid var(--accent);
	padding-bottom: 2px;
}
.text-link:hover { filter: brightness(0.9); }

.pill {
	padding: 9px 18px;
	border-radius: var(--radius-pill);
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid #d8d0c0;
	background: var(--surface);
	color: #4b463e;
	transition: all 0.15s;
	display: inline-flex;
	align-items: center;
}
.pill:hover { border-color: var(--accent); color: var(--ink); }
.pill.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Dot-Listen (Hero-Meta, Teaser-Steps) ---- */

.dot-list { display: flex; gap: 26px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-mid); }
.dot-list span, .dot-list li { display: flex; align-items: center; gap: 8px; }
.dot-list .dot, .dot-list li::before {
	content: '';
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
}
ul.dot-list { list-style: none; margin: 0; padding: 0; }

/* ---- Bild-Platzhalter (bis echte Fotos da sind) ---- */

.img-placeholder {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	background: repeating-linear-gradient(45deg, #efe9dd 0 14px, #e8e0d1 14px 28px);
	border: 1px solid #e2dac9;
	display: flex;
	align-items: center;
	justify-content: center;
}
.img-placeholder--dark {
	background: repeating-linear-gradient(45deg, #e7ded0 0 14px, #ded4c2 14px 28px);
	border-color: #ddd3c0;
}
.img-placeholder__label {
	font-family: ui-monospace, SFMono-Regular, monospace;
	font-size: 12px;
	color: #9a9284;
	background: rgba(255, 255, 255, 0.7);
	padding: 6px 12px;
	border-radius: 6px;
}

/* ---- Header ---- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(246, 242, 234, 0.82);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}
body.admin-bar .site-header { top: 32px; }

.site-header__inner {
	padding-block: 16px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
}
.site-header__menu { display: contents; }

.site-logo {
	font-family: var(--font-serif);
	font-size: 24px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--ink);
	text-decoration: none;
	justify-self: start;
}

.site-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 30px;
	font-size: 14.5px;
	color: #4b463e;
}
.site-nav__list a { text-decoration: none; color: inherit; transition: color 0.15s; }
.site-nav__list a:hover { color: var(--ink); }
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a { color: var(--ink); font-weight: 600; }

.site-header__cta { justify-self: end; }

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 10px;
	background: none;
	border: 1px solid var(--border-strong);
	border-radius: 10px;
	cursor: pointer;
}
.nav-toggle span {
	display: block;
	height: 2px;
	background: var(--ink);
	border-radius: 2px;
	transition: transform 0.2s, opacity 0.2s;
}
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Footer ---- */

.site-footer {
	border-top: 1px solid var(--border);
	background: var(--surface-alt);
}
.site-footer__grid {
	padding-block: 52px 40px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
}
.site-footer__logo {
	font-family: var(--font-serif);
	font-size: 22px;
	letter-spacing: 0.04em;
	margin-bottom: 10px;
}
.site-footer__brand p {
	font-size: 13.5px;
	color: var(--ink-mid);
	line-height: 1.6;
	margin: 0;
	max-width: 240px;
}
.site-footer__col {
	font-size: 14px;
	color: var(--ink-soft);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.site-footer__col a { color: inherit; text-decoration: none; }
.site-footer__col a:hover { color: var(--ink); }
.site-footer__heading { font-weight: 600; color: var(--ink); margin-bottom: 2px; }

.site-footer__legal { border-top: 1px solid var(--border); }
.site-footer__legal-inner {
	padding-block: 18px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 12.5px;
	color: var(--ink-muted);
}
.legal-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.legal-nav__list a { color: inherit; text-decoration: none; }
.legal-nav__list a:hover { color: var(--ink); }

/* ---- Seiten-Hero (Unterseiten) ---- */

.page-hero {
	padding-block: clamp(44px, 6vw, 64px) 40px;
	text-align: center;
}
.page-hero--left { text-align: left; }
.page-hero__title {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(32px, 5vw, 46px);
	line-height: 1.08;
	margin: 0 0 16px;
}
.page-hero__lead {
	font-size: 16.5px;
	color: var(--ink-soft);
	line-height: 1.6;
	margin: 0 auto;
	max-width: 540px;
}
.page-hero--left .page-hero__lead { margin: 0; }

/* ---- Panels & CTA-Band ---- */

.panel {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 24px;
	padding: clamp(28px, 4.5vw, 52px);
	box-shadow: var(--shadow-panel);
}
.panel--grid {
	display: grid;
	gap: 48px;
	align-items: center;
}

.cta-band {
	background: var(--accent);
	border-radius: 24px;
	padding: clamp(40px, 6vw, 60px) 40px;
	text-align: center;
	color: #fff;
}
.cta-band h2 {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.12;
	margin: 0 0 16px;
}
.cta-band p {
	font-size: 17px;
	opacity: 0.9;
	max-width: 460px;
	margin: 0 auto 30px;
}

/* ---- Formulare ---- */

.field-label {
	font-size: 13px;
	font-weight: 600;
	color: #4b463e;
	display: block;
}
.input {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 11px 13px;
	border-radius: 10px;
	border: 1px solid var(--border-input);
	background: #fff;
	font-size: 14.5px;
	font-family: inherit;
	color: var(--ink);
}
.input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
textarea.input { resize: vertical; min-height: 84px; }

.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.form-grid .span-2 { grid-column: span 2; }
.form-grid__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; grid-column: span 2; }

.consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 18px;
	font-size: 13px;
	color: var(--ink-soft);
	line-height: 1.5;
	cursor: pointer;
}
.consent input { margin-top: 2px; accent-color: var(--accent); }

.error-box {
	margin-top: 16px;
	font-size: 13.5px;
	color: var(--error);
	background: var(--error-bg);
	border: 1px solid var(--error-border);
	border-radius: 10px;
	padding: 10px 14px;
}
[hidden] { display: none !important; }

.empty-state {
	border: 1px dashed #d3cab8;
	border-radius: 14px;
	padding: 28px;
	text-align: center;
	color: var(--ink-muted);
	font-size: 14px;
}

/* ==========================================================================
   Startseite
   ========================================================================== */

.hero {
	padding-block: clamp(44px, 6vw, 68px) 40px;
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(36px, 5vw, 56px);
	align-items: center;
}
.hero .eyebrow { margin-bottom: 22px; }
.hero__title {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(36px, 4.9vw, 58px);
	line-height: 1.04;
	letter-spacing: -0.01em;
	margin: 0 0 22px;
}
.hero__title em, .accent-em { font-style: italic; color: var(--accent); }
.hero__lead {
	font-size: 17.5px;
	line-height: 1.6;
	color: var(--ink-soft);
	max-width: 460px;
	margin: 0 0 30px;
}
.hero .btn-row { margin-bottom: 34px; }

.hero__media { position: relative; }
.hero__media .img-placeholder { aspect-ratio: 5 / 4; }

.hero__discount {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
	background: var(--ink);
	color: #fdfcf8;
	border-radius: 12px;
	padding: 8px 14px;
	text-align: center;
	box-shadow: 0 10px 24px rgba(60, 50, 30, 0.18);
}
.hero__discount-value { font-family: var(--font-serif); font-size: 22px; line-height: 1; }
.hero__discount-label {
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.85;
	margin-top: 2px;
}

.hero__price {
	position: absolute;
	bottom: 20px;
	left: 20px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 14px 18px;
	box-shadow: 0 12px 30px rgba(60, 50, 30, 0.1);
}
.hero__price-label {
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink-muted);
}
.hero__price-row { display: flex; align-items: baseline; gap: 8px; }
.hero__price-value { font-family: var(--font-serif); font-size: 30px; line-height: 1.1; }
.hero__price-old { font-size: 14px; color: #a89f90; text-decoration: line-through; }

/* Trust-Strip */
.trust-strip {
	padding-block: 18px;
	display: flex;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	font-size: 13px;
	color: #7a746a;
	letter-spacing: 0.02em;
}

/* Nachnahme / Kauf ohne Risiko */
.risk-section { padding-block: clamp(48px, 7vw, 72px) 20px; }
.risk-panel { grid-template-columns: 1fr 1.05fr; padding: clamp(28px, 4vw, 48px); }
.risk-panel h2 {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(27px, 3.2vw, 36px);
	line-height: 1.12;
	margin: 0 0 18px;
}
.risk-panel > div > p {
	font-size: 16.5px;
	color: var(--ink-soft);
	line-height: 1.65;
	margin: 0 0 24px;
	max-width: 460px;
}

.steps-list { display: flex; flex-direction: column; gap: 14px; }
.steps-list__item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: var(--surface-alt);
	border-radius: 14px;
	padding: 18px 20px;
}
.steps-list__num {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-serif);
	font-size: 17px;
}
.steps-list__title { font-weight: 600; font-size: 15.5px; margin-bottom: 3px; }
.steps-list__text { font-size: 14px; color: var(--ink-mid); line-height: 1.5; }

/* Konfigurator-Teaser */
.teaser-section { padding-block: clamp(56px, 8vw, 84px); }
.teaser-panel { grid-template-columns: 1fr 0.9fr; }
.teaser-panel h2 {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(30px, 3.8vw, 42px);
	line-height: 1.08;
	margin: 0 0 16px;
}
.teaser-panel > div > p {
	font-size: 16.5px;
	color: var(--ink-soft);
	line-height: 1.6;
	margin: 0 0 26px;
	max-width: 440px;
}
.teaser-steps { gap: 20px; margin-bottom: 30px; font-size: 14px; color: #4b463e; }

/* CSS-Bett (Live-Vorschau-Illustration) */
.bed-preview {
	background: var(--surface-alt);
	border-radius: 18px;
	padding: 32px 30px;
}
.bed-preview__stage { max-width: 280px; margin: 0 auto; }
.bed-preview__head {
	height: 52px;
	border-radius: 14px 14px 6px 6px;
	background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.06)), #9caf8c;
	box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.15), 0 4px 10px rgba(0, 0, 0, 0.08);
}
.bed-preview__mattress {
	height: 34px;
	margin-top: 10px;
	border-radius: 7px;
	background: linear-gradient(#fdfcf8, #f1ece2);
	border: 1px solid var(--border);
}
.bed-preview__feet { display: flex; justify-content: space-between; padding: 0 14px; margin-top: -2px; }
.bed-preview__feet span {
	width: 12px;
	height: 22px;
	border-radius: 0 0 3px 3px;
	background: #b08d5c;
}
.bed-preview__caption { text-align: center; margin-top: 20px; font-size: 12.5px; color: var(--ink-muted); }

/* Vorteile */
.benefits { padding-block: clamp(48px, 7vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.benefits__num { font-family: var(--font-serif); font-size: 34px; color: var(--accent); margin-bottom: 10px; }
.benefits h4 { font-size: 17px; margin: 0 0 8px; font-weight: 600; }
.benefits p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin: 0; }

/* Stoffe-Teaser */
.fabrics-section {
	padding-block: clamp(56px, 8vw, 84px);
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 48px;
	align-items: center;
}
.fabrics-section h2 {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(29px, 3.5vw, 40px);
	line-height: 1.1;
	margin: 0 0 16px;
}
.fabrics-section p { font-size: 16px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 24px; }

.swatch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.swatch { text-align: center; }
.swatch__chip {
	aspect-ratio: 1;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: inset 0 -12px 20px rgba(0, 0, 0, 0.06);
}
.swatch__name { font-size: 12px; color: var(--ink-mid); margin-top: 8px; }

/* Kopfteile */
.headboards { padding-block: clamp(52px, 7vw, 80px); }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 44px; }
.section-head h2 {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(29px, 3.5vw, 40px);
	line-height: 1.1;
	margin: 0;
}
.headboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.headboard-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
}
.headboard-card .img-placeholder { aspect-ratio: 4 / 3; border: none; border-radius: 0; }
.headboard-card__body { padding: 16px 18px; }
.headboard-card__name { font-family: var(--font-serif); font-size: 19px; margin-bottom: 4px; }
.headboard-card__desc { font-size: 13px; color: #7a746a; }

/* Ablauf */
.process { padding-block: clamp(56px, 8vw, 84px); }
.process .section-head { margin-bottom: 52px; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.process-step { text-align: center; }
.process-step__num {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-serif);
	font-size: 24px;
	margin: 0 auto 18px;
}
.process-step h4 { font-size: 18px; margin: 0 0 8px; }
.process-step p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; margin: 0; }

.front-cta { padding-bottom: clamp(56px, 8vw, 84px); }

/* ==========================================================================
   Ratgeber (home.php / category.php / Artikel-Karten)
   ========================================================================== */

.featured-card {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 20px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
}
.featured-card__media {
	min-height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: repeating-linear-gradient(45deg, #efe9dd 0 14px, #e8e0d1 14px 28px);
}
.featured-card__media img { width: 100%; height: 100%; object-fit: cover; }
.featured-card__body {
	padding: clamp(28px, 3.5vw, 44px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.featured-card__kicker {
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
	font-weight: 600;
	margin-bottom: 14px;
}
.featured-card__title {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(24px, 2.9vw, 32px);
	line-height: 1.15;
	margin: 0 0 14px;
}
.featured-card__excerpt { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 20px; }
.featured-card__more { font-size: 14px; color: var(--accent); font-weight: 600; }
.featured-card:hover .featured-card__title { color: var(--accent); }

.filter-section { padding-top: 24px; }

.article-section { padding-block: 28px clamp(40px, 5vw, 56px); }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.article-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s, box-shadow 0.15s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(60, 50, 30, 0.09); }
.article-card__media {
	aspect-ratio: 3 / 2;
	display: flex;
	align-items: flex-end;
	padding: 14px;
	position: relative;
}
.article-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.article-card__badge {
	position: relative;
	z-index: 1;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 600;
	color: #fff;
	background: rgba(0, 0, 0, 0.22);
	padding: 5px 10px;
	border-radius: var(--radius-pill);
}
.article-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.article-card__title {
	font-family: var(--font-serif);
	font-weight: 500;
	font-size: 20px;
	line-height: 1.25;
	margin: 0 0 10px;
}
.article-card__excerpt { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 18px; flex: 1; }
.article-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	color: var(--ink-muted);
}
.article-card__meta .more { color: var(--accent); font-weight: 600; }

/* Newsletter-Box */
.newsletter-section { padding-block: clamp(32px, 5vw, 40px) clamp(56px, 8vw, 84px); }
.newsletter-box {
	background: var(--surface-alt);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: clamp(28px, 4vw, 44px);
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 40px;
	align-items: center;
}
.newsletter-box h2 {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(24px, 2.8vw, 30px);
	line-height: 1.12;
	margin: 0 0 10px;
}
.newsletter-box p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form .input {
	flex: 1;
	min-width: 180px;
	width: auto;
	margin-top: 0;
	padding: 14px 16px;
	border-radius: 12px;
}
.newsletter-form .btn { border-radius: 12px; padding: 14px 24px; font-size: 15px; }
.newsletter-form .error-box { flex-basis: 100%; margin-top: 4px; }
.newsletter-form__success { font-size: 15.5px; font-weight: 600; color: var(--accent); margin: 0; }

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pagination .page-numbers {
	padding: 9px 16px;
	border-radius: var(--radius-pill);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid #d8d0c0;
	background: var(--surface);
	color: #4b463e;
}
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .page-numbers.dots { border: none; background: none; }

/* ==========================================================================
   Artikel-Detail & Prose (single.php, page.php)
   ========================================================================== */

.single-hero { padding-block: clamp(44px, 6vw, 64px) 32px; }
.single-hero__meta { font-size: 13.5px; color: var(--ink-muted); margin-top: 14px; }
.single-hero__title {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(30px, 4.2vw, 44px);
	line-height: 1.1;
	margin: 0;
}
.single-media { margin-bottom: clamp(28px, 4vw, 44px); }
.single-media__banner { aspect-ratio: 5 / 2; border-radius: 20px; border: 1px solid rgba(0, 0, 0, 0.06); }
.single-media img { width: 100%; border-radius: 20px; object-fit: cover; aspect-ratio: 5 / 2; }

.prose { font-size: 16.5px; line-height: 1.75; color: #4b463e; }
.prose > * + * { margin-top: 1em; }
.prose h2 {
	font-family: var(--font-serif);
	font-weight: 500;
	font-size: 28px;
	line-height: 1.2;
	color: var(--ink);
	margin-top: 1.6em;
}
.prose h3 {
	font-family: var(--font-serif);
	font-weight: 500;
	font-size: 22px;
	color: var(--ink);
	margin-top: 1.5em;
}
.prose a { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote {
	margin: 1.4em 0;
	padding: 4px 0 4px 20px;
	border-left: 2px solid var(--accent);
	font-family: var(--font-serif);
	font-size: 19px;
	color: var(--ink);
}
.prose img { border-radius: 14px; }
.prose .wp-block-image figcaption { font-size: 13px; color: var(--ink-muted); text-align: center; }

.single-cta { padding-block: clamp(40px, 6vw, 64px) 0; }
.related { padding-block: clamp(48px, 7vw, 72px); }
.related h2 {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: 30px;
	margin: 0 0 24px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list { padding-block: 8px 40px; }
.faq-group { margin-bottom: 40px; }
.faq-group__title {
	font-family: var(--font-serif);
	font-weight: 500;
	font-size: 22px;
	margin: 0 0 16px;
	color: var(--ink);
}
.faq-group__num { color: var(--accent); font-size: 15px; margin-right: 10px; }
.faq-group__items { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	transition: border-color 0.15s;
}
.faq-item.is-open { border-color: var(--accent); }
.faq-item__toggle {
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	cursor: pointer;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	color: var(--ink);
}
.faq-item__q { font-weight: 600; font-size: 16px; }
.faq-item__icon {
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	transition: all 0.2s;
}
.faq-item.is-open .faq-item__icon {
	background: var(--accent);
	color: #fff;
	transform: rotate(45deg);
}
.faq-item__answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.22s ease;
}
.faq-item.is-open .faq-item__answer { grid-template-rows: 1fr; }
.faq-item__answer-inner { overflow: hidden; min-height: 0; }
.faq-item__answer p {
	margin: 0;
	padding: 0 20px 20px;
	font-size: 15px;
	color: var(--ink-soft);
	line-height: 1.65;
}

.faq-contact { padding-block: 8px clamp(56px, 8vw, 84px); }
.faq-contact__card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: clamp(28px, 4vw, 40px);
	text-align: center;
}
.faq-contact__card h3 {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: 28px;
	margin: 0 0 10px;
}
.faq-contact__card p { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 24px; }

/* ==========================================================================
   Stoffmuster
   ========================================================================== */

.samples-intro {
	padding-block: clamp(40px, 6vw, 56px) 32px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 40px;
	align-items: end;
}
.samples-intro__text { max-width: 640px; }
.samples-intro__text h1 {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(32px, 4.5vw, 46px);
	line-height: 1.08;
	margin: 0 0 16px;
}
.samples-intro__text p { font-size: 16.5px; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.samples-counter { text-align: right; white-space: nowrap; }
.samples-counter__value { font-family: var(--font-serif); font-size: 40px; line-height: 1; }
.samples-counter__max { font-size: 22px; color: var(--ink-muted); }
.samples-counter__label { font-size: 13px; color: var(--ink-muted); margin-top: 4px; }

.samples-catalog { padding-block: 28px clamp(40px, 5vw, 48px); }
.fabric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.fabric-card {
	text-align: left;
	cursor: pointer;
	padding: 10px;
	border-radius: 16px;
	border: 1px solid var(--border);
	background: var(--surface);
	transition: all 0.15s;
	box-shadow: none;
}
.fabric-card.is-selected {
	border-color: var(--accent);
	background: var(--accent-soft);
	box-shadow: 0 0 0 1px var(--accent) inset;
}
.fabric-card__swatch {
	display: block; /* span im <button> – inline würde die aspect-ratio kollabieren */
	position: relative;
	aspect-ratio: 1;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: inset 0 -16px 26px rgba(0, 0, 0, 0.07);
}
.fabric-card__check {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	opacity: 0;
	transform: scale(0.6);
	transition: all 0.15s;
}
.fabric-card.is-selected .fabric-card__check { opacity: 1; transform: scale(1); }
.fabric-card__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-top: 12px;
}
.fabric-card__name { font-weight: 600; font-size: 15px; }
.fabric-card__code { font-size: 12px; color: var(--ink-muted); }
.fabric-card__material { display: block; font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }

/* Bestell-Bereich */
.samples-order { border-top: 1px solid var(--border); }
.samples-order__grid {
	padding-block: clamp(48px, 7vw, 72px);
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 48px;
	align-items: start;
}
.samples-summary { position: sticky; top: 92px; }
.samples-summary h2 {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: 30px;
	margin: 0 0 6px;
}
.samples-summary__sub { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 20px; }
.samples-summary__list { display: flex; flex-direction: column; gap: 8px; }
.selected-item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 10px 12px;
}
.selected-item__chip {
	width: 30px;
	height: 30px;
	border-radius: 7px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	flex: none;
}
.selected-item__label { flex: 1; font-size: 14px; }
.selected-item__label strong { font-weight: 600; }
.selected-item__label span { font-size: 12px; color: var(--ink-muted); }
.selected-item__remove {
	border: none;
	background: none;
	cursor: pointer;
	color: #a89f90;
	font-size: 18px;
	line-height: 1;
	padding: 4px;
}
.samples-summary__hint { margin-top: 16px; font-size: 13px; color: var(--ink-muted); }

.sample-form {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: clamp(24px, 3vw, 34px);
	box-shadow: var(--shadow-panel);
}
.sample-form h3 {
	font-family: var(--font-serif);
	font-weight: 500;
	font-size: 22px;
	margin: 0 0 20px;
}
.sample-form__submit { width: 100%; margin-top: 20px; border-radius: 12px; padding: 15px; }
.sample-form__note { text-align: center; margin-top: 12px; font-size: 12.5px; color: var(--ink-muted); }

.sample-success { text-align: center; padding: 24px 8px; }
.sample-success__icon {
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	margin: 0 auto 20px;
}
.sample-success h3 {
	font-family: var(--font-serif);
	font-weight: 500;
	font-size: 26px;
	margin: 0 0 12px;
}
.sample-success p {
	font-size: 15.5px;
	color: var(--ink-soft);
	line-height: 1.6;
	margin: 0 auto 22px;
	max-width: 380px;
}

/* Honeypot: für Menschen unsichtbar (nicht display:none – manche Bots prüfen das) */
.hp-field {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ==========================================================================
   Über uns
   ========================================================================== */

.about-hero {
	padding-block: clamp(44px, 6vw, 68px) 40px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(36px, 5vw, 56px);
	align-items: center;
}
.about-hero h1 {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(34px, 4.4vw, 50px);
	line-height: 1.06;
	margin: 0 0 20px;
}
.about-hero p { font-size: 17px; color: var(--ink-soft); line-height: 1.65; margin: 0; }
.about-hero .img-placeholder { aspect-ratio: 4 / 3; }

.stats { padding-block: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stats__num { font-family: var(--font-serif); font-size: clamp(32px, 3.5vw, 42px); line-height: 1; color: var(--accent); }
.stats__label { font-size: 14px; color: var(--ink-mid); margin-top: 8px; }

.values { padding-block: clamp(52px, 7vw, 80px); }
.values .section-head { margin-bottom: 48px; }
.values .section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 32px;
}
.value-card__num { font-family: var(--font-serif); font-size: 30px; color: var(--accent); margin-bottom: 14px; }
.value-card h3 { font-size: 19px; margin: 0 0 10px; }
.value-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; margin: 0; }

.story { border-top: 1px solid var(--border); background: var(--surface-alt); }
.story__grid {
	padding-block: clamp(52px, 7vw, 80px);
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: clamp(36px, 5vw, 56px);
	align-items: center;
}
.story__grid .img-placeholder { aspect-ratio: 1; }
.story__grid h2 {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(27px, 3.1vw, 34px);
	line-height: 1.12;
	margin: 0 0 18px;
}
.story__grid p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; margin: 0 0 16px; }
.story__grid p:last-child { margin-bottom: 0; }

.about-cta { padding-block: clamp(52px, 7vw, 80px); }

/* ==========================================================================
   Konfigurator-Platzhalter & 404
   ========================================================================== */

.coming-soon { padding-block: clamp(48px, 7vw, 84px); }
.coming-soon__panel { text-align: center; max-width: 760px; margin-inline: auto; }
.coming-soon__badge {
	display: inline-block;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 7px 16px;
	border-radius: var(--radius-pill);
	margin-bottom: 20px;
}
.coming-soon__panel h1 {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(32px, 4.4vw, 46px);
	line-height: 1.08;
	margin: 0 0 16px;
}
.coming-soon__panel > p {
	font-size: 16.5px;
	color: var(--ink-soft);
	line-height: 1.65;
	max-width: 520px;
	margin: 0 auto 28px;
}
.coming-soon__steps { justify-content: center; margin-bottom: 32px; font-size: 14px; color: #4b463e; }

.error-404 { padding-block: clamp(72px, 10vw, 120px); text-align: center; }
.error-404 h1 {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(36px, 5vw, 54px);
	line-height: 1.06;
	margin: 0 0 16px;
}
.error-404 p { font-size: 16.5px; color: var(--ink-soft); max-width: 460px; margin: 0 auto 30px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1060px) {
	.benefits, .headboard-grid, .stats { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
	.site-footer__grid .site-footer__brand { grid-column: 1 / -1; }
	.fabric-grid { grid-template-columns: repeat(3, 1fr); }
	.panel--grid { gap: 36px; }
	.site-nav__list { gap: 20px; }
}

@media (max-width: 840px) {
	:root { --header-h: 64px; }

	/* Mobile-Navigation */
	.site-header__inner {
		grid-template-columns: 1fr auto;
		padding-block: 12px;
	}
	.nav-toggle { display: flex; justify-self: end; }
	.site-header__menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		box-shadow: 0 18px 30px rgba(60, 50, 30, 0.08);
		padding: 10px var(--gutter) 22px;
		flex-direction: column;
		gap: 16px;
	}
	.site-header.is-open .site-header__menu { display: flex; }
	.site-nav__list { flex-direction: column; align-items: stretch; gap: 0; font-size: 16px; }
	.site-nav__list a { display: block; padding: 12px 2px; border-bottom: 1px solid var(--border); }
	.site-header__cta { justify-self: stretch; width: 100%; }

	/* Zweispalter → einspaltig */
	.hero, .about-hero, .fabrics-section, .story__grid,
	.risk-panel, .teaser-panel, .featured-card, .newsletter-box,
	.samples-order__grid, .samples-intro { grid-template-columns: 1fr; }

	.hero { padding-top: 36px; }
	.featured-card__media { min-height: 220px; }
	.process-grid { grid-template-columns: 1fr; gap: 32px; }
	.article-grid { grid-template-columns: repeat(2, 1fr); }
	.samples-counter { text-align: left; }
	.samples-summary { position: static; }
	.panel--grid { gap: 28px; }
	.cta-band { padding-inline: 24px; }
	.trust-strip { gap: 10px 24px; }
}

@media (max-width: 600px) {
	:root { --gutter: 20px; }

	.article-grid, .headboard-grid, .benefits { grid-template-columns: 1fr; }
	.fabric-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr; }

	.form-grid { grid-template-columns: 1fr; }
	.form-grid .span-2 { grid-column: auto; }
	.form-grid__pair { grid-column: auto; }

	.btn-row .btn { flex: 1 1 auto; }
	.hero .btn-row, .cta-band .btn-row, .coming-soon .btn-row { flex-direction: column; }
	.hero .btn-row .btn, .cta-band .btn-row .btn, .coming-soon .btn-row .btn { width: 100%; }

	.hero__price { left: 12px; bottom: 12px; padding: 10px 14px; }
	.hero__price-value { font-size: 24px; }
	.hero__discount { top: 12px; right: 12px; }
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
