/* ==========================================================================
   Website-Design (Bootstrap 5) - ZimMedia IT-Solutions GmbH
   Farben nach dem Logo: Blau #004494, Schwarz #1A171B, Grau, Weiss
   Wird nach style.css geladen. Farben und Schrift zentral unter :root anpassen.

   Bausteine fuer die Inhalte (im Editor in der Quelltext-Ansicht nutzbar):
   zm-hero, zm-section, zm-eyebrow, zm-lead, zm-grid, zm-card, zm-icon,
   zm-check, zm-steps, zm-band, zm-cta, zm-split, zm-facts, zm-file,
   zm-contact, zm-note, zm-legal, zm-browser (CMS-Vorschau)
   ========================================================================== */

:root {
	--zm-ink: #1a171b;          /* Schrift = Logo-Schwarz */
	--zm-navy: #00326e;         /* Markenfarbe dunkel */
	--zm-blue: #004494;         /* Markenfarbe */
	--zm-blue-600: #003777;
	--zm-cyan: #8fb6e8;         /* helles Logoblau fuer dunkle Flaechen */
	--zm-tint: #e8eef7;         /* helle Flaeche */
	--zm-paper: #f5f6f8;        /* Seitenhintergrund */
	--zm-surface: #ffffff;
	--zm-muted: #5f636a;
	--zm-line: #e2e5ea;
	--zm-radius: 14px;
	--zm-radius-sm: 10px;
	--zm-shadow: 0 1px 2px rgba(26, 23, 27, .05), 0 8px 24px rgba(26, 23, 27, .06);
	--zm-shadow-lg: 0 2px 4px rgba(26, 23, 27, .05), 0 24px 48px rgba(26, 23, 27, .12);
	--zm-font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
	--zm-font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
	--zm-header-h: 84px;

	/* Farben fuer die Module Newssystem und Terminkalender (module.css) */
	--cms-accent: var(--zm-blue);
	--cms-line-color: var(--zm-line);
	--cms-muted-color: var(--zm-muted);

	--bs-body-font-family: var(--zm-font);
	--bs-link-color: var(--zm-blue);
	--bs-link-color-rgb: 31, 99, 214;
	--bs-link-hover-color: var(--zm-navy);
	--bs-link-hover-color-rgb: 10, 42, 92;
}

/* ---------- Grundlagen ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--zm-header-h) + 16px); }
body {
	background: var(--zm-paper);
	color: var(--zm-ink);
	font-family: var(--zm-font);
	font-size: 16.5px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.website_bg { box-shadow: none; background: var(--zm-paper); min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.website_bg > .footer { margin-top: auto; }
a { color: var(--zm-blue); text-underline-offset: 3px; }
a:hover, a:focus { color: var(--zm-navy); }
a:focus-visible, .btn:focus-visible, button:focus-visible { outline: 3px solid rgba(0, 68, 148, .45); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
::selection { background: rgba(143, 182, 232, .25); }
h1, h2, h3, h4 { font-family: var(--zm-font-display); letter-spacing: -.01em; }
.site-skip { position: absolute; left: 16px; top: 8px; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; box-shadow: var(--zm-shadow); }

/* ---------- Kopfbereich: Logo + Navigation in einer Leiste ---------- */
.site-header {
	position: sticky; top: 0; z-index: 1030;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid rgba(26, 23, 27, .08);
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--zm-header-h); }
.site-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--zm-ink); flex: 0 0 auto; }
.site-brand:hover, .site-brand:focus { color: var(--zm-ink); }
.site-logo { width: auto; height: 56px; flex: 0 0 auto; }
/* Das Logo enthaelt den Firmennamen - Text nur fuer Screenreader */
.site-brand-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.site-brand-text strong { font-family: var(--zm-font-display); font-size: 1.42rem; font-weight: 800; color: var(--zm-navy); letter-spacing: -.02em; }
.site-brand-text span { font-size: .78rem; font-weight: 600; color: var(--zm-muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }

.site-nav { display: flex; justify-content: flex-end; flex: 1 1 auto; }
.site-nav .navbar-cms { padding: 0; justify-content: flex-end; }
.site-nav .menu { background: none; }
.site-nav .menu ul.navbar-nav a,
.site-nav .navbar-nav > .nav-item > .nav-link { color: var(--zm-ink); font-weight: 600; font-size: .96rem; }
.site-nav .navbar-nav { gap: 2px; align-items: center; }
.site-nav .navbar-nav > .nav-item > .nav-link { padding: .55rem .8rem; border-radius: 8px; position: relative; }
.site-nav .navbar-nav > .nav-item > .nav-link:hover,
.site-nav .navbar-nav > .nav-item > .nav-link:focus { color: var(--zm-blue); background: var(--zm-tint); }
.site-nav .navbar-nav > .nav-item.active > .nav-link { color: var(--zm-blue); }
.site-nav .navbar-nav > .nav-item.active > .nav-link::after {
	content: ""; position: absolute; left: .8rem; right: .8rem; bottom: -2px; height: 3px; border-radius: 3px;
	background: linear-gradient(90deg, var(--zm-blue), var(--zm-cyan));
}
.site-nav .menu #top_active a { background: none; }
.site-nav .navbar-nav > .nav-item > .nav-link .fa-house { font-size: 1.05rem; }
/* Kontakt als Knopf hervorheben */
.site-nav .navbar-nav > .nav-item > a.nav-link[href$="/Kontakt/"] {
	background: var(--zm-blue); color: #fff !important; padding: .55rem 1.1rem; margin-left: 8px; box-shadow: 0 6px 16px rgba(0, 68, 148, .28);
}
.site-nav .navbar-nav > .nav-item > a.nav-link[href$="/Kontakt/"]:hover,
.site-nav .menu #top_active > a.nav-link[href$="/Kontakt/"] { background: var(--zm-blue-600); color: #fff !important; }
.site-nav .navbar-nav > .nav-item > a.nav-link[href$="/Kontakt/"]::after { display: none; }
.site-nav .navbar-nav > .nav-item > a.nav-link[href$="/Kontakt/"] + .cms-subtoggle { display: none; }
.site-nav .cms-subtoggle { color: var(--zm-muted); padding: .25rem .2rem; margin-left: -6px; }
.site-nav .navbar-toggler {
	color: var(--zm-navy); border: 1px solid var(--zm-line); font-weight: 700; font-size: .95rem;
	padding: .5rem .9rem; margin: 0; border-radius: 10px; background: #fff;
}
.site-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(0, 68, 148, .25); }
.site-nav .dropdown-menu {
	background: var(--zm-surface); border: 1px solid var(--zm-line); border-radius: 12px;
	box-shadow: var(--zm-shadow-lg); padding: .5rem; min-width: 16rem;
}
.site-nav .menu ul.dropdown-menu { background: var(--zm-surface); }
.site-nav .menu ul.dropdown-menu a,
.site-nav .menu #top_active ul.dropdown-menu a { color: var(--zm-ink); font-weight: 500; padding: .55rem .8rem; border-radius: 8px; font-size: .94rem; }
.site-nav .menu ul.dropdown-menu a:hover,
.site-nav .menu ul.dropdown-menu a:focus { background: var(--zm-tint); color: var(--zm-blue); }
.site-nav .dropdown-menu .cms-subtoggle { color: var(--zm-muted); }
@media (min-width: 992px) {
	.site-nav .navbar-cms .navbar-nav > .nav-item > .dropdown-menu { top: calc(100% + 10px); }
	.site-nav .navbar-cms .navbar-nav > .nav-item > .dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
}
@media (max-width: 1199.98px) and (min-width: 992px) {
	.site-nav .navbar-nav > .nav-item > .nav-link { padding: .5rem .55rem; font-size: .92rem; }
	.site-brand-text span { display: none; }
}
@media (max-width: 991.98px) {
	:root { --zm-header-h: 66px; }
	.site-logo { height: 42px; }
	.site-brand-text strong { font-size: 1.22rem; }
	.site-brand-text span { font-size: .68rem; }
	.site-nav, .site-nav .navbar, .site-header-inner { position: static; }
	.site-nav .navbar-collapse {
		position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-bottom: 1px solid var(--zm-line); box-shadow: 0 24px 40px rgba(26, 23, 27, .14);
		padding: .5rem 1rem 1rem; max-height: calc(100vh - var(--zm-header-h)); overflow-y: auto;
	}
	.site-nav .navbar-nav { align-items: stretch; gap: 0; }
	.site-nav .navbar-nav > .nav-item { border-bottom: 1px solid var(--zm-line); }
	.site-nav .navbar-nav > .nav-item > .nav-link { padding: .8rem .25rem; }
	.site-nav .navbar-nav > .nav-item.active > .nav-link::after { display: none; }
	.site-nav .navbar-nav > .nav-item > a.nav-link[href$="/Kontakt/"] { margin: .75rem 0 0; text-align: center; padding: .75rem 1rem; }
	.site-nav .navbar-nav > .nav-item:has(> a.nav-link[href$="/Kontakt/"]) { border-bottom: 0; }
	.site-nav .dropdown-menu { box-shadow: none; border: 0; padding: 0 0 .5rem .75rem; background: transparent; }
	.site-nav .menu ul.dropdown-menu { background: transparent; }
	.site-nav .cms-subtoggle { padding: .6rem .8rem; margin: 0; font-size: .85rem; }
}
@media (max-width: 380px) { .site-brand-text span { display: none; } }

/* ---------- Startbereich (Hero) ---------- */
.sitepicture { width: 100%; }
.website_bg > .container-fluid:not(.container-bg) { padding-left: 0; padding-right: 0; }
.website_bg > .container-fluid:not(.container-bg) > .row { --bs-gutter-x: 0; margin-left: 0; margin-right: 0; }
.zm-hero {
	position: relative; isolation: isolate; overflow: hidden;
	background: radial-gradient(1100px 600px at 85% 0%, rgba(0, 88, 189, .55), transparent 60%),
	            radial-gradient(900px 500px at 0% 110%, rgba(0, 68, 148, .6), transparent 60%),
	            linear-gradient(160deg, #003a80 0%, #00254f 75%);
	color: #fff;
}
.zm-hero::before {
	/* Funkwellen aus dem Logo */
	content: ""; position: absolute; z-index: -1; right: -220px; top: -260px; width: 900px; height: 900px; border-radius: 50%;
	background: repeating-radial-gradient(circle at center, rgba(255, 255, 255, .07) 0 2px, transparent 2px 70px);
	-webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 70%); mask-image: radial-gradient(circle at center, #000 30%, transparent 70%);
}
.zm-hero::after {
	content: ""; position: absolute; z-index: -1; inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.zm-hero .container { padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(56px, 8vw, 104px); }
.zm-hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 992px) { .zm-hero-grid { grid-template-columns: 1.15fr .85fr; } }
.zm-hero h1 {
	color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.7rem); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; margin: 0 0 22px;
}
.zm-hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffffff, #b9d2f2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zm-hero p { color: rgba(255, 255, 255, .82); font-size: clamp(1.05rem, 1.4vw, 1.22rem); max-width: 40em; margin-bottom: 32px; }
.zm-hero .zm-eyebrow { color: var(--zm-cyan); background: rgba(143, 182, 232, .12); border: 1px solid rgba(143, 182, 232, .3); }
.zm-hero .zm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.zm-hero .btn-primary { --bs-btn-bg: #fff; --bs-btn-color: var(--zm-blue); --bs-btn-border-color: #fff; --bs-btn-hover-bg: var(--zm-tint); --bs-btn-hover-color: var(--zm-blue); --bs-btn-hover-border-color: var(--zm-tint); --bs-btn-active-bg: var(--zm-tint); --bs-btn-active-color: var(--zm-blue); box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.zm-hero-points { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: rgba(255, 255, 255, .8); font-size: .95rem; }
.zm-hero-points li { display: flex; align-items: center; gap: 8px; }
.zm-hero-points i { color: var(--zm-cyan); }

/* Kachel-Stapel rechts im Hero */
.zm-hero-panel { position: relative; display: grid; gap: 14px; }
.zm-hero-tile {
	display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; text-decoration: none;
	background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .2s, background .2s, border-color .2s;
}
a.zm-hero-tile:hover { transform: translateX(-4px); background: rgba(255, 255, 255, .12); border-color: rgba(143, 182, 232, .5); color: #fff; }
.zm-hero-tile .zm-icon { background: rgba(143, 182, 232, .16); color: var(--zm-cyan); margin: 0; flex: 0 0 auto; }
.zm-hero-tile strong { display: block; font-size: 1.05rem; }
.zm-hero-tile > div > span { display: block; color: rgba(255, 255, 255, .72); font-size: .92rem; line-height: 1.5; }
@media (min-width: 992px) { .zm-hero-tile:nth-child(2) { margin-left: 32px; } .zm-hero-tile:nth-child(3) { margin-left: 64px; } }


/* ---------- Eyecatcher im Startbereich: Monitoring-Karte mit Funkwellen (wie im Logo) ---------- */
.zm-hero-grid > div:first-child > * { animation: zm-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.zm-hero-grid > div:first-child > *:nth-child(2) { animation-delay: .08s; }
.zm-hero-grid > div:first-child > *:nth-child(3) { animation-delay: .16s; }
.zm-hero-grid > div:first-child > *:nth-child(4) { animation-delay: .24s; }
.zm-hero-grid > div:first-child > *:nth-child(5) { animation-delay: .32s; }
@keyframes zm-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.zm-signal { position: relative; min-height: 440px; display: flex; align-items: center; justify-content: center; animation: zm-rise 1s .2s cubic-bezier(.2, .7, .2, 1) both; }
.zm-waves { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.zm-waves span {
	position: absolute; width: 300px; height: 300px; border-radius: 50%;
	border: 2px solid rgba(185, 210, 242, .55);
	animation: zm-wave 4.8s cubic-bezier(.25, .6, .3, 1) infinite; opacity: 0;
}
.zm-waves span:nth-child(2) { animation-delay: 1.2s; }
.zm-waves span:nth-child(3) { animation-delay: 2.4s; }
.zm-waves span:nth-child(4) { animation-delay: 3.6s; }
@keyframes zm-wave { 0% { transform: scale(.55); opacity: 0; } 15% { opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

.zm-status {
	position: relative; z-index: 1; width: min(100%, 360px); padding: 22px 22px 18px; border-radius: 22px;
	background: linear-gradient(160deg, #16509b, #002a5e);
	border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 40px 80px rgba(0, 10, 30, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff;
	animation: zm-float 7s ease-in-out infinite;
}
@keyframes zm-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(.5deg); } }
.zm-status-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .15); font-size: .95rem; }
.zm-status-head em { margin-left: auto; font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, .14); padding: 3px 9px; border-radius: 999px; }
.zm-live { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #5fd38d; box-shadow: 0 0 0 0 rgba(95, 211, 141, .7); animation: zm-ping 1.8s ease-out infinite; }
@keyframes zm-ping { 0% { box-shadow: 0 0 0 0 rgba(95, 211, 141, .7); } 100% { box-shadow: 0 0 0 12px rgba(95, 211, 141, 0); } }
.zm-status-list { list-style: none; padding: 0; margin: 0; }
.zm-status-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: .92rem; border-bottom: 1px dashed rgba(255, 255, 255, .1); animation: zm-rise .6s both; }
.zm-status-list li:nth-child(1) { animation-delay: .5s; } .zm-status-list li:nth-child(2) { animation-delay: .65s; }
.zm-status-list li:nth-child(3) { animation-delay: .8s; } .zm-status-list li:nth-child(4) { animation-delay: .95s; }
.zm-status-list i { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .12); color: #b9d2f2; font-size: .85rem; }
.zm-status-list b { font-weight: 600; }
.zm-ok { margin-left: auto; font-size: .8rem; font-weight: 600; color: #8fe3b0; display: inline-flex; align-items: center; gap: 6px; }
.zm-ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.zm-bar { margin-left: auto; width: 110px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.zm-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b9d2f2, #fff); animation: zm-fill 3.2s ease-in-out infinite; }
@keyframes zm-fill { 0% { width: 8%; } 70%, 100% { width: 100%; } }
.zm-spark { display: flex; align-items: flex-end; gap: 5px; height: 54px; margin-top: 16px; }
.zm-spark span { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(185, 210, 242, .25)); animation: zm-eq 2.4s ease-in-out infinite; transform-origin: bottom; }
.zm-spark span:nth-child(odd) { animation-duration: 3.1s; }
.zm-spark span:nth-child(3n) { animation-duration: 1.9s; }
.zm-spark span:nth-child(1) { animation-delay: -.2s; } .zm-spark span:nth-child(2) { animation-delay: -1.1s; } .zm-spark span:nth-child(3) { animation-delay: -.6s; }
.zm-spark span:nth-child(4) { animation-delay: -1.7s; } .zm-spark span:nth-child(5) { animation-delay: -.9s; } .zm-spark span:nth-child(6) { animation-delay: -2.2s; }
.zm-spark span:nth-child(7) { animation-delay: -.4s; } .zm-spark span:nth-child(8) { animation-delay: -1.4s; } .zm-spark span:nth-child(9) { animation-delay: -2.6s; }
.zm-spark span:nth-child(10) { animation-delay: -.8s; } .zm-spark span:nth-child(11) { animation-delay: -1.9s; } .zm-spark span:nth-child(12) { animation-delay: -.1s; }
.zm-spark span:nth-child(13) { animation-delay: -1.3s; } .zm-spark span:nth-child(14) { animation-delay: -2.9s; }
@keyframes zm-eq { 0%, 100% { height: 22%; } 50% { height: 100%; } }

.zm-chip {
	position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
	background: #fff; color: var(--zm-ink); font-size: .84rem; font-weight: 650; white-space: nowrap;
	box-shadow: 0 16px 34px rgba(0, 10, 30, .35); animation: zm-pop 9s ease-in-out infinite; opacity: 0;
}
.zm-chip i { color: var(--zm-blue); }
.zm-chip-1 { top: 0; left: 2%; animation-delay: .6s; }
.zm-chip-2 { bottom: 10%; right: -4%; animation-delay: 3.6s; }
.zm-chip-3 { bottom: 4%; left: 4%; animation-delay: 6.6s; }
@keyframes zm-pop { 0% { opacity: 0; transform: translateY(14px) scale(.9); } 6%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translateY(-10px) scale(.96); } }

@media (max-width: 991.98px) { .zm-signal { min-height: 380px; } }
@media (max-width: 575.98px) {
	.zm-signal { min-height: 330px; margin-top: -8px; }
	.zm-waves span { width: 220px; height: 220px; }
	.zm-chip { font-size: .76rem; padding: 7px 11px; }
	.zm-signal { padding-top: 40px; }
	.zm-chip-1 { left: 0; top: 0; } .zm-chip-2 { right: 0; }
	.zm-status { width: 100%; }
}

/* ---------- Inhaltsbereich (Unterseiten) ---------- */
.container-bg { position: relative; margin-top: 0; padding-top: 36px; padding-bottom: 72px; }
.website_bg:not(.is-home) .container-bg::before {
	/* dunkles Band hinter dem Inhalt */
	content: ""; position: absolute; z-index: 0; left: 50%; width: 100vw; transform: translateX(-50%); top: 0; height: 190px;
	background: radial-gradient(700px 260px at 90% 0%, rgba(143, 182, 232, .25), transparent 65%), linear-gradient(160deg, #003a80, #00254f);
}
.container-bg > .row { position: relative; z-index: 1; --bs-gutter-x: 2rem; }
.content-middle { font-family: var(--zm-font); font-size: 1rem; margin: 0; }
.content-middle > h1:first-of-type,
.content-middle .content-sie-sind-hier + h1 { margin-top: 0; }
.content-middle h1 {
	font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em;
	color: var(--zm-ink); margin: 0 0 1.25rem; padding: 0;
}
.content-middle h2 { font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 750; color: var(--zm-ink); margin: 2.4rem 0 .9rem; padding: 0; float: none; line-height: 1.25; }
.content-middle h3 { font-size: 1.14rem; font-weight: 700; color: var(--zm-ink); margin: 1.6rem 0 .5rem; line-height: 1.35; }
.content-middle h4 { font-size: 1.02rem; font-weight: 700; color: var(--zm-ink); }
.content-middle p, .content-middle li { max-width: 74ch; }
.content-middle .row p, .content-middle [class*="zm-"] p, .content-middle [class*="zm-"] li, .content-middle td p { max-width: none; }
.content-middle strong { color: inherit; }
.content-middle hr { margin: 2.25rem 0; border-color: var(--zm-line); opacity: 1; }
.content-middle ul:not([class]) { padding-left: 1.2rem; }
.content-middle ul:not([class]) li::marker { color: var(--zm-blue); }

/* Inhalt als Karte, ueberlappt das dunkle Band */
.content-middle {
	background: var(--zm-surface); border: 1px solid var(--zm-line); border-radius: 18px;
	padding: 34px 44px 44px; box-shadow: var(--zm-shadow-lg);
}
@media (max-width: 767.98px) {
	.container-bg { padding-top: 20px; padding-bottom: 40px; }
	.content-middle { padding: 24px 20px 30px; border-radius: 14px; }
}
.is-home .content-middle { background: transparent; border: 0; box-shadow: none; padding: 0 calc(var(--bs-gutter-x) * .5); }
.is-home .container-bg { padding-top: 0; padding-bottom: 0; }
.is-home .content-sie-sind-hier { display: none; }

/* Brotkrumen */
.content-sie-sind-hier { font-size: .85rem; margin-bottom: 1.1rem; color: var(--zm-muted); }
.content-sie-sind-hier a { font-size: .85rem; color: var(--zm-muted); text-decoration: none; }
.content-sie-sind-hier a:hover { color: var(--zm-blue); text-decoration: underline; }
.content-sie-sind-hier .divider { margin: 0 .45em; color: #b6bbc3; }

/* Linke Navigation */
.content-left { margin-bottom: 24px; }
.navi_left { margin-top: 0; position: sticky; top: calc(var(--zm-header-h) + 20px); }
.navi_left .navi-stacked {
	background: var(--zm-surface); border: 1px solid var(--zm-line); border-radius: 16px;
	padding: 10px; box-shadow: var(--zm-shadow-lg);
}
.navi_left ul li a {
	display: block; margin: 0; padding: .6rem .85rem; border: 0; border-radius: 9px;
	color: var(--zm-ink); font-size: .95rem; font-weight: 500; text-decoration: none;
}
.navi_left ul li a:hover, .menu-left ul li a:hover { background: var(--zm-tint); color: var(--zm-blue); font-weight: 500; }
.navi_left ul li .active, .navi_left ul li a.active { background: var(--zm-blue); color: #fff; font-weight: 600; }
.navi_left ul li ul { list-style: none; padding: 4px 0 6px 12px; margin: 0; }
.navi_left ul li ul li a { font-size: .9rem; padding: .42rem .85rem; border: 0; color: var(--zm-muted); }
.navi_left #menu-left2_active { color: var(--zm-blue); font-weight: 600; background: var(--zm-tint); }

/* Linke Navigation auf Tablet und Handy ueber dem Inhalt als Reiter */
@media (max-width: 991.98px) {
	.container-bg > .row > .content-left,
	.container-bg > .row > .content-middle { flex: 0 0 100%; width: 100%; max-width: 100%; }
	.navi_left { position: static; }
	.navi_left .navi-stacked { flex-direction: row !important; flex-wrap: wrap; gap: 4px; }
	.navi_left .navi-stacked > li > ul { display: none; }
	.navi_left ul li a { padding: .45rem .8rem; font-size: .9rem; }
	.content-left { margin-bottom: 16px; }
	.container-bg > .row { margin-left: 0; margin-right: 0; }
	.container-bg > .row > .content-left { padding-left: 0; padding-right: 0; }
	.container-bg > .row > .content-middle { padding-left: 20px; padding-right: 20px; }
	.is-home .container-bg > .row > .content-middle { padding-left: 0; padding-right: 0; }
}

/* ---------- Knoepfe ---------- */
.btn { border-radius: 10px; font-weight: 650; padding: .62rem 1.2rem; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1.04rem; }
.btn-primary {
	--bs-btn-bg: var(--zm-blue); --bs-btn-border-color: var(--zm-blue);
	--bs-btn-hover-bg: var(--zm-blue-600); --bs-btn-hover-border-color: var(--zm-blue-600);
	--bs-btn-active-bg: var(--zm-navy); --bs-btn-active-border-color: var(--zm-navy);
	box-shadow: 0 8px 20px rgba(0, 68, 148, .28);
}
.btn-outline-primary { --bs-btn-color: var(--zm-blue); --bs-btn-border-color: var(--zm-blue); --bs-btn-hover-bg: var(--zm-blue); --bs-btn-hover-border-color: var(--zm-blue); --bs-btn-active-bg: var(--zm-blue); }
.btn-light { --bs-btn-color: var(--zm-navy); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover, .btn-ghost:focus { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn i { margin-left: .4rem; }
.btn i:first-child { margin-left: 0; margin-right: .45rem; }
.content-middle a.btn, .content-middle a.btn:hover { text-decoration: none; }
.content-middle a.btn-primary, .content-middle a.btn-primary:hover { color: #fff; }

/* ---------- Bausteine fuer Inhalte ---------- */
.zm-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--zm-blue); background: var(--zm-tint); border-radius: 999px; padding: 5px 12px; margin-bottom: 16px;
}
.zm-lead, .content-middle .zm-lead { font-size: 1.16rem; line-height: 1.65; color: #3b3e44; }
.zm-section { padding: clamp(56px, 7vw, 96px) 0; }
.zm-section-head { max-width: 760px; margin-bottom: 40px; }
.zm-section-head.text-center { margin-left: auto; margin-right: auto; }
.content-middle .zm-section-head h2, .zm-section-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; margin: 0 0 14px; }
.zm-section-head p { color: var(--zm-muted); font-size: 1.08rem; margin: 0; }
/* volle Breite innerhalb des Containers */
.zm-full { position: relative; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: calc(50vw - 50%); padding-right: calc(50vw - 50%); }
.zm-white { background: var(--zm-surface); border-top: 1px solid var(--zm-line); border-bottom: 1px solid var(--zm-line); }

.zm-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 1.5rem 0; }
.zm-grid-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.zm-grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.zm-card {
	position: relative; height: 100%; background: var(--zm-surface); border: 1px solid var(--zm-line); border-radius: var(--zm-radius);
	padding: 26px 26px 22px; box-shadow: var(--zm-shadow); display: flex; flex-direction: column;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.zm-card { color: inherit; text-decoration: none; }
a.zm-card:hover { transform: translateY(-4px); box-shadow: var(--zm-shadow-lg); border-color: #c3d1e4; color: inherit; }
.zm-card h3 { margin: 0 0 .45rem; font-size: 1.12rem; color: var(--zm-ink); }
.zm-card p { color: var(--zm-muted); margin-bottom: 1rem; font-size: .97rem; }
.zm-card .zm-more { margin-top: auto; font-weight: 650; color: var(--zm-blue); font-size: .95rem; }
.zm-card .zm-more::after { content: " \2192"; transition: margin .2s; }
a.zm-card:hover .zm-more::after { margin-left: 4px; }
.zm-card-flat { box-shadow: none; background: var(--zm-paper); }
.zm-icon {
	width: 50px; height: 50px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--zm-tint), #f0f3f8); color: var(--zm-blue); font-size: 1.3rem; margin-bottom: 18px;
}

/* Haekchen-Liste */
.zm-check { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: 10px; }
.zm-check li { position: relative; padding-left: 32px; }
.zm-check li::before {
	content: "\f00c"; font-family: "Font Awesome 6 Free", "FontAwesome"; font-weight: 900; font-size: .72rem;
	position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center; background: var(--zm-tint); color: var(--zm-blue);
}
.zm-check-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 28px; }

/* Ablauf / Schritte */
.zm-steps { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); counter-reset: zmstep; }
.zm-steps li { position: relative; padding: 24px 22px 20px; background: var(--zm-surface); border: 1px solid var(--zm-line); border-radius: var(--zm-radius); counter-increment: zmstep; }
.zm-steps li::before {
	content: counter(zmstep, decimal-leading-zero); display: block; font-family: var(--zm-font-display); font-weight: 800; font-size: 1.9rem; line-height: 1;
	background: linear-gradient(90deg, var(--zm-blue), var(--zm-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px;
}
.zm-steps strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.zm-steps span { display: block; color: var(--zm-muted); font-size: .95rem; }

/* Zweispaltig: Text + Visual */
.zm-split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 992px) { .zm-split { grid-template-columns: 1fr 1fr; } .zm-split-wide { grid-template-columns: 1.1fr .9fr; } }
@media (min-width: 576px) { .zm-split .zm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.zm-split > * { min-width: 0; }

/* Kennzahlen / Fakten */
.zm-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 1.5rem 0; }
.zm-fact { background: var(--zm-surface); border: 1px solid var(--zm-line); border-radius: var(--zm-radius); padding: 20px 22px; }
.zm-fact strong { display: block; font-family: var(--zm-font-display); font-size: 1.45rem; overflow-wrap: anywhere; font-weight: 800; color: var(--zm-blue); line-height: 1.1; margin-bottom: 4px; }
.zm-fact span { color: var(--zm-muted); font-size: .93rem; }

/* Dunkles Band (z. B. CMS2Go auf der Startseite) */
.zm-band { background: linear-gradient(160deg, #003a80, #00254f); color: rgba(255, 255, 255, .85); }
.zm-band.zm-band-box { border-radius: 22px; padding: clamp(28px, 4vw, 48px); margin: 2rem 0; }
.content-middle .zm-band h2, .content-middle .zm-band h3, .zm-band h2, .zm-band h3 { color: #fff; }
.zm-band p { color: rgba(255, 255, 255, .8); }
.zm-band .zm-eyebrow { color: var(--zm-cyan); background: rgba(143, 182, 232, .12); }
.zm-band .zm-check li::before { background: rgba(143, 182, 232, .16); color: var(--zm-cyan); }
.zm-band .zm-section-head p { color: rgba(255, 255, 255, .75); }
.zm-band a:not(.btn) { color: #fff; }

/* CMS2Go Vorschau (gezeichnetes Browserfenster) */
.zm-browser { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .2); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.zm-browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef0f3; border-bottom: 1px solid var(--zm-line); }
.zm-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9ccd1; display: inline-block; }
.zm-browser-bar i:nth-child(2) { background: #c9ccd1; } .zm-browser-bar i:nth-child(3) { background: #004494; }
.zm-browser-bar span { margin-left: 12px; flex: 1; height: 20px; border-radius: 6px; background: #fff; font-size: .7rem; color: var(--zm-muted); line-height: 20px; padding-left: 10px; }
.zm-browser-body { display: grid; grid-template-columns: 30% 1fr; min-height: 260px; }
.zm-browser-side { background: #f5f6f8; border-right: 1px solid var(--zm-line); padding: 14px 10px; display: grid; gap: 8px; align-content: start; }
.zm-browser-side b { display: block; height: 10px; border-radius: 5px; background: #dde1e7; }
.zm-browser-side b.on { background: var(--zm-blue); }
.zm-browser-main { padding: 18px; display: grid; gap: 10px; align-content: start; }
.zm-browser-main .zm-tb { display: flex; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--zm-line); }
.zm-browser-main .zm-tb b { width: 22px; height: 18px; border-radius: 4px; background: #e8ebef; }
.zm-browser-main .zm-h { height: 16px; width: 60%; border-radius: 6px; background: var(--zm-ink); opacity: .85; }
.zm-browser-main .zm-l { height: 9px; border-radius: 5px; background: #e4e7eb; }
.zm-browser-main .zm-l.s { width: 70%; }
.zm-browser-main .zm-save { justify-self: end; margin-top: 8px; font-size: .72rem; font-weight: 700; color: #fff; background: #004494; border-radius: 6px; padding: 5px 12px; }
@media (max-width: 991.98px) { .zm-browser { transform: none; } }

/* Abschluss-Aufruf */
.zm-cta {
	position: relative; overflow: hidden; border-radius: 22px; padding: clamp(28px, 4vw, 52px);
	background: linear-gradient(120deg, #00377a, var(--zm-blue) 55%, #0b5bb5); color: #fff;
	display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: center; justify-content: space-between; margin-top: 2.5rem;
}
.zm-cta > div:first-child { flex: 1 1 340px; }
.zm-cta::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(255, 255, 255, .12) 0 2px, transparent 2px 46px); pointer-events: none; }
.content-middle .zm-cta h2, .zm-cta h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; }
.zm-cta p { color: rgba(255, 255, 255, .9); margin: 0; }
.zm-cta .zm-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }
.zm-cta .btn-light { font-weight: 700; }

/* Kontaktkacheln */
.zm-contact { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1.5rem 0 2rem; }
.zm-contact > a, .zm-contact > div {
	display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--zm-radius);
	background: var(--zm-paper); border: 1px solid var(--zm-line); color: var(--zm-ink); text-decoration: none;
}
.zm-contact > a:hover { border-color: var(--zm-blue); background: var(--zm-tint); color: var(--zm-ink); }
.zm-contact i { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--zm-surface); color: var(--zm-blue); font-size: 1.1rem; flex: 0 0 auto; box-shadow: var(--zm-shadow); }
.zm-contact strong { display: block; font-size: 1rem; }
.zm-contact span { display: block; font-size: .85rem; color: var(--zm-muted); }

/* Downloads */
.zm-file { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--zm-line); border-radius: var(--zm-radius); background: var(--zm-surface); text-decoration: none; color: var(--zm-ink); margin-bottom: 12px; }
.zm-file:hover { border-color: var(--zm-blue); background: var(--zm-tint); color: var(--zm-ink); }
.zm-file > i { font-size: 1.5rem; color: var(--zm-blue); width: 32px; text-align: center; }
.zm-file strong { display: block; }
.zm-file span { color: var(--zm-muted); font-size: .88rem; }
.zm-file .zm-dl { margin-left: auto; font-weight: 650; color: var(--zm-blue); white-space: nowrap; font-size: .92rem; }

/* Hinweis */
.zm-note { background: var(--zm-tint); border-left: 4px solid var(--zm-blue); border-radius: 10px; padding: 18px 22px; margin: 1.5rem 0; }
.zm-note p:last-child { margin-bottom: 0; }

/* Lange Texte (Impressum, Datenschutz, Lexikon) */
.zm-legal h2 { font-size: 1.2rem; margin-top: 2rem; }
.zm-legal h3 { font-size: 1.05rem; }
.zm-legal p, .zm-legal li { text-align: left; }
.zm-dl { display: grid; gap: 12px; margin: 1.5rem 0; }
@media (min-width: 768px) { .zm-dl { grid-template-columns: repeat(2, 1fr); } }
.zm-dl > div { background: var(--zm-paper); border-radius: var(--zm-radius-sm); padding: 14px 18px; }
.zm-dl dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--zm-blue); margin-bottom: 4px; }
.zm-dl dd { margin: 0; font-weight: 500; }

/* Branchen-Schlagworte */
.zm-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.zm-tags li { padding: 7px 14px; border-radius: 999px; background: var(--zm-paper); border: 1px solid var(--zm-line); font-size: .93rem; }

/* Zitat */
.zm-quote { margin: 2rem 0 0; padding: 22px 26px; border-radius: var(--zm-radius); background: var(--zm-paper); font-size: 1.12rem; font-style: italic; color: #3b3e44; }
.zm-quote cite { display: block; margin-top: 8px; font-size: .9rem; font-style: normal; color: var(--zm-muted); }

/* Karte (Anfahrt) */
.zm-map { border-radius: var(--zm-radius); overflow: hidden; border: 1px solid var(--zm-line); }

/* Kontaktformular-Modul */
.content-middle .panel-group { margin-top: 1.5rem; }
.content-middle .panel { border: 1px solid var(--zm-line); border-radius: var(--zm-radius); background: var(--zm-paper); box-shadow: none; overflow: hidden; }
.content-middle .panel-heading { background: transparent; border: 0; padding: 18px 24px 0; }
.content-middle .panel-title { font-size: 1.15rem; margin: 0; }
.content-middle .panel-title a { color: var(--zm-ink); text-decoration: none; }
.content-middle .panel-body { padding: 16px 24px 24px; }
.content-middle .panel-collapse.collapse.in, .content-middle .panel-collapse.collapse.show { display: block; }
.content-middle .form-control, .content-middle .form-select { border-radius: 10px; border-color: #cdd2da; padding: .7rem .9rem; }
.content-middle .form-control:focus { border-color: var(--zm-blue); box-shadow: 0 0 0 3px rgba(0, 68, 148, .15); }
.content-middle textarea.form-control { min-height: 150px; }
#frmContact .btn-sm { padding: .7rem 1.4rem; font-size: 1rem; }

/* ---------- Fussbereich (hell, damit das Logo ohne Rahmen steht) ---------- */
.footer { background: var(--zm-surface); color: var(--zm-muted); font-size: .94rem; padding: 64px 0 28px; margin-top: 0; border-top: 4px solid var(--zm-blue); }
.footer a { color: var(--zm-ink); text-decoration: none; }
.footer a:hover { color: var(--zm-blue); text-decoration: underline; }
.footer h2, .footer h3 { float: none; text-align: left; width: auto; }
.site-footer-logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.site-footer-logo img { width: auto; height: 52px; }
.site-footer-logo strong { color: var(--zm-ink); font-size: 1.05rem; font-weight: 700; }
.site-footer-logo:hover { text-decoration: none !important; }
.site-footer-brand p { max-width: 34ch; margin: 0; line-height: 1.6; }
.site-footer-tags { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 360px; }
.site-footer-tags li { padding: 5px 12px; border-radius: 999px; background: var(--zm-tint); color: var(--zm-blue); font-size: .82rem; font-weight: 600; }
.site-footer-col h2 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--zm-blue); margin: 6px 0 14px !important; font-weight: 700; }
.site-footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer-col address { margin: 0; line-height: 1.7; color: var(--zm-ink); }
.site-footer-contact li { display: flex; gap: 10px; align-items: center; }
.site-footer-contact i { width: 18px; color: var(--zm-blue); }
.site-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--zm-line); font-size: .86rem; color: var(--zm-muted); }
.site-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- Cookie-Hinweis ---------- */
#cookiedingsbums {
	left: 16px; right: 16px; bottom: 16px; width: auto; max-width: 980px; margin: 0 auto;
	background: var(--zm-surface); color: var(--zm-ink); outline: 0; border: 1px solid var(--zm-line);
	border-radius: 16px; box-shadow: 0 24px 60px rgba(26, 23, 27, .28); padding: 20px 22px; font-size: .9rem; text-align: left;
}
#cookiedingsbums strong { color: var(--zm-ink); font-size: 1.05rem; line-height: 1.8; }
#cookiedingsbums a { color: var(--zm-blue); text-decoration: underline; }
#cookiedingsbums .container { max-width: none; padding: 0; }
.cookiebutton { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-start; }
@media (min-width: 768px) { .cookiebutton { margin-top: 0; justify-content: flex-end; } }
#cookiedingsbumsCloser, #cookiedingsbums .btn-success {
	background: var(--zm-blue); border: 2px solid var(--zm-blue); color: #fff; width: auto; min-width: 128px;
	margin: 0; box-shadow: none; border-radius: 10px; font-weight: 650; font-size: .85rem;
}
#cookiedingsbums .btn-success + .btn-success { background: transparent; color: var(--zm-blue); }

/* ---------- Handy: etwas mehr Randabstand ---------- */
@media (max-width: 575.98px) {
	.website_bg .container { padding-left: 16px; padding-right: 16px; }
}
.content-middle .panel > .panel-heading { border-bottom: 0 !important; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.zm-browser { transform: none; }
	.zm-chip-1 { opacity: 1; }
	.zm-waves span { opacity: .35; }
	.zm-waves span:nth-child(2) { transform: scale(1.3); opacity: .2; }
	.zm-waves span:nth-child(3) { transform: scale(1.6); opacity: .12; }
	.zm-bar span { width: 100%; }
}
