/* ==========================================================================
   ZENVAR Design-Schicht für die Unterseiten (Fassung D)
   Lädt auf allen Seiten außer der Startseite. Die Unterseiten bringen ihr
   eigenes Klassensystem (.zx-*) mit eigenem Inline-CSS mit. Diese Datei
   ändert keine Inhalte, nur Farben, Flächen und Formen, damit die Seiten
   zur Startseite passen:

     Hero         dunkel, Punktwellen (ohne Hintergrundfoto), Lime-Knöpfe
     Abschnitte   helles Blatt mit runder Oberkante, Papier und Weiß im Wechsel
     Dunkle Karten (Simulationen, Team) bleiben dunkel: Akzent auf hellem Grund
     Abschluss    dunkel, Punktwellen

   Spezifität: Das Inline-CSS der Seiten steht im <body> und gewinnt bei
   Gleichstand. Deshalb beginnt jede Regel hier mit body.zh-site.
   Alle Größen in px (zenvar-ds.css setzt html auf 19 px).
   ========================================================================== */

/* --- Knopf von Zenvar Bot: rechts unten und kompakt (wie auf der Startseite) --- */
body.zh-bot-right #zenvar-anfrageassistent#zenvar-anfrageassistent.za-interface.za-quiet .za-launcher {
	left: auto !important;
	right: 16px !important;
	bottom: max(16px, env(safe-area-inset-bottom)) !important;
	padding: 8px !important;
	gap: 0 !important;
}
body.zh-bot-right #zenvar-anfrageassistent#zenvar-anfrageassistent.za-interface.za-quiet .za-launcher .za-entry-label {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
}

/* --- Tokens ----------------------------------------------------------------- */
body.zh-site .zx {
	--zh-ink: #0b1220;
	--zh-paper: #f7f5f0;
	--zh-sand: #eee9df;
	--zh-white: #ffffff;
	--zh-lime: #c9f06b;
	--zh-lime-deep: #b6e04a;
	--zh-slate: #3d4859;
	--zh-rule: #ddd8cc;
	--zh-r-sheet: 32px;
	--zh-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	background: var(--zh-paper);
}

/* --- Hero: dunkel, unten Platz für die runde Oberkante des Blatts ------------- */
body.zh-site .zx main .zx-hero {
	background: radial-gradient(90% 55% at 50% 0%, #18223a 0%, #0b1220 62%);
	padding-bottom: calc(clamp(72px, 7vw, 104px) + var(--zh-r-sheet));
}
body.zh-site .zx main .zx-hero.zx-hasbg { background: #070b14; }
body.zh-site .zx main .zx-hero .zx-ki { bottom: calc(16px + var(--zh-r-sheet)); }
body.zh-site .zx main .zx-hero::before { opacity: 0.6; }

/* Punktwellen (Canvas, von zenvar-home.js eingesetzt) */
body.zh-site .zh-dots { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--zh-ease); }
body.zh-site .zh-dots.is-ready { opacity: 1; }
body.zh-site .zh-dots canvas {
	position: absolute; left: 0; top: 0; display: block;
	image-rendering: pixelated; image-rendering: crisp-edges;
	-webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0, #000 31%, transparent 37%);
	mask-image: radial-gradient(circle at 50% 50%, #000 0, #000 31%, transparent 37%);
	-webkit-mask-size: var(--zh-cell, 10px) var(--zh-cell, 10px);
	mask-size: var(--zh-cell, 10px) var(--zh-cell, 10px);
	-webkit-mask-repeat: repeat; mask-repeat: repeat;
}
body.zh-site .zh-dots--hero {
	-webkit-mask-image: linear-gradient(90deg, #000 0, rgba(0, 0, 0, 0.55) 7%, transparent 19%, transparent 81%, rgba(0, 0, 0, 0.55) 93%, #000 100%);
	mask-image: linear-gradient(90deg, #000 0, rgba(0, 0, 0, 0.55) 7%, transparent 19%, transparent 81%, rgba(0, 0, 0, 0.55) 93%, #000 100%);
}
body.zh-site .zh-dots--cta {
	-webkit-mask-image: radial-gradient(62% 70% at 50% 50%, transparent 0%, transparent 50%, rgba(0, 0, 0, 0.6) 76%, #000 100%);
	mask-image: radial-gradient(62% 70% at 50% 50%, transparent 0%, transparent 50%, rgba(0, 0, 0, 0.6) 76%, #000 100%);
}
@media (max-width: 759px) {
	body.zh-site .zh-dots--hero {
		-webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0, transparent 16%);
		mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0, transparent 16%);
	}
	body.zh-site .zh-dots--cta {
		-webkit-mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.45) 22%, transparent 40%);
		mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.45) 22%, transparent 40%);
	}
}
@media (prefers-reduced-motion: reduce) { body.zh-site .zh-dots { transition: none; } }

/* --- Helles Blatt: alle Abschnitte zwischen Hero und Abschluss ---------------- */
body.zh-site .zx main section.zx-s {
	/* Die Seiten lesen ihre Farben aus diesen Variablen. Hier auf hell gestellt. */
	--k: #0b1220;
	--w: #0b1220;
	--t2: #3d4859;
	--t3: #555f70;
	--b1: #ddd8cc;
	--b2: rgba(11, 18, 32, 0.28);
	--f1: #ffffff;
	--f2: #f1ede4;
	--hl: transparent;
	--cg: #ffffff;
	--bg: #f7f5f0;
	--r: 16px;
	position: relative;
	z-index: 1;
	background: var(--zh-paper);
	color: var(--zh-ink);
}
body.zh-site .zx main section.zx-s:nth-of-type(even) { background: var(--zh-white); }
/* Erster Abschnitt: rundes Blatt, das in den Hero ragt */
body.zh-site .zx main .zx-hero + section.zx-s,
body.zh-site .zx main .zx-hero + * + section.zx-s:first-of-type {
	z-index: 2;
	margin-top: calc(-1 * var(--zh-r-sheet));
	border-radius: var(--zh-r-sheet) var(--zh-r-sheet) 0 0;
}
/* Letzter Abschnitt vor dem Abschluss: Sand (Bewahrer: ruhig, warm) */
body.zh-site .zx main section.zx-s:has(+ .zx-cta) { background: var(--zh-sand); }

body.zh-site .zx main section.zx-s :is(h1, h2, h3, h4) { color: var(--zh-ink); }
body.zh-site .zx main section.zx-s h2 { font-weight: 690; letter-spacing: -0.03em; }
body.zh-site .zx main section.zx-s a:not(.zx-btn) { color: var(--zh-ink); }
body.zh-site .zx main section.zx-s :is(.zx-faq a, .zx-note a, .zx-lead a) { text-decoration-color: var(--zh-lime-deep); text-decoration-thickness: 2px; }

/* Augenbraue über Überschriften: Punkt in Tinte statt Lime */
body.zh-site .zx main section.zx-s .zx-lead { color: var(--zh-slate); }
body.zh-site .zx main section.zx-s .zx-eb { color: var(--zh-slate); }
body.zh-site .zx main section.zx-s .zx-eb::before { background: var(--zh-ink); }

/* Knöpfe */
body.zh-site .zx .zx-btn { transition: background-color 0.15s var(--zh-ease), transform 0.15s var(--zh-ease); }
body.zh-site .zx .zx-btn:not(.g):hover { background: var(--zh-lime-deep); }
body.zh-site .zx .zx-btn:active { transform: translateY(1px); }
body.zh-site .zx main section.zx-s .zx-btn.g { color: var(--zh-ink) !important; box-shadow: inset 0 0 0 1.5px var(--zh-ink); }
body.zh-site .zx main section.zx-s .zx-btn.g:hover { background: rgba(11, 18, 32, 0.06); }

/* Karten und Flächen: weiß mit feiner Linie, Rundung wie auf der Startseite */
body.zh-site .zx main section.zx-s :is(.zx-card, .zx-pc, .zx-tile, .zx-c3 > div, .zx-calc > div, .zx-time > li > div) {
	box-shadow: inset 0 0 0 1px var(--zh-rule);
	background: var(--zh-white);
}
body.zh-site .zx main section.zx-s:nth-of-type(even) :is(.zx-card, .zx-pc, .zx-tile, .zx-c3 > div, .zx-calc > div) { background: var(--zh-paper); }
body.zh-site .zx main section.zx-s .zx-pc.hl { background: var(--zh-sand); box-shadow: inset 0 0 0 2px var(--zh-ink); }
body.zh-site .zx main section.zx-s :is(.zx-fld, .zx-chip) { background: var(--zh-paper); box-shadow: inset 0 0 0 1px var(--zh-rule); }
body.zh-site .zx main section.zx-s .zx-chip svg { color: var(--zh-ink); }

/* Symbolkreise und Haken: Tinte mit Lime (wie Nummern und Haken der Startseite) */
body.zh-site .zx main section.zx-s .zx-dot { background: var(--zh-ink); color: var(--zh-lime); box-shadow: none; }
body.zh-site .zx main section.zx-s .zx-dot b { color: inherit; }
body.zh-site .zx main section.zx-s .zx-time li:last-child .zx-dot { background: var(--zh-lime); color: var(--zh-ink); }
body.zh-site .zx main section.zx-s .zx-colh b { background: var(--zh-paper); box-shadow: inset 0 0 0 1px var(--zh-rule); color: var(--zh-ink); }
body.zh-site .zx main section.zx-s .zx-colh.on b { background: var(--zh-lime); box-shadow: none; }
body.zh-site .zx main section.zx-s .zx-ck li svg,
body.zh-site .zx main section.zx-s .zx-ck li > span:first-child svg { color: var(--zh-ink); }
body.zh-site .zx main section.zx-s .zx-ico { background: var(--zh-ink); color: var(--zh-lime); box-shadow: none; }

/* Pillen (RADAR, FLOW, OPERATE) */
body.zh-site .zx main section.zx-s .zx-ln { color: var(--zh-ink); background: var(--zh-lime); box-shadow: none; }
body.zh-site .zx main section.zx-s .zx-ln::before { background: var(--zh-ink); box-shadow: none; }

/* Dunkle Inseln bleiben dunkel: Simulationsfenster, Notiz, Personenkarten */
body.zh-site .zx main section.zx-s :is(.zx-win, .zx-note2, .zx-per) {
	--k: #0b1220;
	--w: #f8fafc;
	--t2: #c0c7d1;
	--t3: rgba(192, 199, 209, 0.82);
	--b1: rgba(192, 199, 209, 0.17);
	--b2: rgba(192, 199, 209, 0.3);
	--f1: rgba(248, 250, 252, 0.055);
	--f2: rgba(248, 250, 252, 0.085);
	--hl: rgba(248, 250, 252, 0.11);
	--cg: linear-gradient(180deg, rgba(248, 250, 252, 0.085), rgba(248, 250, 252, 0.035) 70%);
	color: var(--w);
	background: #0e1626;
	box-shadow: 0 30px 60px -36px rgba(11, 18, 32, 0.5);
}
body.zh-site .zx main section.zx-s :is(.zx-win, .zx-note2, .zx-per) :is(h2, h3, h4) { color: #f8fafc; }
body.zh-site .zx main section.zx-s :is(.zx-win, .zx-note2, .zx-per) a:not(.zx-btn) { color: #f8fafc; }
body.zh-site .zx main section.zx-s :is(.zx-win, .zx-note2, .zx-per) .zx-dot { background: var(--zh-lime); color: var(--zh-ink); }
body.zh-site .zx main section.zx-s :is(.zx-win, .zx-note2, .zx-per) .zx-fld { background: rgba(248, 250, 252, 0.06); box-shadow: inset 0 0 0 1px rgba(192, 199, 209, 0.2); }
body.zh-site .zx main section.zx-s .zx-stage::before { display: none; }

/* Abschluss: dunkel wie auf der Startseite */
body.zh-site .zx main .zx-cta { background: radial-gradient(80% 70% at 50% 100%, #18223a 0%, #0b1220 65%); }
body.zh-site .zx main .zx-cta::before { opacity: 0.5; }

/* Fokus sichtbar */
body.zh-site .zx main section.zx-s :focus-visible { outline: 3px solid var(--zh-ink); outline-offset: 3px; }
body.zh-site .zx :is(.zx-hero, .zx-cta) :focus-visible { outline: 3px solid var(--zh-lime); outline-offset: 3px; }
