/* Lakeware — Launch v1 · stylesheet
   Design: smooth, clean, weniger-ist-mehr, maximale Leichtigkeit.
   Brand-System v1: colors.md · typography.md
   Themes: light (default) · sand · dark · midnight
*/

/* ── Font Loading (W1-fix: @font-face so IBM Plex Sans + JetBrains Mono actually load) ── */
@font-face {
	font-family: "IBM Plex Sans";
	src: url("/assets/fonts/IBMPlexSans-300.c4557c8a3ca4.woff2") format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Sans";
	src: url("/assets/fonts/IBMPlexSans-400.3b646991d300.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Sans";
	src: url("/assets/fonts/IBMPlexSans-500.0717336fb31f.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Sans";
	src: url("/assets/fonts/IBMPlexSans-600.8960851d691c.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "JetBrains Mono";
	src: url("/assets/fonts/JetBrainsMono-400.7c53386f55c8.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* ── Palette (konstant) ──────────────────────────────── */
:root {
	--lw-petrol: #0d3b4f;
	--lw-deep-water: #062838;
	--lw-deep: #0d2b3e;
	--lw-lake-mist: #cfe1e7;
	--lw-mist-soft: #eaf2f5;
	--lw-sand: #d9b087;
	--lw-sand-light: #e8c9a6;
	--lw-white: #ffffff;
	--lw-midnight: #0a1f2c;

	--font-brand: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
	--font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
	--font-mono: "JetBrains Mono", Menlo, Consolas, monospace;

	--radius-sm: 6px;
	--radius: 10px;
	--radius-lg: 14px;

	--space-1: 0.5rem;
	--space-2: 1rem;
	--space-3: 1.5rem;
	--space-4: 2rem;
	--space-6: 3rem;
	--space-8: 4rem;
	--space-12: 6rem;
	--space-16: 8rem;

	--max-w: 1120px;
	--max-w-narrow: 880px;
}

/* ── Themes (semantic tokens) ────────────────────────── */

:root,
[data-theme="light"] {
	--bg: #ffffff;
	--surface: #ffffff;
	--surface-soft: #f7fafb;
	--ink: #062838;
	--ink-muted: #4a6875; /* was #5a7785 — bumped for WCAG AA on #eaf2f5 (5.25:1) and #ffffff (5.95:1) */
	--accent: #0d3b4f;
	--accent-hover: #062838;
	--on-accent: #ffffff;
	--accent-soft: #cfe1e7;
	--accent-softer: #eaf2f5;
	--border: #e4ecef;
	--input-border: #4a6875; /* WCAG 1.4.11 — 5.95:1 vs #ffffff surface (was --border #e4ecef, 1.18:1 FAIL) */
	--input-placeholder: #4a6875; /* WCAG 1.4.3 — 5.95:1 vs #ffffff surface */
	--shadow: 0 1px 2px rgba(13, 59, 79, 0.04);
	--panel-dark-bg: #0d3b4f;
	--panel-dark-ink: #ffffff;
	--panel-dark-muted: #e8c9a6;
	--ripple: rgba(13, 59, 79, 0.14);
}

[data-theme="sand"] {
	--bg: #d9b087;
	--surface: #e8c9a6;
	--surface-soft: #e8c9a6;
	--ink: #062838;
	--ink-muted: #062838;
	--accent: #0d3b4f;
	--accent-hover: #062838;
	--on-accent: #ffffff;
	--accent-soft: #f3dec5;
	--accent-softer: #efd4b5;
	--border: #c99d6f;
	--input-border: #062838; /* WCAG 1.4.11 — 9.05:1 vs #e8c9a6 surface (was --border #c99d6f, 1.6:1 FAIL) */
	--input-placeholder: #062838; /* WCAG 1.4.3 — 9.05:1 vs #e8c9a6 surface */
	--shadow: 0 1px 2px rgba(6, 40, 56, 0.06);
	--panel-dark-bg: #0d3b4f;
	--panel-dark-ink: #ffffff;
	--panel-dark-muted: #e8c9a6;
	--ripple: rgba(13, 59, 79, 0.22);
}

[data-theme="dark"] {
	--bg: #0d3b4f;
	--surface: #124256;
	--surface-soft: #103e52;
	--ink: #ffffff;
	--ink-muted: #cfe1e7;
	--accent: #d9b087;
	--accent-hover: #e8c9a6;
	--on-accent: #0d3b4f;
	--accent-soft: #1a4a60;
	--accent-softer: #164154;
	--border: #2d6880;
	--input-border: #cfe1e7; /* WCAG 1.4.11 — 9.7:1 vs #124256 surface (was --border #2d6880, 2.0:1 FAIL) */
	--input-placeholder: #cfe1e7; /* WCAG 1.4.3 — 9.7:1 vs #124256 surface */
	--shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	--panel-dark-bg: linear-gradient(180deg, #144a61 0%, #0d3b4f 100%);
	--panel-dark-ink: #ffffff;
	--panel-dark-muted: #cfe1e7;
	--ripple: rgba(217, 176, 135, 0.18);
}

[data-theme="abyss"] {
	/* "Echter" Dark-Mode — deutlich tiefer als Midnight. Keine Petrol-/Deep-Water-Relation,
     daher hue-neutral-dunkelblau. Sand als einziger warmer Accent. */
	--bg: #020a10;
	--surface: #071218;
	--surface-soft: #050f15;
	--ink: #ffffff;
	--ink-muted: #cfe1e7;
	--accent: #d9b087;
	--accent-hover: #e8c9a6;
	--on-accent: #020a10;
	--accent-soft: #0d1b24;
	--accent-softer: #081219;
	--border: #132029;
	--input-border: #cfe1e7; /* WCAG 1.4.11 — 13.5:1 vs #071218 surface (was --border #132029, 1.1:1 FAIL) */
	--input-placeholder: #cfe1e7; /* WCAG 1.4.3 — 13.5:1 vs #071218 surface */
	--shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
	--panel-dark-bg: #050f15;
	--panel-dark-ink: #ffffff;
	--panel-dark-muted: #e8c9a6;
	--ripple: rgba(217, 176, 135, 0.22);
}

[data-theme="midnight"] {
	--bg: #021621;
	--surface: #052433;
	--surface-soft: #03192a;
	--ink: #ffffff;
	--ink-muted: #cfe1e7;
	--accent: #d9b087;
	--accent-hover: #e8c9a6;
	--on-accent: #021621;
	--accent-soft: #0a2c3e;
	--accent-softer: #061f2e;
	--border: #1a4a61;
	--input-border: #cfe1e7; /* WCAG 1.4.11 — 10.5:1 vs #052433 surface (was --border #1a4a61, 1.8:1 FAIL) */
	--input-placeholder: #cfe1e7; /* WCAG 1.4.3 — 10.5:1 vs #052433 surface */
	--shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
	--panel-dark-bg: linear-gradient(180deg, #052433 0%, #021621 100%);
	--panel-dark-ink: #ffffff;
	--panel-dark-muted: #cfe1e7;
	--ripple: rgba(217, 176, 135, 0.2);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	background: var(--bg);
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

/* ── Typography ──────────────────────────────────────── */

h1,
h2,
h3,
h4 {
	font-family: var(--font-brand);
	font-weight: 400;
	color: var(--ink);
	letter-spacing: -0.01em;
	margin: 0 0 var(--space-3);
}

h1 {
	font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem);
	line-height: 1.1;
	font-weight: 400;
	letter-spacing: -0.02em;
}
h2 {
	font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
	line-height: 1.2;
}
h3 {
	font-size: 1.25rem;
	line-height: 1.35;
	font-weight: 500;
}
h4 {
	font-size: 1rem;
	line-height: 1.4;
	font-weight: 600;
}

p {
	margin: 0 0 var(--space-2);
	color: var(--ink);
}
p.lead {
	font-size: 1.2rem;
	line-height: 1.6;
	color: var(--ink-muted);
	max-width: 38em;
}

small,
.small {
	font-size: 0.85rem;
	color: var(--ink-muted);
}
.eyebrow {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink);
	margin-bottom: var(--space-2);
	display: inline-block;
}

a {
	color: var(--accent);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition:
		border-color 0.15s ease,
		color 0.15s ease;
}
a:hover {
	border-bottom-color: var(--accent);
}

/* ── Layout ──────────────────────────────────────────── */

.wrap {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 var(--space-4);
}
.wrap-narrow {
	max-width: var(--max-w-narrow);
	margin: 0 auto;
	padding: 0 var(--space-4);
}

section {
	padding: var(--space-8) 0;
}
section.tight {
	padding: var(--space-6) 0;
}
section.loose {
	padding: var(--space-12) 0;
}
section.soft {
	background: var(--surface-soft);
}
section.petrol {
	background: var(--panel-dark-bg);
	color: var(--panel-dark-ink);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	position: relative;
}
section.petrol h2,
section.petrol h3,
section.petrol h4,
section.petrol p {
	color: var(--panel-dark-ink);
}
section.petrol .eyebrow {
	color: var(--panel-dark-muted);
}
section.petrol a {
	color: var(--panel-dark-ink);
}

/* Wave-Motiv (subtil) */
section.petrol::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 120px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%23ffffff' opacity='0.03'/%3E%3C/svg%3E");
	background-size: cover;
	pointer-events: none;
}
[data-theme="dark"] section.petrol::after,
[data-theme="midnight"] section.petrol::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%23d9b087' opacity='0.05'/%3E%3C/svg%3E");
}
section.page-hero-compact {
	padding: var(--space-4) 0 var(--space-1);
}

/* ── Header ──────────────────────────────────────────── */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 85%, transparent);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--border);
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease;
}
.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
	min-height: 72px;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}
.brand {
	display: inline-flex;
	align-items: center;
	color: var(--accent);
	border-bottom: none;
	transition: color 0.2s ease;
}
.brand:hover {
	border-bottom: none;
}
.brand svg {
	display: block;
	height: 22px;
	width: auto;
	fill: currentColor;
}
.brand path,
.brand polygon,
.brand polyline {
	fill: currentColor;
}
.nav {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	flex-wrap: nowrap;
	overflow: visible;
	font-size: 0.95rem;
}
.nav a {
	/* WCAG AA: use --lw-deep (#0d2b3e) for ≥4.5:1 contrast on light + sand backgrounds */
	color: var(--lw-deep);
	border-bottom: none;
	transition: color 0.15s ease;
}
.nav a:hover,
.nav a.active {
	color: var(--accent);
	opacity: 1;
}
.nav .btn {
	padding: 0.5rem 1rem;
	flex-shrink: 0;
}
.site-header .nav a.btn.btn-sm {
	min-height: 40px;
	padding-top: 0;
	padding-bottom: 0;
	line-height: 1.35;
	align-items: center;
	justify-content: center;
}
.nav a.btn-primary,
.nav a.btn-primary:hover {
	color: var(--on-accent);
	border-bottom: 1px solid var(--accent);
}
/* Login btn-ghost: dark border + text for WCAG AA on sand/light bg */
.nav a.btn-ghost {
	color: var(--lw-deep);
	border: 1px solid var(--lw-deep);
	border-bottom: 1px solid var(--lw-deep);
}
.nav a.btn-ghost:hover {
	background: var(--lw-deep);
	color: var(--lw-white);
	border-color: var(--lw-deep);
}

html[data-theme="dark"] .nav a,
html[data-theme="midnight"] .nav a,
html[data-theme="abyss"] .nav a {
	color: var(--lw-white) !important;
	opacity: 0.85;
}

html[data-theme="dark"] .nav a:hover,
html[data-theme="midnight"] .nav a:hover,
html[data-theme="abyss"] .nav a:hover,
html[data-theme="dark"] .nav a.active,
html[data-theme="midnight"] .nav a.active,
html[data-theme="abyss"] .nav a.active {
	color: var(--lw-sand) !important;
	opacity: 1;
}

html[data-theme="dark"] .nav a.btn-ghost,
html[data-theme="midnight"] .nav a.btn-ghost,
html[data-theme="abyss"] .nav a.btn-ghost {
	color: var(--lw-sand) !important;
	border-color: var(--lw-sand) !important;
	opacity: 1;
}

html[data-theme="dark"] .nav a.btn-ghost:hover,
html[data-theme="midnight"] .nav a.btn-ghost:hover,
html[data-theme="abyss"] .nav a.btn-ghost:hover {
	background: var(--lw-sand) !important;
	color: var(--lw-petrol) !important;
}

@media (max-width: 860px) {
	.nav .hide-sm {
		display: none;
	}
}

/* ── Mobile Hamburger Nav ────────────────────────────── */
.nav-mobile-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--border);
	background: var(--surface-soft);
	border-radius: 8px;
	cursor: pointer;
	color: var(--ink);
	flex-shrink: 0;
	transition:
		background 0.15s ease,
		color 0.15s ease;
}
.nav-mobile-toggle:hover {
	background: var(--surface);
}
.nav-mobile-toggle svg {
	pointer-events: none;
}

.nav-mobile-drawer {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
}
.nav-mobile-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
}
.nav-mobile-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(320px, 85vw);
	height: 100%;
	background: var(--surface);
	border-left: 1px solid var(--border);
	padding: var(--space-5) var(--space-4);
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	overflow-y: auto;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}
.nav-mobile-drawer__close {
	align-self: flex-end;
	width: 36px;
	height: 36px;
	border: 1px solid var(--border);
	background: transparent;
	border-radius: 8px;
	cursor: pointer;
	color: var(--ink-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: var(--space-3);
	transition:
		color 0.15s,
		background 0.15s;
}
.nav-mobile-drawer__close:hover {
	background: var(--surface-soft);
	color: var(--ink);
}
.nav-mobile-drawer__links {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}
.nav-mobile-drawer__links a {
	display: block;
	padding: 0.65rem 0.75rem;
	border-radius: 8px;
	color: var(--ink);
	text-decoration: none;
	font-size: 1rem;
	font-weight: 500;
	transition:
		background 0.15s,
		color 0.15s;
}
.nav-mobile-drawer__links a:hover,
.nav-mobile-drawer__links a[aria-current="page"] {
	background: var(--surface-soft);
	color: var(
		--accent
	); /* was var(--lw-petrol) — fails <2:1 on dark/midnight/abyss surface-soft */
}
.nav-mobile-drawer__links .btn {
	margin-top: var(--space-2);
	text-align: center;
	width: 100%;
	justify-content: center;
}
.nav-mobile-drawer.is-open {
	display: block;
}

@media (max-width: 860px) {
	.nav-mobile-toggle {
		display: flex;
	}
}

/* ── Segment Tabs — Pill-Slider (Preise / Produkte) ─────── */
.segment-tabs {
	display: inline-flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	margin-bottom: var(--space-4);
	background: var(--lw-petrol);
	border-radius: 999px;
	padding: 4px;
	gap: 0;
	border-bottom: none;
}
.segment-tabs::-webkit-scrollbar {
	display: none;
}
.segment-tab {
	padding: 0.5rem 1.2rem;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.85);
	border-bottom: none;
	margin-bottom: 0;
	transition:
		background 0.25s ease,
		color 0.25s ease;
	white-space: nowrap;
	flex-shrink: 0;
}
.segment-tab:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.12);
}
.segment-tab.active,
.segment-tab[aria-selected="true"] {
	background: #ffffff;
	color: var(--lw-petrol);
	font-weight: 600;
}
.segment-tab-link {
	color: inherit;
	text-decoration: none;
}
.segment-panel {
	display: none;
}
.segment-panel.active {
	display: block;
}

/* Wrapper to center the pill-slider */
.segment-tabs-wrap {
	display: flex;
	justify-content: flex-start;
	margin-bottom: var(--space-4);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.segment-tabs-wrap::-webkit-scrollbar {
	display: none;
}

/* Mobile-Safety: prevent horizontal scroll & shrink nav extras at very small screens */
html,
body {
	overflow-x: hidden;
}
@media (max-width: 540px) {
	.nav {
		gap: var(--space-1);
		font-size: 0.85rem;
	}
	.nav .lang-switcher,
	.nav .theme-toggle {
		display: none;
	}
	.site-header .nav a.btn-primary.btn-sm,
	.site-header .nav a.btn-ghost.btn-sm {
		padding: 0.4rem 0.7rem;
		font-size: 0.8rem;
		min-height: 36px;
	}
	.wrap,
	.wrap-narrow {
		padding: 0 var(--space-3);
	}
	table {
		display: block;
		overflow-x: auto;
		max-width: 100%;
	}
}

/* ── Sound Toggle ────────────────────────────────────── */

.sound-toggle {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--border);
	background: var(--surface-soft);
	border-radius: 999px;
	padding: 0;
	cursor: pointer;
	color: var(--ink-muted);
	transition:
		color 0.15s ease,
		border-color 0.15s ease,
		transform 0.15s ease;
}
.sound-toggle:hover {
	color: var(--accent);
	border-color: var(--accent-soft);
	transform: scale(1.04);
}
.sound-toggle svg {
	width: 16px;
	height: 16px;
	display: block;
}
.sound-toggle .s-on {
	display: none;
}
.sound-toggle .s-off {
	display: block;
}
.sound-toggle[aria-pressed="true"] {
	color: var(--accent);
	border-color: var(--accent);
}
.sound-toggle[aria-pressed="true"] .s-on {
	display: block;
}
.sound-toggle[aria-pressed="true"] .s-off {
	display: none;
}

/* ── Theme Toggle ────────────────────────────────────── */

.theme-toggle {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: var(--surface-soft);
	border: 1px solid var(--border);
}
.theme-toggle button {
	width: 26px;
	height: 26px;
	border-radius: 999px;
	border: 2px solid transparent;
	padding: 0;
	cursor: pointer;
	background: transparent;
	display: grid;
	place-items: center;
	transition:
		border-color 0.15s ease,
		transform 0.15s ease;
}
.theme-toggle button:hover {
	transform: scale(1.08);
}
.theme-toggle button[aria-checked="true"] {
	border-color: var(--accent);
}
.theme-toggle .swatch {
	width: 16px;
	height: 16px;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	display: block;
}
.theme-toggle .sw-light {
	background: #ffffff;
	border-color: rgba(13, 59, 79, 0.3);
}
.theme-toggle .sw-sand {
	background: #d9b087;
}
.theme-toggle .sw-dark {
	background: #0d3b4f;
	border-color: var(--lw-sand);
}
.theme-toggle .sw-midnight {
	background: #021621;
	border-color: var(--lw-sand);
}
.theme-toggle .sw-abyss {
	background: #020a10;
	border-color: var(--lw-sand);
}

@media (max-width: 540px) {
	.theme-toggle button {
		width: 24px;
		height: 24px;
	}
	.theme-toggle .swatch {
		width: 14px;
		height: 14px;
	}
}

/* ── Buttons ─────────────────────────────────────────── */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.2;
	padding: 0.9rem 1.4rem;
	border-radius: var(--radius);
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 0.15s ease;
	white-space: nowrap;
	text-decoration: none;
}
.btn-primary {
	background: var(--accent);
	color: var(--on-accent);
	border-color: var(--accent);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-primary:hover {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
	border-bottom-color: var(--accent-hover);
	color: var(--on-accent);
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.btn-ghost {
	background: transparent;
	color: var(--accent);
	border-color: currentColor; /* WCAG 1.4.11 — was var(--border), failed 3:1 across all 5 themes */
}
.btn-secondary {
	background: transparent;
	color: var(--accent);
	border-color: var(--accent);
}
.btn-secondary:hover {
	background: var(--accent-soft);
	border-bottom-color: var(--accent);
}
.btn-ghost:hover {
	border-color: var(--accent);
	border-bottom-color: var(--accent);
}
.btn-sm {
	padding: 0.5rem 0.9rem;
	font-size: 0.85rem;
}

/* ── Hero ────────────────────────────────────────────── */

.hero {
	padding: var(--space-8) 0 var(--space-3);
	position: relative;
	overflow: hidden;
}
.hero > .wrap,
.hero > .wrap-narrow {
	position: relative;
	z-index: 2;
}
.hero h1 {
	max-width: 18ch;
	margin-bottom: var(--space-3);
	color: var(--accent);
}

/* Hero CTA layout: 2-button row, wraps cleanly on mobile */
.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin-bottom: var(--space-3);
}
.hero-cta .btn {
	flex: 0 1 auto;
	max-width: 100%;
}
@media (max-width: 540px) {
	.hero-cta {
		flex-direction: column;
		align-items: flex-start;
	}
	.hero-cta .btn {
		width: auto;
		min-width: min(260px, 100%);
		max-width: 100%;
	}
	.hero-cta .btn-primary {
		align-self: flex-start;
	}
}
html[data-theme="dark"] .hero h1,
html[data-theme="midnight"] .hero h1,
html[data-theme="abyss"] .hero h1 {
	color: var(--lw-sand) !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="midnight"] h1,
html[data-theme="midnight"] h2,
html[data-theme="midnight"] h3,
html[data-theme="midnight"] h4 {
	color: var(--lw-sand) !important;
}

html[data-theme="dark"] p.lead,
html[data-theme="midnight"] p.lead {
	color: var(--lw-white) !important;
	opacity: 0.95;
}

html[data-theme="dark"] .btn-secondary,
html[data-theme="midnight"] .btn-secondary {
	color: var(--lw-sand) !important;
	border-color: var(--lw-sand) !important;
}

html[data-theme="dark"] .btn-ghost,
html[data-theme="midnight"] .btn-ghost {
	color: var(--lw-white) !important;
	border-color: var(--lw-sand) !important;
}

html[data-theme="dark"] .btn-ghost:hover,
[data-theme="midnight"] .btn-ghost:hover {
	background: var(--lw-sand);
	color: var(--lw-deep-water);
	border-color: var(--lw-sand);
}

/* Explicit Dark Theme Overrides for Header Contrast */
[data-theme="dark"] .site-header .brand,
[data-theme="midnight"] .site-header .brand,
[data-theme="abyss"] .site-header .brand {
	color: var(--lw-sand);
}

[data-theme="dark"] .site-header .nav a:not(.btn),
[data-theme="midnight"] .site-header .nav a:not(.btn),
[data-theme="abyss"] .site-header .nav a:not(.btn) {
	color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .site-header .nav a.btn-primary,
[data-theme="midnight"] .site-header .nav a.btn-primary,
[data-theme="abyss"] .site-header .nav a.btn-primary {
	background: var(--lw-sand);
	color: var(--lw-deep-water);
	border-color: var(--lw-sand);
}

.hero-trust {
	font-size: 0.9rem;
	color: var(--ink-muted);
}
.hero-trust span + span::before {
	content: "·";
	margin: 0 0.6em;
	color: var(--border);
}

/* ── Ripple rings (dezent, nur im Hero) ──────────────── */
.ripples {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	overflow: hidden;
}
.ripples::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 1px;
	height: 1px;
	box-shadow: 0 0 0 1px var(--ripple);
}
.ripple {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	border: 1px solid var(--ripple);
	transform: translate(-50%, -50%) scale(0.15);
	opacity: 0;
	animation: lw-ripple 9s cubic-bezier(0.25, 0.6, 0.3, 1) infinite;
}
.ripple:nth-child(1) {
	animation-delay: 0s;
}
.ripple:nth-child(2) {
	animation-delay: 3s;
}
.ripple:nth-child(3) {
	animation-delay: 6s;
}
@keyframes lw-ripple {
	0% {
		transform: translate(-50%, -50%) scale(0.15);
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	100% {
		transform: translate(-50%, -50%) scale(2.4);
		opacity: 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ripple {
		animation: none;
		opacity: 0;
	}
}

/* ── Grid / Cards ────────────────────────────────────── */

.grid {
	display: grid;
	gap: var(--space-3);
}
.grid-3 {
	grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
	grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 860px) {
	.grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}
.grid-2 {
	grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 860px) {
	.grid-3,
	.grid-2 {
		grid-template-columns: 1fr;
	}
}

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: var(--space-4);
	transition:
		border-color 0.15s ease,
		transform 0.15s ease;
}
[data-theme="dark"] .card,
[data-theme="midnight"] .card {
	border-color: var(--lw-sand-light);
}
[data-theme="dark"] .card:hover,
[data-theme="midnight"] .card:hover {
	border-color: var(--accent);
}
.card.has-media {
	padding: 0;
	overflow: hidden;
}
.card.has-media .media {
	display: block;
	aspect-ratio: 16 / 9;
	width: 100%;
	background: var(--accent-softer);
	border-bottom: 1px solid var(--border);
}
.card.has-media .media video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.card.has-media .card-body {
	padding: var(--space-4);
}

.hero-media {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin-top: var(--space-6);
	background: var(--accent-softer);
	border: 1px solid var(--border);
}
.hero-media video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.card:hover {
	border-color: var(--accent-soft);
	transform: translateY(-2px);
}
.card h3 {
	margin-bottom: var(--space-1);
	color: var(--accent);
}
.card .sub {
	font-size: 0.85rem;
	color: var(--ink-muted);
	margin-bottom: var(--space-3);
	font-weight: 500;
	letter-spacing: 0.02em;
}
.card p {
	font-size: 0.96rem;
	color: var(--ink);
}
.card a.more {
	display: inline-block;
	margin-top: var(--space-2);
	font-size: 0.9rem;
	color: var(--accent);
	border-bottom: none;
}
.card a.more:hover {
	border-bottom: 1px solid var(--accent);
}

html[data-theme="dark"] .card a.more,
html[data-theme="midnight"] .card a.more,
html[data-theme="abyss"] .card a.more {
	color: var(--lw-sand) !important;
}

html[data-theme="dark"] .card a.more:hover,
html[data-theme="midnight"] .card a.more:hover,
html[data-theme="abyss"] .card a.more:hover {
	border-bottom: 1px solid var(--lw-sand) !important;
}

/* ── Price-Card ──────────────────────────────────────── */

.price-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: var(--space-2) var(--space-2) var(--space-3);
	display: flex;
	flex-direction: column;
	transition: border-color 0.15s ease;
}
.price-card:hover {
	border-color: var(--accent-soft);
}
.price-card.featured {
	border-color: var(--accent);
	position: relative;
}
/* Featured-Pill wird inline gesetzt (z.B. "Empfohlen", "Skaliert") — kein generischer "Beliebt"-Default */
.price-card h3 {
	margin-bottom: var(--space-1);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--ink);
}
.price-card .price {
	font-family: var(--font-brand);
	font-size: 2.5rem;
	font-weight: 400;
	color: var(--accent);
	line-height: 1;
	margin: var(--space-2) 0 0.3rem;
	letter-spacing: -0.02em;
}
.price-card .price-unit {
	font-size: 0.85rem;
	color: var(--ink-muted);
	margin-bottom: var(--space-2);
}
.price-card ul {
	list-style: none;
	padding: 0;
	margin: 0 0 var(--space-3);
	flex: 1;
}
.price-card li {
	padding: 0.55rem 0 0.55rem 1.5rem;
	position: relative;
	font-size: 0.95rem;
	border-top: 1px solid var(--border);
	color: var(--ink);
}
.price-card li:first-child {
	border-top: none;
}
.price-card li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.1rem;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid var(--accent);
	border-bottom: 1.5px solid var(--accent);
	transform: rotate(-45deg);
}
.price-card .btn {
	width: 100%;
	justify-content: center;
}

/* ── Tab-Nav (Pricing-Kategorien) ────────────────────── */

.tab-nav {
	display: flex;
	gap: 4px;
	padding: 4px;
	background: #ffffff;
	border: 1px solid var(--lw-petrol);
	border-radius: 999px;
	margin-bottom: var(--space-4);
	flex-wrap: wrap;
	justify-content: center;
}
.tab-nav button {
	flex: 1 1 auto;
	min-width: 120px;
	padding: 0.7rem 1.2rem;
	border: 0;
	background: transparent;
	border-radius: 999px;
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--lw-petrol);
	opacity: 0.75;
	cursor: pointer;
	transition: all 0.15s ease;
	white-space: nowrap;
}
.tab-nav button:hover {
	color: var(--lw-petrol);
	opacity: 1;
}
.tab-nav button[aria-selected="true"] {
	opacity: 1;
}
.tab-nav button[aria-selected="true"] {
	background: var(--lw-deep-water);
	color: #ffffff;
	box-shadow: 0 1px 4px rgba(6, 40, 56, 0.18);
}
@media (max-width: 640px) {
	.tab-nav button {
		min-width: 0;
		padding: 0.6rem 0.9rem;
		font-size: 0.88rem;
	}
}

.tab-panel[hidden] {
	display: none;
}
.tab-panel .panel-intro {
	color: var(--ink-muted);
	margin-bottom: var(--space-3);
	max-width: 42em;
	font-size: 0.95rem;
}

/* ── Konfigurator (Multi-Mandant) ────────────────────── */

.konfig {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: var(--space-3);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: var(--space-4);
}
@media (max-width: 860px) {
	.konfig {
		grid-template-columns: 1fr;
	}
}
.konfig .basis .price {
	font-family: var(--font-brand);
	font-size: 3rem;
	color: var(--accent);
	line-height: 1;
	margin: var(--space-2) 0 0.3rem;
	font-weight: 400;
	letter-spacing: -0.02em;
}
.konfig .basis-unit {
	color: var(--ink-muted);
	margin-bottom: var(--space-3);
}
.konfig .staffel table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}
.konfig .staffel td {
	padding: 0.75rem 0;
	border-top: 1px solid var(--border);
	vertical-align: top;
	color: var(--ink);
}
.konfig .staffel td:nth-child(2) {
	font-family: var(--font-brand);
	color: var(--accent);
	font-weight: 500;
	text-align: right;
	white-space: nowrap;
	padding-left: var(--space-2);
}
.konfig .staffel tr:first-child td {
	border-top: none;
}
.konfig .hint {
	font-size: 0.88rem;
	color: var(--ink-muted);
	margin-top: var(--space-3);
}

/* ── Enterprise-Card ─────────────────────────────────── */

.enterprise {
	background: var(--panel-dark-bg);
	color: var(--panel-dark-ink);
	border-radius: var(--radius-lg);
	padding: var(--space-6);
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: var(--space-4);
	align-items: center;
}
@media (max-width: 860px) {
	.enterprise {
		grid-template-columns: 1fr;
	}
}
.enterprise h3 {
	color: var(--panel-dark-ink);
	font-size: 1.5rem;
	font-weight: 400;
}
.enterprise .price {
	font-family: var(--font-brand);
	font-size: 2rem;
	color: var(--panel-dark-ink);
	margin: var(--space-2) 0;
	font-weight: 400;
	letter-spacing: -0.02em;
}
.enterprise p {
	color: var(--panel-dark-muted);
}
.enterprise ul {
	list-style: none;
	padding: 0;
	margin: 0 0 var(--space-3);
}
.enterprise li {
	padding: 0.4rem 0 0.4rem 1.5rem;
	position: relative;
	font-size: 0.95rem;
	color: var(--panel-dark-muted);
}
.enterprise li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.95rem;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid var(--lw-sand);
	border-bottom: 1.5px solid var(--lw-sand);
	transform: rotate(-45deg);
}
.enterprise .btn-primary {
	background: var(--lw-white);
	color: var(--lw-petrol);
	border-color: var(--lw-white);
}
.enterprise .btn-primary:hover {
	background: var(--lw-sand);
	color: var(--lw-petrol);
	border-color: var(--lw-sand);
}

/* ── Compare-Table ───────────────────────────────────── */

.compare-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.94rem;
	margin-top: var(--space-4);
}
.compare-table th,
.compare-table td {
	padding: 0.9rem 1rem;
	text-align: left;
	border-bottom: 1px solid var(--border);
}
.compare-table thead th {
	font-family: var(--font-brand);
	font-weight: 500;
	color: var(--accent);
	background: var(--surface-soft);
}
[data-theme="dark"] .compare-table thead th,
[data-theme="midnight"] .compare-table thead th {
	color: var(--lw-white);
	background: transparent;
	border-bottom-color: var(--lw-sand);
}
[data-theme="dark"] .compare-table td:not(:first-child),
[data-theme="midnight"] .compare-table td:not(:first-child) {
	color: var(--lw-sand-light);
}
.compare-table tbody th {
	background: transparent;
	font-weight: 400;
	color: var(--ink);
}
.compare-table td:not(:first-child) {
	text-align: center;
	color: var(--ink-muted);
}
.compare-table td.yes {
	color: var(--accent);
	font-weight: 500;
}

/* ── Monthly/Yearly Toggle (pricing-period) ──────────── */

.price-toggle {
	display: inline-flex;
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 4px;
	margin-bottom: var(--space-3);
	background: var(--surface);
}
.price-toggle button {
	border: 0;
	background: transparent;
	padding: 0.5rem 1.1rem;
	border-radius: 999px;
	font-family: var(--font-body);
	font-size: 0.9rem;
	color: var(--ink-muted);
	cursor: pointer;
	transition: all 0.15s ease;
}
.price-toggle button.active {
	background: var(--accent);
	color: var(--on-accent);
}

.ust-hint {
	font-size: 0.85rem;
	color: var(--ink-muted);
	margin-top: var(--space-2);
}

/* ── Trust-Bar ───────────────────────────────────────── */

.trust-bar {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-4);
}
@media (max-width: 860px) {
	.trust-bar {
		grid-template-columns: 1fr;
	}
}
.trust-bar h4 {
	color: var(--panel-dark-ink);
	margin-bottom: var(--space-1);
	font-weight: 500;
	font-size: 1.05rem;
}
.trust-bar p {
	color: var(--panel-dark-muted);
	font-size: 0.95rem;
	margin: 0;
}

/* ── Partner-Row ─────────────────────────────────────── */

.partners {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
	justify-content: center;
	align-items: center;
	padding: var(--space-4) 0;
}
.partners span {
	font-family: var(--font-brand);
	font-size: 1.05rem;
	color: var(--ink-muted);
	letter-spacing: 0.02em;
	padding: 0.5rem 1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	transition:
		border-color 0.15s ease,
		color 0.15s ease;
}
.partners span:hover {
	border-color: var(--accent-soft);
	color: var(--accent);
}

/* ── FAQ ─────────────────────────────────────────────── */

.faq details {
	border-bottom: 1px solid var(--border);
	padding: var(--space-3) 0;
}
.faq details[open] summary {
	color: var(--accent);
}
.faq summary {
	cursor: pointer;
	font-family: var(--font-brand);
	font-size: 1.05rem;
	font-weight: 500;
	color: var(--ink);
	list-style: none;
	position: relative;
	padding-right: 2rem;
	transition: color 0.15s ease;
}
.faq summary::-webkit-details-marker {
	display: none;
}
.faq summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: -2px;
	font-size: 1.4rem;
	color: var(--ink-muted);
	transition: transform 0.2s ease;
}
.faq details[open] summary::after {
	content: "−";
	color: var(--accent);
}
.faq details p {
	margin-top: var(--space-2);
	color: var(--ink-muted);
	font-size: 0.96rem;
	max-width: 62ch;
}

/* ── Footer ──────────────────────────────────────────── */

.site-footer {
	border-top: 1px solid var(--border);
	padding: var(--space-8) 0 var(--space-4);
	font-size: 0.9rem;
	color: var(--ink);
	background: var(--bg);
}
.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: var(--space-4);
	margin-bottom: var(--space-6);
}
@media (max-width: 860px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}
.site-footer h4 {
	color: var(--accent);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: var(--space-2);
	font-weight: 600;
}
.site-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.site-footer li {
	margin-bottom: 0.5rem;
}
.site-footer a {
	color: var(--ink);
	border-bottom: none;
}
.site-footer a:hover {
	color: var(--accent);
}
.site-footer .brand {
	color: var(--ink);
}
.site-footer .brand svg {
	height: 18px;
}
.footer-legal {
	border-top: 1px solid var(--border);
	padding-top: var(--space-3);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--space-2);
	font-size: 0.82rem;
}
.footer-legal .affiliate-disclaimer {
	max-width: 60ch;
	color: var(--ink);
}
.footer-tagline {
	font-style: italic;
	margin-top: 0.25rem;
	color: var(--ink);
}

/* ── Util ────────────────────────────────────────────── */

.center {
	text-align: center;
}
.muted {
	color: var(--ink-muted);
}
.divider {
	height: 1px;
	background: var(--border);
	margin: var(--space-6) 0;
	border: 0;
}
.note-box {
	background: var(--accent-softer);
	border-left: 3px solid var(--accent);
	border-radius: var(--radius-sm);
	padding: var(--space-3) var(--space-4);
	font-size: 0.92rem;
	color: var(--ink);
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.note-box p {
	margin: 0;
	color: var(--ink);
	font-size: 0.92rem;
}
.note-box small,
.note-box .small {
	color: var(--ink);
}
[data-theme="dark"] .note-box,
[data-theme="midnight"] .note-box {
	background: transparent;
	border: 1px solid var(--lw-sand);
	border-left: 3px solid var(--lw-sand);
}
[data-theme="dark"] .note-box p,
[data-theme="midnight"] .note-box p {
	color: var(--lw-white);
}
.pill {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	background: var(--accent-softer);
	color: var(--accent);
}

/* Live/available status pill — white on dark sections, petrol on light */
.pill-live {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
}
[data-theme="light"] .pill-live,
[data-theme="sand"] .pill-live {
	background: #0d3b4f;
	color: #ffffff;
}

/* ── .tight.soft heading tightening ─────────────────────── */
section.tight.soft h2 {
	margin-bottom: var(--space-2);
}
.section-nav {
	position: sticky;
	top: 72px;
	z-index: 45;
	padding: 0.8rem 0;
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	border-bottom: 1px solid var(--border);
}
.section-nav .wrap {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.section-nav a {
	border: 1px solid var(--ink);
	border-radius: 999px;
	padding: 0.3rem 0.8rem;
	color: var(--ink);
	font-size: 0.85rem;
	opacity: 0.85; /* WCAG 1.4.3 — was 0.7, failed 4.5:1 in sand theme */
}
.section-nav a:hover {
	border-color: var(--accent);
	color: var(--accent);
}
@media (max-width: 860px) {
	.section-nav {
		top: 64px;
	}
}

/* ── Lang-Switcher ───────────────────────────────────────── */
.lang-switcher {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.lang-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	height: 40px;
	padding: 0 0.7rem;
	background: var(--surface-soft);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition:
		border-color 0.15s ease,
		background 0.15s ease;
}
.lang-trigger:hover {
	border-color: var(--accent-soft);
	background: var(--surface);
}
.lang-trigger svg {
	flex-shrink: 0;
	color: var(--ink-muted);
	transition: transform 0.2s ease;
}
.lang-trigger[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.lang-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 180px;
	max-width: 200px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	list-style: none;
	padding: 0.3rem 0;
	margin: 0;
	z-index: 200;
	overflow-y: auto;
	max-height: 300px;
}
.lang-menu li {
	display: flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.5rem 0.9rem;
	font-size: 0.88rem;
	color: var(--ink);
	cursor: pointer;
	border-top: none;
	transition: background 0.1s ease;
}
.lang-menu li:hover {
	background: var(--surface-soft);
}
.lang-menu li[aria-selected="true"] {
	color: var(--accent);
	font-weight: 500;
}
.lang-menu li[data-coming-soon] {
	cursor: not-allowed;
	opacity: 0.65;
}
.lang-menu li[data-coming-soon]:hover {
	background: transparent;
}
.lang-code {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	min-width: 1.8em;
}
.lang-label {
	flex: 1;
}
.lang-soon {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 500;
	padding: 1px 6px;
	border-radius: 999px;
	background: var(--accent-softer);
	color: var(--accent);
	opacity: 0.7;
}

/* Lang-Toast */
.lang-toast {
	position: fixed;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%) translateY(0);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	padding: 0.6rem 1.2rem;
	font-size: 0.88rem;
	color: var(--ink);
	z-index: 1000;
	white-space: nowrap;
	opacity: 1;
	transition: opacity 0.3s ease;
}
.lang-toast.fade-out {
	opacity: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* ── Focus indicator — WCAG 2.4.7 (was missing across all themes) ───────── */
:focus {
	outline: none;
}
:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: 2px;
}
.btn:focus-visible,
a.btn:focus-visible {
	outline-offset: 3px;
}
[data-theme="dark"] :focus-visible,
[data-theme="midnight"] :focus-visible,
[data-theme="abyss"] :focus-visible {
	outline-color: var(--lw-sand, #d9b087);
}

/* ── Form inputs — WCAG 1.4.11 (UI ≥3:1) / 1.4.3 (placeholder text ≥4.5:1) ─ */
input,
textarea,
select {
	border-color: var(--input-border);
}
input::placeholder,
textarea::placeholder {
	color: var(--input-placeholder);
	opacity: 1; /* override Firefox default 0.54 which would re-fail contrast */
}

/* ── Template components (replace the inline styles of the static pages) ── */
.abschnitt-titel {
	margin-bottom: var(--space-4);
	max-width: 22ch;
}
.center .abschnitt-titel {
	margin-left: auto;
	margin-right: auto;
}
.abschnitt-lead {
	margin-bottom: var(--space-6);
	max-width: 56ch;
}
.center .abschnitt-lead {
	margin-left: auto;
	margin-right: auto;
}
.text-titel {
	font-size: clamp(2rem, 3vw + 1rem, 3rem);
	margin-bottom: var(--space-3);
}
.abstand-oben {
	margin-top: var(--space-4);
}
.knopfzeile {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-top: var(--space-4);
}
.center .knopfzeile {
	justify-content: center;
}
.prose > * + * {
	margin-top: var(--space-2);
}
.prose h2 {
	font-size: 1.5rem;
	margin-top: var(--space-6);
}
.prose h3 {
	margin-top: var(--space-4);
}
.prose ul,
.prose ol {
	padding-left: 1.4rem;
	color: var(--ink);
}
.prose li + li {
	margin-top: 0.4rem;
}
.card > p:last-of-type {
	margin-bottom: 0;
}

.karte-schlicht h4 {
	margin-bottom: var(--space-1);
}
section.petrol .karte-schlicht p {
	color: var(--panel-dark-ink);
}
.trust-bar .karte-schlicht p {
	color: var(--panel-dark-muted);
	font-size: 0.95rem;
	margin: 0;
}

.coming-soon-banner {
	background: var(--accent);
	color: var(--on-accent);
	text-align: center;
	padding: 0.8rem var(--space-3);
	font-size: 0.95rem;
	font-weight: 500;
	position: sticky;
	top: 68px;
	z-index: 40;
}
.coming-soon-banner p {
	margin: 0;
	color: inherit;
}
.coming-soon-banner a {
	color: inherit;
	border-bottom: 1px solid currentColor;
}

.expert-details summary {
	width: auto;
	list-style: none;
}
.expert-details summary::-webkit-details-marker {
	display: none;
}
.expert-details__inhalt {
	margin-top: var(--space-4);
}

.cta-karte {
	padding: var(--space-6);
}
.cta-karte h3 {
	margin-top: var(--space-2);
}
.cta-rahmen {
	margin-top: var(--space-6);
	padding: var(--space-6);
	background: var(--surface);
	border: 2px solid var(--accent);
	border-radius: var(--radius-lg);
	text-align: center;
}
.cta-schlicht .pill {
	margin-bottom: var(--space-2);
}

.tabelle-scroll {
	overflow-x: auto;
	margin-bottom: var(--space-4);
}
.vergleich-tabelle td:not(:first-child) {
	text-align: left;
}
.staffel-titel {
	margin-bottom: var(--space-2);
	font-weight: 500;
	color: var(--ink-muted);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.78rem;
}
.konfig .basis .btn {
	margin-top: var(--space-3);
}

.faq-eintrag {
	margin-bottom: var(--space-6);
	scroll-margin-top: 6rem;
}
.faq-eintrag h2 {
	font-size: 1.25rem;
	margin-bottom: var(--space-2);
}
.faq-eintrag h2 a {
	color: var(--accent);
	border-bottom: none;
}
.faq-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin-top: var(--space-6);
	font-size: 0.9rem;
}

.brotkrumen {
	margin-bottom: var(--space-4);
}
.brotkrumen a {
	color: var(--ink-muted);
	border-bottom: none;
}
.vergleich-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin-top: var(--space-6);
	font-size: 0.9rem;
}
.vergleich-hinweis {
	margin-top: var(--space-6);
	padding-top: var(--space-3);
	border-top: 1px solid var(--border);
}

.rechtstext .prose h2,
.rechtstext .prose h3 {
	color: var(--accent);
}

.footer-claim {
	margin-top: var(--space-2);
	max-width: 32ch;
}
.footer-rechtslinks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
}
.footer-rechtslinks a {
	color: var(--ink-muted);
}
.footer-rechtslinks a.betont {
	color: var(--ink);
	font-weight: 500;
}

.lang-current,
.lang-code {
	text-transform: uppercase;
}
.lang-menu li a {
	display: flex;
	align-items: center;
	gap: 0.5em;
	width: 100%;
	color: inherit;
	border-bottom: none;
}
.lang-menu li[aria-current="true"] {
	color: var(--accent);
	font-weight: 500;
	cursor: default;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ── Withdrawal and cancellation forms ── */
.rechtsformular {
	padding: var(--space-6);
}
.rechtsformular:hover {
	transform: none;
}
.rechtsformular .form-group {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: var(--space-3);
}
.rechtsformular label {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--ink);
}
.rechtsformular .optional {
	font-weight: 400;
	color: var(--ink-muted);
}
.rechtsformular .pflicht {
	color: #b42318;
}
.rechtsformular input,
.rechtsformular textarea {
	width: 100%;
	padding: 0.65rem 0.85rem;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--input-border);
	border-radius: 8px;
}
.rechtsformular textarea {
	resize: vertical;
	min-height: 6rem;
}
.rechtsformular input:focus,
.rechtsformular textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.rechtsformular [aria-invalid="true"] {
	border-color: #b42318;
}
.rechtsformular .btn {
	width: 100%;
	justify-content: center;
}
.feld-fehler {
	margin: 0;
	font-size: 0.85rem;
	color: #b42318;
}
.formular-fehler {
	margin-bottom: var(--space-3);
	padding: var(--space-2) var(--space-3);
	border: 1px solid #f1a9a0;
	border-left: 3px solid #b42318;
	border-radius: var(--radius-sm);
	background: #fdf1ef;
	color: #7a1b12;
}
.formular-fehler p {
	margin: 0;
	color: inherit;
}
.formular-honig {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.formular-bestaetigung {
	padding: var(--space-6);
	border-left: 3px solid var(--accent);
}
.formular-bestaetigung:hover {
	transform: none;
}

/* ── EU stack ── */
.eu-stack {
	background: linear-gradient(135deg, #062838 0%, #0d3b4f 100%);
	color: #ffffff;
	padding: 5rem 0;
	margin-top: 3rem;
}
.eu-stack .wrap {
	max-width: 1024px;
}
.eu-stack__kopf {
	text-align: center;
	margin-bottom: 2.5rem;
}
.eu-stack__pill {
	display: inline-block;
	background: #d9b087;
	color: #062838;
	padding: 0.4rem 1rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.eu-stack h2 {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	line-height: 1.15;
	text-align: center;
	margin: 0 0 1rem;
	color: #ffffff;
	font-weight: 300;
}
.eu-stack__lead {
	text-align: center;
	color: #cfe1e7;
	max-width: 42em;
	margin: 0 auto 3rem;
	font-size: 1.05rem;
	line-height: 1.55;
}
.eu-stack__kacheln {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1rem;
	margin-bottom: 2.5rem;
}
.eu-stack__kachel {
	background: rgba(207, 225, 231, 0.06);
	border: 1px solid rgba(207, 225, 231, 0.18);
	border-radius: 12px;
	padding: 1.25rem 1.5rem;
}
.eu-stack__label {
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #d9b087;
	margin-bottom: 0.5rem;
	font-weight: 500;
}
.eu-stack__wert {
	color: #ffffff;
	font-size: 0.95rem;
	line-height: 1.4;
}
.eu-stack__siegel {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-bottom: 2rem;
}
.eu-stack__siegel span {
	background: rgba(217, 176, 135, 0.15);
	border: 1px solid #d9b087;
	color: #e8c9a6;
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	font-size: 0.8rem;
}
.eu-stack__knopf {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: #d9b087;
	color: #062838;
	padding: 0.85rem 1.6rem;
	border-radius: 999px;
	border-bottom: none;
	font-weight: 500;
	font-size: 0.95rem;
	transition: background 0.15s;
}
.eu-stack__knopf:hover {
	background: #e8c9a6;
	border-bottom: none;
}

/* ── Pricing calculator (js/preise.ts renders into [data-preise-ziel]) ── */
.preisrechner [data-preise-ziel] {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.preisrechner [data-preise-ziel] > .grid {
	width: 100%;
}
.preis-steuerung {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	justify-content: center;
}
.preis-segmenthinweis {
	text-align: center;
	max-width: 42em;
	margin: 0 auto var(--space-3);
}
.preis-hervor {
	color: var(--accent);
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 0.25rem;
}
.price-card {
	position: relative;
}
.price-card .preis-empfohlen {
	position: absolute;
	top: -0.75rem;
	left: var(--space-3);
}
.preis-lacus {
	display: grid;
	grid-template-columns: 2fr 3fr;
	gap: var(--space-4);
	width: 100%;
	margin-bottom: var(--space-6);
	padding-top: var(--space-6);
}
@media (max-width: 860px) {
	.preis-lacus {
		grid-template-columns: 1fr;
	}
}
.preis-lacus-preis {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.preis-einzel {
	width: 100%;
	max-width: 28rem;
}
.preis-einzeln {
	display: flex;
	justify-content: center;
	width: 100%;
}
.preis-einzeln .price-card {
	width: 100%;
	max-width: 28rem;
}
.preis-center {
	width: 100%;
	max-width: 40rem;
}
.preis-erweiterungen {
	width: 100%;
	max-width: 28rem;
	margin-top: var(--space-4);
}
.preis-erweiterungen ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.preis-erweiterungen li {
	display: flex;
	justify-content: space-between;
	gap: var(--space-2);
	padding: 0.3rem 0;
}
.card.has-media .media img,
.hero-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
