/*
-----------------------------------------------
Profile Haircompany by Shain
Modern custom layout
----------------------------------------------- */

:root {
	--color-red: #e10813;
	--color-red-dark: #b90009;
	--color-black: #1d1d1b;
	--color-text: #303033;
	--color-muted: #6f7277;
	--color-line: #e4e5e7;
	--color-surface: #ffffff;
	--color-background: #f4f5f6;
	--page-padding: clamp(1.5rem, 5vw, 6rem);
	--radius: 4px;
	--header-height: 150px;
	/* 88svh statt 100svh: der Info-Streifen lugt unter die Falz und lädt zum Scrollen ein. */
	--hero-height: clamp(480px, calc(88svh - var(--header-height)), 900px);
	--card-width: min(320px, 34vw);
	--shadow: 0 14px 35px rgba(29, 29, 27, 0.1);
}

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

html {
	font-size: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	background: var(--color-background);
	color: var(--color-text);
	font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--color-red);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--color-red-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid rgba(225, 8, 19, 0.28);
	outline-offset: 3px;
}

/* Page shell */

#container {
	position: relative;
	min-height: 100vh;
	background: var(--color-background);
}

#scroll-sentinel {
	position: absolute;
	top: 32px;
	left: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

#header {
	position: sticky;
	top: 0;
	z-index: 10;
	/* Header-Glas: Deckkraft (0.82) und Unschärfe (12px) hier einstellen */
	background: rgba(255, 255, 255, 0.82);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--color-line);
	transition: box-shadow 220ms ease;
}

#header_wrapper {
	position: relative;
	width: 100%;
	height: 150px;
	transition: height 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand {
	position: absolute;
	top: 6px;
	left: 50%;
	display: inline-flex;
	align-items: center;
	width: 270px;
	height: 94px;
	text-decoration: none;
	transform: translateX(-50%);
	transition: top 360ms cubic-bezier(0.22, 1, 0.36, 1), left 360ms cubic-bezier(0.22, 1, 0.36, 1), width 360ms cubic-bezier(0.22, 1, 0.36, 1), height 360ms cubic-bezier(0.22, 1, 0.36, 1), transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand_logo_frame {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
}

.brand_logo {
	position: absolute;
	top: 50%;
	left: 0;
	display: block;
	/* Safari rastert die skalierten Logos sonst in jedem Frame neu. */
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	will-change: opacity, transform;
	transition: opacity 260ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand_logo_full {
	width: 270px;
	height: auto;
	object-fit: contain;
	object-position: left center;
	transform: translateY(-50%) scale(1);
}

.brand_logo_mark {
	width: 44px;
	height: 44px;
	border-radius: 2px;
	opacity: 0;
	object-fit: cover;
	transform: translateY(-50%) scale(0.72) rotate(-5deg);
}

#header.is-scrolled {
	box-shadow: 0 8px 28px rgba(29, 29, 27, 0.08);
}

#header.is-scrolled #header_wrapper {
	height: 62px;
}

#header.is-scrolled .brand {
	top: 50%;
	left: var(--page-padding);
	width: 44px;
	height: 44px;
	transform: translateY(-50%);
}

#header.is-scrolled .brand_logo_full {
	opacity: 0;
	transform: translateY(-50%) scale(0.78);
}

#header.is-scrolled .brand_logo_mark {
	opacity: 1;
	transform: translateY(-50%) scale(1) rotate(0);
}

#page {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 310px);
	gap: clamp(2.5rem, 6vw, 7rem);
	align-items: start;
	width: 100%;
	min-height: calc(100vh - 150px);
	padding: clamp(3rem, 7vw, 7rem) var(--page-padding);
}

#content {
	min-width: 0;
}

#content > .gutter {
	padding: 0;
}

#sidebar {
	min-width: 0;
	padding-left: clamp(1.5rem, 3vw, 3rem);
	border-left: 1px solid #d9dbde;
}

#sidebar_content {
	position: relative;
	padding: 0;
}

#sidebar_content::before {
	display: block;
	width: 2.75rem;
	height: 3px;
	margin-bottom: 1.5rem;
	background: var(--color-red);
	content: "";
}

/* Hero (nur Startseite) */

#hero {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: calc(100vh - 150px);
	height: var(--hero-height);
	overflow: hidden;
	background: var(--color-black);
	color: #ffffff;

	/* Graufilter - die beiden Stellschrauben.
	   --hero-entsaettigung  0 = volle Farbe ... 1 = Schwarzweiss
	   --hero-schleier       Deckkraft des grauen Schleiers, 0 = keiner
	   heller/farbiger 0.35 / 0.40   ruhiger/grauer 0.80 / 0.58 */
	--hero-entsaettigung: 0.45;
	--hero-schleier: 0.5;

	/* Dunkle Leiste hinter Claim und Buttons (Tyler, 10.09.2026): volle Breite,
	   leicht transparent, ohne Unschärfe, liegt unter der Karte. Deckkraft ist
	   die Stellschraube (0.25 Hauch ... 0.45 klares Band, Tylers Wahl); Höhe über das
	   padding in .hero_inner. Hell mit dunkler Schrift wurde verworfen. */
	--hero-leiste: rgba(29, 29, 27, 0.55);   /* 0.45 von Tyler selbst gesetzt (10.09.2026) */

	/* Beim Schrumpfen des Headers rueckt alles darunter 88 px hoch.
	   `contain` erspart dem Browser, den Hero-Inhalt neu durchzurechnen. */
	contain: layout paint;
}

body:not(.startpage) #hero {
	display: none;
}

.hero_image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center 55%;
}

/* Nimmt dem Ziegel- und Laubgewimmel die Farbe, damit Claim und Buttons tragen. */
#hero .hero_image {
	filter: grayscale(var(--hero-entsaettigung)) brightness(0.95);
}

/* Gleichmaessiger Grauschleier. Der fruehere schwarze Verlauf deckte oben
   am wenigsten - genau dort, wo Claim und Buttons liegen. */
#hero::before {
	position: absolute;
	inset: 0;
	background: rgba(96, 96, 98, var(--hero-schleier));
	content: "";
	pointer-events: none;
}

.hero_inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 2rem var(--page-padding);
	background: var(--hero-leiste);
	text-align: center;
}

.hero_inner::before {
	display: block;
	width: 3rem;
	height: 3px;
	margin: 0 auto 1.25rem;
	background: var(--color-red);
	content: "";
}

#hero .hero_title {
	margin: 0 !important;
	padding: 0;
	color: #ffffff;
	font-size: clamp(1.9rem, 4.2vw, 3.6rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.12;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

#hero .hero_actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.85rem;
	margin-top: 1.25rem; /* = Abstand Strich -> Text (.hero_inner::before) */
}

.hero_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 170px;
	min-height: 48px;
	padding: 0.75rem 1.6rem;
	background: rgba(255, 255, 255, 0.06);
	border: 1.5px solid rgba(255, 255, 255, 0.9);
	border-radius: 4px;
	color: #ffffff;
	font-size: 0.9rem;
	font-weight: 650;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.hero_button:hover,
.hero_button:focus-visible {
	background: var(--color-red);
	border-color: var(--color-red);
	color: #ffffff;
	transform: translateY(-1px);
}

.hero_button:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.55);
}

body.startpage #page {
	grid-template-columns: 1fr;
	min-height: 0;
	padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

/* Startseite: Sidebar ("Hier finden Sie uns") als Karte rechts auf dem Hero.
   Der Block bleibt im HTML an seiner Stelle und wird nur positioniert. */

body.startpage #sidebar {
	position: absolute;
	contain: layout;   /* muss beim Verschieben des Heros nicht neu gerechnet werden */
	top: calc(var(--header-height) + var(--hero-height) / 2);
	right: var(--page-padding);
	z-index: 2;
	width: var(--card-width);
	padding: 1.5rem 1.6rem 1.4rem;
	background: rgba(255, 255, 255, 0.08);
	border: 1.5px solid rgba(255, 255, 255, 0.9);
	border-radius: 4px;
	color: #ffffff;
	transform: translateY(-50%);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

body.startpage #sidebar h1,
body.startpage #sidebar h2,
body.startpage #sidebar h3,
body.startpage #sidebar p,
body.startpage #sidebar a {
	color: #ffffff;
}

body.startpage #sidebar a:hover {
	color: rgba(255, 255, 255, 0.75);
}

body.startpage #sidebar_content::before {
	margin-bottom: 1rem;
}

body.startpage #sidebar h2 {
	margin: 0 0 0.35rem;
	font-size: 1.2rem;
}

body.startpage #sidebar .module-type-header + .module-type-text {
	margin-bottom: 1.1rem;
}

body.startpage #sidebar p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
}

body.startpage #sidebar .module-type-text p:last-child {
	margin-bottom: 0;
}

body.startpage #sidebar .module-type-hr,
body.startpage #sidebar .module-type-remoteModule-facebook {
	display: none;
}

/* Text und Buttons mittig zwischen linkem Rand und Karte */
body.startpage #hero .hero_inner {
	padding-right: calc(var(--page-padding) + var(--card-width) + 3rem);
}

@media (max-height: 760px) and (min-width: 901px) {
	body.startpage #sidebar {
		padding: 1.1rem 1.25rem 1rem;
	}

	body.startpage #sidebar h2 {
		font-size: 1.05rem;
	}

	body.startpage #sidebar p {
		font-size: 0.88rem;
		line-height: 1.45;
	}
}

/* Info-Streifen unter dem Hero (nur Startseite): Öffnungszeiten + Telefon.
   Zusammen mit --hero-height (88svh) ist er der Scroll-Anreiz unter der Falz.
   Desktop (Tyler, 10.09.2026): eine Zeile über 1200 px - links Label und Tage
   untereinander mit rechtsbündigen Zeiten (Blockbreite --hours-width), rechts der
   Telefon-Button, vertikal mittig zum Gesamtblock. Mobil (≤900 px) gestapelt,
   Zeiten-Tabelle und Button in voller Breite.
   Stellschrauben: max-width in .info_inner = Gesamtbreite; --hours-width = Breite
   der Zeiten-Tabelle; .info_inner padding = Höhe/Luft; .info_call background =
   Farbe des Telefon-Buttons (Schwarz, Hover Rot).
   Den aktuellen Wochentag hebt info-strip-v1.js hervor (Klasse is-today). */

#info-strip {
	--hours-width: 380px;
	position: relative;
	z-index: 1;
	width: 100%;
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-line);
	color: var(--color-text);
}

body:not(.startpage) #info-strip {
	display: none;
}

#info-strip .info_inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1.5rem, 4vw, 4rem);
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.5rem var(--page-padding) 1.6rem;
}

#info-strip .info_hours {
	display: flex;
	flex: 0 1 var(--hours-width);
	flex-direction: column;
	align-items: stretch;
	gap: 0.6rem;
	min-width: 0;
}

#info-strip .info_label {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--color-black);
	font-size: 0.8rem;
	font-weight: 650;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

#info-strip .info_label::before {
	width: 2rem;
	height: 3px;
	background: var(--color-red);
	content: "";
}

#info-strip .info_list {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

#info-strip .info_list li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	padding: 0;
	font-size: 1rem;
	line-height: 1.5;
	white-space: nowrap;
}

#info-strip .info_day {
	color: var(--color-muted);
}

#info-strip .info_time {
	color: var(--color-black);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

#info-strip .info_list li.is-today .info_day {
	color: var(--color-red);
	font-weight: 600;
}

#info-strip .info_list li.is-today .info_day::after {
	content: " · heute";
	font-weight: 500;
}

#info-strip .info_call {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	min-height: 50px;
	padding: 0.75rem 1.5rem;
	background: var(--color-black);
	border: 1.5px solid var(--color-black);
	border-radius: var(--radius);
	color: #ffffff;
	font-size: 0.9rem;
	font-weight: 650;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

#info-strip .info_call:hover,
#info-strip .info_call:focus-visible {
	background: var(--color-red);
	border-color: var(--color-red);
	color: #ffffff;
	transform: translateY(-1px);
}

/* Telefon-Icon per CSS-Maske: IONOS entfernt Inline-SVG aus dem Template,
   CSS bleibt unangetastet. Farbe folgt der Schrift (currentColor). */
#info-strip .info_call::before {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1L6.6 10.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1L6.6 10.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
	content: "";
}

#info-strip .info_call_number {
	letter-spacing: 0.04em;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
	#info-strip .info_inner {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding: 1.25rem var(--page-padding) 1.4rem;
	}

	#info-strip .info_hours {
		flex: 0 0 auto;
	}

	#info-strip .info_call {
		width: 100%;
	}
}

/* Navigation */

#navigation {
	position: absolute;
	top: 100px;
	left: var(--page-padding);
	right: var(--page-padding);
	min-width: 0;
	transition: top 360ms cubic-bezier(0.22, 1, 0.36, 1), left 360ms cubic-bezier(0.22, 1, 0.36, 1), transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

#header.is-scrolled #navigation {
	top: 50%;
	left: calc(var(--page-padding) + 64px);
	transform: translateY(-50%);
}

#navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#navigation > ul,
#navigation ul.mainNav1 {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(0.1rem, 0.8vw, 0.65rem);
}

#header.is-scrolled #navigation > ul,
#header.is-scrolled #navigation ul.mainNav1 {
	justify-content: flex-end;
}

#navigation li {
	position: relative;
	margin: 0;
	padding: 0;
}

#navigation a {
	display: block;
	padding: 0.6rem 0.8rem;
	border-radius: 4px;
	color: var(--color-black);
	font-size: 0.9rem;
	font-weight: 650;
	letter-spacing: 0.04em;
	line-height: 1.25;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 160ms ease, color 160ms ease;
}

#navigation a:hover {
	background: #f3f3f3;
	color: var(--color-red);
}

#navigation a.current,
#navigation li.current > a {
	background: transparent;
	box-shadow: none;          /* nur rote Schrift, kein Unterstrich (Tyler, 08.09.) */
	color: var(--color-red);
}

/* Untermenü: IONOS gibt die Unterseiten des aktiven Bereichs als eigenes,
   klassenloses <li> mit ul.mainNav2 direkt hinter dem aktiven Hauptpunkt aus.
   Wir ziehen dieses <li> aus der Hauptzeile heraus und zeigen es als schmale
   Leiste unter dem Header - auch im gescrollten Zustand. */

#navigation ul.mainNav1 > li:not([class]) {
	position: absolute;
	top: 50px;
	left: calc(-1 * var(--page-padding));
	right: calc(-1 * var(--page-padding));
	z-index: 9;
	margin: 0;
	padding: 0 var(--page-padding);
	background: rgba(250, 250, 250, 0.82);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-top: 1px solid var(--color-line);
	border-bottom: 1px solid var(--color-line);
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: none;
}

#navigation ul.mainNav1 > li:not([class])::-webkit-scrollbar {
	display: none;
}

#header.is-scrolled #navigation ul.mainNav1 > li:not([class]) {
	left: calc(-1 * (var(--page-padding) + 64px));
}

#navigation ul.mainNav2,
#navigation ul.mainNav3 {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	min-width: max-content;
	height: 44px;
	margin: 0 auto;
	padding: 0;
}

#navigation ul.mainNav2 a,
#navigation ul.mainNav3 a {
	padding: 0.45rem 0.75rem;
	color: var(--color-text);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
}

#navigation ul.mainNav2 a:hover,
#navigation ul.mainNav3 a:hover {
	background: #efefef;
	color: var(--color-red);
}

#navigation ul.mainNav2 a.current,
#navigation ul.mainNav3 a.current {
	background: transparent;
	box-shadow: none;
	color: var(--color-red);
}

/* Die Unterleiste liegt außerhalb des Headers; Seiten mit Unterseiten bekommen oben Luft. */
body:has(#navigation ul.mainNav2) #page {
	padding-top: calc(clamp(3rem, 7vw, 7rem) + 44px);
}

/* Content typography */

#content h1,
#content h2,
#content h3,
#sidebar h1,
#sidebar h2,
#sidebar h3 {
	margin-top: 0;
	color: var(--color-black);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.16;
}

#content h1 {
	position: relative;
	margin-bottom: 2rem;
	padding-bottom: 1.25rem;
	font-size: clamp(2.4rem, 5vw, 4.8rem);
	font-weight: 500;
}

#content h1::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 64px;
	height: 4px;
	background: var(--color-red);
	content: "";
}

#content h2 {
	margin: 2.75rem 0 1rem;
	font-size: clamp(1.55rem, 3vw, 2.15rem);
}

#content h3 {
	margin: 2rem 0 0.75rem;
	font-size: 1.25rem;
}

#content p,
#content ul,
#content ol {
	max-width: 68ch;
}

#content blockquote {
	margin: 2rem 0;
	padding: 1rem 1.5rem;
	background: #f7f7f8;
	border-left: 4px solid var(--color-red);
	color: var(--color-black);
	font-size: 1.08rem;
}

#content hr {
	margin: 3rem 0;
	border: 0;
	border-top: 1px solid var(--color-line);
}

#content table {
	width: 100%;
	border-collapse: collapse;
}

#content th,
#content td {
	padding: 0.85rem 1rem;
	border-bottom: 1px solid var(--color-line);
	text-align: left;
}

#content th {
	color: var(--color-black);
	font-weight: 650;
}

/* Forms and Jimdo buttons */

input,
textarea,
select {
	max-width: 100%;
	padding: 0.8rem 0.9rem;
	background: #ffffff;
	border: 1px solid #cfd1d4;
	border-radius: 4px;
	color: var(--color-text);
	font: inherit;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--color-red);
}

button,
input[type="submit"],
.j-calltoaction-link,
.j-calltoaction-link-style-1,
.j-calltoaction-link-style-2 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.75rem 1.2rem;
	background: var(--color-red);
	border: 1px solid var(--color-red);
	border-radius: 4px;
	color: #ffffff !important;
	font: inherit;
	font-weight: 650;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

button:hover,
input[type="submit"]:hover,
.j-calltoaction-link:hover,
.j-calltoaction-link-style-1:hover,
.j-calltoaction-link-style-2:hover {
	background: var(--color-red-dark);
	border-color: var(--color-red-dark);
	transform: translateY(-1px);
}

/* Footer */

#footer {
	background: #eceef0;
	border-top: 1px solid #d9dbde;
	color: var(--color-muted);
}

#footer > .gutter {
	width: 100%;
	padding: 2rem var(--page-padding);
}

#footer a {
	color: var(--color-black);
}

#footer a:hover {
	color: var(--color-red);
}

.c {
	display: none;
}

/* Responsive layout */

@media (max-width: 900px) {
	#navigation .webnavigation {
		overflow-x: auto;
		padding-bottom: 0.25rem;
		scrollbar-width: none;
	}

	#navigation .webnavigation::-webkit-scrollbar {
		display: none;
	}

	#navigation > ul,
	#navigation ul.mainNav1 {
		min-width: max-content;
	}

	#page {
		grid-template-columns: 1fr;
		gap: 3rem;
		padding-top: 3rem;
	}

	#sidebar {
		order: 2;
		padding-top: 2rem;
		padding-left: 0;
		border-top: 1px solid #d9dbde;
		border-left: 0;
	}

	#hero {
		min-height: 420px;
	}

	/* Die helle Karte wird weiter unten neu aufgebaut; `border-top` faellt dort
	   unter die Kurzschreibweise `border`. Hier bleibt, was dort fehlt. */
	body.startpage #sidebar {
		box-shadow: none;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	body.startpage #sidebar h1,
	body.startpage #sidebar h2,
	body.startpage #sidebar h3 {
		color: var(--color-black);
	}

	body.startpage #sidebar p {
		color: var(--color-text);
	}

	body.startpage #sidebar a {
		color: var(--color-red);
	}

	.hero_button {
		min-width: 150px;
	}
}

@media (max-width: 560px) {
	:root {
		--page-padding: 1rem;
		--header-height: 132px;
		--hero-height: clamp(380px, calc(100svh - var(--header-height)), 960px);
	}

	#header_wrapper {
		height: 132px;
	}

	.brand {
		top: 7px;
		width: 220px;
		height: 76px;
	}

	.brand_logo_full {
		width: 220px;
	}

	#header.is-scrolled .brand {
		top: 50%;
		width: 44px;
		height: 44px;
	}

	#navigation {
		top: 84px;
	}

	#navigation ul.mainNav1 > li:not([class]) {
		top: 48px;
	}

	#header.is-scrolled #navigation ul.mainNav1 > li:not([class]) {
		top: 50px;
	}

	#header.is-scrolled #navigation {
		top: 50%;
	}

	#page {
		gap: 2rem;
		min-height: calc(100vh - 132px);
		padding-top: 2.5rem;
		padding-bottom: 3rem;
	}

	#hero {
		height: calc(100vh - 132px);
		height: var(--hero-height);
	}

	#hero .hero_actions {
		margin-top: 1rem;
		flex-direction: column;
		align-items: stretch;
		max-width: 320px;
		margin: 0 auto;
	}

	.hero_button {
		width: 100%;
	}

	body.startpage #page {
		padding-top: 2rem;
	}

	body:has(#navigation ul.mainNav2) #page {
		padding-top: calc(2.5rem + 44px);
	}

	#navigation ul.mainNav2 a,
	#navigation ul.mainNav3 a {
		font-size: 0.78rem;
	}

	#content h1 {
		font-size: 2.35rem;
	}

	#navigation a {
		padding: 0.6rem 0.75rem;
		font-size: 0.82rem;
	}
}

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

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}
}                            
/* IONOS: Diesen Block am Ende des vorhandenen CSS einfügen.
   Bereits in modern-styles.css enthalten; nur eine der beiden Varianten verwenden. */

/* Startseiten-Galerie — bestehende IONOS-Bildmodule.
   Stellschrauben: gap = Bildabstand, aspect-ratio = Bildformat,
   .caption background / blur = Glas-Effekt der Beschriftung. */

/* Nur die alte Button-Reihe vor der Galerie und ihre Abstandshalter.
   Die beiden Hero-Buttons bleiben erhalten. */
body.startpage #content #matrix_145532 > .module-type-button,
body.startpage #content #matrix_145532 > .module-type-spacer:has(.id12857524, .id9737903) {
	display: none;
}

body.startpage #content #matrix_145532 > .module-type-matrix:has(#matrix_516284) {
	margin: 0;
	padding: 0;
}

body.startpage #content .diyfeModGrid3:has(#matrix_516284) {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.75rem);
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0;
}

/* Die alten Spalten auflösen, damit alle neun Bilder ein gemeinsames
   Raster bilden. DOM-Reihenfolge und vorhandene Bild-Links bleiben erhalten. */
body.startpage #content .diyfeModGrid3:has(#matrix_516284) > .diyfeModGridElement,
body.startpage #content .diyfeModGrid3:has(#matrix_516284) > .diyfeModGridElement > .diyfeModGridContent,
body.startpage #content .diyfeModGrid3:has(#matrix_516284) .sortable-matrix-child {
	display: contents;
}

body.startpage #content .diyfeModGrid3:has(#matrix_516284)::before,
body.startpage #content .diyfeModGrid3:has(#matrix_516284)::after,
body.startpage #content .diyfeModGrid3:has(#matrix_516284) .module-type-spacer {
	display: none;
}

body.startpage #content .diyfeModGrid3:has(#matrix_516284) .module-type-imageSubtitle {
	min-width: 0;
	margin: 0;
	padding: 0;
}

body.startpage #content .diyfeModGrid3:has(#matrix_516284) .imageSubtitle {
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: visible;
}

body.startpage #content .diyfeModGrid3:has(#matrix_516284) .align-container {
	position: relative;
	float: none;
	width: 100%;
	max-width: none !important; /* IONOS setzt feste Breiten inline. */
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--color-black);
	box-shadow: 0 5px 20px rgba(29, 29, 27, 0.08);
	isolation: isolate;
}

body.startpage #content .diyfeModGrid3:has(#matrix_516284) .imagewrapper {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	margin: 0;
	padding: 0;
	overflow: hidden;
	line-height: 0;
}

body.startpage #content .diyfeModGrid3:has(#matrix_516284) .imagewrapper img {
	display: block;
	width: 100%;
	max-width: none !important;
	height: 100% !important;
	margin: 0;
	padding: 0;
	border: 0;
	object-fit: cover;
	object-position: center;
	transition: transform 400ms ease;
}

body.startpage #content .diyfeModGrid3:has(#matrix_516284) .caption {
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	left: 0.75rem;
	z-index: 1;
	display: block;
	width: auto;
	margin: 0;
	padding: 0.65rem 0.85rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: var(--radius);
	background: rgba(29, 29, 27, 0.72);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
	text-align: left;
	text-shadow: none;
	pointer-events: none;
}

body.startpage #content .diyfeModGrid3:has(#matrix_516284) .imagewrapper:focus-visible {
	outline: 3px solid var(--color-red);
	outline-offset: -3px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	body.startpage #content .diyfeModGrid3:has(#matrix_516284) .imagewrapper:hover img {
		transform: scale(1.035);
	}
}

@media (max-width: 900px) {
	body.startpage #content .diyfeModGrid3:has(#matrix_516284) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	body.startpage #content .diyfeModGrid3:has(#matrix_516284) {
		grid-template-columns: minmax(0, 1fr);
	}
}

   @media (min-width: 901px) {
      body.startpage #sidebar {
          background: rgba(255, 255, 255, 0.82);
          border: 1px solid var(--color-line);
          -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
          color: var(--color-text);
          text-shadow: none;
      }

      body.startpage #sidebar h1,
      body.startpage #sidebar h2,
      body.startpage #sidebar h3,
      body.startpage #sidebar p {
          color: var(--color-text);
      }

      body.startpage #sidebar a {
          color: var(--color-red);
      }

      body.startpage #sidebar a:hover {
          color: var(--color-red-dark);
      }
  }                            
  /* Mobil-Anpassung, 09.09.2026 — am ENDE des vorhandenen IONOS-CSS einfügen.
   Zusammen mit mobile-layout-v2.js verwenden. Desktop bleibt erhalten.
   Stellschrauben: 900px = Menü-Umschaltung; 80px = Headerhöhe;
   #hero min-height = Hero-Höhe; --page-padding = Seitenabstand. */

#mobile-nav-toggle {
	display: none;
}

#mobile-nav-toggle[hidden],
#header.mobile-nav-ready #navigation[hidden] {
	display: none !important;
}

@media (max-width: 900px) {
	:root {
		--page-padding: clamp(1rem, 4vw, 2rem);
	}

	#header.mobile-nav-ready #header_wrapper {
		height: 80px;
		transition: none;
	}

	/* `left` und `transform` stehen weiter unten im v2-Block. */
	#header.mobile-nav-ready .brand {
		top: 50%;
		width: min(180px, 48vw);
		height: 62px;
		transition: none;   /* greift nur bei reduzierter Bewegung, sonst v2-Block */
	}

	/* Größe, Deckkraft und Transform stehen weiter unten im v2-Block. */
	#header.mobile-nav-ready .brand_logo_full {
		transition: none;   /* greift nur bei reduzierter Bewegung */
	}

	/* Aussehen der Taste (Rahmen, Fläche, Maße) steht im v2-Block weiter unten;
	   hier bleiben Platzierung und Schrift. */
	#header.mobile-nav-ready #mobile-nav-toggle {
		position: absolute;
		top: 50%;
		right: var(--page-padding);
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		border-radius: var(--radius);
		color: var(--color-black) !important;
		font-size: 1rem;
		font-weight: 600;
		line-height: 1.2;
		transform: translateY(-50%);
	}

	#header.mobile-nav-ready #mobile-nav-toggle[aria-expanded="true"] {
		color: var(--color-red) !important;
	}

	#header.mobile-nav-ready #navigation {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		max-height: calc(100vh - 80px);
		max-height: calc(100dvh - 80px);
		padding: 0.75rem var(--page-padding) calc(1rem + env(safe-area-inset-bottom, 0px));
		overflow: auto;
		overscroll-behavior: contain;
		background: rgba(255, 255, 255, 0.97);
		border-bottom: 1px solid var(--color-line);
		box-shadow: 0 12px 24px rgba(29, 29, 27, 0.08);
		transform: none;
		transition: none;
	}

	#header.mobile-nav-ready #navigation .webnavigation {
		overflow: visible;
		padding: 0;
	}

	#header.mobile-nav-ready #navigation ul {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
		width: 100%;
		min-width: 0;
		height: auto;
		margin: 0;
		padding: 0;
	}

	#header.mobile-nav-ready #navigation ul.mainNav1 > li:not([class]) {
		position: static;
		margin: 0 0 0.5rem;
		padding: 0 0 0 1rem;
		border: 0;
		background: transparent;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		overflow: visible;
		white-space: normal;
	}

	#header.mobile-nav-ready #navigation a {
		display: flex;
		align-items: center;
		min-height: 48px;
		padding: 0.75rem;
		font-size: 1rem;
		line-height: 1.4;
		white-space: normal;
		overflow-wrap: anywhere;
		box-shadow: none;
	}

	#header.mobile-nav-ready #navigation ul.mainNav2 a,
	#header.mobile-nav-ready #navigation ul.mainNav3 a {
		font-weight: 500;
		text-transform: none;
	}

	body:has(#header.mobile-nav-ready) #page,
	body.startpage #page {
		min-height: 0;
		gap: 2rem;
		padding: 2rem var(--page-padding) 3rem;
	}

	body.startpage #hero {
		height: auto;
		min-height: 380px;
		min-height: clamp(360px, 62svh, 540px);
	}

	body.startpage #hero .hero_inner {
		padding: 3rem var(--page-padding);
	}

	/* Claim in einer Zeile, genau so breit wie die Button-Reihe darunter (Tyler, 10.09.2026).
	   11.75 = Breite des Claims in em bei Avenir Next 500 mit -0.02em (gemessen 11.71);
	   die Fallback-Schriften (Roboto, Arial ~11.4) sind schmaler und passen dann erst recht.
	   Die Button-Reihe ist min(100vw - 2 * Seitenabstand, 400px) breit - siehe .hero_actions. */
	#hero .hero_title {
		max-width: none;
		margin-right: auto !important;
		margin-left: auto !important;
		font-size: calc(min(100vw - 2 * var(--page-padding), 400px) / 11.75);
		line-height: 1.15;
		white-space: nowrap;
	}

	#hero .hero_actions {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: stretch;
		gap: 0.75rem;
		width: 100%;
		max-width: 400px;
		margin: 1.5rem auto 0;
	}

	#hero .hero_button {
		flex: 1 1 140px;
		width: auto;
		min-width: 0;
		min-height: 50px;
		padding: 0.8rem 1rem;
		font-size: 0.9375rem;
	}

	body.startpage #sidebar {
		position: static;
		order: 0;
		width: 100%;
		padding: 1.5rem;
		border: 1px solid var(--color-line);
		border-radius: var(--radius);
		background: rgba(255, 255, 255, 0.82);
		color: var(--color-text);
		transform: none;
		text-shadow: none;
	}

	body.startpage #sidebar p {
		font-size: 1rem;
		line-height: 1.6;
	}

	#sidebar a {
		overflow-wrap: anywhere;
	}

	#content h1 {
		font-size: clamp(2rem, 7vw, 3rem);
		overflow-wrap: break-word;
	}

	#content p,
	#content li {
		overflow-wrap: break-word;
	}

	/* Kleine Bildtexte bleiben vollständig lesbar und verdecken mobil kein Foto. */
	body.startpage #content .diyfeModGrid3:has(#matrix_516284) .caption {
		position: static;
		padding: 0.85rem 1rem;
		border: 0;
		border-radius: 0;
		background: #ffffff;
		color: var(--color-text);
		font-size: 1rem;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	#footer > .gutter {
		padding: 1.5rem var(--page-padding) calc(2rem + env(safe-area-inset-bottom, 0px));
		overflow-wrap: anywhere;
	}
}                            
@media (max-width: 900px) {
	#header.mobile-nav-ready .brand_logo_full {
		opacity: 1;
		transform: translateY(-50%) scale(1);
		transform-origin: left center;
	}

	#header.mobile-nav-ready .brand_logo_mark {
		display: block;
		width: 44px;
		height: 44px;
		opacity: 0;
		transform: translateY(-50%) scale(0.8);
		transform-origin: left center;
	}

	#header.mobile-nav-ready.is-scrolled .brand_logo_full {
		opacity: 0;
		transform: translateY(-50%) scale(0.85);
	}

	#header.mobile-nav-ready.is-scrolled .brand_logo_mark {
		opacity: 1;
		transform: translateY(-50%) scale(1);
	}
}

@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
	#header.mobile-nav-ready .brand_logo_full,
	#header.mobile-nav-ready .brand_logo_mark {
		transition: opacity 280ms ease, transform 280ms ease;
	}
}                            
@media (max-width: 900px) {
	#header.mobile-nav-ready .brand {
		left: 50%;
		transform: translate(-50%, -50%);
	}

	#header.mobile-nav-ready .brand_logo_full {
		width: min(180px, 48vw);
	}

	#header.mobile-nav-ready.is-scrolled .brand {
		left: var(--page-padding);
		width: 44px;
		height: 44px;
		transform: translateY(-50%);
	}

	#header.mobile-nav-ready #mobile-nav-toggle {
		flex-direction: column;
		gap: 5px;
		width: 48px;
		min-width: 48px;
		height: 48px;
		padding: 12px;
		border: 0;
		background: transparent;
	}

	#header.mobile-nav-ready #mobile-nav-toggle .mobile-nav-bar {
		display: block;
		flex: 0 0 2px;
		width: 24px;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		transform-origin: center;
	}

	#header.mobile-nav-ready #mobile-nav-toggle[aria-expanded="true"] .mobile-nav-bar:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	#header.mobile-nav-ready #mobile-nav-toggle[aria-expanded="true"] .mobile-nav-bar:nth-child(2) {
		opacity: 0;
	}

	#header.mobile-nav-ready #mobile-nav-toggle[aria-expanded="true"] .mobile-nav-bar:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
}

@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
	#header.mobile-nav-ready .brand {
		transition: left 280ms ease, width 280ms ease, height 280ms ease, transform 280ms ease;
	}

	#header.mobile-nav-ready #mobile-nav-toggle .mobile-nav-bar {
		transition: transform 220ms ease, opacity 220ms ease;
	}

	#header.mobile-nav-ready #navigation:not([hidden]) {
		animation: profile-mobile-menu-in 220ms ease-out both;
	}
}

@keyframes profile-mobile-menu-in {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   Safari: Logo sass am Ende der Aufwaerts-Animation zu tief
   ------------------------------------------------------------
   `top: 50%` plus `transform: translateY(-50%)` zentriert beide Logos.
   Die -50 % beziehen sich auf die *eigene* Hoehe, und die waechst
   waehrend der Animation mit (.brand 44 -> 94 px, Wortlogo ~15 -> ~93 px).
   Safari loest das zeitweise gegen die alte, kleinere Hoehe auf: Das
   Logo steht zu tief und springt erst am Ende hoch. Hier zentriert
   deshalb das Raster, und .brand behaelt ihre Hoehe.

   Nur ab 901 px - darunter schaltet `mobile-nav-ready` den Uebergang
   ohnehin ohne Animation.
   ============================================================ */

@media (min-width: 901px) {

	#header .brand_logo_frame {
		display: grid;
		place-items: center start;   /* `start` haelt die Logos am linken Rand */
	}

	#header .brand_logo {
		position: static;
		grid-area: 1 / 1;
	}

	/* Dieselben Transforms wie zuvor, nur ohne den translateY-Anteil. */
	#header .brand_logo_full {
		transform: scale(1);
	}

	#header.is-scrolled .brand_logo_full {
		transform: scale(0.78);
	}

	#header .brand_logo_mark {
		transform: scale(0.72) rotate(-5deg);
	}

	/* Feste Hoehe, damit translateY(-50%) einen festen Wert ergibt, und
	   `top` als Festwert statt 50 % der mitschrumpfenden Kopfzeile (62 / 2).
	   Die Breite animiert weiter - das Wortlogo schrumpft also weiterhin
	   ins Symbol hinein. Der Kasten ragt dadurch unter den Header und
	   nimmt keine Klicks mehr an; das Symbol schon, der Klick steigt auf. */
	#header.is-scrolled .brand {
		height: 94px;
		top: 31px;
		pointer-events: none;
	}

	#header.is-scrolled .brand_logo_mark {
		transform: scale(1) rotate(0);
		pointer-events: auto;
	}
}