/*
Theme Name: automatisiere.es (Divi Child)
Theme URI: https://automatisiere.es/
Description: Child-Theme fuer automatisiere.es – helles, klar gerastertes Layout in Schiefergrau mit Karmesin als einziger Akzentfarbe. Beide Werte stammen aus dem Logo. Das gesamte Aussehen der Seite steckt hier; die Inhalte kommen aus ae-data/ ueber ae-provision.
Author: PANART Marketing OUE
Template: Divi
Version: 0.2.0
Text Domain: automatisiere-child
*/

/* ==========================================================================
   Gestaltungsmerkmale (Tokens)

   Heller Grund mit genau EINER Akzentfarbe. Karmesin traegt alles, was
   Handlung ausloest oder Kernaussage ist – nichts sonst. Sobald eine zweite
   Akzentfarbe dazukaeme, verloere die erste ihre Signalwirkung.

   Beide Grundfarben sind aus dem Logo gemessen: das Karmesin der Wortmarke
   und das Schiefergrau der Figur.
   ========================================================================== */

:root {
	--ae-black: #FFFFFF;
	--ae-ink: #FFFFFF;
	--ae-surface: #F7F9FA;
	--ae-surface-2: #ECEFF1;
	--ae-line: rgba(54, 71, 79, .14);
	--ae-line-strong: rgba(54, 71, 79, .30);

	--ae-text: #36474F;
	--ae-muted: #5C6B73;
	--ae-dim: #6B7A82;

	--ae-akzent: #E71E62;
	--ae-akzent-hell: #C4104F;
	--ae-akzent-tief: #B3124A;
	--ae-akzent-schimmer: rgba(231, 30, 98, .12);

	/* Getoenter Abschnitt: setzt Kapitel voneinander ab, ohne eine zweite
	   Akzentfarbe einzufuehren. */
	--ae-paper: #ECEFF1;
	--ae-paper-ink: #36474F;
	--ae-paper-muted: #5C6B73;
	--ae-paper-line: rgba(54, 71, 79, .16);

	/* Die dunkle Flaeche. Sie gehoert der Motorhaube, dem Fussbereich und der
	   Spielkarte der Demos – dort ist Dunkelheit Bedeutung, nicht Dekoration:
	   Man schaut in die Maschine. Ueberall sonst bleibt es hell. */
	--ae-tiefe: #263238;
	--ae-tiefe-text: #CFD8DC;
	--ae-akzent-auf-dunkel: #FF6E9C;

	/* Aliase, an denen sich die Demo-Plugins bedienen. */
	--ae-dunkel: #36474F;
	--ae-linie: #CFD8DC;
	--ae-getoent: #ECEFF1;
	--ae-grund: #FFFFFF;

	--ae-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--ae-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

	--ae-radius: 4px;
	--ae-radius-lg: 8px;
	--ae-maxw: 1180px;
	--ae-gap: clamp(48px, 7vw, 104px);
}

/* ==========================================================================
   Grundlagen
   ========================================================================== */

body,
body.et-db #et-boc .et-l {
	background: var(--ae-ink);
	color: var(--ae-text);
	font-family: var(--ae-font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-size: 17px;
	line-height: 1.65;
	letter-spacing: -.005em;
}

#page-container,
#et-main-area {
	background: var(--ae-ink);
}

h1, h2, h3, h4, h5, h6,
.et_pb_text h1, .et_pb_text h2, .et_pb_text h3, .et_pb_text h4 {
	font-family: var(--ae-font);
	color: var(--ae-text);
	font-weight: 700;
	letter-spacing: -.028em;
	line-height: 1.08;
	text-wrap: balance;
}

h2 { font-size: clamp(30px, 4.2vw, 50px); padding-bottom: 0; }
h3 { font-size: clamp(20px, 2.2vw, 25px); letter-spacing: -.02em; padding-bottom: 0; }

p { color: var(--ae-text); }

a { color: var(--ae-akzent); text-decoration: none; }
a:hover { color: var(--ae-akzent-hell); }

::selection { background: var(--ae-akzent); color: #fff; }

:focus-visible {
	outline: 2px solid var(--ae-akzent);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Divi-Grundgeruest zaehmen: wir setzen Abstaende selbst. */
.et_pb_section { padding: 0; background: transparent; }
.et_pb_row {
	width: 92%;
	max-width: var(--ae-maxw);
	padding: 0;
	margin: 0 auto;
}
.et_pb_column { margin-bottom: 0 !important; }
.et_pb_text { line-height: inherit; }
.et_pb_text_inner > *:last-child { margin-bottom: 0; }

/* Jeder Abschnitt bekommt seinen Rhythmus ueber die ae-*-Klassen. */
.et_pb_section[class*="ae-"] > .et_pb_row { padding: var(--ae-gap) 0; }

/* ==========================================================================
   Kopfbereich
   ========================================================================== */

#main-header,
#main-header.et-fixed-header {
	background: rgba(255, 255, 255, .88) !important;
	backdrop-filter: saturate(140%) blur(14px);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	box-shadow: none !important;
	border-bottom: 1px solid var(--ae-line);
	transition: background .25s ease, border-color .25s ease;
}

#main-header .container { width: 92%; max-width: var(--ae-maxw); }

/* Bildlogo, mit der Wortmarke als Rueckfall.

   Der Provisioner hinterlegt content/assets/logo.png in Divi. Ist es da, wird
   es gezeigt. Fehlt es – etwa vor der ersten Provisionierung –, zeigt Divi
   sein eigenes «D»; dagegen steht der Name als Text, zweifarbig wie im Logo.
   Die Pseudoelemente liegen hinter dem Bild und werden davon verdeckt. */
.logo_container a {
	position: relative;
	display: inline-flex;
	align-items: baseline;
	font-family: var(--ae-font);
	font-weight: 800;
	font-size: clamp(19px, 2.1vw, 24px);
	letter-spacing: -.04em;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
}
.logo_container a::before {
	content: "automatisiere";
	color: var(--ae-text);
}
.logo_container a::after {
	content: ".es";
	color: var(--ae-akzent);
}
.logo_container a:hover::after { color: var(--ae-akzent-hell); }

/* Sobald ein Bildlogo da ist, verschwindet die Wortmarke.
   Ohne diese Regel steht der Name zweimal nebeneinander – einmal als Text,
   einmal im Bild. Genau das war schon der Fall. */
.logo_container a:has(img)::before,
.logo_container a:has(img)::after { content: none; }

/* Logohoehe. Divi schreibt aus der Einstellung «logo_height» ein
   `#logo { height: 54% }` als Inline-CSS in den <head> – gleiche Spezifitaet
   wie unsere Regel, aber spaeter im Dokument, also gewinnt Divi. Die
   Prozenthoehe bezieht sich auf einen Container mit `height: 100%`, wodurch
   das Logo aus der Kopfzeile herausragte. Deshalb hier hoehere Spezifitaet
   UND !important; beides zusammen ist noetig, eines allein reicht nicht.

   Ganz oben darf es gross sein – dort ist Platz und dort schaut man hin.
   Sobald gescrollt wird, schrumpft es auf die Haelfte: Divi haengt dem
   Kopfbereich dann .et-fixed-header an (Body-Klasse et_fixed_nav). */
#main-header #logo,
.et-fixed-header #logo {
	max-height: 92px !important;
	height: auto !important;
	width: auto;
	transition: max-height .28s ease;
}

#main-header.et-fixed-header #logo,
.et-fixed-header #main-header #logo {
	max-height: 46px !important;
}

@media (prefers-reduced-motion: reduce) {
	#main-header #logo { transition: none; }
}

#top-menu li a,
#main-header .et-fixed-header #top-menu li a {
	color: var(--ae-text) !important;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: -.01em;
	opacity: .82;
	padding-bottom: 20px;
	transition: opacity .18s ease, color .18s ease;
}

#top-menu li a:hover { opacity: 1; color: var(--ae-text) !important; }

#top-menu li.current-menu-item > a {
	color: var(--ae-text) !important;
	opacity: 1;
}

#top-menu li.current-menu-item > a::after {
	content: "";
	display: block;
	height: 2px;
	margin-top: 4px;
	background: var(--ae-akzent);
}

/* Handlungsknopf in der Navigation */
#top-menu li.ae-nav-cta > a {
	background: var(--ae-akzent);
	color: #fff !important;
	opacity: 1;
	padding: 9px 18px !important;
	border-radius: var(--ae-radius);
	font-weight: 600;
	transition: background .18s ease, transform .18s ease;
}
#top-menu li.ae-nav-cta > a:hover { background: var(--ae-akzent-hell); transform: translateY(-1px); }
#top-menu li.ae-nav-cta > a::after { display: none; }

.et_mobile_menu {
	background: var(--ae-surface) !important;
	border-top: 3px solid var(--ae-akzent) !important;
}
.et_mobile_menu li a { color: var(--ae-text) !important; border-bottom: 1px solid var(--ae-line); }
.mobile_menu_bar::before { color: var(--ae-text) !important; }

/* ==========================================================================
   Sprachumschalter
   ========================================================================== */

.ae-langswitch { position: relative; }

.ae-langswitch-dd { position: relative; display: inline-block; }

.ae-langswitch-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: transparent;
	border: 1px solid var(--ae-line);
	border-radius: var(--ae-radius);
	color: var(--ae-text);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	padding: 6px 10px;
	cursor: pointer;
	transition: border-color .18s ease, background .18s ease;
}
.ae-langswitch-btn:hover { border-color: var(--ae-line-strong); background: rgba(54, 71, 79, .04); }

.ae-flag {
	display: inline-block;
	width: 18px;
	height: 12px;
	overflow: hidden;
	border-radius: 1px;
	box-shadow: 0 0 0 1px rgba(54, 71, 79, .18);
}
.ae-flag svg { display: block; width: 100%; height: 100%; }

.ae-langswitch-caret { opacity: .6; }

.ae-langswitch-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 168px;
	background: var(--ae-surface);
	border: 1px solid var(--ae-line);
	border-radius: var(--ae-radius-lg);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
	padding: 6px;
	display: none;
	z-index: 9999;
}
.ae-langswitch-dd.is-open .ae-langswitch-menu { display: block; }

.ae-langswitch-opt {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: var(--ae-radius);
	color: var(--ae-text) !important;
	font-size: 14px;
	line-height: 1.2;
}
.ae-langswitch-opt:hover { background: rgba(54, 71, 79, .06); }
.ae-langswitch-opt.is-active { color: var(--ae-akzent) !important; font-weight: 600; }

/* ==========================================================================
   Bausteine
   ========================================================================== */

.ae-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ae-akzent);
	margin-bottom: 14px;
}

.ae-sub {
	color: var(--ae-muted);
	font-size: clamp(17px, 1.6vw, 19px);
	max-width: 62ch;
	margin-top: 14px;
}

.ae-center { text-align: center; }

/* Knoepfe */
.ae-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -.01em;
	padding: 15px 26px;
	border-radius: var(--ae-radius);
	border: 1px solid transparent;
	transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
	line-height: 1.2;
}

.ae-btn--primary {
	background: var(--ae-akzent);
	color: #fff !important;
	box-shadow: 0 10px 26px -12px var(--ae-akzent-tief);
}
.ae-btn--primary:hover { background: var(--ae-akzent-hell); color: #fff !important; transform: translateY(-2px); }

.ae-btn--ghost {
	background: transparent;
	color: var(--ae-text) !important;
	border-color: var(--ae-line-strong);
}
.ae-btn--ghost:hover { border-color: var(--ae-text); color: var(--ae-text) !important; transform: translateY(-2px); }

.ae-btn--sm { font-size: 14px; padding: 10px 18px; }

/* Marker im Fliesstext: der einzige Ort, an dem Orange als Flaeche im Text
   auftaucht.

   Bewusst OHNE white-space: nowrap – eine hervorgehobene Passage kann mehrere
   Woerter lang sein und muss umbrechen duerfen, sonst schiebt sie die
   Ueberschrift aus dem Bild. box-decoration-break zeichnet den Hintergrund
   dabei auf jeder Zeile sauber neu. */
.ae-mark {
	font-style: normal;
	color: var(--ae-akzent);
	/* Auf hellem Grund wird aus dem breiten Balken des dunklen Entwurfs
	   schnell ein Textmarkerstreifen. Deshalb duenner und tiefer gesetzt: eine
	   Unterstreichung, die die Buchstaben nicht anfasst. */
	background: linear-gradient(var(--ae-akzent), var(--ae-akzent)) 0 88% / 100% .09em no-repeat;
	background-color: transparent;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	padding: 0 .04em;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.ae-hero > .et_pb_row {
	padding: clamp(96px, 13vw, 168px) 0 clamp(64px, 8vw, 104px) !important;
	position: relative;
}

.ae-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(900px 480px at 78% -8%, rgba(231, 30, 98, .18), transparent 62%),
		radial-gradient(700px 420px at 8% 4%, rgba(231, 30, 98, .07), transparent 58%),
		var(--ae-black);
	border-bottom: 1px solid var(--ae-line);
}

/* Raster im Hintergrund – ein Prozessblatt, das durchscheint. */
.ae-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(54, 71, 79, .045) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(54, 71, 79, .045) 1px, transparent 1px);
	background-size: 72px 72px;
	mask-image: radial-gradient(circle at 60% 30%, #000 12%, transparent 74%);
	-webkit-mask-image: radial-gradient(circle at 60% 30%, #000 12%, transparent 74%);
	pointer-events: none;
}

.ae-hero-inner { position: relative; max-width: 900px; }

.ae-pill {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	/* Auf hellem Grund braucht der Text den tieferen Ton: Karmesin auf
	   Karmesin-Schimmer ergaebe einen Kontrast von 1 zu 1. */
	color: var(--ae-akzent-tief);
	background: rgba(231, 30, 98, .10);
	border: 1px solid rgba(231, 30, 98, .34);
	border-radius: 100px;
	padding: 7px 15px;
	margin-bottom: 26px;
}
.ae-pill::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ae-akzent);
	box-shadow: 0 0 0 4px rgba(231, 30, 98, .22);
}

.ae-hero-headline {
	font-size: clamp(40px, 7.2vw, 82px);
	line-height: .99;
	letter-spacing: -.038em;
	font-weight: 800;
	margin: 0 0 22px;
	padding: 0;
}

.ae-hero-text p {
	font-size: clamp(18px, 2vw, 21px);
	line-height: 1.55;
	color: var(--ae-muted);
	max-width: 60ch;
	margin-bottom: 16px;
}
.ae-hero-text strong { color: var(--ae-text); font-weight: 600; }

.ae-hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}

.ae-hero-note {
	margin-top: 18px;
	font-size: 14px;
	color: var(--ae-dim);
}

.ae-swiss {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 26px;
	font-size: 14px;
	color: var(--ae-muted);
}
.ae-flag-ch { width: 16px; height: 16px; flex: none; }

/* Kennzahlenzeile unter dem Hero */
.ae-hero-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 40px;
	margin-top: 46px;
	padding-top: 26px;
	border-top: 1px solid var(--ae-line);
	list-style: none;
}
.ae-hero-facts li {
	font-size: 14px;
	color: var(--ae-muted);
	display: flex;
	align-items: center;
	gap: 9px;
}
.ae-hero-facts li::before {
	content: "";
	width: 5px;
	height: 5px;
	background: var(--ae-akzent);
	transform: rotate(45deg);
	flex: none;
}

/* ==========================================================================
   Abschnittsvarianten
   ========================================================================== */

.ae-paper {
	background: var(--ae-paper);
	color: var(--ae-paper-ink);
}
.ae-paper h2, .ae-paper h3, .ae-paper p, .ae-paper li { color: var(--ae-paper-ink); }
.ae-paper .ae-sub, .ae-paper .ae-note { color: var(--ae-paper-muted); }
.ae-paper .ae-card {
	background: #fff;
	border-color: var(--ae-paper-line);
	box-shadow: 0 1px 2px rgba(54, 71, 79, .05);
}
.ae-paper .ae-card p { color: var(--ae-paper-muted); }
.ae-paper .ae-btn--ghost { color: var(--ae-paper-ink) !important; border-color: rgba(54, 71, 79, .28); }
.ae-paper .ae-btn--ghost:hover { border-color: var(--ae-paper-ink); }

.ae-tint {
	background:
		linear-gradient(180deg, rgba(231, 30, 98, .05), transparent 60%),
		var(--ae-surface);
	border-top: 1px solid var(--ae-line);
	border-bottom: 1px solid var(--ae-line);
}

/* ==========================================================================
   Aussage-Abschnitt (die harte Kante)
   ========================================================================== */

.ae-statement { background: var(--ae-black); border-block: 1px solid var(--ae-line); }

.ae-statement-inner { max-width: 940px; }

.ae-statement-quote {
	font-size: clamp(28px, 4.4vw, 46px);
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: -.032em;
	margin: 0 0 22px;
	border-left: 3px solid var(--ae-akzent);
	padding-left: clamp(18px, 3vw, 34px);
}

.ae-statement-body p {
	color: var(--ae-muted);
	font-size: 18px;
	max-width: 66ch;
	padding-left: clamp(21px, 3vw, 37px);
}

/* ==========================================================================
   Problemliste
   ========================================================================== */

.ae-pains { display: grid; gap: 1px; background: var(--ae-line); border: 1px solid var(--ae-line); border-radius: var(--ae-radius-lg); overflow: hidden; margin-top: 42px; }

.ae-pain {
	background: var(--ae-ink);
	padding: 26px 28px;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 18px;
	align-items: start;
	transition: background .2s ease;
}
.ae-pain:hover { background: var(--ae-surface); }

.ae-pain-mark {
	font-family: var(--ae-mono);
	font-size: 13px;
	font-weight: 600;
	color: var(--ae-akzent);
	padding-top: 3px;
	letter-spacing: .04em;
}

.ae-pain h3 { font-size: 19px; margin: 0 0 6px; }
.ae-pain p { color: var(--ae-muted); font-size: 16px; margin: 0; }

.ae-paper .ae-pains { background: var(--ae-paper-line); border-color: var(--ae-paper-line); }
.ae-paper .ae-pain { background: #fff; }
.ae-paper .ae-pain:hover { background: #FAF9F7; }
.ae-paper .ae-pain p { color: var(--ae-paper-muted); }

/* ==========================================================================
   Karten-Raster
   ========================================================================== */

.ae-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	margin-top: 46px;
}

.ae-card {
	background: var(--ae-surface);
	border: 1px solid var(--ae-line);
	border-radius: var(--ae-radius-lg);
	padding: 30px 28px;
	position: relative;
	transition: border-color .22s ease, transform .22s ease, background .22s ease;
}
.ae-card:hover { border-color: rgba(231, 30, 98, .48); transform: translateY(-3px); }

.ae-card-no {
	font-family: var(--ae-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	color: var(--ae-akzent);
	display: block;
	margin-bottom: 16px;
}

.ae-card h3 { margin: 0 0 10px; }
.ae-card p { color: var(--ae-muted); font-size: 16px; margin: 0; }

.ae-ic {
	width: 26px;
	height: 26px;
	color: var(--ae-akzent);
	margin-bottom: 14px;
	display: block;
}

/* ==========================================================================
   Ablauf (Schritte)
   ========================================================================== */

.ae-steps {
	display: grid;
	gap: 0;
	margin-top: 50px;
	counter-reset: ae-step;
}

.ae-step {
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: clamp(18px, 3vw, 38px);
	padding: 32px 0;
	border-top: 1px solid var(--ae-line);
	align-items: start;
}
.ae-step:last-child { border-bottom: 1px solid var(--ae-line); }

.ae-step-no {
	font-family: var(--ae-mono);
	font-size: clamp(34px, 5vw, 46px);
	font-weight: 700;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1px var(--ae-akzent);
	letter-spacing: -.04em;
}

.ae-step h3 { margin: 0 0 10px; font-size: clamp(21px, 2.4vw, 26px); }
.ae-step p { color: var(--ae-muted); max-width: 68ch; margin: 0 0 10px; }
.ae-step p:last-child { margin-bottom: 0; }

.ae-step-meta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ae-akzent);
	border: 1px solid rgba(231, 30, 98, .34);
	border-radius: 100px;
	padding: 5px 13px;
}

.ae-paper .ae-step { border-color: var(--ae-paper-line); }
.ae-paper .ae-step p { color: var(--ae-paper-muted); }

/* ==========================================================================
   Branchen
   ========================================================================== */

.ae-sectors {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 20px;
	margin-top: 46px;
}

.ae-sector {
	display: flex;
	flex-direction: column;
	background: var(--ae-surface);
	border: 1px solid var(--ae-line);
	border-radius: var(--ae-radius-lg);
	padding: 32px 28px;
	transition: border-color .22s ease, transform .22s ease;
}
.ae-sector:hover { border-color: rgba(231, 30, 98, .48); transform: translateY(-3px); }

.ae-sector .ae-ic { width: 30px; height: 30px; }

.ae-sector h3 { margin: 0 0 10px; }
.ae-sector p { color: var(--ae-muted); font-size: 16px; margin: 0 0 18px; }

.ae-sector-list {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	display: grid;
	gap: 9px;
}
.ae-sector-list li {
	position: relative;
	padding-left: 20px;
	font-size: 15px;
	color: var(--ae-muted);
}
.ae-sector-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .55em;
	width: 8px;
	height: 1px;
	background: var(--ae-akzent);
}

.ae-sector-link {
	margin-top: auto;
	font-weight: 600;
	font-size: 15px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.ae-sector-link span { transition: transform .18s ease; display: inline-block; }
.ae-sector-link:hover span { transform: translateX(4px); }

.ae-paper .ae-sector { background: #fff; border-color: var(--ae-paper-line); }
.ae-paper .ae-sector p, .ae-paper .ae-sector-list li { color: var(--ae-paper-muted); }

/* ==========================================================================
   Szenarien (ausdruecklich als Beispiel gekennzeichnet)
   ========================================================================== */

.ae-scenarios {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
	gap: 20px;
	margin-top: 46px;
}

.ae-scenario {
	background: var(--ae-surface);
	border: 1px solid var(--ae-line);
	border-radius: var(--ae-radius-lg);
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.ae-scenario-head {
	padding: 20px 26px;
	border-bottom: 1px solid var(--ae-line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: rgba(54, 71, 79, .02);
}

.ae-scenario-tag {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ae-dim);
	border: 1px solid var(--ae-line-strong);
	border-radius: 3px;
	padding: 3px 8px;
	flex: none;
}

.ae-scenario-head h3 { font-size: 18px; margin: 0; }

.ae-scenario-body { padding: 24px 26px; display: grid; gap: 18px; }

.ae-scenario-row { display: grid; gap: 5px; }

.ae-scenario-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--ae-dim);
}

.ae-scenario-row p { margin: 0; font-size: 16px; color: var(--ae-muted); }

.ae-scenario-row--result p { color: var(--ae-text); font-weight: 500; }
.ae-scenario-row--result .ae-scenario-label { color: var(--ae-akzent); }

.ae-scenario-foot {
	margin-top: auto;
	padding: 14px 26px 20px;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--ae-dim);
	border-top: 1px solid var(--ae-line);
}

/* ==========================================================================
   Kennzahlen
   ========================================================================== */

.ae-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 1px;
	background: var(--ae-line);
	border: 1px solid var(--ae-line);
	border-radius: var(--ae-radius-lg);
	overflow: hidden;
	margin-top: 46px;
}

.ae-stat { background: var(--ae-ink); padding: 30px 26px; }

.ae-stat-value {
	display: block;
	font-size: clamp(32px, 4.4vw, 44px);
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: 1;
	color: var(--ae-akzent);
	margin-bottom: 10px;
}

.ae-stat-label { display: block; font-size: 15px; color: var(--ae-muted); line-height: 1.45; }

/* ==========================================================================
   Person
   ========================================================================== */

.ae-about {
	display: grid;
	grid-template-columns: minmax(220px, 320px) 1fr;
	gap: clamp(28px, 5vw, 64px);
	align-items: start;
}

/* Bewusst OHNE festes Seitenverhaeltnis: Ein Portrait wird sonst je nach
   Bildformat oben oder unten beschnitten – bei einer Person genau das, was
   man nicht will. Die Breite gibt die Spalte vor, die Hoehe folgt dem Bild. */
.ae-portrait {
	position: relative;
	border-radius: var(--ae-radius-lg);
	overflow: hidden;
	border: 1px solid var(--ae-line);
	background: var(--ae-surface-2);
	min-height: 260px;
}
.ae-portrait img { width: 100%; height: auto; display: block; }

/* Platzhalter, solange kein Portraitfoto hinterlegt ist. */
.ae-portrait-empty {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--ae-dim);
	font-size: 13px;
	letter-spacing: .06em;
	text-transform: uppercase;
	background-image:
		linear-gradient(135deg, rgba(54, 71, 79, .03) 25%, transparent 25%, transparent 50%, rgba(54, 71, 79, .03) 50%, rgba(54, 71, 79, .03) 75%, transparent 75%);
	background-size: 14px 14px;
}

.ae-about-body p { color: var(--ae-muted); max-width: 66ch; margin-bottom: 16px; }
.ae-about-body p:first-of-type { color: var(--ae-text); font-size: 19px; }

.ae-about-facts {
	list-style: none;
	margin: 26px 0 0;
	padding: 22px 0 0;
	border-top: 1px solid var(--ae-line);
	display: grid;
	gap: 12px;
}
.ae-about-facts li { display: grid; grid-template-columns: 150px 1fr; gap: 14px; font-size: 15px; color: var(--ae-muted); }
.ae-about-facts b { color: var(--ae-text); font-weight: 600; }

/* ==========================================================================
   Bilder
   ========================================================================== */

/* Einzelnes Bild mit Legende. */
.ae-photo {
	margin: 0;
	border-radius: var(--ae-radius-lg);
	overflow: hidden;
	border: 1px solid var(--ae-line);
	background: var(--ae-surface-2);
}

.ae-photo img {
	display: block;
	width: 100%;
	height: auto;
}

/* Bildausschnitt festlegen, wo das Seitenverhaeltnis sonst springt. */
.ae-photo--wide img { aspect-ratio: 21 / 9; object-fit: cover; }
.ae-photo--film img { aspect-ratio: 16 / 9; object-fit: cover; }

.ae-photo figcaption {
	padding: 14px 20px 16px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--ae-dim);
	border-top: 1px solid var(--ae-line);
	background: var(--ae-surface);
}

.ae-paper .ae-photo { border-color: var(--ae-paper-line); background: #fff; }
.ae-paper .ae-photo figcaption { color: var(--ae-paper-muted); border-color: var(--ae-paper-line); background: #fff; }

/* Bild und Text nebeneinander. */
.ae-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

.ae-split--flip .ae-split-media { order: 2; }

.ae-split-media {
	border-radius: var(--ae-radius-lg);
	overflow: hidden;
	border: 1px solid var(--ae-line);
	background: var(--ae-surface-2);
	margin: 0;
}
.ae-split-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ae-split-media figcaption {
	padding: 12px 18px 14px;
	font-size: 13px;
	color: var(--ae-dim);
	border-top: 1px solid var(--ae-line);
}

.ae-split-body h2 { margin-bottom: 16px; }
.ae-split-body p { color: var(--ae-muted); margin-bottom: 14px; max-width: 56ch; }
.ae-split-body p:last-child { margin-bottom: 0; }

.ae-split-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 11px; }
.ae-split-list li { position: relative; padding-left: 22px; color: var(--ae-muted); font-size: 16px; }
.ae-split-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .6em;
	width: 9px;
	height: 1px;
	background: var(--ae-akzent);
}

.ae-paper .ae-split-media { border-color: var(--ae-paper-line); background: #fff; }
.ae-paper .ae-split-body p, .ae-paper .ae-split-list li { color: var(--ae-paper-muted); }
.ae-paper .ae-split-media figcaption { color: var(--ae-paper-muted); border-color: var(--ae-paper-line); }

/* Bild im Hero: rechts neben dem Text, auf schmalen Bildschirmen darunter. */
.ae-hero--media .ae-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.ae-hero-media {
	position: relative;
	margin: 0;
	border-radius: var(--ae-radius-lg);
	overflow: hidden;
	border: 1px solid var(--ae-line-strong);
	background: var(--ae-surface-2);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.ae-hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

@media (max-width: 900px) {
	.ae-split { grid-template-columns: 1fr; }
	.ae-split--flip .ae-split-media { order: 0; }
	.ae-hero--media .ae-hero-grid { grid-template-columns: 1fr; }
	.ae-hero-media { max-width: 380px; }
}

/* ==========================================================================
   Terminbuchung
   ========================================================================== */

.ae-booking {
	background: var(--ae-surface);
	border: 1px solid var(--ae-line);
	border-radius: var(--ae-radius-lg);
	overflow: hidden;
	margin-top: 40px;
}

.ae-booking-head { padding: 28px 30px 0; }
.ae-booking-head h3 { margin: 0 0 8px; }
.ae-booking-head p { color: var(--ae-muted); margin: 0; max-width: 60ch; }

.ae-booking-frame { padding: 22px 18px 26px; min-height: 200px; }
.ae-booking-frame iframe { width: 100%; min-height: 660px; border: 0; display: block; border-radius: var(--ae-radius); }

/* Einwilligungs-Schranke: erst nach Klick wird von cal.com geladen. */
.ae-consent {
	border: 1px dashed var(--ae-line-strong);
	border-radius: var(--ae-radius);
	padding: 34px 28px;
	text-align: center;
	display: grid;
	gap: 14px;
	justify-items: center;
}
.ae-consent p { color: var(--ae-muted); font-size: 15px; max-width: 52ch; margin: 0; }
.ae-consent-alt { font-size: 14px; color: var(--ae-dim); }

/* ==========================================================================
   Haeufige Fragen
   ========================================================================== */

.ae-faq { margin-top: 46px; border-top: 1px solid var(--ae-line); }

.ae-faq-item { border-bottom: 1px solid var(--ae-line); }

.ae-faq-item summary {
	cursor: pointer;
	list-style: none;
	padding: 22px 44px 22px 0;
	font-size: clamp(17px, 1.9vw, 20px);
	font-weight: 600;
	letter-spacing: -.015em;
	position: relative;
	transition: color .18s ease;
}
.ae-faq-item summary::-webkit-details-marker { display: none; }
.ae-faq-item summary:hover { color: var(--ae-akzent); }

.ae-faq-item summary::after {
	content: "";
	position: absolute;
	right: 6px;
	top: 50%;
	width: 12px;
	height: 12px;
	margin-top: -6px;
	border-right: 2px solid var(--ae-akzent);
	border-bottom: 2px solid var(--ae-akzent);
	transform: rotate(45deg);
	transition: transform .22s ease;
}
.ae-faq-item[open] summary::after { transform: rotate(-135deg); }

.ae-faq-a { padding: 0 44px 24px 0; }
.ae-faq-a p { color: var(--ae-muted); max-width: 74ch; margin: 0 0 12px; }
.ae-faq-a p:last-child { margin-bottom: 0; }

.ae-paper .ae-faq, .ae-paper .ae-faq-item { border-color: var(--ae-paper-line); }
.ae-paper .ae-faq-a p { color: var(--ae-paper-muted); }

/* ==========================================================================
   Insights (Beitragsliste + Einzelbeitrag)
   ========================================================================== */

.ae-posts { display: grid; gap: 1px; background: var(--ae-line); border-block: 1px solid var(--ae-line); margin-top: 42px; }

.ae-post-card {
	background: var(--ae-ink);
	padding: 26px 24px;
	display: grid;
	gap: 8px;
	transition: background .2s ease;
}
.ae-post-card:hover { background: var(--ae-surface); }

.ae-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 12.5px;
	color: var(--ae-dim);
	font-family: var(--ae-mono);
	letter-spacing: .03em;
}

.ae-post-topic {
	color: var(--ae-akzent);
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: .1em;
}

.ae-post-card h3 { margin: 0; font-size: clamp(19px, 2.1vw, 23px); }
.ae-post-card h3 a { color: var(--ae-text); }
.ae-post-card:hover h3 a { color: var(--ae-akzent); }

.ae-post-card p { color: var(--ae-muted); font-size: 16px; margin: 4px 0 0; max-width: 78ch; }

.ae-pagination {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 34px;
	align-items: center;
}
.ae-pagination .page-numbers {
	border: 1px solid var(--ae-line);
	border-radius: var(--ae-radius);
	padding: 8px 14px;
	color: var(--ae-muted);
	font-size: 14px;
}
.ae-pagination .page-numbers.current { border-color: var(--ae-akzent); color: var(--ae-akzent); }
.ae-pagination .page-numbers:hover { border-color: var(--ae-line-strong); color: var(--ae-text); }

/* Einzelbeitrag */
.ae-single { padding: clamp(96px, 12vw, 150px) 0 var(--ae-gap); }
.ae-single-inner { width: 92%; max-width: 760px; margin: 0 auto; }

.ae-single h1 {
	font-size: clamp(31px, 4.6vw, 50px);
	line-height: 1.06;
	margin: 14px 0 20px;
}

.ae-single-lead { font-size: 20px; color: var(--ae-muted); margin-bottom: 30px; line-height: 1.55; }

.ae-single-body h2 { font-size: clamp(23px, 2.8vw, 30px); margin: 42px 0 14px; }
.ae-single-body p { margin: 0 0 18px; }
.ae-single-body ul, .ae-single-body ol { margin: 0 0 20px; padding-left: 22px; }
.ae-single-body li { margin-bottom: 8px; color: var(--ae-text); }

.ae-sources {
	margin-top: 44px;
	padding-top: 22px;
	border-top: 1px solid var(--ae-line);
}
.ae-sources h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .12em; color: var(--ae-dim); margin: 0 0 12px; }
.ae-sources ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ae-sources li { font-size: 14.5px; color: var(--ae-muted); }
.ae-sources a { word-break: break-word; }

/* Hinweis auf die maschinelle Erstellung – gehoert sichtbar an den Beitrag. */
.ae-ai-note {
	margin-top: 30px;
	padding: 16px 18px;
	border: 1px solid var(--ae-line);
	border-left: 3px solid var(--ae-akzent);
	border-radius: var(--ae-radius);
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--ae-dim);
	background: rgba(54, 71, 79, .02);
}

.ae-single-cta {
	margin-top: 44px;
	padding: 30px 28px;
	background: var(--ae-surface);
	border: 1px solid var(--ae-line);
	border-radius: var(--ae-radius-lg);
}
.ae-single-cta h2 { font-size: 24px; margin: 0 0 10px; }
.ae-single-cta p { color: var(--ae-muted); margin: 0 0 20px; }

/* ==========================================================================
   Abschluss-Aufforderung
   ========================================================================== */

.ae-final {
	position: relative;
	text-align: center;
	max-width: 780px;
	margin: 0 auto;
}
.ae-final h2 { font-size: clamp(32px, 5vw, 54px); }
.ae-final .ae-sub { margin-left: auto; margin-right: auto; }
.ae-final .ae-hero-cta { justify-content: center; }

.ae-finalsec {
	background:
		radial-gradient(760px 400px at 50% 116%, rgba(231, 30, 98, .20), transparent 66%),
		var(--ae-black);
	border-top: 1px solid var(--ae-line);
}

.ae-reassure { margin-top: 20px; font-size: 14px; color: var(--ae-dim); }

/* ==========================================================================
   Kleinkram
   ========================================================================== */

.ae-note { font-size: 14px; color: var(--ae-dim); margin-top: 24px; max-width: 76ch; }

.ae-prose { max-width: 74ch; }
.ae-prose h2 { margin-bottom: 18px; }
.ae-prose p { color: var(--ae-muted); margin-bottom: 16px; }
.ae-prose ul { margin: 0 0 20px; padding-left: 20px; }
.ae-prose li { color: var(--ae-muted); margin-bottom: 8px; }

.ae-disclaimer {
	border: 1px solid var(--ae-line);
	border-left: 3px solid var(--ae-dim);
	border-radius: var(--ae-radius);
	padding: 18px 20px;
	background: rgba(54, 71, 79, .02);
}
.ae-disclaimer-title { font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.ae-disclaimer p { font-size: 13.5px; color: var(--ae-dim); margin: 0 0 8px; line-height: 1.55; }
.ae-disclaimer p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Fusszeile
   ========================================================================== */

#main-footer { background: var(--ae-black); border-top: 1px solid var(--ae-line); }
#footer-widgets { display: none; }

#footer-bottom {
	background: transparent !important;
	padding: 26px 0;
	border-top: none;
}
#footer-info, #footer-bottom .container { width: 92%; max-width: var(--ae-maxw); float: none; margin: 0 auto; }

.ae-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	font-size: 14px;
	color: var(--ae-dim);
}
.ae-foot a { color: var(--ae-muted); }
.ae-foot a:hover { color: var(--ae-akzent); }

.ae-foot-links { display: flex; flex-wrap: wrap; gap: 18px; }

#footer-bottom .et-social-icons { display: none; }

/* Fussmenue von Divi */
#main-footer .bottom-nav { padding: 0; }
#main-footer .bottom-nav a { color: var(--ae-muted); font-size: 14px; }
#main-footer .bottom-nav a:hover { color: var(--ae-akzent); opacity: 1; }

/* ==========================================================================
   Einblenden beim Scrollen

   WICHTIG – die Reihenfolge ist Absicht: Sichtbar ist der Normalzustand.
   Unsichtbar werden die Abschnitte erst, wenn ae.js die Klasse «ae-js» an
   <html> gesetzt hat – und das tut es als allererstes, noch bevor es den
   Beobachter aufbaut.

   Andersherum gebaut (unsichtbar als Standard, JavaScript blendet ein) war
   die Seite ohne funktionierendes Skript leer: kein JavaScript, ein
   blockierendes Plugin, ein Fehler in einem anderen Skript, eine Suchmaschine
   ohne Skriptausfuehrung – und der Besucher sieht den Hero und darunter
   nichts. Genau das ist einmal passiert. Nie wieder umdrehen.
   ========================================================================== */

.ae-js .ae-reveal,
.ae-js .ae-reveal-item {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .6s cubic-bezier(.16, .84, .44, 1), transform .6s cubic-bezier(.16, .84, .44, 1);
	will-change: opacity, transform;
}
.ae-js .ae-reveal.is-in,
.ae-js .ae-reveal-item.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.ae-reveal, .ae-reveal-item { opacity: 1; transform: none; transition: none; }
	.ae-btn, .ae-card, .ae-sector { transition: none; }
}

/* ==========================================================================
   Schmale Bildschirme
   ========================================================================== */

@media (max-width: 980px) {
	.ae-about { grid-template-columns: 1fr; }
	.ae-portrait { max-width: 300px; }
}

@media (max-width: 780px) {
	body { font-size: 16px; }
	.ae-step { grid-template-columns: 1fr; gap: 12px; }
	.ae-step-no { font-size: 30px; }
	.ae-about-facts li { grid-template-columns: 1fr; gap: 2px; }
	.ae-hero-cta { flex-direction: column; align-items: stretch; }
	.ae-hero-cta .ae-btn { justify-content: center; }
	.ae-scenario-head { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Druck
   ========================================================================== */

@media print {
	body, #page-container { background: #fff; color: #000; }
	#main-header, #main-footer, .ae-booking, .ae-hero-cta { display: none; }
	.ae-single-body p, .ae-single-body li { color: #000; }
}

/* ==========================================================================
   Abschnitte von automatisiere.es

   Sechs neue Typen, die es im Schwesterprojekt nicht gab. Sie folgen
   denselben Regeln wie alles andere hier: Rhythmus ueber --ae-gap, genau eine
   Akzentfarbe, keine zweite Schriftart.
   ========================================================================== */

/* ---------- Demo-Platzhalter ---------- */

.ae-demosec .ae-demo { margin-top: 34px; }

/* ---------- Themenbereiche ---------- */

.ae-areas {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
	gap: 18px;
	margin-top: 44px;
}

.ae-area {
	display: block;
	position: relative;
	border: 1px solid var(--ae-line);
	border-radius: var(--ae-radius-lg);
	padding: 26px 24px 24px;
	background: var(--ae-ink);
	color: inherit;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ae-area--link:hover {
	border-color: var(--ae-akzent);
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(54, 71, 79, .07);
}

/* Der Verweis deckt die ganze Kachel ab.
   Frueher war die Kachel selbst ein <a> um den ganzen Inhalt – daran ist die
   Seite live zerbrochen (siehe render_areas in class-ae-divi.php). Ein
   Flaechenlink erreicht dasselbe, ohne Blockinhalt in ein Inline-Element zu
   packen: Der sichtbare Text bleibt ein normaler Verweis, die unsichtbare
   Flaeche darueber macht die Karte anklickbar. */
.ae-area-go::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

/* Damit die Tastaturbedienung sichtbar bleibt: Der Fokus liegt auf dem
   Verweis, der Rahmen erscheint aber um die ganze Karte. */
.ae-area:focus-within {
	outline: 2px solid var(--ae-akzent);
	outline-offset: 3px;
}
.ae-area-go:focus-visible { outline: none; }

.ae-area .ae-ic { width: 26px; height: 26px; color: var(--ae-akzent); margin-bottom: 14px; }

.ae-area-no {
	display: block;
	font-family: var(--ae-mono);
	font-size: 13px;
	color: var(--ae-akzent);
	margin-bottom: 12px;
}

.ae-area h3 { margin: 0 0 8px; font-size: 19px; }
.ae-area p { margin: 0; color: var(--ae-muted); font-size: 15.5px; line-height: 1.6; }

.ae-area-tags {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.ae-area-tags li {
	font-size: 12px;
	color: var(--ae-muted);
	border: 1px solid var(--ae-line);
	border-radius: 100px;
	padding: 2px 10px;
}

.ae-area-go {
	display: inline-block;
	margin-top: 18px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ae-akzent);
}

/* ---------- Vorher und nachher ---------- */

.ae-ba {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 44px;
}

.ae-ba-col {
	border: 1px solid var(--ae-line);
	border-radius: var(--ae-radius-lg);
	padding: 28px 26px;
}
.ae-ba-after {
	border-color: rgba(231, 30, 98, .34);
	background: var(--ae-akzent-schimmer);
}

.ae-ba-label {
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--ae-dim);
	margin: 0 0 6px;
}
.ae-ba-after .ae-ba-label { color: var(--ae-akzent-tief); }

.ae-ba-col h3 { margin: 0 0 18px; font-size: 21px; }

.ae-ba-list { list-style: none; margin: 0; padding: 0; }
.ae-ba-list li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 11px;
	color: var(--ae-text);
	font-size: 16px;
	line-height: 1.55;
}
.ae-ba-list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .62em;
	width: 10px;
	height: 1px;
	background: var(--ae-dim);
}
.ae-ba-after .ae-ba-list li::before {
	background: var(--ae-akzent);
	height: 2px;
	top: .58em;
}

.ae-ba-note {
	margin: 18px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--ae-line);
	font-size: 14px;
	color: var(--ae-muted);
}

/* ---------- Ablaufkette ---------- */

.ae-flow {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px;
	margin-top: 44px;
}

.ae-flow-node {
	position: relative;
	border: 1px solid var(--ae-line);
	border-radius: var(--ae-radius-lg);
	padding: 20px 18px;
	background: var(--ae-ink);
}

/* Die Bewegungsboegen aus dem Logo als Verbinder. */
.ae-flow-node + .ae-flow-node::before {
	content: "";
	position: absolute;
	left: -14px;
	top: 50%;
	width: 14px;
	height: 2px;
	background: var(--ae-akzent);
	opacity: .5;
}

.ae-flow-ausloeser { border-color: rgba(231, 30, 98, .4); }
.ae-flow-protokoll { background: var(--ae-surface); }

.ae-flow-no {
	font-family: var(--ae-mono);
	font-size: 12px;
	color: var(--ae-akzent);
}
.ae-flow-node h3 { margin: 6px 0 6px; font-size: 17px; }
.ae-flow-node p { margin: 0; font-size: 14.5px; color: var(--ae-muted); line-height: 1.55; }
.ae-flow-meta {
	display: inline-block;
	margin-top: 12px;
	font-family: var(--ae-mono);
	font-size: 11.5px;
	color: var(--ae-dim);
}

/* ---------- Systeme ---------- */

.ae-systems {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 20px;
	margin-top: 44px;
}
.ae-sysgroup {
	border-top: 2px solid var(--ae-akzent);
	padding-top: 18px;
}
.ae-sysgroup h3 { margin: 0 0 12px; font-size: 17px; }
.ae-syslist { list-style: none; margin: 0; padding: 0; }
.ae-syslist li {
	font-size: 15px;
	color: var(--ae-muted);
	padding: 5px 0;
	border-bottom: 1px solid var(--ae-line);
}
.ae-syslist li:last-child { border-bottom: 0; }

/* ---------- Was ein Mensch entscheidet ---------- */

.ae-human {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
	background: var(--ae-tiefe);
	color: var(--ae-tiefe-text);
	border-radius: var(--ae-radius-lg);
	padding: 46px 44px;
}
.ae-human h2 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); }
.ae-human .ae-eyebrow { color: var(--ae-akzent); }
.ae-human p { color: var(--ae-tiefe-text); }

.ae-human-list { list-style: none; margin: 0; padding: 0; }
.ae-human-list li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 14px;
	font-size: 16.5px;
	line-height: 1.5;
	color: #fff;
}
.ae-human-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .5em;
	width: 14px;
	height: 2px;
	background: var(--ae-akzent);
}

/* ---------- Reifegrade ---------- */

.ae-maturity {
	list-style: none;
	counter-reset: none;
	margin: 44px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.ae-mat {
	position: relative;
	border: 1px solid var(--ae-line);
	border-radius: var(--ae-radius-lg);
	padding: 24px 22px;
}
.ae-mat:last-child { border-color: var(--ae-akzent); }

.ae-mat-no {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ae-surface-2);
	color: var(--ae-text);
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 12px;
}
.ae-mat:last-child .ae-mat-no { background: var(--ae-akzent); color: #fff; }

.ae-mat h3 { margin: 0 0 8px; font-size: 18px; }
.ae-mat p { margin: 0; font-size: 15px; color: var(--ae-muted); line-height: 1.55; }
.ae-mat-meta {
	display: inline-block;
	margin-top: 12px;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--ae-dim);
}

/* ---------- Vertrauen ---------- */

.ae-trust {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 28px;
	margin-top: 44px;
}
.ae-trust-item { border-left: 2px solid var(--ae-akzent); padding-left: 20px; }
.ae-trust-item h3 { margin: 0 0 8px; font-size: 18px; }
.ae-trust-item p { margin: 0; color: var(--ae-muted); font-size: 15.5px; line-height: 1.6; }

/* ---------- Schmale Fenster ---------- */

@media (max-width: 820px) {
	.ae-ba { grid-template-columns: 1fr; }
	.ae-human { grid-template-columns: 1fr; gap: 26px; padding: 34px 26px; }
	.ae-flow-node + .ae-flow-node::before {
		left: 50%;
		top: -14px;
		width: 2px;
		height: 14px;
	}
}

/* Auf der dunklen Flaeche braucht das Karmesin einen helleren Ton – derselbe
   Farbwert waere dort nur noch knapp lesbar. Es bleibt dieselbe Farbe, nur
   aufgehellt; eine zweite Akzentfarbe kommt damit nicht ins Spiel. */
.ae-human .ae-eyebrow,
.ae-nacht .ae-eyebrow { color: var(--ae-akzent-auf-dunkel); }

/* ==========================================================================
   Fortschrittsbalken

   Wird von ae.js eingehaengt und erscheint nur auf langen Seiten. Er zeigt,
   wie weit man ist – nicht mehr, und vor allem nichts, was ohne ihn fehlte.
   ========================================================================== */

.ae-fortschritt {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 100000;
	pointer-events: none;
	background: transparent;
}

.ae-fortschritt span {
	display: block;
	height: 100%;
	background: var(--ae-akzent);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform .1s linear;
}

/* Der Hero bewegt sich beim Scrollen eine Spur langsamer als der Rest. */
.ae-js .ae-hero .ae-hero-inner { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
	.ae-fortschritt { display: none; }
	.ae-js .ae-hero .ae-hero-inner { transform: none !important; opacity: 1 !important; }
}

/* Die Ablaufkette laeuft einmal durch, wenn sie ins Bild kommt. */
.ae-flow-node {
	transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.ae-flow-node.ist-aktiv {
	border-color: var(--ae-akzent);
	transform: translateY(-3px);
	box-shadow: 0 8px 22px rgba(231, 30, 98, .14);
}
.ae-flow-node.ist-aktiv .ae-flow-no { color: var(--ae-akzent); }

@media (prefers-reduced-motion: reduce) {
	.ae-flow-node { transition: none; }
}

/* ==========================================================================
   Aufräumen nach wpautop

   Divi jagt den Inhalt jedes Textmoduls durch wpautop. Unser Renderer liefert
   aber fertiges HTML mit eigenen <p>-Tags – wpautop hat dort nichts zu tun und
   hinterlaesst nur leere Absaetze, die als Leerraum sichtbar werden.

   Bewusst im Stylesheet geloest und nicht durch Abschalten von wpautop: Divis
   Filterkette anzufassen wuerde alle Module betreffen, auch die, die es
   brauchen. Der echte Schaden – das verwaiste </p>, das ein <a> zerriss –
   ist an der Wurzel behoben (siehe render_areas).
   ========================================================================== */

.et_pb_text_inner > p:empty,
.et_pb_text_inner p:empty { display: none; }
