/*
 * Theme "Ernestin" – Stylesheet (Schritt E, 1:1-Nachbau der Divi-Live-Seite magisch-schoen.de).
 *
 * Eine Datei, mobile-first, keine Frameworks, kein Preprocessor.
 * Umschaltpunkte wie Divi: Phone < 768 px, Tablet 768–980 px, Desktop ab 981 px
 * (identisch mit dem Umschaltpunkt in assets/js/main.js).
 *
 * Alle Maße stammen aus dem gemessenen DOM der Divi-Bestandsinstanz (Desktop 1440 px,
 * Tablet 900 px, Phone 390 px) und den Referenz-Screenshots in referenz/.
 * Divi-Grundraster: Zeile 80 % / max. 1080 px zentriert; Spalten 47,25 % mit 5,5 %
 * Zwischenraum; Sektion 54 px (Tablet 50, Phone 40) oben/unten; Zeile 27 px (30 / 4) oben/unten.
 * Fließtext Open Sans 14 px / 1,7 em, Farbe #666. Divi rechnet mit Gewicht 500, lädt aber nur
 * 400/600/700 – live wird 400 gerendert, deshalb hier 400 (gemessen: identische Textbreiten).
 *
 * Bewusste Abweichungen von der Live-Seite (nur Kontrast, WCAG 4,5:1):
 *   Textlinks #cd5c5c → #b94b4b (Rahmen bleiben #cd5c5c); Footer-Knopf #f56845 → #cc4726;
 *   Beschriftungen rgba(0,0,0,.4) → rgba(0,0,0,.55); Footer-Zeile rgba(255,255,255,.4) → .5;
 *   CTA-Überschrift #333 → #141617 und CTA-Text rgba(0,0,0,.6) → #000 auf #cc4726;
 *   Umriss-Knopf im Hero mit 15 % dunkler Tönung.
 *
 * Aufbau:
 *   1 Variablen   4 Top-Bar/Kopf   7 Hero        10 Karten     13 Fußzeile      16 Tablet
 *   2 Basis       5 Knöpfe         8 Hallo       11 Eindrücke  14 Textseiten    17 Desktop
 *   3 Hilfen      6 Sektionen      9 Geschichten 12 Anfragen   15 Phone-Details 18 Bewegung, Druck
 */

/* 1  Variablen ------------------------------------------------------------ */

:root {
	--c-accent: #f56845;          /* Balken, Zähler, Galerie-Kontur, Live-Footer-Knopf */
	--c-red: #e02b20;             /* roter Teaser-Text (Geschichten) */
	--c-link: #b94b4b;            /* Divi-Akzent #cd5c5c, für 4,5:1 abgedunkelt */
	--c-link-raw: #cd5c5c;        /* nur für Nicht-Text: Rahmen, Menü-Symbol, Menülinie */
	/* Live ist #cc4726. Dort erreicht schwarzer Fließtext nur 4,50:1 und verfehlt
	   die 4,5:1 knapp. Zwei Farbstufen heller (nicht sichtbar) ergeben 4,61:1 mit
	   schwarzem Text und 4,56:1 mit weißer Schrift auf dem Footer-Knopf. */
	--c-cta: #ce4926;             /* roter Anfragen-Block, Footer-Knopf (live #cc4726) */
	--c-topbar: #c94423;
	--c-dark: #141617;
	--c-black: #000;
	--c-navy: #0d1a34;
	--c-footer: #24272a;
	--c-footer-bottom: #222;
	--c-footer-strip: #171717;
	--c-card: #f9f7f0;
	--c-text: #666;
	--c-heading: #333;
	--c-line: rgba(51, 51, 51, 0.12);
	--c-label: rgba(0, 0, 0, 0.55);
	--c-white: #fff;

	--f-body: "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--f-karla: "Karla", var(--f-body);
	--f-montserrat: "Montserrat", var(--f-body);
	--f-henny: "Henny Penny", "Comic Sans MS", cursive;

	--w-row: 80%;
	--w-container: 1080px;
	--sp-section: 40px;           /* Sektion oben/unten (Phone) */
	--sp-row: 4px;                /* Zeile oben/unten (Phone) */
	--col-gap: 5.5%;
	--col-half: 47.25%;

	--shadow-photo: 0 64px 64px -12px rgba(20, 22, 23, 0.59);

	--z-header: 100;
	--z-menu: 200;

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--dur: 0.2s;

	--icon-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E");
	--icon-arrow-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.5 5L16 12l-5.5 5v-3.2H7v-3.6h3.5z'/%3E%3C/svg%3E");
	--icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z'/%3E%3C/svg%3E");
	--icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 11h12.17l-5.59-5.59L12 4l8 8-8 8-1.41-1.41L16.17 13H4z'/%3E%3C/svg%3E");
	--icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Ccircle cx='48' cy='48' r='42' fill='none' stroke='%237CDA24' stroke-width='6'/%3E%3Cpath fill='none' stroke='%237CDA24' stroke-width='7' stroke-linecap='round' stroke-linejoin='round' d='M29 49l13 13 26-30'/%3E%3C/svg%3E");
}

/* 2  Basis ---------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 90px;
}

body {
	margin: 0;
	font: 400 13px/1.7 var(--f-body); /* Divi meldet 500, lädt aber keinen 500er-Schnitt → 400 */
	color: var(--c-text);
	/* Wie live (Divi-Customizer): Body-Hintergrund = das Logo, mit "cover" auf die
	   Dokumenthöhe gestreckt. Sichtbar nur hinter/zwischen den drei Karten. */
	background: var(--c-white) url("../media/Kinderzauberer-Karlsruhe.jpg") top center / cover no-repeat;
	overflow-x: hidden;
	word-wrap: break-word;
}

img {
	max-width: 100%;
	height: auto;
	border: 0;
}

a {
	color: var(--c-link);
	text-decoration: none;
}

a:hover,
a:focus-visible {
	text-decoration: underline;
}

/* Links im Fließtext zusätzlich unterstreichen (WCAG 1.4.1 "Use of Color"):
   Die Linkfarbe allein hebt sich mit 1,14:1 zu kaum vom Fließtext ab, in
   Graustufen oder bei Farbfehlsichtigkeit wäre der Link unsichtbar. Menü,
   Knöpfe und Wortmarken sind als eigene Bausteine ausgenommen. */
.es-page__content a:not(.es-btn):not(.es-logos__link),
.es-card__row a:not(.es-btn):not(.es-logos__link) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

.es-page__content a:not(.es-btn):not(.es-logos__link):hover,
.es-page__content a:not(.es-btn):not(.es-logos__link):focus-visible,
.es-card__row a:not(.es-btn):not(.es-logos__link):hover,
.es-card__row a:not(.es-btn):not(.es-logos__link):focus-visible {
	text-decoration-thickness: 2px;
}

p {
	margin: 0;
	padding: 0 0 1em;
}

p:last-child {
	padding-bottom: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	padding: 0 0 10px;
	color: var(--c-heading);
	font-weight: 400; /* Divi-Standard 500, live ohne 500er-Schnitt als 400 gerendert */
	line-height: 1em;
}

h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

ul,
ol {
	margin: 0;
	padding: 0 0 23px 1em;
	line-height: 26px;
}

li {
	margin: 0;
}

strong,
b {
	font-weight: 700;
}

figure {
	margin: 0;
}

button {
	font: inherit;
}

:focus-visible {
	outline: 2px solid var(--c-link);
	outline-offset: 2px;
}

/* 3  Hilfsklassen --------------------------------------------------------- */

.screen-reader-text,
.es-hero__sub {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	word-wrap: normal !important;
}

.es-skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: var(--z-menu);
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 20px;
	clip: auto;
	clip-path: none;
	background: var(--c-white);
	color: var(--c-dark);
	font: 700 14px/1.4 var(--f-body);
	text-decoration: none;
	box-shadow: 0 0 0 2px var(--c-link), 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Divi-Zeile: 80 % breit, maximal 1080 px, zentriert */
.es-topbar__inner,
.es-header__inner,
.es-split,
.es-teaser,
.es-stats,
.es-gallery__head,
.es-gallery__grid,
.es-footer__inner,
.es-footer__bottom-inner,
.es-page--narrow .es-page__header,
.es-page--narrow .es-page__content {
	width: var(--w-row);
	max-width: var(--w-container);
	margin-left: auto;
	margin-right: auto;
}

/* 4  Top-Bar und Kopfzeile ------------------------------------------------ */

.es-topbar {
	background: var(--c-topbar);
	color: var(--c-white);
	font: 600 12px/13px var(--f-body);
	text-align: center;
}

.es-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 13px;
	width: auto;
	padding: 9px 10px;
}

.es-topbar__item {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	color: var(--c-white);
	text-decoration: none;
}

.es-topbar__item:hover,
.es-topbar__item:focus-visible {
	text-decoration: underline;
	outline-color: var(--c-white);
}

.es-icon {
	display: inline-block;
	flex: none;
	width: 1em;
	height: 1em;
	margin-right: 3px;
	fill: currentColor;
}

.es-header {
	position: sticky;
	top: 0;
	z-index: var(--z-header);
	background: var(--c-white);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
	transition: box-shadow var(--dur) var(--ease);
}

.es-header.is-scrolled {
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 2px 14px rgba(0, 0, 0, 0.08);
}

.admin-bar .es-header {
	top: 32px;
}

.es-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
}

.es-header__brand {
	max-width: 50%;
	padding-left: 4px; /* Divi-Logo sitzt 4 px innerhalb des Containers */
}

.es-header__brand a {
	display: block;
	line-height: 0;
}

.es-header__logo,
.custom-logo {
	display: block;
	width: auto;
	height: 43.2px; /* Divi: max-height 54 % von 80 px */
	max-width: 100%;
}

/* Divi-Menüsymbol: drei Linien, 24 px breit, Akzentfarbe */
.es-nav__toggle {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	padding: 0 10px;
	border: 0;
	background: none;
	color: var(--c-link-raw);
	cursor: pointer;
}

.es-nav__toggle-bar {
	display: block;
	width: 24px;
	height: 2px;
	background: currentColor;
	transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.es-nav__toggle[aria-expanded="true"] .es-nav__toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.es-nav__toggle[aria-expanded="true"] .es-nav__toggle-bar:nth-child(2) {
	opacity: 0;
}

.es-nav__toggle[aria-expanded="true"] .es-nav__toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobiles Menü: Aufklappliste unter der Kopfzeile in Containerbreite (Divi-Optik) */
.es-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: var(--z-menu);
	padding: 5%;
	background: var(--c-white);
	border-top: 3px solid var(--c-link-raw);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.es-nav.is-open {
	display: block;
}

.es-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	line-height: 23px;
}

.es-nav__list a {
	display: block;
	padding: 10px 5%;
	border-bottom: 1px solid rgba(0, 0, 0, 0.03);
	font: 600 14px/23px var(--f-henny);
	color: var(--c-text);
	text-decoration: none;
}

.es-nav__list a:hover,
.es-nav__list a:focus-visible {
	color: var(--c-heading);
	text-decoration: none;
}

/* 5  Knöpfe --------------------------------------------------------------- */

/* Divi-Custom-Button. Der Hover vergrößert live das Padding (48→52 / 32→36 px);
   hier wächst nur die Hintergrundfläche per transform, das Symbol rückt 4 px nach rechts. */
.es-btn {
	display: inline-block;
	position: relative;
	isolation: isolate;
	padding: 16px 48px 16px 32px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--c-white);
	font: 700 13px/22.1px var(--f-body);
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	--btn-bg: var(--c-black);
	--btn-border: 0 solid transparent;
}

.es-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border: var(--btn-border);
	background: var(--btn-bg);
	transition: transform var(--dur) var(--ease);
}

.es-btn:hover,
.es-btn:focus-visible {
	text-decoration: none;
}

.es-btn:hover::before,
.es-btn:focus-visible::before {
	transform: scaleX(1.04);
}

.es-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.es-btn--icon-mail,
.es-btn--icon-arrow,
.es-btn--icon-plus {
	--icon: var(--icon-mail);
}

.es-btn--icon-arrow {
	--icon: var(--icon-arrow-circle);
}

.es-btn--icon-plus {
	--icon: var(--icon-plus);
}

.es-btn--icon-mail::after,
.es-btn--icon-arrow::after,
.es-btn--icon-plus::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 29px;
	width: 13px;
	height: 13px;
	margin-top: -6.5px;
	background: currentColor;
	-webkit-mask: var(--icon) center / contain no-repeat;
	mask: var(--icon) center / contain no-repeat;
	transition: transform var(--dur) var(--ease);
}

.es-btn:hover::after,
.es-btn:focus-visible::after {
	transform: translateX(4px);
}

.es-btn--dark {
	--btn-bg: var(--c-black);
}

.es-section--cta .es-btn--dark {
	--btn-bg: var(--c-dark);
}

.es-btn--outline {
	padding: 17px 49px 17px 33px; /* 16 px + 1 px Rahmen (liegt im ::before) */
	--btn-bg: rgba(20, 22, 23, 0.15); /* live transparent; 15 % Tönung für 4,5:1 */
	--btn-border: 1px solid var(--c-white);
}

.es-btn--accent {
	--btn-bg: var(--c-cta); /* live #f56845 (3,0:1) */
}

/* Divi-Standard-Button ("Zur ausführlichen Liste"): live erscheint beim Hover ein Pfeil
   und das Padding wandert (1em → 2em rechts); hier nur das Einblenden des Pfeils. */
.es-btn--accent-outline {
	padding: 6px 20px;
	border: 2px solid var(--c-link-raw);
	border-radius: 3px;
	color: var(--c-link);
	font: 400 20px/34px var(--f-body);
	letter-spacing: 0;
	text-transform: none;
	--btn-bg: transparent;
	--btn-border: 0 solid transparent;
}

.es-btn--accent-outline::before {
	inset: -2px;
	border-radius: 3px;
}

.es-btn--accent-outline:hover::before,
.es-btn--accent-outline:focus-visible::before {
	transform: none;
	background: rgba(0, 0, 0, 0.05);
}

.es-btn--accent-outline::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 4px;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	background: currentColor;
	-webkit-mask: var(--icon-arrow) center / contain no-repeat;
	mask: var(--icon-arrow) center / contain no-repeat;
	opacity: 0;
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.es-btn--accent-outline:hover::after,
.es-btn--accent-outline:focus-visible::after {
	opacity: 1;
	transform: none;
}

/* 6  Sektionen, Überschriften, Balken, Bilder ----------------------------- */

.es-main {
	display: block;
}

.es-section {
	position: relative;
	padding: var(--sp-section) 0;
	background: var(--c-white);
}

.es-heading {
	margin: 0;
	padding-bottom: 10px;
	font: 700 30px/1em var(--f-karla);
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--c-heading);
}

/* Divi-Trennmodul: Element 23 px hoch, sichtbarer Balken 12 px, liegt hinter der Überschrift */
.es-divider {
	display: block;
	position: relative;
	z-index: -1;
	width: 250px;
	max-width: 100%;
	height: 23px;
	margin: -18px 0 0;
	border-top: 12px solid var(--c-accent);
}

.es-divider--right {
	margin-left: auto;
}

.es-divider--thin {
	width: 100px;
	margin-top: 0;
	border-top-width: 4px;
}

.es-divider--light {
	border-top-color: var(--c-white);
}

.es-text {
	font-size: 16px;
	line-height: 2em;
}

.es-figure {
	position: relative;
	margin: 0;
	line-height: 0; /* Divi-Bildmodul: kein Zeilenkasten unter dem Inline-Bild */
}

.es-figure--dots-right {
	background: url("../media/actor-01.png") right bottom / auto no-repeat;
}

.es-figure--dots-left {
	background: url("../media/actor-02.png") left bottom / auto no-repeat;
}

.es-figure__img {
	display: block;
	max-width: 100%;
	height: auto;
	box-shadow: var(--shadow-photo);
}

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

/* Divi: Sektion mit Verlauf, Innenschatten unten 80 px weiß, Spalte 2 dunkel.
   Live liegt die Sektion 111 px unter der fixierten Kopfzeile; hier beginnt sie darunter. */
.es-section--hero {
	z-index: 2; /* liegt über der überlappenden Hallo-Karte (wie Divi-Spalten mit z-index 2) */
	min-height: 137.5px;
	margin-bottom: 0;
	padding: 2px 0;
	background: var(--c-black) linear-gradient(162deg, #a92200 0%, #fd7b5b 100%);
	box-shadow: inset 0 -80px 0 0 var(--c-white);
}

.es-hero {
	display: flex;
	flex-direction: column;
}

.es-hero__intro {
	margin-bottom: 30px;
	padding: 40px 0 0 10vw;
	text-align: center;
}

.es-hero__kicker {
	margin: 0 0 42.1px;
	padding: 0 0 10px;
	font: 500 14px/1.8em var(--f-montserrat);
	letter-spacing: 2px;
	color: var(--c-white);
}

.es-hero__title {
	margin: 0 0 40px;
	padding: 0 0 10px;
	font: 700 10vw/0.9em var(--f-henny);
	letter-spacing: -3px;
	color: var(--c-white);
}

.es-hero__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.es-hero__actions .es-btn {
	margin: 0 0 30px;
}

.es-hero__actions .es-btn:last-child {
	margin-bottom: 43px;
}

.es-hero__media {
	padding: 125px 5vw 86px 0;
	background: var(--c-dark);
}

.es-hero__figure {
	max-width: 400px;
	padding: 0 40px 80px 0;
}

.es-hero__img {
	width: 100%;
}

/* 8  Hallo ---------------------------------------------------------------- */

.es-section--hallo {
	margin-top: -156px;
}

.es-split {
	display: grid;
	grid-template-columns: 100%;
	/* Phone: 4 px Zeilenabstand + 110 px, um die Divi-Float-Regel nachzubilden
	   (die Bildspalte beginnt live erst unterhalb der dunklen Hero-Spalte) */
	padding: 114px 0 4px;
	background: var(--c-card);
}

.es-split__media {
	width: calc(100% + 5vw);
	margin: 10px 0 -70px -5vw; /* -100 px Divi + 30 px Spaltenabstand */
	padding: 0 0 100px 40px;
	transform: scale(0.96);
	text-align: center;
}

.es-split__media .es-figure__img,
.es-page__content .es-split__media img {
	display: inline-block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 550px;
}

.es-split__body {
	position: relative;
	isolation: isolate;
	padding: 80px 30px 40px;
}

.es-split__body .es-heading {
	padding-top: 10px; /* leeres h3 der Divi-Vorlage */
}

.es-split .es-divider {
	width: 50%;
	margin-bottom: 30px;
}

.es-split .es-text {
	padding-bottom: 0;
}

/* 9  Geschichten (roter Teaser rechts) ------------------------------------ */

/* Divi: Zeile rechtsbündig (margin 0 2px 0 auto), Inhalt nur in der vierten Viertelspalte;
   Textmodul um 215 px nach links gezogen, innen 168 px eingerückt (Text also 47 px links
   der Spalte), oben 36 px, unten 25 px + 30 px des leeren Zitats − 21 px Modulabstand. */
.es-teaser {
	position: relative;
	isolation: isolate;
	margin-right: 2px;
	padding: var(--sp-row) 0 6px;
	border-bottom: 1px solid var(--c-line);
}

.es-teaser .es-divider--thin {
	margin-bottom: 66px; /* 30 px Modulabstand + 36 px Textmodul oben */
}

.es-teaser__text {
	width: calc(100% + 47px);
	margin-left: -47px;
	padding-bottom: 13px;
	font-size: 16px;
	line-height: 22.1px;
	color: var(--c-red);
}

.es-teaser__text:last-child {
	padding-bottom: 34px;
}

/* 10  Referenzen-Teaser (Zähler + Knopf) ---------------------------------- */

.es-section--referenzen-teaser {
	padding-bottom: 0;
}

.es-stats {
	display: grid;
	grid-template-columns: 100%;
}

.es-stats__head {
	position: relative;
	isolation: isolate;
	margin-bottom: 30px;
	padding-top: 24px; /* leeres h3 der Divi-Vorlage */
}

.es-stats__head .es-heading {
	font-size: 45px;
}

.es-stats__grid {
	display: grid;
	grid-template-columns: 100%;
	padding: var(--sp-row) 0;
}

.es-stat {
	margin-bottom: 30px;
	text-align: center;
}

/* Live zählt Divi per Skript hoch (Zahl im Referenz-Screenshot noch unsichtbar); hier statisch. */
.es-stat__number {
	display: block;
	height: 72px;
	margin-bottom: 20px;
	font: 700 48px/100px var(--f-karla);
	color: var(--c-accent);
}

.es-stat__label {
	margin: 0;
	padding-bottom: 10px;
	font: 500 12px/1.8em var(--f-montserrat);
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--c-label);
}

.es-stats__action {
	text-align: center;
}

/* 11  Karten (Was ich biete, Anfragen, Mitgliedschaften) ------------------ */

.es-section--biete,
.es-section--anfragen,
.es-section--mitgliedschaften {
	width: var(--w-row);
	max-width: var(--w-container);
	margin: 40px auto;
	padding: var(--sp-section) 40px;
	background: var(--c-card);
}

.es-card {
	display: grid;
	grid-template-columns: 100%;
}

.es-card__title {
	margin: 0 0 30px;
	padding-bottom: 10px;
	font: 700 24px/1.4em var(--f-karla);
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--c-heading);
}

.es-card__row {
	padding: var(--sp-row) 0;
	border-bottom: 1px solid var(--c-line);
	font-size: 16px;
	line-height: 2em;
}

.es-logos__row {
	display: grid;
	grid-template-columns: 100%;
}

.es-logos__title {
	margin: 0 0 30px;
	padding-bottom: 10px;
	font: 500 12px/1.8em var(--f-montserrat);
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--c-heading);
}

.es-logos__link {
	display: block;
	text-align: center;
	text-decoration: none;
}

.es-logos__link:hover,
.es-logos__link:focus-visible {
	text-decoration: none;
}

.es-logos__link:hover .es-logos__caption,
.es-logos__link:focus-visible .es-logos__caption {
	text-decoration: underline;
}

.es-logos__img {
	display: block;
	margin: 0 auto;
	box-shadow: none;
}

.es-logos__caption {
	display: block;
	font-size: 10px;
	line-height: 32px;
	color: #2826ad;
}

/* Leerräume wie live (Reste leerer Absätze in der Divi-Quelle) */
.es-logos__row:first-child .es-logos__link {
	padding-bottom: 48px; /* 16 px Absatz + 32 px Leerabsatz */
}

.es-logos__row:last-child .es-logos__link:first-child {
	padding: 32.6px 0 40px; /* leeres h4 davor, h4-Abstand + Modulabstand danach */
}

.es-logos__row:last-child .es-logos__link:last-child {
	padding: 16px 0 90px; /* leerer Absatz davor; h4-Abstand, zwei Leerabsätze danach */
}

/* 12  Eindrücke (Galerie) ------------------------------------------------- */

.es-gallery__head {
	position: relative;
	isolation: isolate;
	padding: calc(var(--sp-row) + 10px) 0 var(--sp-row);
	text-align: right;
}

.es-gallery__grid {
	display: grid;
	grid-template-columns: 100%;
	width: 90%;
	padding: var(--sp-row) 0;
}

/* Divi-Hover (Rahmen 24→14 px, Padding unten 15→80 px) bewusst nicht übernommen:
   er ändert die Kachelhöhe und verschiebt die ganze Spalte. */
.es-gallery__item {
	position: relative;
	isolation: isolate;
	margin: 0 0 30px;
	padding: 80% 40px 15px;
	border: 24px solid var(--c-white);
	box-shadow: 0 0 0 2px var(--c-accent);
}

.es-gallery__item:last-child {
	margin-bottom: 0;
}

/* Reihenfolge auf Phone/Tablet spaltenweise wie live: Zauberei?, Katz', Elefant, Ballons */
.es-gallery__item:nth-child(2) {
	order: 3;
}

.es-gallery__item:nth-child(3) {
	order: 2;
}

.es-gallery__item:nth-child(4) {
	order: 4;
}

/* Divi-Kachel "Elefant": Hintergrundfarbe #000 ist in der Quelle gesetzt, wird live aber
   vom Verlauf überdeckt (gemessen: transparent) – daher hier keine Fläche. */
.es-gallery__item--black {
	background: transparent;
}

.es-gallery__item--cover {
	padding-top: 40%;
}

.es-gallery__item .es-gallery__img {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: contain;
	object-position: center;
	box-shadow: none;
}

.es-gallery__item--cover .es-gallery__img {
	object-fit: cover;
	object-position: top center;
}

/* Divi: Verlauf über dem Hintergrundbild mit Mischmodus; blendet nur mit dem Bild
   und der Kachelfarbe (isolation), im Randbereich liegt der Verlauf normal auf. */
.es-gallery__item::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(20, 21, 22, 0.24) 0%, var(--c-navy) 90%);
	mix-blend-mode: difference;
	pointer-events: none;
}

.es-gallery__item--overlay::before {
	mix-blend-mode: overlay;
}

/* Kachel "Spielerei mit Ballons": Die weiße Unterschrift liegt auf dem grünen
   Ballon, der Hand und dem Gesicht – der Mischmodus-Verlauf darüber hellt dort
   auf statt abzudunkeln (gemessen 1,06:1 statt der geforderten 3:1). Deshalb
   hier ein zweiter Verlauf im normalen Mischmodus, der nur den unteren Rand
   abdunkelt. Die drei übrigen Kacheln bleiben unverändert. */
.es-gallery__item--cover::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	/* Höhe und Verlaufskurve nach der gemessenen Lage der Unterschrift: Sie steht
	   auf dem Phone zwischen 14 % und 42 % der Kachelhöhe, auf dem Desktop
	   zwischen 7 % und 18 %. Ab 30 % Verlaufsstrecke deckt der Verlauf beide ab. */
	height: 60%;
	background: linear-gradient(180deg, rgba(13, 26, 52, 0) 0%, rgba(13, 26, 52, 0.75) 30%, rgba(13, 26, 52, 0.92) 100%);
	pointer-events: none;
}

.es-gallery__caption {
	position: relative;
	z-index: 2;
	margin: 0;
	padding: 0 0 30px;
	font: 700 24px/24px var(--f-karla);
	letter-spacing: 1px;
	color: var(--c-white);
	text-align: center;
}

.es-gallery__item:nth-child(3) .es-gallery__caption {
	letter-spacing: 2px;
}

/* 13  Anfragen (CTA) ------------------------------------------------------ */

.es-section--cta {
	margin-top: -13px;
	padding: 2px 0 0;
	overflow: hidden;
}

.es-cta {
	display: flex;
	flex-direction: column;
}

.es-cta__media {
	position: relative;
	isolation: isolate;
	width: 261px;
	max-width: 100%;
	margin-bottom: 30px;
	padding: 0;
	background: var(--c-white);
	text-align: center;
}

/* Divi-Bildmodul ist um 90 px nach rechts verschoben; das Punkteraster (actor-01.png)
   sitzt unten rechts am Modulkasten und liegt hinter dem Foto. */
.es-cta__media.es-figure--dots-right {
	background-image: none;
}

.es-cta__media::after {
	content: "";
	position: absolute;
	right: -90px;
	bottom: 0;
	z-index: -1;
	width: 237px;
	height: 149px;
	background: url("../media/actor-01.png") right bottom / auto no-repeat;
}

.es-cta__media .es-figure__img,
.es-page__content .es-cta__media img {
	display: inline-block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 426px;
	transform: translateX(90px);
}

.es-cta__body {
	position: relative;
	isolation: isolate;
	padding: 60px 10vw;
	background: var(--c-cta);
}

.es-cta .es-heading {
	padding-top: 10px; /* leeres h3 der Divi-Vorlage */
	color: var(--c-dark); /* live #333 (2,7:1) */
}

.es-cta .es-divider--light {
	margin-bottom: 30px;
}

.es-cta__text {
	margin-bottom: 30px;
	padding-bottom: 0;
	font-size: 16px;
	line-height: 2em;
	/* Live rgba(0,0,0,.6) = 2,9:1. Schwarz bleibt (wie live dunkler Text auf Rot);
	   die fehlenden 0,003 zur 4,5:1-Grenze holt der zwei Stufen hellere Grundton
	   --c-cta. Ergebnis 4,61:1, Optik unverändert. */
	color: var(--c-black);
}

.es-cta__body .es-btn {
	margin-left: -12px;
}

/* 14  Fußzeile ------------------------------------------------------------ */

.es-footer {
	background: var(--c-footer);
	color: var(--c-white);
}

.es-footer__inner {
	display: grid;
	grid-template-columns: 100%;
	padding: calc(var(--sp-section) + var(--sp-row)) 0;
}

.es-footer__brand {
	margin-bottom: 30px;
}

.es-footer__tagline {
	margin: 0 0 10px; /* leeres h6 der Divi-Vorlage */
	padding: 0 0 10px;
	font: 500 12px/1.8em var(--f-montserrat);
	letter-spacing: 1px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5); /* live 0.4 (3,7:1) */
}

.es-footer__name {
	margin: 0;
	padding: 0 0 12px;
	font: 400 48px/30.8px var(--f-henny);
	color: var(--c-white);
}

.es-footer__brand .es-footer__person {
	margin: 0;
	padding: 0 0 10px;
	font: 500 15px/1em var(--f-montserrat);
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--c-white);
}

.es-footer__action {
	padding-top: 30px;
	text-align: right;
}

.es-footer__bottom {
	background: var(--c-footer-bottom);
	border-bottom: 20px solid var(--c-footer-strip);
}

.es-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 113px 0;
	font: 500 12px/1.8em var(--f-montserrat);
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #a7a7a7;
}

.es-footer__legal-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
	list-style: none;
	margin: 0;
	padding: 0;
	line-height: inherit;
}

.es-footer__legal a {
	color: #a7a7a7;
}

.es-footer__legal a:hover,
.es-footer__legal a:focus-visible {
	color: var(--c-white);
	outline-color: var(--c-white);
}

.es-footer__copy {
	margin: 0;
	padding: 0;
}

/* 15  Textseiten (Referenzen, Impressum, Datenschutz), 404, Rückfall ------ */

.es-page--narrow {
	padding: var(--sp-section) 0;
	background: var(--c-white);
}

.es-page--narrow .es-page__header,
.es-page--narrow .es-page__content {
	max-width: 740px;
}

.es-page--referenzen .es-page__header,
.es-page--referenzen .es-page__content {
	max-width: 550px;
}

.es-page--narrow .es-page__header {
	padding-top: var(--sp-row);
}

.es-page--narrow .es-page__content {
	padding-bottom: var(--sp-row);
	line-height: 1.7em; /* Schriftgröße wie Divi-Body: 13 px Phone, 14 px ab Tablet */
}

.es-page__title {
	padding-bottom: 24px;
	font-size: 30px;
}

.es-page__content img {
	max-width: 100%;
	height: auto;
}

.es-page__content ul,
.es-page__content ol {
	padding-left: 14px;
}

.es-page--referenzen .es-page__content {
	color: var(--c-black);
}

.es-page--referenzen h2 {
	font-size: 22px;
	line-height: 22px;
}

.es-page--referenzen .es-check + h2 {
	color: var(--c-black);
}

/* Divi-Blurb-Symbol "Haken im Kreis", #7CDA24 mit Filter Helligkeit 73 % / Deckkraft 69 % */
.es-check {
	display: block;
	width: 96px;
	height: 96px;
	margin: 0 auto 30px;
	background: var(--icon-check) center / contain no-repeat;
	filter: brightness(0.73) opacity(0.69);
}

/* Impressum: live fette Einleitungen in Fließtextgröße innerhalb des Absatzes */
.es-page--impressum h2 {
	padding: 0;
	font: 700 14px/1.7em var(--f-body);
	color: var(--c-text);
}

.es-page--datenschutzerklaerung h2 {
	padding-top: 10px;
}

.es-page--datenschutzerklaerung h2:first-child {
	padding-top: 0;
}

.es-page__list {
	padding-left: 1em;
}

.es-page--narrow .es-page__content .es-btn {
	margin-top: 10px;
}

/* 16  Tablet ab 768 px ---------------------------------------------------- */

@media (min-width: 768px) {
	:root {
		--sp-section: 50px;
		--sp-row: 30px;
	}

	body {
		font-size: 14px;
	}

	.es-topbar {
		text-align: left;
	}

	.es-topbar__inner {
		justify-content: flex-start;
		width: var(--w-row);
		padding: 9px 0;
	}

	.es-heading {
		font-size: 46px;
	}

	.es-divider:not(.es-divider--thin) {
		margin-top: -22px;
	}

	.es-hero__media {
		padding-top: 106px;
	}

	.es-hero__figure {
		max-width: 500px;
	}

	.es-split {
		padding-top: 104px; /* 30 px Zeile + 74 px Float-Versatz */
		padding-right: 40px;
	}

	.es-split__body {
		padding: 80px 60px;
	}

	.es-hero__actions {
		padding-left: 40px;
	}

	.es-teaser__text {
		width: calc(var(--col-half) + 47px);
		padding-bottom: 14px;
		line-height: 23.8px;
	}

	.es-gallery__grid {
		width: var(--w-row);
	}

	.es-cta__media {
		width: 500px;
	}

	.es-footer__brand .es-footer__person {
		font-size: 18px;
	}

	.es-footer__bottom-inner {
		padding: 81px 0;
	}
}

/* 17  Desktop ab 981 px --------------------------------------------------- */

@media (min-width: 981px) {
	:root {
		--sp-section: 54px;
		--sp-row: 27px;
	}

	.es-nav__toggle {
		display: none;
	}

	.es-nav {
		display: block;
		position: static;
		padding: 0;
		border: 0;
		box-shadow: none;
	}

	.es-nav__list {
		display: flex;
		align-items: center;
	}

	.es-nav__list li {
		padding-right: 25.8px; /* Divi 22 px + Inline-Leerzeichen */
	}

	.es-nav__list li:last-child {
		padding-right: 0;
	}

	.es-nav__list a {
		padding: 33px 0;
		border: 0;
		line-height: 14px;
		color: rgba(0, 0, 0, 0.6);
		transition: opacity var(--dur) var(--ease);
	}

	.es-nav__list a:hover {
		color: rgba(0, 0, 0, 0.6);
		opacity: 0.7;
	}

	/* Hero: links Text (47,25 %), rechts dunkle Bildspalte, Sektion 608 px hoch */
	.es-section--hero {
		margin-bottom: 153px;
	}

	.es-hero {
		flex-direction: row;
		align-items: stretch;
	}

	.es-hero__intro {
		width: var(--col-half);
		margin: 0 var(--col-gap) 0 0;
		padding: 61.8px 0 80px 10vw; /* Divi 12vw abzüglich der 111 px Kopfzeile */
	}

	.es-hero__kicker {
		margin-bottom: 43.8px;
		font-size: 24px;
	}

	.es-hero__title {
		margin-bottom: 41.2px;
	}

	.es-hero__actions {
		padding-left: 40px;
	}

	.es-hero__actions .es-btn {
		margin-bottom: 31.2px;
	}

	.es-hero__actions .es-btn:last-child {
		margin-bottom: 43px;
	}

	.es-hero__media {
		width: var(--col-half);
		padding: 85px 5vw 86px 0;
	}

	.es-hero__figure {
		max-width: none;
		margin-bottom: -150px;
	}

	/* Hallo: Zeile mit Bild links (Foto 550 px hoch) und Text rechts */
	.es-split {
		grid-template-columns: var(--col-half) var(--col-half);
		column-gap: var(--col-gap);
		align-items: start;
		padding: var(--sp-row) 40px var(--sp-row) 0;
	}

	.es-split__media {
		margin: 10px 0 -100px -5vw;
		text-align: left;
	}

	.es-split__media .es-figure__img,
	.es-page__content .es-split__media img {
		display: block;
	}

	.es-split .es-divider {
		margin-bottom: 21.6px;
	}

	/* Geschichten: rechtes Viertel der 1080-px-Zeile */
	.es-teaser .es-divider--thin {
		margin-left: 79.125%;
		margin-bottom: 65.69px; /* 29,69 px Modulabstand + 36 px Textmodul oben */
	}

	.es-teaser__text {
		width: calc(20.875% + 47px);
		margin-left: calc(79.125% - 47px);
	}

	/* Referenzen-Teaser: 1/3 + 2/3, innen 3 Spalten (Gutter 2) */
	.es-stats {
		grid-template-columns: 31.333% 65.667%;
		column-gap: 3%;
		align-items: start;
	}

	.es-stats__head {
		margin-bottom: 0;
		padding: 54.83px 0 30.83px;
	}

	.es-stats__grid {
		grid-template-columns: repeat(3, 1fr);
		column-gap: 4.567%;
		align-items: start;
		padding: 30.08px 0;
	}

	.es-stat {
		margin-bottom: 0;
	}

	/* Karten: 1/3 Titel + 2/3 Inhalt */
	.es-card {
		grid-template-columns: 29.667% 64.833%;
		column-gap: var(--col-gap);
		align-items: start;
	}

	.es-card__title {
		margin: 28.55px 0;
	}

	.es-card__row {
		padding: 27.5px 0;
	}

	.es-logos__row {
		grid-template-columns: var(--col-half) var(--col-half);
		column-gap: var(--col-gap);
		align-items: start;
	}

	.es-logos__title {
		margin-bottom: 0;
	}

	/* Galerie: zwei Spalten, linke Spalte 80 px tiefer */
	.es-gallery__head {
		padding: calc(var(--sp-row) + 10px) 0 var(--sp-row);
	}

	.es-gallery__grid {
		grid-template-columns: var(--col-half) var(--col-half);
		column-gap: var(--col-gap);
		row-gap: 29.69px;
		align-items: start;
		padding: var(--sp-row) 0 calc(var(--sp-row) + 80px);
	}

	.es-gallery__item,
	.es-gallery__item:nth-child(n) {
		margin: 0;
		order: 0;
	}

	.es-gallery__item:nth-child(odd) {
		top: 80px;
	}

	.es-gallery__item--cover {
		padding-top: 80%;
	}

	/* Anfragen: Bild links (weiß), Text rechts (rot), gleich hoch */
	.es-cta {
		flex-direction: row;
		align-items: stretch;
	}

	.es-cta__media {
		width: var(--col-half);
		max-width: none;
		margin: 0 var(--col-gap) 0 0;
		padding: 6vw 0 84px 2vw;
	}

	.es-cta__media::after {
		bottom: 84px;
	}

	.es-cta__body {
		width: var(--col-half);
		padding: 8vw 6vw 0 60px;
	}

	.es-cta .es-divider--light {
		margin-bottom: 31.08px;
	}

	.es-cta__text {
		margin-bottom: 31.08px;
	}

	/* Fußzeile: zwei Spalten */
	.es-footer__inner {
		grid-template-columns: var(--col-half) var(--col-half);
		column-gap: var(--col-gap);
		align-items: start;
	}

	.es-footer__brand {
		margin-bottom: 0;
	}
}

/* 18  Bewegung, Admin-Leiste, Druck --------------------------------------- */

@media (max-width: 782px) {
	.admin-bar .es-header {
		top: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.es-topbar,
	.es-nav__toggle,
	.es-footer__action,
	.es-btn {
		display: none;
	}

	body {
		background: #fff;
	}

	.es-header {
		position: static;
	}
}
