/* ============================================================
   Fachberatung IT — Styles · v1.3
   Vanilla CSS, keine Frameworks · Schriften lokal (self-hosted)
   ============================================================ */

/* ---------- Schriften (lokal gehostet, keine externen Requests) ---------- */

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Instrument Sans";
	src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Mono";
	src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg:        #EEF1F7;
	--bg-soft:   #F7F9FC;
	--ink:       #1C2236;
	--ink-soft:  #4A5268;
	--blau:      #2B4BEE;
	--gelb:      #FFC94D;
	--koralle:   #FF6B5E;
	--mint:      #2FBF9B;
	--card:      #FFFFFF;
	--radius-lg: 28px;
	--radius-md: 18px;
	--shadow-clay:
		0 18px 40px -18px rgba(28, 34, 54, 0.28),
		inset 0 -6px 12px rgba(28, 34, 54, 0.05),
		inset 0 2px 0 rgba(255, 255, 255, 0.9);
	--font-display: "Bricolage Grotesque", system-ui, sans-serif;
	--font-body:    "Instrument Sans", system-ui, sans-serif;
	--font-mono:    "IBM Plex Mono", ui-monospace, monospace;
	--nav-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
	font-family: var(--font-body);
	background: var(--bg);
	color: var(--ink);
	line-height: 1.6;
	overflow-x: hidden;
}

::selection { background: var(--gelb); color: var(--ink); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.015em; }

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

a { color: inherit; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--blau);
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.eyebrow::before {
	content: "";
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

/* ---------- Navigation ---------- */

.nav {
	position: fixed;
	inset: 16px 0 auto;
	z-index: 50;
	display: flex;
	justify-content: center;
	pointer-events: none;
}

.nav-pill {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(28, 34, 54, 0.08);
	border-radius: 999px;
	padding: 8px 10px 8px 20px;
	box-shadow: 0 12px 30px -14px rgba(28, 34, 54, 0.3);
}

.nav-logo {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1rem;
	text-decoration: none;
	margin-right: 6px;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.nav-logo em { font-style: normal; color: var(--blau); }

.nav-logo-img { height: 26px; width: auto; display: block; }

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

.nav-links a {
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--ink-soft);
	padding: 8px 14px;
	border-radius: 999px;
	transition: background 0.2s, color 0.2s;
}

.nav-links a:hover { background: rgba(43, 75, 238, 0.09); color: var(--blau); }

.nav-cta {
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	background: var(--ink);
	color: #fff;
	padding: 9px 18px;
	border-radius: 999px;
	transition: transform 0.2s, background 0.2s;
	white-space: nowrap;
}

.nav-cta:hover { background: var(--blau); transform: translateY(-1px); }

/* ---------- Hero ---------- */

.hero {
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding: calc(var(--nav-h) + 40px) 0 64px;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: url("banner-impressum.jpg") center/cover no-repeat;
}

/* Dunkle Blau-Überlagerung über dem Code-Foto für Lesbarkeit */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(115deg,
			rgba(14, 19, 44, 0.94) 0%,
			rgba(18, 28, 78, 0.88) 46%,
			rgba(26, 42, 116, 0.68) 100%);
}

.hero-inner {
	max-width: 1160px;
	width: 100%;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: 40px;
}

/* Heller Text auf dunklem Hero */
.hero .eyebrow { color: var(--gelb); }
.hero h1 { color: #fff; }
.hero p.lead { color: rgba(255, 255, 255, 0.82); }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.hero .btn-ghost:hover { border-color: #fff; }
.hero .fact strong { color: #fff; }
.hero .fact span { color: rgba(255, 255, 255, 0.6); }

.hero-copy .eyebrow { margin-bottom: 20px; }

.hero h1 {
	font-size: clamp(2.4rem, 5.2vw, 4rem);
	font-weight: 800;
	margin-bottom: 22px;
}

.hero h1 .mark {
	position: relative;
	display: inline-block;
	white-space: nowrap;
}

.hero h1 .mark::after {
	content: "";
	position: absolute;
	left: -2%;
	bottom: 0.08em;
	width: 104%;
	height: 0.34em;
	background: var(--gelb);
	border-radius: 6px;
	z-index: -1;
	transform: skewX(-8deg);
}

.hero p.lead {
	font-size: 1.12rem;
	color: var(--ink-soft);
	max-width: 46ch;
	margin-bottom: 32px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	padding: 15px 28px;
	border-radius: 16px;
	display: inline-block;
	transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
	background: var(--blau);
	color: #fff;
	box-shadow: 0 14px 28px -12px rgba(43, 75, 238, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 34px -12px rgba(43, 75, 238, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.25); }

.btn-ghost {
	background: transparent;
	color: var(--ink);
	border: 2px solid rgba(28, 34, 54, 0.18);
}

.btn-ghost:hover { border-color: var(--ink); transform: translateY(-3px); }

.hero-facts {
	display: flex;
	gap: 28px;
	margin-top: 40px;
	flex-wrap: wrap;
}

.fact strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; display: block; }

.fact span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Hero 3D-Baukasten (Signature) ---------- */

.scene {
	perspective: 1100px;
	height: 520px;
	position: relative;
}

.stage {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
	transition: transform 0.25s ease-out;
}

.wires {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.wires path {
	fill: none;
	stroke: rgba(255, 255, 255, 0.42);
	stroke-width: 2.5;
	stroke-dasharray: 7 9;
	stroke-linecap: round;
	animation: dashflow 2.6s linear infinite;
}

@keyframes dashflow { to { stroke-dashoffset: -64; } }

.chip {
	position: absolute;
	width: 168px;
	padding: 20px 18px 18px;
	background: var(--card);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-clay);
	text-align: left;
	animation: floaty 6s ease-in-out infinite;
	will-change: transform;
}

.chip .icon {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	margin-bottom: 12px;
	box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.12), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.chip .icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.chip h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 4px; }

.chip p { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.45; }

.chip-desktop { top: 4%;  left: 6%;  transform: translateZ(70px);  animation-delay: 0s; }
.chip-excel   { top: 10%; right: 2%; transform: translateZ(30px);  animation-delay: 1.4s; }
.chip-web     { bottom: 16%; left: 0;  transform: translateZ(45px); animation-delay: 2.6s; }
.chip-ki      { bottom: 4%;  right: 8%; transform: translateZ(90px); animation-delay: 3.8s; }

.chip-desktop .icon { background: var(--blau); }
.chip-excel   .icon { background: var(--mint); }
.chip-web     .icon { background: var(--koralle); }
.chip-ki      .icon { background: var(--gelb); }
.chip-ki      .icon svg { stroke: var(--ink); }

@keyframes floaty {
	0%, 100% { margin-top: 0; }
	50%      { margin-top: -14px; }
}

.hub {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 92px;
	height: 92px;
	margin: -46px 0 0 -46px;
	border-radius: 26px;
	background: var(--ink);
	display: grid;
	place-items: center;
	color: #fff;
	font-family: var(--font-mono);
	font-size: 0.62rem;
	letter-spacing: 0.1em;
	text-align: center;
	line-height: 1.5;
	transform: translateZ(110px) rotate(-6deg);
	box-shadow: 0 24px 44px -16px rgba(0, 0, 0, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.14);
	animation: floaty 6s ease-in-out infinite;
	animation-delay: 0.7s;
}

/* ---------- Marquee ---------- */

.marquee {
	background: var(--ink);
	color: #fff;
	overflow: hidden;
	padding: 16px 0;
	transform: rotate(-1.2deg);
	margin: 10px -20px 0;
}

.marquee-track {
	display: flex;
	gap: 48px;
	width: max-content;
	animation: scrollx 26s linear infinite;
	font-family: var(--font-mono);
	font-size: 0.85rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
}

.marquee-track span::after { content: "✦"; margin-left: 48px; color: var(--gelb); }

@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Sections allgemein ---------- */

section { padding: 110px 0; }

.section-head { max-width: 640px; margin-bottom: 56px; }

.section-head h2 {
	font-size: clamp(1.9rem, 3.6vw, 2.7rem);
	font-weight: 800;
	margin: 14px 0 16px;
}

.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* Scroll-Reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Leistungen ---------- */

.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}

.card {
	background: var(--card);
	border-radius: var(--radius-lg);
	padding: 34px 30px;
	box-shadow: var(--shadow-clay);
	position: relative;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	transform-style: preserve-3d;
}

.card:hover {
	transform: translateY(-8px) rotateX(2.5deg) rotateY(-2deg);
	box-shadow: 0 30px 55px -20px rgba(28, 34, 54, 0.35), inset 0 -6px 12px rgba(28, 34, 54, 0.05), inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

.card .icon {
	width: 54px;
	height: 54px;
	border-radius: 16px;
	display: grid;
	place-items: center;
	margin-bottom: 22px;
	box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.12), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.card .icon svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.card:nth-child(1) .icon { background: var(--blau); }
.card:nth-child(2) .icon { background: var(--mint); }
.card:nth-child(3) .icon { background: var(--koralle); }

.card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }

.card > p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 18px; }

.card ul { list-style: none; }

.card li {
	font-size: 0.92rem;
	padding: 7px 0 7px 26px;
	position: relative;
	border-top: 1px dashed rgba(28, 34, 54, 0.12);
}

.card li::before {
	content: "→";
	position: absolute;
	left: 0;
	color: var(--blau);
	font-weight: 600;
}

.card:nth-child(2) li::before { color: var(--mint); }
.card:nth-child(3) li::before { color: var(--koralle); }

/* ---------- KI-Sektion ---------- */

.ki {
	background: var(--ink);
	color: #fff;
	border-radius: 40px;
	margin: 0 20px;
	position: relative;
	overflow: hidden;
}

.ki::before {
	content: "";
	position: absolute;
	top: -160px;
	right: -160px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 201, 77, 0.22), transparent 65%);
	pointer-events: none;
}

.ki .eyebrow { color: var(--gelb); }

.ki .section-head p { color: rgba(255, 255, 255, 0.72); }

.ki-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}

.ki-step {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--radius-md);
	padding: 28px 26px;
	transition: background 0.25s, transform 0.25s;
}

.ki-step:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-5px); }

.ki-step .num {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	color: var(--gelb);
	display: block;
	margin-bottom: 14px;
}

.ki-step h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }

.ki-step p { font-size: 0.94rem; color: rgba(255, 255, 255, 0.72); }

.ki .btn-row { margin-top: 44px; }

.ki .btn-primary { background: var(--gelb); color: var(--ink); box-shadow: 0 14px 28px -12px rgba(255, 201, 77, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.35); }

/* ---------- Prozess ---------- */

.timeline {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 26px;
	counter-reset: step;
	position: relative;
}

.timeline::before {
	content: "";
	position: absolute;
	top: 26px;
	left: 6%;
	right: 6%;
	border-top: 2px dashed rgba(28, 34, 54, 0.2);
	z-index: 0;
}

.step { position: relative; z-index: 1; }

.step .dot {
	counter-increment: step;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: var(--card);
	box-shadow: var(--shadow-clay);
	display: grid;
	place-items: center;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.05rem;
	margin-bottom: 18px;
	transform: rotate(-4deg);
	transition: transform 0.25s;
}

.step .dot::before { content: counter(step, decimal-leading-zero); }

.step:hover .dot { transform: rotate(4deg) scale(1.08); }

.step:nth-child(1) .dot { color: var(--blau); }
.step:nth-child(2) .dot { color: var(--mint); }
.step:nth-child(3) .dot { color: var(--koralle); }
.step:nth-child(4) .dot { color: #C79A22; }

.step h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 6px; }

.step p { font-size: 0.93rem; color: var(--ink-soft); }

/* ---------- Über uns ---------- */

.about {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 64px;
	align-items: center;
}

.about-photo { position: relative; }

/* Foto-Version (später): .about-photo img { ... } */
.about-photo img {
	border-radius: 42% 58% 55% 45% / 48% 44% 56% 52%;
	box-shadow: var(--shadow-clay);
	transform: rotate(-2deg);
	transition: transform 0.35s ease, border-radius 0.6s ease;
}

.about-photo:hover img {
	transform: rotate(0deg) scale(1.02);
	border-radius: 50% 50% 48% 52% / 50% 48% 52% 50%;
}

/* Platzhalter-Panel mit Logo, solange kein Foto gesetzt ist */
.about-badge {
	background: var(--card);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-clay);
	padding: 46px 32px;
	text-align: center;
	transform: rotate(-2deg);
	transition: transform 0.35s ease;
}

.about-badge:hover { transform: rotate(0deg); }

.about-badge img { width: 96px; height: auto; margin: 0 auto 20px; display: block; }

.about-badge p {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.15rem;
	line-height: 1.25;
	color: var(--ink);
}

.about-photo::after {
	content: "Moin!";
	position: absolute;
	top: -14px;
	right: -10px;
	background: var(--gelb);
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 0.95rem;
	padding: 10px 18px;
	border-radius: 999px 999px 999px 4px;
	transform: rotate(6deg);
	box-shadow: 0 10px 20px -10px rgba(28, 34, 54, 0.35);
	z-index: 2;
}

.about-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 800; margin: 14px 0 18px; }

.about-copy p { color: var(--ink-soft); margin-bottom: 16px; max-width: 56ch; }

/* ---------- Kontakt ---------- */

#kontakt {
	position: relative;
	isolation: isolate;
	background: url("banner-default.jpg") center/cover no-repeat;
}

/* Helles Overlay: Schreibtisch bleibt sichtbar, Card hebt sich klar ab */
#kontakt::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		rgba(238, 241, 247, 0.66),
		rgba(238, 241, 247, 0.82));
}

.contact-card {
	background: var(--card);
	border-radius: 40px;
	box-shadow: var(--shadow-clay);
	padding: 72px 56px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.contact-card::before,
.contact-card::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.contact-card::before { width: 220px; height: 220px; background: rgba(43, 75, 238, 0.08); top: -90px; left: -70px; }
.contact-card::after  { width: 180px; height: 180px; background: rgba(255, 201, 77, 0.18); bottom: -70px; right: -50px; }

.contact-card h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; margin: 14px 0 16px; }

.contact-card > p { color: var(--ink-soft); max-width: 52ch; margin: 0 auto 34px; }

.contact-meta {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px 34px;
	margin-top: 34px;
	font-size: 0.95rem;
}

.contact-meta a { text-decoration: none; font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--gelb); padding-bottom: 1px; }

.contact-meta a:hover { color: var(--blau); border-color: var(--blau); }

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

footer {
	padding: 44px 0 56px;
	text-align: center;
	font-size: 0.85rem;
	color: var(--ink-soft);
}

.footer-logo { height: 40px; width: auto; margin: 0 auto 14px; display: block; opacity: 0.9; }

footer .flinks { margin-top: 8px; display: flex; justify-content: center; gap: 20px; }

footer a { color: var(--ink-soft); text-decoration: none; }

footer a:hover { color: var(--blau); }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
	.hero { padding-top: calc(var(--nav-h) + 56px); min-height: 0; }
	.hero-inner { grid-template-columns: 1fr; }
	.scene { height: 460px; max-width: 560px; margin: 0 auto; width: 100%; }
	.cards, .ki-steps { grid-template-columns: 1fr 1fr; }
	.timeline { grid-template-columns: 1fr 1fr; }
	.timeline::before { display: none; }
	.about { grid-template-columns: 1fr; gap: 40px; }
	.about-photo { max-width: 300px; margin: 0 auto; }
}

@media (max-width: 640px) {
	section { padding: 76px 0; }
	.nav-links { display: none; }
	.cards, .ki-steps, .timeline { grid-template-columns: 1fr; }
	.scene { height: 420px; }
	.chip { width: 148px; padding: 16px 14px 14px; }
	.contact-card { padding: 52px 26px; }
	.ki { margin: 0 12px; }
}

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.chip, .hub { animation: none; }
	.wires path { animation: none; }
	.marquee-track { animation: none; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.stage { transition: none; }
}

/* ============================================================
   Cookie-Hinweis (schlanker Info-Banner)
   ============================================================ */

.cookie-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 80;
	max-width: 560px;
	margin: 0 auto;
	background: var(--card);
	border: 1px solid rgba(28, 34, 54, 0.1);
	border-radius: var(--radius-md);
	box-shadow: 0 20px 44px -18px rgba(28, 34, 54, 0.4);
	padding: 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	transform: translateY(140%);
	opacity: 0;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.cookie-banner[hidden] { display: none; }

.cookie-banner.show { transform: translateY(0); opacity: 1; }

.cookie-banner p {
	font-size: 0.92rem;
	color: var(--ink-soft);
	line-height: 1.55;
	margin: 0;
}

.cookie-banner strong { color: var(--ink); font-weight: 600; }

.cookie-banner a { color: var(--blau); text-decoration: none; border-bottom: 1px solid currentColor; }

.cookie-banner a:hover { color: var(--ink); }

.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.cookie-ok {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.92rem;
	background: var(--blau);
	color: #fff;
	border: none;
	padding: 12px 26px;
	border-radius: 12px;
	cursor: pointer;
	transition: transform 0.2s, background 0.2s;
	box-shadow: 0 10px 22px -10px rgba(43, 75, 238, 0.55);
}

.cookie-ok:hover { transform: translateY(-2px); background: #2340d8; }
.cookie-ok:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }

@media (min-width: 560px) {
	.cookie-banner { flex-direction: row; align-items: center; }
	.cookie-banner p { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.cookie-banner { transition: none; }
}

/* ============================================================
   Rechtstexte (Impressum / Datenschutz)
   ============================================================ */

.legal {
	padding: calc(var(--nav-h) + 72px) 0 96px;
	position: relative;
	isolation: isolate;
	background: url("banner-impressum.jpg") center/cover no-repeat fixed;
}

.legal::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(115deg, rgba(14, 19, 44, 0.95) 0%, rgba(20, 30, 82, 0.92) 100%);
}

.legal-inner {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 24px;
}

.legal-head { margin-bottom: 40px; }

.legal-head .eyebrow { color: var(--gelb); margin-bottom: 16px; }

.legal-head h1 {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(2.1rem, 5vw, 3.1rem);
	color: #fff;
	line-height: 1.08;
	letter-spacing: -0.015em;
}

.legal-card {
	background: var(--card);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-clay);
	padding: 48px 44px;
}

.legal-card h2 {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.35rem;
	margin: 38px 0 12px;
	color: var(--ink);
}

.legal-card h2:first-child { margin-top: 0; }

.legal-card h3 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.05rem;
	margin: 24px 0 8px;
	color: var(--ink);
}

.legal-card p,
.legal-card li {
	color: var(--ink-soft);
	font-size: 0.97rem;
	line-height: 1.7;
	margin-bottom: 14px;
}

.legal-card ul { padding-left: 22px; margin-bottom: 14px; }
.legal-card li { margin-bottom: 6px; }

.legal-card a { color: var(--blau); text-decoration: none; border-bottom: 1px solid currentColor; word-break: break-word; }
.legal-card a:hover { color: var(--ink); }

.legal-card .addr { font-style: normal; line-height: 1.8; margin-bottom: 14px; }

.legal-card .legal-note {
	margin-top: 30px;
	padding-top: 18px;
	border-top: 1px dashed rgba(28, 34, 54, 0.14);
	font-size: 0.85rem;
	color: var(--ink-soft);
}

.legal-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	font-weight: 600;
	font-size: 0.95rem;
	color: #fff;
	text-decoration: none;
}

.legal-back:hover { color: var(--gelb); }

.legal-updated {
	margin-top: 28px;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	color: var(--ink-soft);
}

@media (max-width: 640px) {
	.legal-card { padding: 32px 22px; }
	.legal { background-attachment: scroll; }
}
