/*
Theme Name: Rafters
Theme URI: https://rafters.de
Author: Rafters
Description: Maßgeschneidertes Theme für Rafters – 3D-Druck, 3D-Design und Konstruktion. Modernes Dark-Tech-Design auf Basis des Kelira-Templates, mit den Markenfarben von Rafters (Cornflower-Blau auf tiefem Marineblau) und selbst gehosteter Satoshi-Schrift.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rafters
*/

/* =========================================================
   Fonts (Satoshi, selbst gehostet – aus dem Kelira-Template)
   ========================================================= */
@font-face {
	font-family: "Satoshi";
	src: url("assets/fonts/Satoshi-Light.woff2") format("woff2"),
		url("assets/fonts/Satoshi-Light.woff") format("woff");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Satoshi";
	src: url("assets/fonts/Satoshi-Regular.woff2") format("woff2"),
		url("assets/fonts/Satoshi-Regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Satoshi";
	src: url("assets/fonts/Satoshi-Medium.woff2") format("woff2"),
		url("assets/fonts/Satoshi-Medium.woff") format("woff");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Satoshi";
	src: url("assets/fonts/Satoshi-Bold.woff2") format("woff2"),
		url("assets/fonts/Satoshi-Bold.woff") format("woff");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Satoshi";
	src: url("assets/fonts/Satoshi-Black.woff2") format("woff2"),
		url("assets/fonts/Satoshi-Black.woff") format("woff");
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

/* =========================================================
   Design-Tokens – Markenfarben von Rafters.de
   Cornflower-Blau (#6495ed) auf tiefem Marineblau (#03091c)
   ========================================================= */
:root {
	--color-bg: #03091c;
	--color-bg-elev: #070f24;
	--color-bg-card: #0b142c;
	--color-border: #1b2848;
	--color-accent: #6495ed;
	--color-accent-dim: #537bc2;
	--color-accent-bright: #8fb4f5;
	--color-text: #f3f5fa;
	--color-text-muted: #aeb8cc;
	--color-text-faint: #7d89a6;

	/* Metallic-Verlauf des Logo-Würfels für dezente Akzentflächen */
	--metal: linear-gradient(135deg, #e7ecf5, #aab4c8 55%, #7d89a6);

	--font-sans: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--maxw: 1200px;
	--radius: 14px;
	--radius-lg: 22px;
	--space: clamp(4rem, 9vw, 8rem);

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   Reset / Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }

h1, h2, h3, h4 {
	margin: 0 0 0.5em;
	line-height: 1.1;
	font-weight: 900;
	letter-spacing: -0.02em;
}

p { margin: 0 0 1em; }

::selection { background: var(--color-accent); color: #03091c; }

:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: var(--space); position: relative; }

/* Anker-Sprünge (Menü) nicht hinter dem fixed Header landen lassen. */
[id] { scroll-margin-top: 110px; }

.section--alt { background: var(--color-bg-elev); }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-accent);
	margin-bottom: 1rem;
}
.eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--color-accent);
}

.section-head { max-width: 680px; margin-bottom: 3.5rem; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
.section-head p { color: var(--color-text-muted); font-size: 1.1rem; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.95rem 1.6rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.98rem;
	line-height: 1;
	cursor: pointer;
	border: 1px solid transparent;
	transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
	will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-accent); color: #03091c; }
.btn--primary:hover { background: var(--color-accent-bright); }
.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
	border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
	background: rgba(3, 9, 28, 0.8);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom-color: var(--color-border);
}
/* Offset the fixed header below the WordPress admin bar (logged-in users only). */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	height: 108px;
	transition: height 0.3s var(--ease);
}
/* Subtle shrink when scrolled for a polished sticky header. */
.site-header.is-scrolled .site-header__inner { height: 80px; }
.site-header.is-scrolled .brand__mark { width: 36px; height: 36px; }
.brand__mark { width: 42px; height: 42px; }
.site-brand { display: inline-flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark {
	flex: 0 0 auto;
	transition: transform 0.3s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease);
}
.site-brand:hover .brand__mark { transform: rotate(-6deg) scale(1.05); }
.brand__name {
	font-weight: 900;
	font-size: 1.65rem;
	letter-spacing: -0.02em;
	line-height: 1;
}
.brand__name span { color: var(--color-accent); }
/* Custom-Logo-Bild (volle Wortmarke) – Desktop 80px hoch. */
.custom-logo, .brand__logo { width: auto; height: 80px; max-width: 230px; }
.site-header.is-scrolled .custom-logo,
.site-header.is-scrolled .brand__logo { height: 56px; }

/* Footer brand: Text-Wortmarke statt Logo-Bild. */
.footer__brand { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 1.1rem; }
.footer__name { font-weight: 900; font-size: 1.7rem; letter-spacing: -0.02em; line-height: 1; }
.footer__tagline { font-size: 0.92rem; font-weight: 500; letter-spacing: 0.05em; color: var(--color-accent); }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav > ul { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.main-nav .btn { padding: 0.6rem 1.3rem; font-size: 0.95rem; }
.main-nav li { position: relative; }
.main-nav a {
	font-weight: 500;
	font-size: 0.98rem;
	color: var(--color-text-muted);
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}
.main-nav a:hover { color: var(--color-text); }
.main-nav .current-menu-item > a,
.main-nav .current-menu-parent > a,
.main-nav .current-menu-ancestor > a { color: var(--color-text); }

/* Untermenüs / Dropdowns */
.main-nav .menu-item-has-children > a::after {
	content: "";
	width: 0.45em;
	height: 0.45em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.2s var(--ease);
}
.main-nav .sub-menu {
	position: absolute;
	top: calc(100% + 0.6rem);
	left: 0;
	min-width: 210px;
	list-style: none;
	margin: 0;
	padding: 0.5rem;
	background: var(--color-bg-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
	z-index: 50;
}
/* Unsichtbare Brücke über die Lücke: hält das Dropdown beim Rüberfahren offen. */
.main-nav .menu-item-has-children::before {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	height: 0.9rem;
	background: transparent;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.main-nav .menu-item-has-children:hover > a::after,
.main-nav .menu-item-has-children:focus-within > a::after {
	transform: rotate(225deg) translateY(-1px);
}
.main-nav .sub-menu a { display: block; padding: 0.55rem 0.8rem; border-radius: 8px; font-size: 0.95rem; }
.main-nav .sub-menu a:hover { background: var(--color-bg-elev); color: var(--color-accent); }
/* Buttons inside the nav must keep their own (high-contrast) text colour. */
.main-nav a.btn--primary,
.main-nav a.btn--primary:hover { color: #03091c; }
.main-nav a.btn--ghost { color: var(--color-text); }
.main-nav a.btn--ghost:hover { color: var(--color-accent); }

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	width: 44px;
	height: 44px;
	padding: 10px;
}
.nav-toggle span {
	display: block;
	height: 2px;
	background: var(--color-text);
	margin: 5px 0;
	transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
	position: relative;
	padding-top: clamp(9rem, 16vh, 12rem);
	padding-bottom: var(--space);
	overflow: hidden;
}
.hero::before {
	content: "";
	position: absolute;
	top: -20%;
	left: 50%;
	transform: translateX(-50%);
	width: 70vw;
	height: 70vw;
	max-width: 900px;
	max-height: 900px;
	background: radial-gradient(circle, rgba(100, 149, 237, 0.16), transparent 60%);
	pointer-events: none;
	z-index: 0;
}
.hero__grid {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(var(--color-border) 1px, transparent 1px),
		linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
	opacity: 0.3;
	z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
/* Split hero: text + 3D-print visual side by side */
.hero__layout {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(2rem, 6vw, 4.5rem);
	align-items: center;
}
.hero h1 {
	font-size: clamp(2.6rem, 6vw, 4.75rem);
	max-width: 18ch;
}
.hero h1 em { color: var(--color-accent); font-style: normal; }
.hero__lead {
	max-width: 56ch;
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	color: var(--color-text-muted);
	margin-bottom: 2.25rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(1.5rem, 5vw, 3.5rem);
	margin-top: 3rem;
	padding-top: 2.25rem;
	border-top: 1px solid var(--color-border);
}
.hero__stat {
	position: relative;
	padding-left: 1.1rem;
}
.hero__stat::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35rem;
	bottom: 0.35rem;
	width: 3px;
	border-radius: 2px;
	background: var(--color-accent);
}
.hero__stat strong {
	display: block;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 900;
	line-height: 1.05;
	margin-bottom: 0.35rem;
}
.hero__stat span { color: var(--color-text-muted); font-size: 0.95rem; }
.hero__visual { display: flex; justify-content: center; }

/* =========================================================
   3D-Druck-Mockup (ersetzt die KI-Mockups des Kelira-Templates)
   Ein 3D-Drucker, der ein Objekt Schicht für Schicht aufbaut.
   ========================================================= */
.print-card {
	width: 100%;
	max-width: 460px;
	background: rgba(11, 20, 44, 0.9);
	backdrop-filter: blur(8px);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
	overflow: hidden;
	animation: print-float 6s ease-in-out infinite;
}
@keyframes print-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}
.print-card__bar {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.9rem 1.25rem;
	border-bottom: 1px solid var(--color-border);
	background: rgba(255, 255, 255, 0.02);
	font-size: 0.9rem;
}
.print-card__dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--color-accent);
	box-shadow: 0 0 0 0 rgba(100, 149, 237, 0.6);
	animation: print-pulse 2s infinite;
}
@keyframes print-pulse {
	0% { box-shadow: 0 0 0 0 rgba(100, 149, 237, 0.5); }
	70% { box-shadow: 0 0 0 7px rgba(100, 149, 237, 0); }
	100% { box-shadow: 0 0 0 0 rgba(100, 149, 237, 0); }
}
.print-card__title { font-weight: 700; }
.print-card__pct { margin-left: auto; color: var(--color-accent); font-weight: 700; }
.print-card__viz { padding: 1.5rem 1.25rem 0.75rem; }
.print-card__viz svg { width: 100%; height: auto; display: block; }
.print-card__foot {
	display: flex; align-items: center; gap: 0.75rem;
	padding: 0.5rem 1.25rem 1.25rem;
	font-size: 0.82rem; color: var(--color-text-faint);
}
.print-card__track { flex: 1; height: 6px; border-radius: 3px; background: var(--color-bg-elev); overflow: hidden; }
/* Breite wird per JS gesteuert (0 → 100 %), sanft animiert. */
.print-card__fill { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--color-accent-dim), var(--color-accent)); transition: width 0.12s linear; }

/* Druckkopf: horizontal per CSS, vertikal (X-Achse) per JS. */
.print-nozzle { animation: nozzle-move 1.6s ease-in-out infinite alternate; }
@keyframes nozzle-move {
	0% { transform: translateX(-44px); }
	100% { transform: translateX(44px); }
}
.print-head { transition: transform 0.18s linear; }
.print-drop { animation: print-drop 0.6s ease-in infinite; }
@keyframes print-drop { 0% { opacity: 0.9; transform: translateY(0); } 100% { opacity: 0; transform: translateY(6px); } }
/* Schichten: Sichtbarkeit per JS (Schicht für Schicht), sanft eingeblendet. */
.print-layer { opacity: 0; transition: opacity 0.25s ease; }

/* Themed visual placed centered within a service page's content */
.page-visual {
	display: flex;
	justify-content: center;
	margin: 2.5rem 0 3rem;
}

/* Isometrischer Schicht-Würfel (Was-ist-3D-Druck-Sektion) */
.iso-card .print-card__viz { padding: 0.75rem 1.25rem 0.25rem; }
.iso-flow > g { opacity: 0; animation: iso-rise 3.6s ease-in-out infinite; }
.iso-flow > g:nth-child(1) { animation-delay: 0s; }
.iso-flow > g:nth-child(2) { animation-delay: 0.22s; }
.iso-flow > g:nth-child(3) { animation-delay: 0.44s; }
.iso-flow > g:nth-child(4) { animation-delay: 0.66s; }
.iso-flow > g:nth-child(5) { animation-delay: 0.88s; }
@keyframes iso-rise {
	0%, 70%, 100% { opacity: 0; }
	12%, 30% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.print-card, .print-card__dot, .print-nozzle, .print-head, .print-drop { animation: none; transition: none; }
	.print-layer { opacity: 1; }
	.print-card__fill { width: 100%; }
	.iso-flow > g { animation: none; opacity: 0.55; }
}

/* =========================================================
   Leistungen / Cards
   ========================================================= */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.25rem;
}
.card {
	background: var(--color-bg-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 2rem;
	transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
	position: relative;
	overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: var(--color-accent); }
.card__icon {
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	border-radius: 14px;
	background: rgba(100, 149, 237, 0.12);
	color: var(--color-accent);
	margin-bottom: 1.5rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.35rem; }
.card p { color: var(--color-text-muted); margin-bottom: 0; }
.card ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.card li {
	color: var(--color-text-muted);
	font-size: 0.95rem;
	padding-left: 1.4rem;
	position: relative;
	margin-bottom: 0.4rem;
}
.card li::before { content: "→"; position: absolute; left: 0; color: var(--color-accent); }
.card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.5rem;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--color-accent);
}
.card__link svg { transition: transform 0.25s var(--ease); }
.card:hover .card__link svg,
.card__link:hover svg { transform: translateX(4px); }

/* =========================================================
   Über uns / Vision
   ========================================================= */
.about__grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
}
.about__text h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.about__text p { color: var(--color-text-muted); font-size: 1.08rem; }
.about__values { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.about__values li { display: flex; gap: 0.75rem; align-items: flex-start; }
.about__values strong { color: var(--color-text); }
.check {
	flex: 0 0 auto;
	width: 22px; height: 22px;
	border-radius: 50%;
	background: var(--color-accent);
	color: #03091c;
	display: grid; place-items: center;
	font-size: 0.75rem; font-weight: 900;
	margin-top: 3px;
}

/* Vorteils-Grid (Unsere Lösungen für Sie) */
.benefits {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}
.benefit {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
	background: var(--color-bg-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 1.15rem 1.25rem;
}
.benefit .ico {
	flex: 0 0 auto;
	width: 38px; height: 38px;
	border-radius: 10px;
	background: rgba(100, 149, 237, 0.12);
	color: var(--color-accent);
	display: grid; place-items: center;
}
.benefit .ico svg { width: 20px; height: 20px; }
.benefit strong { display: block; font-size: 1rem; }
.benefit span { color: var(--color-text-faint); font-size: 0.9rem; }

/* =========================================================
   Prozess
   ========================================================= */
.process {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.25rem;
	counter-reset: step;
}
.process__step {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 2rem;
	position: relative;
	background: var(--color-bg-card);
}
.process__step::before {
	counter-increment: step;
	content: "0" counter(step);
	font-size: 2.6rem;
	font-weight: 900;
	color: var(--color-accent);
	opacity: 0.25;
	line-height: 1;
	display: block;
	margin-bottom: 1rem;
}
.process__step h3 { font-size: 1.2rem; }
.process__step p { color: var(--color-text-muted); font-size: 0.96rem; margin-bottom: 0; }

/* Referenzen / Verfahren-Chips */
.refs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1rem;
	margin-top: 3rem;
}
.ref-chip {
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 1.5rem 1rem;
	text-align: center;
	color: var(--color-text-muted);
	font-weight: 700;
	letter-spacing: 0.04em;
	background: var(--color-bg-elev);
}

/* Hervorgehobener Inhaltsblock (z. B. Reproduktion) */
.feature {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	gap: clamp(2rem, 6vw, 4rem);
	align-items: center;
}
.feature__media {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--color-bg-card);
	aspect-ratio: 4 / 3;
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__text h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.feature__text p { color: var(--color-text-muted); }
.feature__text .lead { color: var(--color-text); font-size: 1.15rem; }

/* =========================================================
   Kontakt
   ========================================================= */
.contact__grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: clamp(2rem, 6vw, 4rem);
	align-items: start;
}
.contact__info h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.contact__info p { color: var(--color-text-muted); }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.contact__list li { display: flex; gap: 1rem; align-items: center; }
.contact__list .ico {
	width: 44px; height: 44px; flex: 0 0 auto;
	border-radius: 12px;
	background: rgba(100, 149, 237, 0.12);
	color: var(--color-accent);
	display: grid; place-items: center;
}
.contact__list small { display: block; color: var(--color-text-faint); }

.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--color-text-muted); margin-bottom: 0.4rem; }
.field input, .field textarea {
	width: 100%;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	color: var(--color-text);
	font: inherit;
	padding: 0.85rem 1rem;
	transition: border-color 0.2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-accent); }
.field textarea { min-height: 130px; resize: vertical; }
.field input[type="file"] { padding: 0.65rem 1rem; color: var(--color-text-muted); cursor: pointer; }
.field input[type="file"]::file-selector-button {
	margin-right: 0.85rem;
	border: 1px solid var(--color-border);
	background: var(--color-bg-elev);
	color: var(--color-text);
	border-radius: 8px;
	padding: 0.45rem 0.9rem;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.form .btn { justify-content: center; }
.form-note { font-size: 0.85rem; color: var(--color-text-faint); }
/* Honeypot – hidden from users, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Consent checkbox row */
.field-check {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	font-size: 0.88rem;
	color: var(--color-text-muted);
	line-height: 1.5;
	cursor: pointer;
}
.field-check input { margin-top: 0.2rem; flex: 0 0 auto; accent-color: var(--color-accent); width: 17px; height: 17px; }
.field-check a { color: var(--color-accent); text-decoration: underline; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
	border-top: 1px solid var(--color-border);
	background: var(--color-bg-elev);
	padding-block: 4rem 2rem;
}
.footer__grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 2rem;
	margin-bottom: 3rem;
}
.footer__brand { margin-bottom: 1rem; }
.site-footer p { color: var(--color-text-muted); font-size: 0.95rem; max-width: 34ch; }
.footer__col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-faint); font-weight: 700; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer__col a { color: var(--color-text-muted); font-size: 0.95rem; }
.footer__col a:hover { color: var(--color-accent); }
.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 2rem;
	border-top: 1px solid var(--color-border);
	color: var(--color-text-faint);
	font-size: 0.9rem;
}

/* =========================================================
   Generic page content
   ========================================================= */
.page-hero { padding-top: clamp(8rem, 14vh, 11rem); padding-bottom: 2rem; }
.breadcrumbs { font-size: 0.85rem; color: var(--color-text-faint); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-accent); }
.page-content { padding-bottom: var(--space); }
.page-content .container { max-width: 820px; }
.page-content.contact__grid, .page-content .contact__grid { max-width: var(--maxw); }
.entry-content a { color: var(--color-accent); text-decoration: underline; }
.entry-content > p.lead, .contact__info .lead {
	font-size: 1.2rem;
	color: var(--color-text);
	margin-bottom: 2rem;
}
.entry-content h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin-top: 2.5rem;
}
.entry-content h3 { font-size: 1.25rem; margin-top: 1.75rem; }
.entry-content p { color: var(--color-text-muted); }
.entry-content ul { margin: 1rem 0 1.5rem; padding-left: 0; list-style: none; }
.entry-content ul li {
	position: relative;
	padding-left: 1.6rem;
	margin-bottom: 0.6rem;
	color: var(--color-text-muted);
}
.entry-content ul li::before {
	content: "→";
	position: absolute;
	left: 0;
	color: var(--color-accent);
	font-weight: 700;
}
.entry-content strong { color: var(--color-text); }

/* FAQ */
.faq { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.faq__item {
	background: var(--color-bg-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 1.25rem 1.5rem;
}
.faq__item h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.faq__item p { margin: 0; color: var(--color-text-muted); }

/* =========================================================
   Cookie consent banner
   ========================================================= */
.rafters-consent {
	position: fixed;
	z-index: 200;
	left: 50%;
	bottom: 1.25rem;
	transform: translateX(-50%);
	width: min(680px, calc(100% - 2rem));
	background: var(--color-bg-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	padding: 1.5rem;
}
.rafters-consent[hidden] { display: none; }
.rafters-consent__inner { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.rafters-consent__text { flex: 1 1 300px; }
.rafters-consent__text strong { display: block; margin-bottom: 0.35rem; font-size: 1.05rem; }
.rafters-consent__text p { margin: 0; font-size: 0.92rem; color: var(--color-text-muted); }
.rafters-consent__text a { color: var(--color-accent); text-decoration: underline; }
.rafters-consent__actions { display: flex; gap: 0.75rem; flex: 0 0 auto; }
.rafters-consent__actions .btn { padding: 0.65rem 1.3rem; }
@media (max-width: 560px) {
	.rafters-consent__actions { width: 100%; }
	.rafters-consent__actions .btn { flex: 1; justify-content: center; }
}

/* =========================================================
   404 page + search form
   ========================================================= */
.error404 .container { text-align: left; }
.error404__code {
	color: var(--color-accent);
	font-size: clamp(3.5rem, 12vw, 7rem);
	line-height: 1;
}
.error404__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.5rem;
	margin-top: 2.5rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--color-border);
}
.error404__links a { color: var(--color-text-muted); font-weight: 500; }
.error404__links a:hover { color: var(--color-accent); }

.search-form { display: flex; gap: 0.6rem; }
.search-form label { flex: 1; }
.search-field {
	width: 100%;
	background: var(--color-bg-elev);
	border: 1px solid var(--color-border);
	border-radius: 999px;
	color: var(--color-text);
	font: inherit;
	padding: 0.8rem 1.25rem;
}
.search-field:focus { outline: none; border-color: var(--color-accent); }
.search-submit {
	background: var(--color-accent);
	color: #03091c;
	border: 0;
	border-radius: 999px;
	font-weight: 700;
	padding: 0.8rem 1.5rem;
	cursor: pointer;
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
	.hero__layout { grid-template-columns: 1fr; }
	.hero__visual { order: -1; margin-bottom: 1rem; }
	.hero__visual .print-card { max-width: 400px; }
	.feature { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
	.about__grid, .contact__grid { grid-template-columns: 1fr; }
	.footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
	.nav-toggle { display: block; }
	[id] { scroll-margin-top: 86px; }
	/* Hover-Brücke nur auf Desktop nötig (Untermenü mobil statisch). */
	.main-nav .menu-item-has-children::before { display: none; }
	/* Kompakter Header auf Mobil; Logo kleiner als auf Desktop. */
	.site-header__inner,
	.site-header.is-scrolled .site-header__inner { height: 72px; }
	.custom-logo, .brand__logo,
	.site-header.is-scrolled .custom-logo,
	.site-header.is-scrolled .brand__logo { height: 46px; max-width: 165px; }
	body.admin-bar .main-nav { top: calc(72px + 46px); }
	.main-nav {
		position: fixed;
		inset: 72px 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--color-bg-elev);
		border-bottom: 1px solid var(--color-border);
		padding: 1rem 1.5rem 1.5rem;
		transform: translateY(-120%);
		transition: transform 0.35s var(--ease);
		z-index: 99;
		max-height: calc(100vh - 72px);
		overflow-y: auto;
	}
	.main-nav.is-open { transform: translateY(0); }
	.main-nav > ul { flex-direction: column; gap: 0; width: 100%; align-items: stretch; }
	.main-nav li { border-bottom: 1px solid var(--color-border); }
	.main-nav a { display: flex; padding: 1rem 0; font-size: 1.1rem; }
	.main-nav .menu-item-has-children > a::after { margin-left: auto; }
	/* Untermenüs auf Mobil: statisch eingerückt sichtbar */
	.main-nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		min-width: 0;
		margin: 0;
		padding: 0 0 0.5rem 1rem;
		background: transparent;
		border: 0;
		box-shadow: none;
	}
	.main-nav .sub-menu li { border-bottom: 0; }
	.main-nav .sub-menu a { padding: 0.6rem 0; font-size: 1rem; color: var(--color-text-faint); }
	.main-nav .btn { margin-top: 1rem; justify-content: center; }
}

@media (max-width: 560px) {
	.form-row { grid-template-columns: 1fr; }
	.benefits { grid-template-columns: 1fr; }
	.footer__grid { grid-template-columns: 1fr; }
}
