/*
Theme Name: Hercules Studios
Description: Child-Theme von Astra, dunkles Design mit Glas-Look (Vorlage design-startseite-dunkel, 07.11.2026). Farben, Schriften, Größen, Kopf- und Fußzeile im Customizer; Abschnitte als Block-Vorlagen; Glas, Hintergründe und Animationen als CSS-Klassen.
Author: Hercules Studios GmbH
Template: astra
Version: 3.1.0
Text Domain: hercules-child
*/

/*
   Regeln für diese Datei:
   - Keine festen Farben. Nur Astras Farb-Variablen. Farbe 1 (--ast-global-color-0) = Dunkel/Hintergrund,
     Farbe 2 (…-1) = Sternenlicht/Akzent (sparsam: Buttons, Punkte, Vorzeilen, Plaketten, Nummern),
     Farbe 5 (…-4) = Weiß/Schrift, Farbe 8 (…-7) = Hellgrau/Nebentext, Farbe 9 (…-8) = Grau/Grafik.
     Halbtransparente Töne werden mit color-mix() aus diesen Farben gemischt.
   - Keine festen Schriftgrößen oder Abstände. Nur --hs-groesse-* und --hs-abstand-* (Customizer, functions.php).

   Klassen zum Anhängen im Editor (Block → Erweitert → Zusätzliche CSS-Klasse(n)):
   Glas:          hs-glas, hs-glas-stark, hs-kachel (Glas-Kachel mit Anheben beim Überfahren), hs-pille, hs-plakette
   Hintergrund:   hs-raster (80-px-Raster), hs-punkte (Punktraster), hs-schimmer-links / hs-schimmer-rechts (Lichtschimmer)
   Licht:         hs-licht (weiche Lichtflecken hinter einem Kachel-Raster, damit das Glas sichtbar wird)
   Bewegung:      hs-einblenden (beim Scrollen), hs-schweben, hs-dreht, hs-parallax, hs-laufband (Gruppe oder Liste als Laufband)
   Grafik-Bilder: hs-deko + Lage: hs-deko--einstieg, hs-deko--ring, hs-deko--kachel, hs-deko--rechts, hs-deko--kurve,
                  hs-deko--oben-links, hs-deko--unten-rechts, hs-deko--hinter, hs-deko--uebergang, hs-deko--boden
   Sonstiges:     hs-vorzeile, hs-kreis, hs-kachel-link, hs-liste, hs-fragen, hs-zahl, hs-logo, hs-illustration, hs-foto
*/

/* ==========================================================================
   Schrift: Plus Jakarta Sans, lokal
   ========================================================================== */

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/plus-jakarta-sans-400.woff2") format("woff2");
}
@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/plus-jakarta-sans-500.woff2") format("woff2");
}
@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/plus-jakarta-sans-600.woff2") format("woff2");
}
@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/plus-jakarta-sans-700.woff2") format("woff2");
}

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

:root {
	--hs-weiss-04: color-mix(in srgb, var(--ast-global-color-4) 4%, transparent);
	--hs-weiss-06: color-mix(in srgb, var(--ast-global-color-4) 6%, transparent);
	--hs-weiss-10: color-mix(in srgb, var(--ast-global-color-4) 10%, transparent);
	--hs-weiss-14: color-mix(in srgb, var(--ast-global-color-4) 14%, transparent);
	--hs-weiss-20: color-mix(in srgb, var(--ast-global-color-4) 20%, transparent);
	--hs-weiss-38: color-mix(in srgb, var(--ast-global-color-4) 38%, transparent);
	--hs-linie: color-mix(in srgb, var(--ast-global-color-4) 10%, transparent);
	--hs-radius: 24px;
	--hs-radius-gross: 28px;
	--hs-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

::selection {
	background: var(--ast-global-color-4);
	color: var(--ast-global-color-0);
}

:focus-visible,
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible,
.menu-link:focus-visible {
	outline: 2px solid var(--ast-global-color-4) !important;
	outline-offset: 3px;
}

/* Kein Fokusrahmen nach Klick mit Maus oder Finger (auch nicht Astras gestrichelter Rahmen);
   bei Bedienung mit der Tastatur bleibt der Rahmen oben sichtbar (Barrierefreiheit) */
:focus:not(:focus-visible),
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.wp-block-button__link:focus:not(:focus-visible),
.ast-custom-button:focus:not(:focus-visible),
.menu-link:focus:not(:focus-visible) {
	outline: none !important;
	box-shadow: none;
}

.entry-content :is(h1, h2, h3, h4, h5, h6),
.editor-styles-wrapper :is(h1, h2, h3, h4, h5, h6) {
	text-wrap: balance;
}

.entry-content h1,
.editor-styles-wrapper h1,
.has-display-font-size {
	line-height: 1.04;
	letter-spacing: -0.03em;
}

.entry-content :is(h2, h3),
.editor-styles-wrapper :is(h2, h3),
.has-titel-font-size {
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.entry-content :is(p, li),
.editor-styles-wrapper :is(p, li) {
	text-wrap: pretty;
}

/* Abstände zwischen Blöcken kommen aus den Block-Einstellungen, nicht aus Astras Absatz-Abständen */
.hs-abschnitt :is(p, h1, h2, h3, h4, h5, h6, ul, ol, figure) {
	margin-bottom: 0;
}

/* Vorzeile über Überschriften */
.hs-vorzeile {
	font-size: var(--hs-groesse-klein);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ast-global-color-7);
}

/* ==========================================================================
   Abschnitte und Hintergründe
   ========================================================================== */

.hs-abschnitt {
	position: relative;
	isolation: isolate;
	/* waagerecht abschneiden, senkrecht dürfen Grafiken weich in den Nachbarabschnitt auslaufen */
	overflow-x: clip;
	overflow-y: visible;
}

.hs-mit-linie {
	border-top: 1px solid var(--hs-linie);
}

.hs-raster {
	background-image:
		linear-gradient(var(--hs-weiss-06) 1px, transparent 1px),
		linear-gradient(90deg, var(--hs-weiss-06) 1px, transparent 1px);
	background-size: 80px 80px;
}

.hs-punkte {
	background-image: radial-gradient(var(--hs-weiss-10) 1px, transparent 1px);
	background-size: 22px 22px;
}

/* Lichtschimmer: weicher heller Fleck hinter dem Inhalt */
.hs-schimmer-links::before,
.hs-schimmer-rechts::before {
	content: "";
	position: absolute;
	z-index: -1;
	width: 720px;
	height: 720px;
	background: radial-gradient(closest-side, var(--hs-weiss-10), transparent);
	pointer-events: none;
}

.hs-schimmer-links::before {
	left: -200px;
	top: 0;
}

.hs-schimmer-rechts::before {
	right: -240px;
	top: 80px;
}

/* ==========================================================================
   Glas-Look
   ========================================================================== */

.hs-glas,
.wp-block-button.is-style-glas .wp-block-button__link {
	background: var(--hs-weiss-04);
	border: 1px solid var(--hs-weiss-14);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}

.hs-glas-stark {
	background: var(--hs-weiss-10);
	border: 1px solid var(--hs-weiss-20);
	-webkit-backdrop-filter: blur(22px);
	backdrop-filter: blur(22px);
}

.hs-glas,
.hs-glas-stark {
	border-radius: var(--hs-radius);
}

/* Kachel: Glas, größere Rundung, hebt sich beim Überfahren */
.hs-kachel {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: var(--hs-radius-gross);
	transition: transform 0.35s var(--hs-ease), border-color 0.35s, background-color 0.35s;
}

.hs-kachel:hover {
	transform: translateY(-4px);
	border-color: var(--hs-weiss-38);
	background: var(--hs-weiss-10);
}

.hs-kachel > * {
	position: relative;
}

/* Ganze Kachel klickbar: Link in der Überschrift mit Klasse hs-kachel-link */
.hs-kachel > :has(.hs-kachel-link),
.hs-kachel .hs-kachel-link {
	position: static;
}

.entry-content .hs-kachel-link a,
.hs-kachel-link a {
	color: inherit;
	text-decoration: none;
}

.hs-kachel-link a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

/* Sichtbarer nächster Schritt in Kacheln („Mehr zu …“, „Projekt ansehen“) */
.entry-content .hs-weiter a,
.hs-weiter a {
	color: var(--ast-global-color-4);
	white-space: nowrap;
	text-decoration: underline;
	text-decoration-color: var(--hs-weiss-38);
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
	transition: text-decoration-color .2s ease;
}

.hs-weiter .hs-pfeil {
	display: inline-block;
	transition: transform .2s ease;
}

.hs-kachel:hover .hs-weiter a,
.hs-weiter a:focus-visible {
	text-decoration-color: currentColor;
}

.hs-kachel:hover .hs-weiter .hs-pfeil {
	transform: translateX(4px);
}

/* In Karten mit Bild oben steht der Link immer bündig unten */
.hs-kachel > .wp-block-group:last-child:has(> .hs-weiter) {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.hs-kachel > .wp-block-group:last-child > .hs-weiter {
	margin-top: auto;
	padding-top: var(--hs-abstand-xs);
}

/* Sprungziele (z. B. /referenzen/#studio-333) nicht unter der schwebenden Kopfzeile */
.hs-kachel[id] {
	scroll-margin-top: 120px;
}

/* Pille (z. B. „Kreativstudio aus Hannover“) und Plakette (Preis, Stichworte) */
.hs-pille,
.hs-plakette {
	display: inline-flex;
	align-items: center;
	gap: var(--hs-abstand-xs);
	align-self: flex-start;
	width: fit-content;
	padding: var(--hs-abstand-xs) var(--hs-abstand-s);
	border-radius: 999px;
	font-size: var(--hs-groesse-klein);
}

.hs-pille {
	background: var(--hs-weiss-06);
	border: 1px solid var(--hs-weiss-14);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	color: var(--ast-global-color-7);
}

.hs-pille::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ast-global-color-4);
	box-shadow: 0 0 0 0 var(--hs-weiss-38);
	animation: hs-pulsieren 2.4s ease-out infinite;
}

/* Punkt in der Pille pulsiert langsam (wirkt „aktiv“, bleibt in der Palette) */
@keyframes hs-pulsieren {
	0% {
		box-shadow: 0 0 0 0 var(--hs-weiss-38);
	}
	70%,
	100% {
		box-shadow: 0 0 0 8px transparent;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hs-pille::before {
		animation: none;
	}
}

.hs-plakette {
	font-weight: 600;
	background: var(--hs-weiss-10);
	border: 1px solid var(--hs-weiss-20);
	-webkit-backdrop-filter: blur(22px);
	backdrop-filter: blur(22px);
}

/* Glas-Button (Block „Button“ → Stil „Glas“) */
.wp-block-button.is-style-glas .wp-block-button__link {
	color: var(--ast-global-color-4);
}

.wp-block-button.is-style-glas .wp-block-button__link:hover {
	background: var(--hs-weiss-14);
	color: var(--ast-global-color-4);
}

.wp-block-button .wp-block-button__link {
	transition: transform 0.2s, background-color 0.2s;
}

.wp-block-button .wp-block-button__link:hover {
	transform: translateY(-1px);
}

/* Nummer im Kreis (Ablauf) */
.hs-kreis {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--ast-global-color-4) 30%, transparent);
	font-weight: 700;
}

/* Große Zahlen */
.hs-zahl {
	font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Grafik-Bilder (echte Bild-Blöcke mit Klasse hs-deko + Lage)
   ========================================================================== */

.hs-abschnitt > .wp-block-image.hs-deko,
.hs-kachel > .wp-block-image.hs-deko {
	position: absolute;
	z-index: -1;
	margin: 0;
	pointer-events: none;
}

.wp-block-image.hs-deko img {
	display: block;
	width: 100%;
	height: auto;
}

.hs-kachel > .wp-block-image.hs-deko {
	z-index: -1;
}

.wp-block-image.hs-deko--einstieg {
	right: -6%;
	top: 60px;
	width: min(62vw, 860px);
	opacity: 0.55;
}

.wp-block-image.hs-deko--ring {
	right: 8%;
	top: 120px;
	width: 520px;
}

.wp-block-image.hs-deko--kachel {
	right: -60px;
	bottom: -80px;
	width: 420px;
	opacity: 0.35;
}

.wp-block-image.hs-deko--kurve {
	left: 0;
	right: 0;
	bottom: 0;
	height: 55%;
	opacity: 0.5;
}

.wp-block-image.hs-deko--kurve img {
	width: 100%;
	height: 100%;
	object-fit: fill;
}

.wp-block-image.hs-deko--oben-links {
	left: -220px;
	top: -120px;
	width: 620px;
	opacity: 0.12;
}

.wp-block-image.hs-deko--unten-rechts {
	right: -120px;
	bottom: -160px;
	width: 640px;
	opacity: 0.25;
}

@media (max-width: 820px) {
	.wp-block-image.hs-deko--einstieg {
		right: -40%;
		opacity: 0.35;
	}
	.wp-block-image.hs-deko--ring {
		display: none;
	}
}

/* Im Editor: Grafiken klein und anklickbar statt im Hintergrund */
.editor-styles-wrapper .wp-block-image.hs-deko {
	position: relative !important;
	inset: auto !important;
	width: 8rem !important;
	height: auto !important;
	opacity: 0.8 !important;
	animation: none !important;
	pointer-events: auto;
}

/* ==========================================================================
   Bewegung (alles aus bei „Bewegung reduzieren“)
   ========================================================================== */

@keyframes hs-schweben {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-18px);
	}
}

@keyframes hs-drehen {
	to {
		transform: rotate(360deg);
	}
}

@keyframes hs-laufen {
	to {
		transform: translateX(-50%);
	}
}

@keyframes hs-aufsteigen {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Wurmloch im Einstieg zieht beim Scrollen leicht nach oben weg, nie in den nächsten Abschnitt */
@keyframes hs-parallax {
	to {
		translate: 0 -90px;
		scale: 1.04;
	}
}

.hs-schweben img,
img.hs-schweben {
	animation: hs-schweben 9s ease-in-out infinite;
}

.hs-dreht img,
img.hs-dreht {
	animation: hs-drehen 60s linear infinite;
}

@supports (animation-timeline: view()) {
	.hs-einblenden {
		animation: hs-aufsteigen linear both;
		animation-timeline: view();
		animation-range: entry 0% cover 28%;
	}

	.hs-parallax {
		animation: hs-parallax linear both;
		animation-timeline: scroll(root);
		animation-range: 0 900px;
	}
}

/* Laufband: Liste mit Klasse hs-laufband (Einträge werden per Skript verdoppelt) */
.entry-content ul.hs-laufband {
	display: flex;
	gap: var(--hs-abstand-xxl);
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--hs-groesse-gross);
	font-weight: 600;
	white-space: nowrap;
	color: var(--ast-global-color-7);
	animation: hs-laufen 38s linear infinite;
}

.entry-content ul.hs-laufband li {
	margin: 0;
}

.hs-laufband-rahmen {
	overflow: hidden;
	border-top: 1px solid var(--hs-linie);
	border-bottom: 1px solid var(--hs-linie);
}

.editor-styles-wrapper ul.hs-laufband {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hs-abstand-xs) var(--hs-abstand-l);
	list-style: none;
	padding: 0;
}

@media (prefers-reduced-motion: reduce) {
	.hs-schweben img,
	img.hs-schweben,
	.hs-dreht img,
	img.hs-dreht,
	.hs-einblenden,
	.hs-parallax,
	.entry-content ul.hs-laufband {
		animation: none !important;
	}
	.entry-content ul.hs-laufband {
		flex-wrap: wrap;
		width: auto;
	}
}

/* ==========================================================================
   Listen und Fragen
   ========================================================================== */

.entry-content ul.hs-liste,
.editor-styles-wrapper ul.hs-liste {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0;
}

.entry-content .hs-liste li,
.editor-styles-wrapper .hs-liste li {
	margin: 0;
	padding-block: var(--hs-abstand-s);
	border-bottom: 1px solid var(--hs-linie);
}

.entry-content .hs-liste li:last-child {
	border-bottom: 0;
}

.hs-fragen .wp-block-details {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--hs-linie);
}

.hs-fragen .wp-block-details:last-child {
	border-bottom: 0;
}

.hs-fragen summary {
	display: flex;
	justify-content: space-between;
	gap: var(--hs-abstand-m);
	font-size: var(--hs-groesse-gross);
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	list-style: none;
	/* ganze Zeile als Tippfläche (Audit 23.11.): Abstand sitzt in der Frage, nicht im Rahmen */
	padding: var(--hs-abstand-s) 0;
}

.hs-fragen details[open] {
	padding-bottom: var(--hs-abstand-s);
}

.hs-fragen details[open] > summary {
	padding-bottom: 0;
}

.hs-fragen summary::-webkit-details-marker {
	display: none;
}

.hs-fragen summary::after {
	content: "+";
	font-weight: 400;
	transition: transform 0.3s ease;
}

.hs-fragen details[open] summary::after {
	transform: rotate(45deg);
}

/* Platzhalter und offene Fragen (vor dem Livegang entfernen) */
.hs-platzhalter-text {
	border-bottom: 1px dashed currentColor;
}

.hs-offen {
	padding: 0.1em 0.3em;
	background: #FFE97A; /* Prüfmarkierung, keine Markenfarbe */
	color: #2C2421;
}

/* ==========================================================================
   Kontaktformular in drei Schritten
   ========================================================================== */

.hs-formular {
	display: flex;
	flex-direction: column;
	gap: var(--hs-abstand-m);
	padding: var(--hs-abstand-l);
	border-radius: var(--hs-radius-gross);
	background: var(--hs-weiss-10);
	border: 1px solid var(--hs-weiss-20);
	-webkit-backdrop-filter: blur(22px);
	backdrop-filter: blur(22px);
}

.hs-formular__fortschritt {
	display: flex;
	flex-direction: column;
	gap: var(--hs-abstand-xs);
}

.hs-formular__zaehler {
	display: flex;
	justify-content: space-between;
	font-size: var(--hs-groesse-klein);
	color: var(--ast-global-color-7);
}

.hs-formular__balken {
	height: 4px;
	border-radius: 4px;
	background: var(--hs-weiss-14);
	overflow: hidden;
}

.hs-formular__balken span {
	display: block;
	height: 100%;
	width: 33%;
	background: var(--ast-global-color-4);
	transition: width 0.4s;
}

.hs-formular fieldset {
	display: flex;
	flex-direction: column;
	gap: var(--hs-abstand-s);
	margin: 0;
	padding: 0;
	border: 0;
}

.hs-formular legend,
.hs-formular__danke h3 {
	margin: 0 0 var(--hs-abstand-s);
	padding: 0;
	font-size: var(--hs-groesse-gross);
	font-weight: 600;
	color: var(--ast-global-color-4);
}

/* Zusatzfrage innerhalb eines Schritts */
.hs-formular__unterfrage {
	margin: var(--hs-abstand-xs) 0 0 !important;
	font-size: var(--hs-groesse-klein);
	font-weight: 600;
	color: var(--ast-global-color-7);
}

.hs-formular__adresse[hidden],
.hs-formular__zusatz[hidden] {
	display: none;
}

/* Zusatzfragen je nach gewählter Leistung, gleicher Abstand wie zwischen den Feldern */
.hs-formular__zusatz {
	display: flex;
	flex-direction: column;
	gap: var(--hs-abstand-s);
}

/* Kurzer Hinweis unter einer Frage */
.hs-formular__hilfe {
	margin: 0 !important;
	font-size: var(--hs-groesse-klein);
	color: var(--ast-global-color-7);
	opacity: 0.8;
}

.hs-formular__auswahl {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hs-abstand-xs);
}

.hs-formular__auswahl label {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 var(--hs-abstand-s);
	border-radius: 999px;
	border: 1px solid var(--hs-weiss-20);
	background: var(--hs-weiss-06);
	color: var(--ast-global-color-4);
	font-size: var(--hs-groesse-klein);
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.hs-formular__auswahl input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.hs-formular__auswahl label:has(input:checked) {
	background: var(--ast-global-color-4);
	border-color: var(--ast-global-color-4);
	color: var(--ast-global-color-0);
}

.hs-formular__auswahl label:has(input:focus-visible) {
	outline: 2px solid var(--ast-global-color-4);
	outline-offset: 3px;
}

.hs-formular__feld {
	display: flex;
	flex-direction: column;
	gap: var(--hs-abstand-xs);
}

.hs-formular__feld label {
	font-size: var(--hs-groesse-klein);
	font-weight: 500;
	color: var(--ast-global-color-7);
}

.hs-formular input[type="text"],
.hs-formular input[type="email"],
.hs-formular input[type="tel"],
.hs-formular textarea {
	width: 100%;
	min-height: 48px;
	padding: var(--hs-abstand-xs) var(--hs-abstand-s);
	border-radius: 14px;
	border: 1px solid var(--hs-weiss-20);
	background: var(--hs-weiss-06);
	color: var(--ast-global-color-4);
	font: inherit;
	font-size: var(--hs-groesse-klein);
	box-shadow: none;
}

.hs-formular input::placeholder,
.hs-formular textarea::placeholder {
	color: var(--ast-global-color-7);
}

.hs-formular input:focus,
.hs-formular textarea:focus {
	outline: 2px solid var(--ast-global-color-4);
	outline-offset: 2px;
	border-color: transparent;
}

.hs-formular__datenschutz {
	margin: 0;
	font-size: var(--hs-groesse-klein);
	color: var(--ast-global-color-4);
}

.hs-formular__navigation {
	display: flex;
	justify-content: space-between;
	gap: var(--hs-abstand-s);
}

.hs-formular__navigation button {
	min-height: 48px;
	padding: 0 var(--hs-abstand-m);
	border-radius: 999px;
	font: inherit;
	font-size: var(--hs-groesse-klein);
	font-weight: 600;
	cursor: pointer;
}

.hs-formular__zurueck {
	background: var(--hs-weiss-06);
	border: 1px solid var(--hs-weiss-14);
	color: var(--ast-global-color-4);
}

.hs-formular__weiter,
.hs-formular__senden {
	margin-left: auto;
	background: var(--ast-global-color-4);
	border: 0;
	color: var(--ast-global-color-0);
}

.hs-formular__fehler {
	padding: var(--hs-abstand-s);
	border-radius: 14px;
	border: 1px solid var(--hs-weiss-38);
	font-weight: 600;
}

.hs-formular__hinweis {
	font-size: var(--hs-groesse-klein);
	color: var(--ast-global-color-7);
}

.hs-formular__falle {
	position: absolute;
	left: -9999px;
}

/* Mit Skript: nur der aktive Schritt ist sichtbar */
.hs-formular.ist-schrittweise [data-schritt]:not(.ist-aktiv) {
	display: none;
}

.hs-formular:not(.ist-schrittweise) .hs-formular__fortschritt,
.hs-formular:not(.ist-schrittweise) .hs-formular__weiter,
.hs-formular:not(.ist-schrittweise) .hs-formular__zurueck {
	display: none;
}

/* ==========================================================================
   Kopfzeile (Astra-Header-Builder): schwebende Glas-Leiste
   ========================================================================== */

.site-header .ast-primary-header-bar,
.site-header .main-header-bar {
	background: transparent;
	border-bottom: 0;
}

.site-header .site-primary-header-wrap {
	max-width: calc(var(--wp--style--global--content-size, 1280px) + 2 * var(--hs-abstand-rand));
	padding-left: var(--hs-abstand-rand);
	padding-right: var(--hs-abstand-rand);
}

.site-header .site-primary-header-wrap > .ast-builder-grid-row {
	margin-top: var(--hs-abstand-m);
	padding: var(--hs-abstand-xs) var(--hs-abstand-m);
	border-radius: 999px;
	background: var(--hs-weiss-06);
	border: 1px solid var(--hs-weiss-14);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}

.site-header .main-header-menu .menu-link {
	font-size: var(--hs-groesse-klein);
	font-weight: 500;
	opacity: 0.85;
}

.site-header .main-header-menu .menu-link:hover,
.site-header .main-header-menu .current-menu-item > .menu-link {
	opacity: 1;
}

.ast-mobile-header-content,
.ast-mobile-popup-drawer .ast-mobile-popup-inner {
	background: var(--ast-global-color-0);
}

/* Handy-Menü: Einträge weiß, groß genug zum Tippen, feine Trennlinien; aktuelle Seite im Akzent */
.ast-mobile-header-content .menu-link,
.ast-hf-mobile-menu .menu-link {
	color: var(--ast-global-color-4) !important;
	font-size: var(--hs-groesse-gross);
	font-weight: 600;
	padding-block: var(--hs-abstand-s) !important;
	border-bottom: 1px solid var(--hs-linie) !important;
}

.ast-mobile-header-content .menu-item,
.ast-mobile-header-content .menu-link,
.ast-hf-mobile-menu .menu-item,
.ast-hf-mobile-menu .menu-link {
	background: transparent !important;
}

.ast-mobile-header-content .current-menu-item > .menu-link,
.ast-hf-mobile-menu .current-menu-item > .menu-link {
	color: var(--hs-akzent) !important;
}

.ast-mobile-header-content .ast-builder-layout-element {
	padding-inline: var(--hs-abstand-m);
}

/* ==========================================================================
   Fußzeile (Astra-Footer-Builder)
   ========================================================================== */

.site-footer {
	border-top: 1px solid var(--hs-linie);
}

.site-footer .ast-builder-grid-row-container {
	margin-inline: auto;
	max-width: calc(var(--wp--style--global--content-size, 1280px) + 2 * var(--hs-abstand-rand));
	padding-left: var(--hs-abstand-rand);
	padding-right: var(--hs-abstand-rand);
}

.site-footer .ast-builder-html-element img {
	display: block;
	height: 96px;
	width: auto;
}

.site-footer a {
	text-decoration: none;
}

/* Fußzeile: eigener, durchgehender Block; das Raster der Startseite endet genau auf einer Rasterlinie (hercules.js) */
.site-footer {
	position: relative;
	z-index: 1;
	isolation: isolate;
	overflow: hidden;
	background: var(--ast-global-color-0);
	font-size: var(--hs-groesse-klein);
	color: var(--ast-global-color-7);
}

.site-footer :is(.site-primary-footer-wrap, .site-below-footer-wrap, .ast-builder-grid-row-container) {
	background: transparent !important;
}

/* Sternbild Hercules, sehr dezent rechts im Hintergrund */
.site-footer::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 50%;
	right: -40px;
	width: 520px;
	aspect-ratio: 1;
	translate: 0 -50%;
	background: url("assets/grafik/sternbild-herkules.svg") center / contain no-repeat;
	opacity: 0.28;
	pointer-events: none;
}

.site-footer .site-primary-footer-wrap {
	padding-block: var(--hs-abstand-xxl);
}

.site-footer .site-primary-footer-wrap .ast-builder-grid-row {
	gap: var(--hs-abstand-l);
}

.site-footer .site-below-footer-wrap {
	border-top: 1px solid var(--hs-linie);
	padding-block: var(--hs-abstand-m);
}

.site-footer :is(p, ul) {
	margin: 0;
}

.site-footer a {
	color: var(--ast-global-color-4);
}

.site-footer a:hover {
	color: var(--ast-global-color-7);
}

/* Spalten-Überschrift und Linkliste (Widgets und HTML-Elemente im Fußzeilen-Builder) */
.hs-fuss-titel {
	margin: 0 0 var(--hs-abstand-s) !important;
	font-size: var(--hs-groesse-klein);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ast-global-color-7);
}

/* Instagram in der Fußzeile als Symbol (Farbe wie die Links, beim Überfahren heller) */
.site-footer .hs-fuss-instagram {
	display: inline-block;
	width: 24px;
	height: 24px;
	background-color: currentColor;
	-webkit-mask: url("assets/logos/instagram.svg") center / contain no-repeat;
	mask: url("assets/logos/instagram.svg") center / contain no-repeat;
	vertical-align: middle;
}

.site-footer ul.hs-fuss-liste {
	display: grid;
	gap: var(--hs-abstand-xs);
	padding: 0;
	list-style: none;
}

.site-footer .hs-fuss-text {
	max-width: 30ch;
	margin-top: var(--hs-abstand-s);
}

.site-footer .footer-nav-wrap .ast-nav-menu {
	flex-wrap: nowrap;
	gap: var(--hs-abstand-m);
}

.site-footer .footer-nav-wrap .menu-link {
	padding: 0;
	font-size: var(--hs-groesse-klein);
}

/* Untere Leiste (Copyright, Impressum, Datenschutz) mittig; Heinrich 12.11. Auf breiten Bildschirmen eine Zeile, sonst zwei */
.site-footer .site-below-footer-wrap .ast-builder-footer-grid-columns {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	column-gap: var(--hs-abstand-l);
	row-gap: var(--hs-abstand-xs);
	text-align: center;
}

.site-footer .site-below-footer-wrap .site-footer-section {
	flex: 0 1 auto;
	width: auto;
	justify-content: center;
	text-align: center;
}

.site-footer .site-below-footer-wrap .footer-nav-wrap .ast-nav-menu {
	justify-content: center;
}

/* Button „Anfrage stellen“ in der Fußzeile (ersetzt die vier Einzel-Links): dunkle Schrift auf Sternenlicht */
.site-footer .wp-block-button__link,
.site-footer .wp-block-button__link:hover {
	color: var(--ast-global-color-0);
}

/* Nach-oben-Button im Glas-Look */
#ast-scroll-top {
	border-radius: 999px !important;
	background: var(--hs-weiss-10) !important;
	border: 1px solid var(--hs-weiss-20);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	box-shadow: inset 0 1px 0 var(--hs-weiss-20);
	color: var(--ast-global-color-4) !important;
}

#ast-scroll-top:hover {
	background: var(--hs-weiss-20) !important;
}

/* Handy: Kacheln so hoch wie ihr Inhalt, Kurve dezenter hinter dem Text */
@media (max-width: 600px) {
	.hs-kachel {
		min-height: 0 !important;
	}

	.hs-zahl.has-titel-font-size {
		font-size: min(var(--hs-groesse-gross), 17cqi) !important;
	}

	.wp-block-image.hs-deko--kurve {
		height: 40%;
		opacity: 0.25;
	}
}

/* ==========================================================================
   Seiten: Astras Artikel-Innenabstand entfernen
   ========================================================================== */

.hs-seite .site-main > article {
	padding: 0 !important;
	margin: 0 !important;
}

/* ==========================================================================
   Version 3.1: Glanz, Licht, Grafik, Laufband mit Logos, durchgehendes Raster
   ========================================================================== */

/* Nie umbrechen: Buttons, Preise, Zahlen, kurze Begriffe */
.wp-block-button__link,
.ast-custom-button,
.hs-pille,
.hs-plakette,
.hs-zahl,
.hs-kreis,
.site-header .menu-link,
.hs-formular__navigation button,
.hs-formular__auswahl label,
.hs-logo {
	white-space: nowrap;
}

/* Große Zahlen und Preise in Kacheln wachsen mit der Kachel: höchstens Größe „Titel“, in schmalen Kacheln kleiner.
   Zahl und Einheit bleiben zusammen (geschütztes Leerzeichen), längere Preise wie „49 € im Monat“ dürfen umbrechen. */
.hs-glas:has(.hs-zahl.has-titel-font-size),
.hs-kachel:has(.hs-zahl.has-titel-font-size) {
	container-type: inline-size;
}

.hs-zahl.has-titel-font-size {
	font-size: min(var(--hs-groesse-titel), 17cqi) !important;
	white-space: normal;
}

/* Startseite: Zahlenleiste etwas kleiner, damit „Eigenes Studio“ auf allen Größen in eine Zeile passt (22.11.) */
.home .hs-zahl.has-titel-font-size {
	font-size: min(var(--hs-groesse-titel), 14cqi) !important;
}

@media (max-width: 600px) {
	.home .hs-zahl.has-titel-font-size {
		font-size: min(var(--hs-groesse-gross), 14cqi) !important;
	}
}

/* Glas: helle Lichtkante oben und leichter Glanzverlauf */
.hs-glas,
.hs-glas-stark,
.hs-pille,
.hs-plakette,
.hs-formular,
.wp-block-button.is-style-glas .wp-block-button__link,
.site-header .site-primary-header-wrap > .ast-builder-grid-row {
	box-shadow: inset 0 1px 0 var(--hs-weiss-38), inset 0 0 24px var(--hs-weiss-04);
}

.hs-glas,
.hs-glas-stark {
	background-image: linear-gradient(180deg, var(--hs-weiss-06), transparent 42%);
}

.hs-glas.hs-punkte,
.hs-glas-stark.hs-punkte {
	background-image:
		linear-gradient(180deg, var(--hs-weiss-06), transparent 42%),
		radial-gradient(var(--hs-weiss-10) 1px, transparent 1px);
	background-size: auto, 22px 22px;
}

/* Kachel: Schimmer läuft beim Überfahren einmal über die Fläche */
.hs-kachel::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(115deg, transparent 35%, var(--hs-weiss-10) 50%, transparent 65%);
	transform: translateX(-120%);
	transition: transform 0.9s var(--hs-ease);
	pointer-events: none;
}

.hs-kachel:hover::before {
	transform: translateX(120%);
}

.hs-kachel:hover {
	box-shadow: inset 0 1px 0 var(--hs-weiss-38), inset 0 0 0 1px var(--hs-weiss-10);
}

/* Lichtflecken hinter einem Kachel-Raster: geben dem Glas etwas zum Verschwimmen */
.hs-licht {
	position: relative;
}

.hs-licht::before {
	content: "";
	/* bewusst ohne Animation: wandernde, weichgezeichnete Flecken unter Glas lassen das Scrollen haken */
	position: absolute;
	z-index: -1;
	inset: -12% -6%;
	background:
		radial-gradient(26% 38% at 16% 28%, var(--hs-weiss-14), transparent 70%),
		radial-gradient(22% 34% at 80% 72%, var(--hs-weiss-10), transparent 70%),
		radial-gradient(16% 26% at 54% 8%, var(--hs-weiss-10), transparent 70%);
	filter: blur(28px);
	pointer-events: none;
}

/* Weitere Lagen für Grafik-Bilder */
/* Feldlinien hinter Kachel-Rastern: so groß, dass sie oben, unten und seitlich herausragen */
.wp-block-image.hs-deko--hinter {
	left: 50%;
	top: 55%;
	width: min(2000px, 170%);
	height: 130%;
	translate: -50% -50%;
	opacity: 1;
}

/* Feldlinien: breiter Kern, erst am Rand ausblenden, damit sie neben und zwischen den Kacheln gut sichtbar sind */
.hs-abschnitt > .wp-block-image.hs-deko.hs-deko--hinter:not(.hs-deko--boden) img {
	-webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent);
	mask-image: radial-gradient(closest-side, #000 78%, transparent);
	filter: brightness(1.6);
}

.wp-block-image.hs-deko--hinter img {
	height: 100%;
	/* bewusst gestreckt: so gefallen Heinrich die Feldlinien (09.11., „vorher besser“) */
	object-fit: fill;
}

/* Sternbild Hercules links im Einstieg der Startseite, sehr zurückhaltend */
.wp-block-image.hs-deko--sternbild-links {
	left: 1%;
	top: -20px;
	width: min(400px, 32%);
	opacity: 0.5;
}

/* Grafik rechts, senkrecht mittig, klein (z. B. drehendes Wurmloch beim Ansprechpartner) */
.wp-block-image.hs-deko--rechts-mitte {
	right: -140px;
	top: 50%;
	width: 480px;
	translate: 0 -50%;
	opacity: 0.18;
}

.wp-block-image.hs-deko--unten-links {
	left: -160px;
	bottom: -240px;
	width: 600px;
	opacity: 0.28;
}

/* Stärkere Lichtflecken, z. B. hinter dem Formular */
.hs-licht--stark::before {
	inset: -18% -10%;
	background:
		radial-gradient(30% 40% at 12% 20%, var(--hs-weiss-20), transparent 70%),
		radial-gradient(28% 38% at 88% 80%, var(--hs-weiss-14), transparent 70%),
		radial-gradient(22% 30% at 60% 45%, var(--hs-weiss-10), transparent 70%);
	filter: blur(36px);
}

/* Boden-Raster in Perspektive hinter den Kacheln: unten breit, nach oben zum Fluchtpunkt zusammenlaufend (Klasse am Abschnitt) */
.hs-boden-raster::after {
	content: "";
	position: absolute;
	z-index: -1;
	left: -15%;
	right: -15%;
	bottom: 0;
	height: 88%;
	background: url("assets/grafik/raster-perspektive.svg") center bottom / 100% 100% no-repeat;
	/* hinten (oben) früher ausblenden, dort laufen die Linien zu dicht zusammen */
	-webkit-mask-image: linear-gradient(0deg, #000 45%, transparent 82%);
	mask-image: linear-gradient(0deg, #000 45%, transparent 82%);
	pointer-events: none;
}

/* Hintergrundraster: ab Abschnittsbeginn langsam immer leiser, am Boden fast weg, erst ganz unten weich zurück
   (Ablauf mit Bodengitter) */
body .hs-abschnitt.hs-raster-verlauf {
	background-image: linear-gradient(180deg,
		transparent,
		color-mix(in srgb, var(--ast-global-color-0) 45%, transparent) 30%,
		color-mix(in srgb, var(--ast-global-color-0) 92%, transparent) 62%,
		color-mix(in srgb, var(--ast-global-color-0) 92%, transparent) 90%,
		transparent);
}

/* Variante „weit“: Ausblendung reicht oben und unten über den Abschnitt hinaus,
   damit auch die Rasterlinie direkt davor und die direkt danach verschwinden */
body .hs-abschnitt.hs-raster-leiser--weit {
	background-image: none;
}

.hs-raster-leiser--weit::before {
	content: "";
	position: absolute;
	z-index: -2;
	left: 0;
	right: 0;
	/* oben nur bis zur Unterkante des Abschnitts davor (dessen Innenabstand), sonst würde dessen Inhalt abgedunkelt */
	top: calc(-1 * var(--hs-abstand-xl));
	bottom: -170px;
	background: linear-gradient(180deg,
		transparent 0,
		color-mix(in srgb, var(--ast-global-color-0) 88%, transparent) 40px,
		color-mix(in srgb, var(--ast-global-color-0) 88%, transparent) calc(100% - 60px),
		transparent 100%);
	pointer-events: none;
}

/* Hintergrundraster der Seite in diesem Abschnitt weich ausblenden (zu den Rändern kommt es wieder) */
body .hs-abschnitt.hs-raster-leiser {
	/* eine Fläche über den ganzen Abschnitt; nicht kacheln (die Klasse hs-raster setzt sonst 80 px Kachelgröße) */
	background-size: 100% 100%;
	background-repeat: no-repeat;
	background-image: linear-gradient(180deg,
		transparent,
		color-mix(in srgb, var(--ast-global-color-0) 88%, transparent) 10%,
		color-mix(in srgb, var(--ast-global-color-0) 88%, transparent) 90%,
		transparent);
}


.wp-block-image.hs-deko--uebergang {
	left: 0;
	right: 0;
	top: 0;
	translate: 0 -50%;
	opacity: 0.7;
}

.wp-block-image.hs-deko--sternbild {
	right: -2%;
	top: 50%;
	width: min(620px, 55%);
	translate: 0 -50%;
	opacity: 0.55;
}

.wp-block-image.hs-deko--boden {
	left: 50%;
	bottom: 0;
	width: min(1600px, 140%);
	translate: -50% 0;
	opacity: 0.45;
}

.hs-kachel > .wp-block-image.hs-deko--rechts {
	right: var(--hs-abstand-l);
	top: 50%;
	width: 44%;
	max-width: 380px;
	translate: 0 -50%;
	opacity: 0.9;
}

/* Illustration oben in einer kleinen Kachel (normaler Bild-Block) */
.wp-block-image.hs-illustration {
	margin: 0;
}

.wp-block-image.hs-illustration img {
	display: block;
	width: auto;
	height: 140px;
	max-width: 100%;
	opacity: 0.9;
}

/* Fotos im Glasrahmen */
.wp-block-image.hs-foto {
	margin: 0;
	padding: var(--hs-abstand-xs);
	border-radius: var(--hs-radius-gross);
}

.wp-block-image.hs-foto img {
	display: block;
	border-radius: var(--hs-radius);
}

/* Laufband als Gruppe: Logos und Schriftzüge (Einträge werden per Skript verdoppelt) */
.entry-content .wp-block-group.hs-laufband {
	flex-wrap: nowrap;
	width: max-content;
	will-change: transform;
	animation: hs-laufen 38s linear infinite;
}

.hs-logo {
	align-items: center;
	/* alle Logos einheitlich weiß wie das offizielle Shopify-Logo (Heinrich 23.11.) */
	color: var(--ast-global-color-4, #fff);
	font-size: var(--hs-groesse-text);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.hs-logo .wp-block-image {
	margin: 0;
}

/* Logo-Größe = Breite im Bild-Block (Bild auswählen → Breite), Höhe ergibt sich */
.hs-logo .wp-block-image img {
	display: block;
	height: auto;
	opacity: 0.9;
}

.hs-laufband-rahmen {
	/* Platz unter den Logos für die Beschriftung beim Überfahren (09.11. von 48 auf 32 px, Abstand zum nächsten Block war zu groß) */
	padding-block: var(--hs-abstand-m) var(--hs-abstand-l);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.editor-styles-wrapper .wp-block-group.hs-laufband {
	flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
	.entry-content .wp-block-group.hs-laufband {
		flex-wrap: wrap;
		width: auto;
		animation: none !important;
	}

	.hs-kachel::before {
		display: none;
	}
}

/* Grafiken im Hintergrund laufen weich aus statt an der Abschnittskante abzubrechen */
.hs-abschnitt > .wp-block-image.hs-deko:not(.hs-deko--boden) img {
	-webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent);
	mask-image: radial-gradient(closest-side, #000 62%, transparent);
}

.hs-abschnitt > .wp-block-image.hs-deko.hs-deko--einstieg:not(.hs-deko--boden) img {
	-webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 92%);
	mask-image: linear-gradient(180deg, #000 55%, transparent 92%);
}

/* Startseite: ein durchgehendes Raster hinter allen Abschnitten, Kopf- und Fußzeile, ohne Trennlinien quer durch die Kästchen */
body.home {
	background-image:
		linear-gradient(var(--hs-weiss-06) 1px, transparent 1px),
		linear-gradient(90deg, var(--hs-weiss-06) 1px, transparent 1px);
	background-size: 80px 80px;
	background-position: center top;
}

.home :is(#page, .site-content, .ast-container, .site-main, article, .site-header, .main-header-bar-wrap, #masthead) {
	background-color: transparent !important;
}

.home .hs-raster {
	background-image: none;
}

.home :is(.hs-mit-linie, .hs-laufband-rahmen) {
	border-top: 0;
	border-bottom: 0;
}

/* Wurmloch im Einstieg sitzt hoch, hinter der Glas-Leiste der Kopfzeile */
.home .site-header {
	position: relative;
	z-index: 20;
}

.home .wp-block-image.hs-deko--einstieg {
	top: -130px;
}


/* Handy */
@media (max-width: 600px) {
	.wp-block-image.hs-deko--sternbild {
		width: 90%;
		opacity: 0.3;
	}

	.wp-block-image.hs-deko--sternbild-links {
		width: 70%;
		opacity: 0.22;
	}

	.site-footer::before {
		width: 360px;
	}

	.hs-kachel > .wp-block-image.hs-deko--rechts {
		top: auto;
		right: -10%;
		bottom: -10%;
		width: 70%;
		translate: none;
		opacity: 0.25;
	}

	.wp-block-image.hs-illustration img {
		height: 110px;
	}
}

/* Variante A (07.11.): Licht statt Farbe */

/* Lichtflecken wandern sehr langsam */
@keyframes hs-wandern {
	from {
		translate: -3% -2%;
	}
	to {
		translate: 3% 2%;
	}
}

/* Weicher Schein hinter dem Wurmloch im Einstieg */
.hs-abschnitt:has(> .hs-deko--einstieg)::before {
	content: "";
	position: absolute;
	z-index: -2;
	right: 2%;
	top: -160px;
	width: min(900px, 70vw);
	aspect-ratio: 1;
	background: radial-gradient(closest-side, var(--hs-weiss-14), var(--hs-weiss-04) 55%, transparent);
	filter: blur(24px);
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.hs-licht::before {
		animation: none;
	}
}

/* Logo-Laufband: beim Überfahren anhalten, Logo vergrößern, Namen als Glas-Pille zeigen */
.entry-content .wp-block-group.hs-laufband:hover {
	animation-play-state: paused;
}

.hs-logo {
	position: relative;
}

.hs-logo .wp-block-image img,
.hs-logo p {
	transition: transform 0.3s var(--hs-ease), opacity 0.3s;
}

.hs-logo:hover .wp-block-image img,
.hs-logo:hover p {
	transform: scale(1.3);
	opacity: 1;
}

.hs-logo[data-name]::after {
	content: attr(data-name);
	position: absolute;
	left: 50%;
	/* ab der Logo-Mitte gemessen, damit es bei allen Logos (auch breiten wie WooCommerce) gleich sitzt */
	top: calc(50% + 26px);
	translate: -50% 4px;
	padding: 2px var(--hs-abstand-xs);
	border-radius: 999px;
	background: var(--hs-weiss-10);
	border: 1px solid var(--hs-weiss-20);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	color: var(--ast-global-color-4);
	font-size: var(--hs-groesse-klein);
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s, translate 0.25s var(--hs-ease);
}

.hs-logo[data-name]:hover::after {
	opacity: 1;
	translate: -50% 0;
}

/* Abschnitt beschneidet seine Grafiken an allen Kanten (z. B. Abschluss: Wurmloch ragt sonst in den Abschnitt davor) */
.hs-abschnitt.hs-beschnitten {
	overflow: clip;
}

/* ==========================================================================
   Akzent „Sternenlicht“ (Customizer Farbe 2, freigegeben 08.11.): nur an wenigen kleinen Stellen, nie als Fläche
   ========================================================================== */

:root {
	--hs-akzent: var(--ast-global-color-1);
	--hs-akzent-schein: color-mix(in srgb, var(--ast-global-color-1) 35%, transparent);
}

.hs-pille::before {
	background: var(--hs-akzent);
	box-shadow: 0 0 10px var(--hs-akzent-schein);
}

@keyframes hs-pulsieren {
	0% {
		box-shadow: 0 0 0 0 var(--hs-akzent-schein);
	}
	70%,
	100% {
		box-shadow: 0 0 0 8px transparent;
	}
}

.hs-vorzeile {
	color: var(--hs-akzent);
}

.hs-plakette {
	color: var(--hs-akzent);
	border-color: color-mix(in srgb, var(--ast-global-color-1) 45%, transparent);
}

.hs-kreis {
	color: var(--hs-akzent);
	border-color: var(--hs-akzent);
	box-shadow: 0 0 18px var(--hs-akzent-schein);
}

.hs-formular__balken span,
.hs-formular__auswahl label:has(input:checked),
.hs-formular__weiter,
.hs-formular__senden {
	background: var(--hs-akzent);
	border-color: var(--hs-akzent);
}

/* Buttons im Akzent: beim Überfahren bleibt die Farbe, der Button strahlt wie ein Stern */
.wp-block-button:not(.is-style-glas) .wp-block-button__link,
.ast-custom-button,
.hs-formular__weiter,
.hs-formular__senden {
	transition: transform 0.2s, box-shadow 0.25s;
}

.wp-block-button:not(.is-style-glas) .wp-block-button__link:hover,
.ast-custom-button:hover,
.hs-formular__weiter:hover,
.hs-formular__senden:hover {
	background-color: var(--hs-akzent);
	color: var(--ast-global-color-0);
	box-shadow: 0 0 0 1px var(--hs-akzent), 0 0 28px 2px var(--hs-akzent-schein);
	transform: translateY(-1px);
}

/* Bilder direkt in Glas-Karten füllen immer die volle Kartenbreite (auch wenn die Bilddatei schmaler ist) */
.hs-glas > .wp-block-image:not(.hs-deko),
.hs-glas > .wp-block-image:not(.hs-deko) img {
	width: 100%;
	margin: 0;
}


/* ==========================================================================
   Handy und Tablet aufgeräumt (08.11.)
   ========================================================================== */

/* Überschriften gleichmäßig umbrechen, keine einzelnen Wörter in der letzten Zeile */
h1,
h2,
h3 {
	text-wrap: balance;
}

p,
li {
	text-wrap: pretty;
}

/* Touch-Geräte und schmale Bildschirme: Glas ohne Weichzeichner. Safari schneidet weichgezeichnete
   Flächen beim Scrollen und Einblenden oben oder unten ab; deckende Kacheln sind ruhiger und schneller. */
/* Glas mit Weichzeichner gilt seit 16.11. auch auf Handy/Touch wie auf dem Desktop (Heinrichs Entscheidung; die Zahlen-Kacheln hat er auf dem iPhone geprüft).
   Vorher (08.11.) war es dort abgeschaltet und durch feste Flächen ersetzt. */
@media (max-width: 921px), (hover: none) {
	/* Safari/iPhone: unterer Rand der Einstiegs-Kacheln blitzte beim Scrollen (11.11.). Eigene Zeichenebene für die ganze
	   Kachelgruppe, unten mit 4 px Luft, damit die Ebene die Randlinie der letzten Reihe nicht abschneidet (Ebene je Kachel
	   schnitt sie ab). Der Weichzeichner der Lichtflächen bleibt, ohne ihn entstehen eckige Lichtflecken. */
	.hs-licht:has(.hs-zahl) {
		transform: translateZ(0);
		padding-bottom: 4px;
	}

	.hs-einblenden {
		animation: none !important;
	}
}

@media (max-width: 600px) {
	/* Leistungen: Grafik der breiten Kacheln oben wie bei den schmalen, nicht hinter dem Text */
	.hs-kachel > .wp-block-image.hs-deko--rechts {
		position: static;
		width: 100%;
		max-width: 240px;
		margin: 0 auto;
		opacity: 0.85;
	}

	.hs-kachel > .wp-block-image.hs-deko--rechts img {
		max-height: 120px;
		width: auto;
		margin: 0 auto;
	}

	/* Kennzahlen (Referenzen): pro Kennzahl eine flache Zeile statt einer hohen Kachel */
	.hs-kennzahlen > .hs-glas {
		flex-direction: row !important;
		flex-wrap: wrap;
		align-items: baseline;
		column-gap: var(--hs-abstand-s) !important;
		row-gap: 2px !important;
		padding: 12px var(--hs-abstand-s) !important;
	}

	.hs-kennzahlen > .hs-glas > p:first-child {
		flex-basis: 100%;
	}

	.hs-kennzahlen > .hs-glas > p {
		margin: 0 !important;
	}

}

/* Handy-Menü als Seitenpanel von rechts (Customizer: Kopfzeilen-Builder → Umschalter → Off-Canvas) */
.ast-mobile-popup-drawer .ast-mobile-popup-overlay {
	background-color: rgb(12 9 8 / 0.62);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.ast-mobile-popup-drawer .ast-mobile-popup-inner,
.ast-mobile-popup-drawer.active .ast-mobile-popup-inner {
	max-width: min(86%, 360px);
	background-color: var(--ast-global-color-0);
	background-image: linear-gradient(180deg, var(--hs-weiss-06), transparent 30%);
	border-left: 1px solid var(--hs-weiss-14);
	box-shadow: -24px 0 64px rgb(0 0 0 / 0.5);
	padding: var(--hs-abstand-s) var(--hs-abstand-m) var(--hs-abstand-l);
	color: var(--ast-global-color-4);
}

.ast-mobile-popup-drawer .ast-mobile-popup-header .menu-toggle-close,
.ast-mobile-popup-drawer.active .menu-toggle-close {
	color: var(--ast-global-color-4);
	padding: 12px 0 12px 12px;
}

.ast-mobile-popup-content .main-header-menu,
.ast-mobile-popup-content .main-header-menu .menu-item {
	background: transparent !important;
	border: 0 !important;
}

.ast-mobile-popup-content .main-header-menu .menu-item > .menu-link {
	color: var(--ast-global-color-4) !important;
	font-size: var(--hs-groesse-gross);
	font-weight: 600;
	padding: 14px 0 !important;
	border-bottom: 1px solid var(--hs-weiss-10) !important;
	background: transparent !important;
}

.ast-mobile-popup-content .main-header-menu .current-menu-item > .menu-link {
	color: var(--hs-akzent) !important;
}

.ast-mobile-popup-content .ast-header-button-1 {
	margin-top: var(--hs-abstand-l);
}

.ast-mobile-popup-content .ast-header-button-1 .ast-custom-button {
	display: block;
	width: 100%;
	text-align: center;
}

.ast-mobile-popup-content .main-header-menu .menu-item > .menu-link {
	line-height: 1.3;
}

.ast-mobile-popup-content .ast-header-button-1,
.ast-mobile-popup-content .ast-builder-button-wrap {
	display: block;
	width: 100%;
	margin-left: 0;
	padding-left: 0;
}

.ast-mobile-popup-content .ast-builder-layout-element.site-header-focus-item:has(.ast-header-button-1),
.ast-mobile-popup-content .ast-builder-layout-element:has(.ast-custom-button) {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.ast-mobile-popup-content .ast-custom-button-link {
	display: block;
}

/* Ablauf auf dem Handy: Nummer und Schritt enger zusammen */
@media (max-width: 600px) {
	.hs-kachel:has(> .hs-kreis) {
		gap: var(--hs-abstand-s) !important;
	}
}

@media (max-width: 600px) {
	/* Unterseiten: Foto im Einstieg quer statt bildschirmhoch */
	.hs-einstieg-foto img {
		aspect-ratio: 3 / 2 !important;
	}

	/* Hochformat-Fotos mit ganzer Person (z. B. Onlineshops): im Hochformat lassen, sonst fehlt der Kopf (Heinrich 23.11.) */
	.hs-einstieg-foto.hs-foto-hoch img {
		aspect-ratio: 4 / 5 !important;
		object-position: center;
	}

	/* Bildbeispiele: erstes Bild breit, die anderen zwei nebeneinander */
	.hs-bildreihe {
		grid-template-columns: 1fr 1fr !important;
	}

	.hs-bildreihe > :first-child {
		grid-column: 1 / -1;
	}

	.hs-bildreihe > :first-child img {
		aspect-ratio: 4 / 3 !important;
	}

	/* Ab vier Bildern: gleichmäßig zu zweit, ohne breites erstes Bild */
	.hs-bildreihe:has(> :nth-child(4)) > :first-child {
		grid-column: auto;
	}

	.hs-bildreihe:has(> :nth-child(4)) > :first-child img {
		aspect-ratio: 4 / 5 !important;
	}
}

/* Diagramme in Karten: Luft zum Kartenrand, nichts wird angeschnitten */
.hs-diagramm img {
	box-sizing: border-box;
	object-fit: contain !important;
	padding: var(--hs-abstand-m) var(--hs-abstand-m) var(--hs-abstand-xs);
}

/* Zahlen-Kacheln: kurze Texte normal umbrechen (Safari bricht mit „pretty“ zu früh um) */
.hs-glas:has(> .hs-zahl) p {
	text-wrap: wrap;
}

@media (max-width: 600px) {
	.hs-glas:has(> .hs-zahl) {
		padding: var(--hs-abstand-s) !important;
	}
}

/* Kopfzeile auf Handy und Tablet (bis 1210 px): flache Leiste statt 105 px hoch */
@media (max-width: 1210px) {
	.ast-mobile-header-wrap .ast-primary-header-bar,
	.ast-mobile-header-wrap .site-primary-header-wrap {
		min-height: 0 !important;
	}

	/* Schwebende Glas-Pille, bleibt beim Scrollen oben stehen (Heinrich 08.11.) */
	.site-header,
	.home .site-header {
		position: sticky;
		top: 0;
		z-index: 50;
	}

	.site-header .site-primary-header-wrap > .ast-builder-grid-row {
		margin-top: var(--hs-abstand-s);
		/* oben und unten Luft ums Logo (nicht bis an den Pillenrand) */
		padding: 10px var(--hs-abstand-xs) 10px var(--hs-abstand-m);
		min-height: 0;
		transition: background-color 0.25s, box-shadow 0.25s;
	}

	/* Nach dem ersten Scrollen: dichteres Glas, damit die Pille über Text und Bildern lesbar bleibt */
	.hs-gescrollt .site-header .site-primary-header-wrap > .ast-builder-grid-row {
		background-color: color-mix(in srgb, var(--ast-global-color-0) 94%, transparent);
		box-shadow: inset 0 1px 0 var(--hs-weiss-38), 0 8px 32px rgb(0 0 0 / 0.35);
	}

	/* Logo nie verzerren: Breite kommt aus dem Customizer (Logo-Breite), die Höhe ergibt sich immer aus dem Seitenverhältnis */
	.ast-mobile-header-wrap .custom-logo {
		height: auto !important;
		max-height: none !important;
	}

	.ast-mobile-header-wrap .site-branding {
		padding: 0 !important;
	}

	.ast-mobile-header-wrap .menu-toggle {
		padding: 12px !important;
	}
}

/* Schließen-Knopf im Handy-Menü: kein gepunkteter Astra-Rahmen nach dem Antippen, nur bei Tastatur ein klarer Rahmen */
.ast-mobile-popup-drawer .menu-toggle-close,
.ast-mobile-popup-drawer.active .menu-toggle-close:focus {
	border: 0 !important;
	outline: none !important;
}

.ast-mobile-popup-drawer.active .menu-toggle-close:focus-visible {
	outline: 2px solid var(--ast-global-color-4) !important;
	outline-offset: 2px;
	border-radius: 999px;
}

/* Eingeloggt (nur Redaktion): Kopfleiste unter der WordPress-Leiste */
@media (min-width: 601px) and (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

/* Unterseiten: Kopfzeile liegt über dem ersten Abschnitt, damit dessen Gitter wie auf der Startseite bis ganz oben läuft.
   --hs-kopf (Höhe der Kopfzeile) setzt hercules.js; die Werte hier sind nur Rückfall. */
body:not(.home) {
	--hs-kopf: 140px;
}

@media (max-width: 1210px) {
	body:not(.home) {
		--hs-kopf: 65px;
	}
}

body:not(.home) .site-header {
	margin-bottom: calc(-1 * var(--hs-kopf));
	z-index: 50;
}

@media (min-width: 922px) {
	body:not(.home) .site-header {
		position: relative;
	}
}

body:not(.home) :is(#masthead, .main-header-bar-wrap, .ast-primary-header-bar, .ast-mobile-header-wrap .ast-primary-header-bar) {
	background-color: transparent !important;
}

body:not(.home) .entry-content > .hs-abschnitt:first-child {
	padding-top: calc(var(--hs-kopf) + var(--hs-abstand-xxl)) !important;
}

/* Startseite auf dem Handy: Pille über der Überschrift weg (steht in der Unterzeile ohnehin) */
@media (max-width: 600px) {
	.home .hs-abschnitt:first-child .hs-pille {
		display: none;
	}
}

/* Burger: kein gepunkteter Astra-Rahmen, wenn das Menü per Finger geschlossen wird und der Fokus zurückspringt */
.ast-mobile-header-wrap .menu-toggle,
.ast-mobile-header-wrap .menu-toggle:focus {
	border: 0 !important;
	outline: none !important;
}

.ast-mobile-header-wrap .menu-toggle:focus-visible {
	outline: 2px solid var(--ast-global-color-4) !important;
	outline-offset: 2px;
	border-radius: 999px;
}

/* Handy und Tablet: Kopf-Button („Projekt anfragen“) als kleiner Button in der Pille, neben dem Burger */
@media (max-width: 1210px) {
	.ast-mobile-header-wrap .site-header-primary-section-right {
		gap: var(--hs-abstand-xs);
		align-items: center;
	}

	.ast-mobile-header-wrap .ast-builder-button-wrap .ast-custom-button {
		padding: 9px 16px !important;
		font-size: var(--hs-groesse-klein) !important;
		line-height: 1.2 !important;
		white-space: nowrap;
	}
}

/* Handy-Menü als Glas-Karte, die sich unter der Pille öffnet (Customizer: Kopfzeilen-Builder → Umschalter → Dropdown).
   Sie liegt über dem Inhalt und schiebt nichts nach unten. */
@media (max-width: 1210px) {
	.ast-mobile-header-wrap {
		position: relative;
	}

	.ast-mobile-header-wrap .ast-mobile-header-content {
		position: absolute;
		top: calc(100% + var(--hs-abstand-xs));
		/* bündig mit der Pille (Astra-Kopfzeile hat auf Handy und Tablet 20 px Seitenabstand) */
		left: 20px;
		right: 20px;
		z-index: 60;
		padding: var(--hs-abstand-xs) var(--hs-abstand-m) var(--hs-abstand-s);
		background-color: color-mix(in srgb, var(--ast-global-color-0) 95%, transparent) !important;
		background-image: linear-gradient(180deg, var(--hs-weiss-06), transparent 40%);
		border: 1px solid var(--hs-weiss-14);
		border-radius: var(--hs-radius);
		box-shadow: inset 0 1px 0 var(--hs-weiss-38), 0 30px 60px -20px rgb(0 0 0 / 0.7);
		-webkit-backdrop-filter: blur(20px);
		backdrop-filter: blur(20px);
	}

	.ast-mobile-header-wrap .ast-mobile-header-content {
		width: auto !important;
		box-sizing: border-box;
	}

	.ast-mobile-header-content > *,
	.ast-mobile-header-content .ast-builder-layout-element,
	.ast-mobile-header-content .ast-main-header-bar-alignment,
	.ast-mobile-header-content .main-header-bar-navigation,
	.ast-mobile-header-content .main-navigation,
	.ast-mobile-header-content .main-header-menu {
		width: 100%;
		margin: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.ast-mobile-header-content .main-header-menu,
	.ast-mobile-header-content .main-header-menu .menu-item {
		background: transparent !important;
		border: 0 !important;
	}

	.ast-mobile-header-content .main-header-menu .menu-item {
		display: block !important;
		width: 100% !important;
	}

	.ast-mobile-header-content .main-header-menu .menu-item > .menu-link {
		display: flex !important;
		width: 100% !important;
		justify-content: space-between;
		align-items: center;
		color: var(--ast-global-color-4) !important;
		font-size: var(--hs-groesse-gross);
		font-weight: 600;
		line-height: 1.3;
		padding: 16px 0 !important;
		border-bottom: 1px solid var(--hs-weiss-10) !important;
		background: transparent !important;
	}

	.ast-mobile-header-content .main-header-menu .menu-item:last-child > .menu-link {
		border-bottom: 0 !important;
	}

	.ast-mobile-header-content .main-header-menu .menu-item > .menu-link::after {
		content: "→";
		color: var(--ast-global-color-7);
		font-weight: 400;
	}

	.ast-mobile-header-content .main-header-menu .current-menu-item > .menu-link,
	.ast-mobile-header-content .main-header-menu .current-menu-item > .menu-link::after {
		color: var(--hs-akzent) !important;
	}
}

/* Footer: Schriftzug „Hercules Studios“ groß über die volle Breite als Kopf des Footers (offizielle Datei aus 01_Marke/logo,
   Seitenverhältnis original 347.62 : 92.25). Das komplette Logo bleibt oben links im Footer. */
.site-footer {
	display: flex;
	flex-direction: column;
}

/* Schriftzug steht oben im Footer, über den Spalten (order: -1) */
.site-footer::after {
	content: "";
	order: -1;
	display: block;
	width: min(100% - 2 * var(--hs-abstand-rand), var(--wp--style--global--content-size, 1280px));
	aspect-ratio: 347.62 / 92.25;
	margin: var(--hs-abstand-xl) auto var(--hs-abstand-s);
	background: url("assets/grafik/schriftzug.svg") center / contain no-repeat;
	opacity: 0.1;
	pointer-events: none;
}

/* Zwischen 922 und 1210 px passen Menü und Button nicht in die Desktop-Leiste: dort die Handy-Kopfzeile zeigen
   (Pille mit Logo, Erstgespräch, Burger und Glas-Karte). Astra selbst schaltet fest bei 921 px um. */
@media (min-width: 922px) and (max-width: 1210px) {
	#ast-desktop-header {
		display: none !important;
	}

	#ast-mobile-header {
		display: block !important;
	}

	/* Astra öffnet die Karte nur im eigenen Handy-Modus (unter 922 px); hier dasselbe beim Antippen */
	.ast-main-header-nav-open .ast-mobile-header-wrap .ast-mobile-header-content {
		display: block !important;
	}

	.ast-mobile-header-content .main-header-menu {
		flex-direction: column;
	}
}

/* Weitere Themen im Abschnitt „Kommt Ihnen das bekannt vor?“: Laufband aus Glas-Pillen (Klasse hs-thema) */
.hs-thema {
	margin: 0;
	padding: 10px 18px;
	border-radius: 999px;
	/* fast deckend: die Linien im Hintergrund dürfen das Lesen nicht stören */
	background: color-mix(in srgb, var(--ast-global-color-4) 7%, var(--ast-global-color-0));
	border: 1px solid var(--hs-weiss-14);
	box-shadow: inset 0 1px 0 var(--hs-weiss-20);
	color: var(--ast-global-color-4);
	font-size: var(--hs-groesse-klein);
	font-weight: 500;
	white-space: nowrap;
}

.hs-themen.hs-laufband-rahmen,
.hs-themen .hs-laufband-rahmen {
	padding-block: 2px;
}

.entry-content .hs-themen .wp-block-group.hs-laufband {
	animation-duration: 70s;
}

/* Logo statt Foto in einer Karte (z. B. Studio 333): ganz sichtbar, mittig, mit Luft, Seitenverhältnis original */
.hs-logo-bild img {
	box-sizing: border-box;
	object-fit: contain !important;
	padding: 14% 20%;
}

/* Handy, nur Abschnitt „Ausgangslage“: Linien so hoch wie der Abschnitt, damit sie hinter allen drei Kacheln durchlaufen */
@media (max-width: 600px) {
	.hs-abschnitt:has(.hs-themen) > .wp-block-image.hs-deko--hinter {
		top: 50%;
		width: 260%;
		height: 100%;
	}
}

/* Kopfzeilen-Pille: weicher Schimmer und Schlagschatten, damit sie sich vom Inhalt abhebt (stärker nach dem Scrollen) */
.site-header .site-primary-header-wrap > .ast-builder-grid-row {
	box-shadow: inset 0 1px 0 var(--hs-weiss-38), inset 0 0 24px var(--hs-weiss-04),
		0 0 28px -6px var(--hs-weiss-14), 0 18px 40px -18px rgb(0 0 0 / 0.7);
}

.hs-gescrollt .site-header .site-primary-header-wrap > .ast-builder-grid-row {
	box-shadow: inset 0 1px 0 var(--hs-weiss-38), 0 0 34px -4px var(--hs-weiss-20), 0 22px 50px -16px rgb(0 0 0 / 0.85) !important;
}

/* „Genau hier setzen wir an“: Brücke zu den Leistungen, am Desktop rechts unter dem Laufband */
.entry-content .hs-ansatz a,
.hs-ansatz a {
	color: var(--ast-global-color-4);
	text-decoration: underline;
	text-decoration-color: var(--hs-weiss-38);
	text-decoration-thickness: 1px;
	text-underline-offset: 6px;
}

.entry-content .hs-ansatz a:hover {
	text-decoration-color: currentColor;
}

.hs-ansatz .hs-pfeil {
	display: inline-block;
	transition: transform 0.2s ease;
}

.hs-ansatz a:hover .hs-pfeil {
	transform: translateX(4px);
}

@media (min-width: 782px) {
	.hs-ansatz {
		text-align: right;
	}
}

/* näher an das Laufband „Auch häufig“ (statt des vollen Abschnittsabstands) */
.hs-abschnitt > .hs-ansatz {
	margin-top: var(--hs-abstand-s) !important;
}

/* Bild in einer Karte ganz zeigen (z. B. Filmstreifen), nie beschneiden oder verzerren */
.hs-bild-ganz img {
	box-sizing: border-box;
	object-fit: contain !important;
	padding: 5%;
}

/* Logo mit mehr Abstand zum runden linken Ende der Pille (Heinrich 09.11.: „mehr nach rechts“) */
.site-header .site-primary-header-wrap > .ast-builder-grid-row {
	padding-left: var(--hs-abstand-xl) !important;
}

@media (max-width: 1210px) {
	.site-header .site-primary-header-wrap > .ast-builder-grid-row {
		padding-left: 36px !important;
	}
}

/* Kleine Handys (bis 400 px): Logo, Kopf-Button und Burger müssen nebeneinander passen, Logo bleibt gleich groß */
@media (max-width: 400px) {
	.site-header .site-primary-header-wrap > .ast-builder-grid-row {
		padding-left: 28px !important;
	}

	.ast-mobile-header-wrap .ast-builder-button-wrap .ast-custom-button {
		padding: 9px 12px !important;
	}

	.ast-mobile-header-wrap .menu-toggle {
		padding: 10px !important;
	}

	.ast-mobile-header-wrap .site-header-primary-section-right {
		gap: 4px;
	}
}

/* Sehr kleine Handys (bis 374 px): „Projekt anfragen“ ist länger als „Erstgespräch“ (16.11.), Button und Rand etwas enger */
@media (max-width: 374px) {
	.site-header .site-primary-header-wrap > .ast-builder-grid-row {
		padding-left: 20px !important;
		padding-right: 12px !important;
	}

	.ast-mobile-header-wrap .ast-builder-button-wrap .ast-custom-button {
		padding: 8px 10px !important;
		font-size: 13px !important;
	}

	.ast-mobile-header-wrap .menu-toggle {
		padding: 8px !important;
	}
}

/* Kompakte Pille: Astras Leerräume zwischen Logo, Button und Burger entfernen (Platz für das Logo in voller Größe) */
@media (max-width: 1210px) {
	.ast-mobile-header-wrap .site-logo-img {
		padding-right: 0 !important;
	}

	.ast-mobile-header-wrap .site-header-primary-section-right > .ast-builder-layout-element {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.ast-mobile-header-wrap .site-header-primary-section-right {
		gap: var(--hs-abstand-xs);
	}

	.ast-mobile-header-wrap .ast-builder-grid-row {
		column-gap: var(--hs-abstand-xs) !important;
	}
}

/* Referenzkarten: unsichtbarer Ausgleich (Höhe der Kennzahl „Millionenumsatz“), damit die Überschriften in allen Karten auf einer Höhe stehen */
.hs-ausgleich {
	visibility: hidden;
	user-select: none;
}

@media (max-width: 600px) {
	.hs-ausgleich {
		display: none;
	}
}

/* Kennzahl der großen Referenzkarte und Ausgleich der anderen: immer einzeilig, Größe wächst mit der Kartenbreite */
.hs-kachel:has(.hs-kennzeile) {
	container-type: inline-size;
}

.hs-kennzeile {
	font-size: min(var(--hs-groesse-titel), 9cqi) !important;
	white-space: nowrap;
}

/* Hintergrund-Grafiken (absolut positioniert) zählen nicht als erstes Element: kein zusätzlicher Abstand vor dem eigentlichen Inhalt.
   Sonst hat ein Abschnitt mit Grafik oben 48 px mehr Luft als einer ohne. */
.entry-content > .hs-abschnitt:not(:first-child) > .wp-block-image.hs-deko:first-child + *,
.entry-content > .hs-abschnitt:not(:first-child) > .wp-block-image.hs-deko:first-child + .wp-block-image.hs-deko + * {
	margin-block-start: 0 !important;
}

/* Laufband „Auch häufig“: Bewegung kommt aus hercules.js (ziehbar), daher keine CSS-Animation */
.entry-content .hs-themen .wp-block-group.hs-laufband {
	animation: none !important;
	flex-wrap: nowrap !important;
	width: max-content !important;
	cursor: grab;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}

.entry-content .hs-themen .wp-block-group.hs-laufband.hs-ziehen {
	cursor: grabbing;
}

/* Referenzseite: Schlagwörter über der Ergebnis-Überschrift, Kunde darunter */
.hs-schlagworte.is-layout-flex {
	justify-content: flex-start;
}

.hs-schlagworte .hs-plakette {
	margin: 0;
}

.hs-kunde {
	color: var(--hs-akzent);
}

/* Aufzählungen in Rechtstexten (Datenschutz): schlichte Punkte statt Glasliste */
.entry-content ul.hs-rechtsliste {
	margin-left: 0;
	margin-right: 0;
	padding-left: 1.25em;
	list-style: disc;
	color: var(--ast-global-color-7);
}

.entry-content .hs-rechtsliste li + li {
	margin-top: var(--hs-abstand-xs);
}

/* Videobeispiele: Hoch- und Querformat nebeneinander, gleich hoch, ohne Verzerrung (beschnitten) */
.hs-video video {
	display: block;
	width: 100%;
	object-fit: cover;
	border-radius: inherit;
}

/* WordPress setzt das Originalformat inline, deshalb !important */
.hs-video--hoch video {
	aspect-ratio: 4 / 5 !important;
}

.hs-video--quer video {
	aspect-ratio: 16 / 9 !important;
}

/* Video- und Bildbeispiele: Kategorie als kleine Glas-Pille unten links */
.hs-video,
.hs-etikett {
	position: relative;
}

.entry-content .hs-video figcaption,
.entry-content .hs-etikett figcaption {
	position: absolute;
	left: var(--hs-abstand-s);
	bottom: var(--hs-abstand-s);
	margin: 0;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: var(--hs-groesse-klein);
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
	background: rgba(28, 22, 20, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.18);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	pointer-events: none;
}

.hs-video--reel video {
	aspect-ratio: 9 / 16 !important;
}

/* Kleine Galerie unter den Bildbeispielen: gleichmäßiges Raster, zwei Reihen über die volle Breite, Klick öffnet groß */
.entry-content .hs-galerie.wp-block-gallery.has-nested-images {
	display: grid;
	grid-template-columns: repeat(9, minmax(0, 1fr));
	gap: var(--hs-abstand-xs) !important;
}

.entry-content .hs-galerie.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	width: auto !important;
	margin: 0;
}

.hs-galerie.wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 2 / 3;
	object-fit: cover !important;
	border-radius: 10px;
}

@media (max-width: 600px) {
	.hs-videoreihe {
		grid-template-columns: 1fr 1fr !important;
	}

	/* Ungerade Anzahl: letztes Reel mittig in halber Breite */
	.hs-videoreihe > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
		justify-self: center;
		width: calc(50% - var(--hs-abstand-s) / 2);
	}

	.entry-content .hs-galerie.wp-block-gallery.has-nested-images {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Videobeispiele: je Reihe gleich hoch, Breite nach Seitenverhältnis (9:16 bzw. 16:9) */
.entry-content .hs-videozeile.is-layout-flex {
	flex-wrap: nowrap;
	justify-content: center;
	align-items: flex-start;
}

.hs-videozeile > .hs-video--reel {
	flex: 0.5625 1 0;
	min-width: 0;
	margin: 0;
}

.hs-videozeile > .hs-video--quer {
	flex: 1.7778 1 0;
	min-width: 0;
	margin: 0;
}

/* Kürzere Reihe: Lücken halten die Größe, Videos stehen mittig */
.hs-videozeile > .hs-videoluecke {
	flex: 0.8889 1 0;
	min-width: 0;
}

@media (max-width: 600px) {
	.entry-content .hs-videozeile.is-layout-flex {
		flex-wrap: wrap;
	}

	.hs-videozeile > .hs-video--reel {
		flex: 0 0 calc(50% - var(--hs-abstand-s) / 2);
	}

	.hs-videozeile > .hs-video--quer {
		flex: 0 0 100%;
	}

	.hs-videozeile > .hs-videoluecke {
		display: none;
	}
}

/* Galerie auf dem Handy: erst sechs Bilder, Rest über „Mehr Bilder anzeigen“ (hercules.js) */
.hs-galerie-mehr {
	display: none;
}

@media (max-width: 600px) {
	.entry-content .hs-galerie:not(.hs-galerie--offen) figure.wp-block-image:nth-child(n+7) {
		display: none;
	}

	.hs-galerie-mehr {
		display: flex;
		justify-content: center;
		margin-top: var(--hs-abstand-s);
	}

	/* Etiketten auf Bildern und Videos: kleiner und einzeilig */
	.entry-content .hs-video figcaption,
	.entry-content .hs-etikett figcaption {
		left: 8px;
		bottom: 8px;
		padding: 2px 9px;
		font-size: 12px;
		white-space: nowrap;
		max-width: calc(100% - 16px);
		overflow: hidden;
		text-overflow: ellipsis;
	}

	/* Bildkarten haben innen einen Glasrand (9 px): Pille ins Foto setzen */
	.entry-content .hs-etikett figcaption {
		left: 17px;
		bottom: 17px;
		max-width: calc(100% - 34px);
	}
}

/* Bildbeispiele auf dem Handy (2 Spalten): 3. und 4. Bild tauschen, damit Weiß und Farbe schachbrettartig wechseln */
@media (max-width: 600px) {
	.hs-bildreihe:has(> :nth-child(6)) > :nth-child(3) {
		order: 4;
	}

	.hs-bildreihe:has(> :nth-child(6)) > :nth-child(4) {
		order: 3;
	}

	.hs-bildreihe:has(> :nth-child(6)) > :nth-child(n+5) {
		order: 5;
	}
}

/* H2 mit der Optik einer Zwischenüberschrift (Rechtstexte: richtige Hierarchie, gleiche Größe) */
.entry-content h2.hs-h3 {
	font-size: var(--hs-groesse-gross);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

/* Überschrift: Satz zusammenhalten, auf schmalen Bildschirmen darf er umbrechen */
@media (min-width: 782px) {
	.hs-zeile {
		white-space: nowrap;
	}
}

/* Handy: Wurmloch im Einstieg sichtbar oben rechts hinter der Überschrift, auf allen Seiten wie auf der Startseite (Heinrich 23.11.) */
@media (max-width: 600px) {
	/* .home mit aufführen, sonst gewinnt die Desktop-Regel „.home … top: -130px“ und das Wurmloch rutscht mobil nach oben (Fehler 23.11. behoben) */
	.wp-block-image.hs-deko--einstieg,
	.home .wp-block-image.hs-deko--einstieg {
		top: 90px;
		right: -34%;
		width: 100vw;
		opacity: 0.3;
	}
}

/* „Coming soon“-Marke auf Kacheln (Studio 333, Heinrich 13.11.): auffällig in Sternenlicht, Großbuchstaben, oben links im Bild,
   getrennt von den Plaketten (dort stehen erbrachte Leistungen). */
.hs-kachel > .hs-bald {
	position: absolute;
	z-index: 3;
	top: var(--hs-abstand-m);
	left: var(--hs-abstand-m);
	margin: 0;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--hs-akzent);
	color: var(--ast-global-color-0);
	font-size: var(--hs-groesse-klein);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	box-shadow: 0 0 22px var(--hs-akzent-schein);
}

.hs-kachel > .hs-bald.hs-bald--fluss {
	position: relative;
	top: auto;
	left: auto;
	align-self: flex-start;
}

@media (max-width: 600px) {
	.hs-kachel > .hs-bald {
		top: var(--hs-abstand-s);
		left: var(--hs-abstand-s);
		padding: 6px 12px;
		letter-spacing: 0.12em;
	}

	.hs-kachel > .hs-bald.hs-bald--fluss {
		top: auto;
		left: auto;
	}
}

/* Startseite: Antwort „Wir bauen die Abkürzung.“ in Sternenlicht (Heinrich 20.11., passt zur Ladesequenz) */
.home .entry-content h1 .hs-zeile {
	color: var(--hs-akzent);
}

/* Unterseiten: zweiter Teil der Seitenüberschrift in Sternenlicht, in eigener Zeile, wie auf der Startseite (Heinrich 23.11.) */
.entry-content h1 .hs-akzent-zeile {
	display: block;
	color: var(--hs-akzent);
}

/* Einstiegsbild mit Hinweis darunter (z. B. „Beispielhafte Darstellung, kein Kundenprojekt“, Onlineshops, Heinrich 23.11.) */
.entry-content .hs-einstieg-foto figcaption {
	margin: 10px 0 2px;
	font-size: var(--hs-groesse-klein);
	line-height: 1.4;
	color: var(--ast-global-color-7);
	text-align: center;
}

/* Hinweis „Wir sind Shopify Partner“ im Einstieg der Onlineshop-Seite (Heinrich 23.11.). Logo nach Shopify-Partner-Regeln:
   einfarbig weiß, unverändert, mindestens 80 px breit, eigene Marke steht vorn. */
.entry-content .hs-shopify-partner {
	gap: var(--hs-abstand-s);
	margin-top: var(--hs-abstand-m);
}

.entry-content .hs-shopify-partner .hs-shopify-logo {
	margin: 0;
	flex: none;
}

.entry-content .hs-shopify-partner .hs-shopify-logo img {
	display: block;
	width: 112px;
	height: auto;
}

.entry-content .hs-shopify-partner p {
	margin: 0;
	padding-left: var(--hs-abstand-s);
	border-left: 1px solid var(--hs-linie);
}

/* Über uns, „Woher wir kommen“ (Heinrich 23.11.): Bild klein links neben zwei kurzen Kacheln, darunter zwei breite.
   Das Bild füllt nur die Höhe der Reihe (zugeschnitten, nie verzerrt) und wird nie höher als die Kacheln. */
@media (min-width: 782px) {
	.entry-content .hs-woher.is-layout-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
	}

	.entry-content .hs-woher > :nth-child(-n+3) {
		grid-column: span 2;
	}

	.entry-content .hs-woher > :nth-child(n+4) {
		grid-column: span 3;
	}

	.entry-content .hs-woher > .hs-woher-bild {
		position: relative;
		margin: 0;
		min-height: 0;
	}

	.entry-content .hs-woher > .hs-woher-bild img {
		position: absolute;
		top: var(--hs-abstand-xs);
		left: var(--hs-abstand-xs);
		width: calc(100% - 2 * var(--hs-abstand-xs));
		height: calc(100% - 2 * var(--hs-abstand-xs));
		object-fit: cover;
		object-position: center 35%;
	}
}

@media (max-width: 781px) {
	.entry-content .hs-woher-bild img {
		aspect-ratio: 4 / 5;
		object-fit: cover;
	}
}

/* Onlineshop-Seite, Abschnitt „Als Shopify Partner“ (Heinrich 24.11.): Partnerschaft sichtbarer, mit prüfbaren Vorteilen.
   Logo einfarbig weiß und unverändert (Shopify-Partner-Regeln), eigene Marke bleibt vorn. */
.entry-content .hs-partner-band .hs-shopify-logo {
	margin: 0;
}

.entry-content .hs-partner-band .hs-shopify-logo img {
	display: block;
	width: 200px;
	height: auto;
}

.entry-content .hs-partner-band h2 {
	margin: var(--hs-abstand-m) 0 0;
}

.entry-content .hs-partner-kopf > p {
	margin: var(--hs-abstand-s) 0 0;
}

@media (max-width: 600px) {
	.entry-content .hs-partner-band .hs-shopify-logo img {
		width: 150px;
	}
}

.entry-content .hs-partner-punkt {
	padding-top: var(--hs-abstand-m);
	border-top: 1px solid var(--hs-linie);
}

.entry-content .hs-partner-punkt h3 {
	margin: 0 0 var(--hs-abstand-xs, 8px);
}

.entry-content .hs-partner-punkt p {
	margin: 0;
}

@media (min-width: 922px) {
	.entry-content .hs-partner-band {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		column-gap: var(--wp--preset--spacing--60);
		align-items: start;
	}

	.entry-content .hs-partner-band > * {
		margin-block-start: 0 !important;
	}

	.entry-content .hs-partner-punkt:first-child {
		padding-top: 0;
		border-top: 0;
	}
}

/* Startseite, Kachel Onlineshops: kleiner Partner-Hinweis unter der Überschrift. */
.entry-content .hs-kachel-marke {
	margin-top: 0;
	color: var(--hs-akzent);
	letter-spacing: 0.02em;
}

/* Fotos & Videos, „Das Studio“ (Heinrich 25.11.): Raumfoto groß, Set mit Hintergrundpapier klein und überlappend unten rechts.
   Fotos unbearbeitet, nur zugeschnitten. */
.entry-content .hs-studio-duo {
	position: relative;
	padding: 0 6% 12% 0;
}

.entry-content .hs-studio-duo .hs-studio-raum {
	margin: 0;
}

.entry-content .hs-studio-duo .hs-studio-set {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 34%;
	margin: 0;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
