/*
Theme Name: TM-Systemtechnik Modern
Description: Modernes, schlankes Theme für TM-Systemtechnik / Computer Murnau. Ohne externe Schriften oder Skripte.
Author: TM-Systemtechnik
Version: 1.0.0
Requires at least: 5.0
Requires PHP: 7.0
Text Domain: tmstechnik-modern
*/

/* ---------- Tokens ---------- */
:root {
	--primary: #1463c4;
	--primary-dark: #0d3f80;
	--primary-soft: #e8f1fc;
	--accent: #17a589;
	--ink: #0f1b2d;
	--text: #33445a;
	--muted: #66778c;
	--line: #dfe6ef;
	--bg: #ffffff;
	--bg-soft: #f4f7fb;
	--dark: #0b2547;
	--logo-blau: #1d6599;   /* Farbe des Logos (aus der alten Flash-Datei) – Topbar und Header */
	--radius: 14px;
	--radius-lg: 22px;
	--shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 2px 8px rgba(15, 27, 45, .05);
	--shadow: 0 10px 30px -12px rgba(13, 63, 128, .25);
	--container: 1180px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	/* Wie im alten Theme: Platinenmuster über rgba(60, 143, 226, .5) – hier bereits ins JPG eingerechnet. */
	background: #9ec7f1 url("assets/img/bg-platine.jpg?v=2") center top / cover fixed no-repeat;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .75em 1.3em; border-radius: 999px; border: 2px solid transparent;
	font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none;
	cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .55em 1em; font-size: .95rem; }
.btn-lg { padding: .9em 1.6em; font-size: 1.05rem; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { background: var(--primary-soft); color: var(--primary-dark); }

/* ---------- Topbar & Header ---------- */
/* Topbar und Header in der Farbe des Logos */
.topbar { background: var(--logo-blau); color: #d9e8f6; font-size: .85rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: .45em; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }

.site-header {
	position: sticky; top: 0; z-index: 50;
	overflow-x: clip;   /* der fliegende Stern startet außerhalb – keine waagrechte Scrollleiste */
	background: var(--logo-blau);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: rgba(255, 255, 255, .12); box-shadow: 0 8px 24px -10px rgba(8, 40, 70, .45); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: .02em;
	box-shadow: var(--shadow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.brand-text small { font-size: .8rem; color: var(--muted); font-weight: 500; }

/* Logo im Header – modernisierte Fassung der alten Flash-Animation */
.brand-wrap { display: flex; flex: none; align-items: center; gap: 10px; min-width: 0; }
.site-header .brand, .site-header .brand:hover { color: #fff; }
/* Schriftzug wie auf Visitenkarte und Schild (Tekton Pro Bold Extended), als Vektor-Umrisse eingebunden */
.logo { --logo-h: 30px; display: inline-flex; align-items: center; gap: 0; line-height: 1; white-space: nowrap; }
.logo-tm, .logo-system, .logo-technik { display: block; color: #fff; }
.logo-tm svg, .logo-system svg, .logo-technik svg { display: block; height: var(--logo-h); width: auto; }
.logo-stern { display: block; width: calc(var(--logo-h) * 1.05); height: calc(var(--logo-h) * 1.05); margin: 0 3px; transform-origin: 50% 50%; }
.logo-stern svg, .stern-dreh svg { display: block; width: 100%; height: 100%; }
/* Der gelandete Stern pulsiert dauerhaft */
.logo-stern.pulsiert svg { animation: stern-puls 2.2s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes stern-puls {
	0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 2px rgba(255, 255, 255, .5)); }
	50% { transform: scale(1.22) rotate(12deg); filter: drop-shadow(0 0 9px rgba(255, 255, 255, .95)); }
}
@media (prefers-reduced-motion: reduce) {
	.logo-stern.pulsiert svg { animation: none; }
}
.logo-name { position: relative; display: inline-flex; align-items: flex-end; padding-bottom: 5px; }
.logo-technik-maske { display: block; overflow: hidden; margin-left: 2px; }
.logo-technik { color: #4cc6e8; }   /* Türkis wie auf der Visitenkarte */
.logo-linie {
	position: absolute; left: -10px; right: .2em; bottom: 0; height: 2px; border-radius: 2px;
	background: linear-gradient(90deg, #fff, rgba(255, 255, 255, .7) 60%, rgba(255, 255, 255, 0));
	transform-origin: left center;
}

/* Der Stern auf seinem Weg durch den Header */
.stern-flieger { position: absolute; z-index: 5; pointer-events: none; }
.stern-dreh { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9)); }
.stern-schweif {
	position: absolute; top: 50%; left: 50%; width: 220px; height: 2px; margin-top: -1px; border-radius: 2px;
	background: linear-gradient(90deg, rgba(255, 255, 255, .95), rgba(207, 230, 255, .4) 40%, rgba(207, 230, 255, 0));
}

.logo-ton {
	display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px;
	border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: transparent; color: #fff; cursor: pointer;
}
.logo-ton:hover { background: rgba(255, 255, 255, .14); }
.logo-ton .icon { width: 18px; height: 18px; }
.logo-ton .icon-aus, .logo-ton.is-stumm .icon-an { display: none; }
.logo-ton.is-stumm .icon-aus { display: block; }
.logo-ton.is-stumm { color: rgba(255, 255, 255, .6); }
/* Browser hat den Ton noch gesperrt: Lautsprecher pulsiert als Hinweis „hier klicken“ */
.logo-ton.is-wartend { animation: ton-puls 1.6s ease-in-out infinite; }
@keyframes ton-puls {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
	50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

.site-nav { display: flex; align-items: center; gap: 16px; }
.nav-list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav-list a {
	display: block; padding: .5em .7em; border-radius: 999px; white-space: nowrap;
	color: #fff; text-decoration: none; font-weight: 550; font-size: .97rem;
}
.nav-list a:hover, .nav-list .current-menu-item > a { background: rgba(255, 255, 255, .15); color: #fff; }
.site-header .btn-primary { background: #fff; color: var(--logo-blau); box-shadow: none; }
.site-header .btn-primary:hover { background: #e3eef9; color: var(--logo-blau); }
.site-header :focus-visible { outline-color: #fff; }

.nav-toggle {
	display: none; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff;
	width: 46px; height: 46px; border-radius: 12px; cursor: pointer; place-items: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden;
	padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
	display: inline-block; margin-bottom: 14px;
	font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--primary);
}
.eyebrow-light { color: #fff; opacity: .9; }
.hl { color: var(--primary); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink); font-weight: 550; font-size: .95rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: .45em; }
.hero-facts .icon { color: var(--accent); }
.hero-media { position: relative; }
.hero-media img { position: relative; width: 100%; filter: drop-shadow(0 24px 30px rgba(13, 63, 128, .18)); }
.hero-blob {
	position: absolute; inset: 8% 4% 4% 8%; border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
	background: linear-gradient(135deg, #cfe2fb, #e3f3ef);
}

/* ---------- Hero-Slider ---------- */
.hero[data-slider] { padding-bottom: clamp(28px, 4vw, 44px); }
.hero-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
/* Alle Folien liegen in derselben Grid-Zelle: die Höhe richtet sich nach der höchsten Folie. */
.slides { display: grid; }
.slide {
	grid-area: 1 / 1; opacity: 0; visibility: hidden;
	transition: opacity .6s ease, visibility 0s linear .6s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; }
.slide .hero-copy > * { transform: translateY(14px); opacity: 0; transition: transform .6s ease, opacity .6s ease; }
.slide.is-active .hero-copy > * { transform: none; opacity: 1; }
.slide.is-active .hero-copy > :nth-child(2) { transition-delay: .08s; }
.slide.is-active .hero-copy > :nth-child(3) { transition-delay: .16s; }
.slide.is-active .hero-copy > :nth-child(4) { transition-delay: .24s; }
.slide.is-active .hero-copy > :nth-child(5) { transition-delay: .32s; }
.slide .hero-media img { transform: scale(.96); transition: transform 1.2s ease; }
.slide.is-active .hero-media img { transform: none; }
.slide .hero-media img[src*="server"], .slide .hero-media img[src*="hardware"] { max-width: 420px; margin: 0 auto; }

.slider-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.slider-btn {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
	box-shadow: var(--shadow-sm); transition: border-color .15s ease, color .15s ease;
}
.slider-btn:hover { border-color: var(--primary); color: var(--primary); }
.slider-btn[data-slider-prev] .icon { transform: rotate(180deg); }
.slider-pause { font-size: .72rem; }
.slider-dots { display: flex; gap: 8px; }
.slider-dot {
	width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
	background: #c3d3e8; transition: width .3s ease, background .3s ease;
}
.slider-dot.is-active { width: 30px; background: var(--primary); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-tight { padding: 48px 0 80px; }
.section-soft { background: rgba(232, 239, 248, .75); }
.section-dark {
	/* leicht durchsichtig, damit das Platinen-Muster der Seite dezent durchscheint */
	background: linear-gradient(135deg, rgba(22, 82, 140, .56) 0%, rgba(24, 92, 150, .52) 100%);
	color: #f4f8fd;
}
/* Auf dem helleren Hintergrund: leichter Schatten und etwas kräftigere Schrift für gute Lesbarkeit */
.section-dark h2, .section-dark p, .section-dark .eyebrow, .section-dark .steps strong, .section-dark .steps span { text-shadow: 0 1px 3px rgba(5, 30, 60, .45); }
.section-dark .lead-sm, .section-dark .steps span { font-weight: 500; }
.section-dark h2 { color: #fff; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child { color: var(--muted); margin-bottom: 0; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 28px; box-shadow: var(--shadow-sm);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9dbf2; }
.card-icon {
	display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
	background: var(--primary-soft); color: var(--primary); margin-bottom: 18px;
}
.card-icon .icon { width: 26px; height: 26px; }
.card p { color: var(--muted); font-size: .97rem; }
.checklist { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.checklist li { display: flex; align-items: flex-start; gap: .55em; font-size: .95rem; color: var(--ink); padding: 3px 0; }
.checklist .icon { color: var(--accent); margin-top: .25em; width: 1em; height: 1em; }

/* Bilder gleiten bei jedem Hinscrollen langsam herein – von links oder rechts, je nach Position
   (Klassen und Richtung setzt main.js – ohne JavaScript bleiben die Bilder einfach sichtbar) */
.slide-bereit {
	opacity: 0; transform: translateX(var(--slide-x, -140px));
	transition: transform 1.6s cubic-bezier(.16, .8, .3, 1), opacity 1.3s ease;
}
.slide-bereit.slide-ein { opacity: 1; transform: none; }
/* Von rechts kommende Bilder ragen vorher über den Rand – keine waagrechte Scrollleiste */
main { overflow-x: clip; }
/* Partner-Logos behalten zusätzlich ihren Graustufen-Effekt */
.partners img.slide-bereit { transition: transform 1.6s cubic-bezier(.16, .8, .3, 1), opacity 1.3s ease, filter .2s ease; }
.partners img.slide-bereit.slide-ein { opacity: .7; }
.partners li:hover img.slide-bereit.slide-ein { opacity: 1; }

/* Jede Leistungs-Kachel in einer eigenen, zurückhaltenden Pastellfarbe */
.cards .card { background: var(--k-hg, #fff); border-color: var(--k-rand, var(--line)); }
.cards .card:hover { border-color: var(--k-akzent, #c9dbf2); }
.cards .card .card-icon { background: var(--k-symbol-hg, var(--primary-soft)); color: var(--k-akzent, var(--primary)); }
.cards .card .checklist { border-top-color: var(--k-rand, var(--line)); }
.cards .card .checklist .icon { color: var(--k-akzent, var(--accent)); }
.cards .card:nth-child(1) { --k-hg: #fdf1ef; --k-rand: #f3d6d1; --k-symbol-hg: #f8e0dc; --k-akzent: #b85a4d; } /* PC-Notdienst: Terrakotta */
.cards .card:nth-child(2) { --k-hg: #eef7f1; --k-rand: #cfe6d7; --k-symbol-hg: #dbeee2; --k-akzent: #3f8a5c; } /* Viren: Salbeigrün */
.cards .card:nth-child(3) { --k-hg: #eef4fb; --k-rand: #d0e0f2; --k-symbol-hg: #dce8f6; --k-akzent: #3a6ea8; } /* Netzwerk: Taubenblau */
.cards .card:nth-child(4) { --k-hg: #fcf6ea; --k-rand: #eedfc0; --k-symbol-hg: #f6eacf; --k-akzent: #a87a2a; } /* Datenrettung: Sand */
.cards .card:nth-child(5) { --k-hg: #f4f1fa; --k-rand: #ddd4ee; --k-symbol-hg: #e7e0f4; --k-akzent: #6e5aa6; } /* Webdesign: Lavendel */
.cards .card:nth-child(6) { --k-hg: #edf7f7; --k-rand: #cbe5e6; --k-symbol-hg: #d9eeef; --k-akzent: #2f8589; } /* Hardware & Schulung: Petrol */

/* ---------- Notdienst ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.split-media img { width: 100%; max-width: 480px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.lead-sm { font-size: 1.08rem; }
.steps { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.steps li {
	display: flex; gap: 16px; align-items: flex-start;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
	border-radius: var(--radius); padding: 16px 18px;
}
.steps strong { display: block; color: #fff; }
.steps span { font-size: .95rem; }
.step-no {
	display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
	background: var(--accent); color: #fff !important; font-weight: 800; font-size: 1rem !important;
}

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature { text-align: center; padding: 0 12px; }
.feature-icon {
	display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 16px;
	border-radius: 50%; background: #fff; color: var(--primary); box-shadow: var(--shadow-sm);
}
.feature-icon .icon { width: 28px; height: 28px; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Partners ---------- */
.partners {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
}
.partners a { display: grid; place-items: center; width: 100%; height: 100%; border-radius: var(--radius); }
.partners li {
	display: grid; place-items: center; height: 110px; padding: 18px 22px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.partners img {
	max-height: 64px; width: auto; object-fit: contain;
	filter: grayscale(1); opacity: .7; transition: filter .2s ease, opacity .2s ease;
}
.partners li:hover img { filter: none; opacity: 1; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.contact-card {
	display: flex; align-items: center; gap: 14px; padding: 18px 20px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm);
	transition: border-color .15s ease, transform .15s ease;
	min-width: 0;
}
a.contact-card:hover { border-color: var(--primary); transform: translateY(-2px); color: var(--ink); }
.contact-card > .icon { width: 26px; height: 26px; color: var(--primary); }
.contact-card span { display: flex; flex-direction: column; min-width: 0; }
.contact-card small { color: var(--muted); font-size: .82rem; }
.contact-card strong { font-size: 1.02rem; overflow-wrap: anywhere; }
.contact-card-main { background: var(--primary); border-color: var(--primary); color: #fff; }
.contact-card-main > .icon, .contact-card-main small { color: #d6e6fb; }
a.contact-card-main:hover { color: #fff; background: var(--primary-dark); }
.contact-media img { width: 100%; max-width: 380px; margin: 0 auto; border-radius: var(--radius-lg); }

/* ---------- So finden Sie uns ---------- */
.anfahrt { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: stretch; }
.anfahrt-info .contact-card { margin: 22px 0; }
.route-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.route-row { display: flex; gap: 10px; flex-wrap: wrap; }
.route-row input {
	flex: 1 1 220px; min-width: 0; padding: .8em 1em; font: inherit;
	border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
.route-row input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.route-optionen { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; padding: 0; border: 0; }
.route-optionen label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; cursor: pointer; }
.route-hinweis { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.karte {
	position: relative; min-height: 420px; border-radius: var(--radius-lg); overflow: hidden;
	border: 1px solid var(--line); background: linear-gradient(135deg, #dfe9f6, #f3f7fc); box-shadow: var(--shadow-sm);
}
.karte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.karte-platzhalter {
	position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 28px;
	background-image: radial-gradient(circle at 30% 40%, rgba(20, 99, 196, .12) 0 2px, transparent 3px);
	background-size: 26px 26px;
}
.karte-platzhalter > div { max-width: 420px; background: #fff; padding: 26px; border-radius: var(--radius); box-shadow: var(--shadow); }
.karte-platzhalter .icon { width: 38px; height: 38px; color: var(--primary); margin-bottom: 8px; }
.karte-platzhalter p { font-size: .9rem; color: var(--muted); }
.karte-platzhalter .btn { margin-top: 6px; }
.karte-merken { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); margin-top: 12px; cursor: pointer; }

/* ---------- Inner pages ---------- */
.page-hero {
	background: linear-gradient(135deg, var(--dark), var(--primary-dark));
	padding: 56px 0 52px;
}
.page-hero h1 { color: #fff; margin: 0; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.prose { max-width: 820px; }
/* Alte Inhalte enthalten Inline-Schriften/-Farben aus dem früheren Editor – ans neue Design angleichen. */
.prose [style] { font-family: inherit !important; color: inherit !important; }
.prose h2, .prose h3 { margin-top: 1.8em; }
.prose img { border-radius: var(--radius); }
.prose ul, .prose ol { padding-left: 1.3em; }
.post-teaser { padding: 24px 0; border-bottom: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #b7c6da; font-size: .95rem; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-text small { color: #8fa6c4; }
.footer-about { margin-top: 16px; max-width: 30em; }
.footer-title { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #dce6f3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
	border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; padding-bottom: 24px; font-size: .87rem;
}

.call-fab {
	display: none; position: fixed; right: 18px; bottom: 18px; z-index: 60;
	width: 58px; height: 58px; border-radius: 50%; place-items: center;
	background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
.call-fab .icon { width: 26px; height: 26px; }
.call-fab:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.cards { grid-template-columns: repeat(2, 1fr); }
	.partners { grid-template-columns: repeat(3, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Das animierte Logo ist breiter als das frühere Text-Logo – daher früher auf das Klappmenü wechseln. */
@media (max-width: 1200px) {
	.nav-toggle { display: grid; }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 12px;
		background: var(--logo-blau); border-top: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 16px 30px -12px rgba(8, 40, 70, .5);
		padding: 12px 20px 20px;
	}
	.site-nav.is-open { display: flex; }
	.nav-list { flex-direction: column; }
	.nav-list a { padding: .8em .6em; border-radius: 10px; }
}

@media (max-width: 860px) {

	.hero-grid, .split, .contact, .anfahrt { grid-template-columns: 1fr; }
	.hero-media { order: -1; max-width: 520px; margin: 0 auto; }
	.split-media { max-width: 360px; margin: 0 auto; }
	.contact-media { display: none; }
	.features { grid-template-columns: 1fr; gap: 28px; }
	.call-fab { display: grid; }
}

@media (max-width: 860px) {
	/* "fixed" ruckelt bzw. wird auf Mobilgeräten ignoriert – dort mitscrollen lassen. */
	body { background-attachment: scroll; background-size: 900px auto; background-repeat: repeat; }
}

@media (max-width: 600px) {
	body { font-size: 16px; }
	.container { padding: 0 16px; }
	.topbar span { display: none; }
	.topbar-inner { justify-content: center; }
	.cards, .contact-cards { grid-template-columns: 1fr; }
	.partners { grid-template-columns: repeat(2, 1fr); }
	.partners li { height: 92px; }
	.footer-grid { grid-template-columns: 1fr; }
	.hero-actions .btn { flex: 1 1 100%; }
	.logo { --logo-h: 16px; }
	.logo-name { padding-bottom: 4px; }
	.header-inner { gap: 10px; }
	.nav-toggle { width: 42px; height: 42px; }
	.brand-wrap { gap: 6px; }
	.logo-ton { width: 30px; height: 30px; flex-basis: 30px; }
	.karte { min-height: 340px; }
	.admin-bar .site-header { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}
