/* Schiefer-Design (LIN-17). Abschnitte mit "=== Bereich ===" – nicht umsortieren. */

/* === Schrift === */
@font-face { font-family: 'Outfit'; font-weight: 300; font-style: normal; font-display: swap; src: url('../fonts/outfit/outfit-300.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/outfit/outfit-400.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/outfit/outfit-500.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/outfit/outfit-600.woff2') format('woff2'); }

/* === Tokens === */
:root {
	--night: #06141B;
	--deep: #11212D;
	--slate: #253745;
	--steel: #4A5C6A;
	--mist: #9BA8AB;
	--fog: #CCD0CF;
	--paper: #F3F4F4;
	--line: #E3E6E6;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--c: var(--mist); /* Bereichsfarbe, vom body-Stil überschrieben */
}

/* === Basis === */
body {
	font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	background: var(--paper);
	color: var(--night);
}
:focus-visible { outline: 2px solid var(--night); outline-offset: 2px; box-shadow: 0 0 0 5px var(--c); } /* Doppelring: auch auf Paper >= 3:1 */
.on-dark :focus-visible { outline-color: #fff; }

/* === Knöpfe und Flächen === */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .8em 1.6em; border: 1px solid transparent; border-radius: 999px;
	background: var(--c); color: var(--night);
	font: 500 1rem/1.2 'Outfit', system-ui, sans-serif; text-decoration: none; cursor: pointer;
	transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.white-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; }

/* === Einblendung === */
/* Runde 9: KEINE Einblend-Animationen beim Laden mehr (Abschnitte, Karten, Bilder, Seitenkopf, Hero-Text, Kacheln).
   Nachweis Firefox-Bildfolge (dist/qa-shots/r9-firefox-*): Inhalte erschienen erst verschoben/gestaucht und gestaffelt
   (translateY/scale bis ~1,5 s), dann an ihrem Platz – der „Sprung“. Alles steht jetzt sofort an seiner Stelle.
   Die Klassen .r, .reveal, .vis und data-stagger bleiben im Markup bzw. in motion.js ohne Wirkung auf den Aufbau. */

/* === Bilder, Akzentlinie, Knopf-Schimmer === */
/* Markup: <div class="reveal"><img></div> – heller Platzhalter (fog), bis das Foto da ist; Linie: <h2>…</h2><div class="rule"></div> */
.reveal { position: relative; overflow: hidden; background: var(--fog); }
.reveal img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }

.rule { width: 48px; height: 2px; background: var(--c); }

.btn { position: relative; overflow: hidden; }
.btn::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); pointer-events: none; }
.btn:hover::before { left: 120%; }

/* === Kopf === */
@keyframes draw { to { stroke-dashoffset: 0; } }

.site-bar {
	position: sticky; top: 0; z-index: 50;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 18px 32px; background: var(--night); color: #fff;
	transition: padding .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}
/* Runde 8: geschrumpft fast deckend statt backdrop-filter (Unschärfe der Seite unter der Kopfzeile kostete in Firefox je Scroll-Frame) */
body.scrolled .site-bar { padding: 10px 32px; background: rgba(6, 20, 27, .96); box-shadow: 0 6px 20px rgba(6, 20, 27, .25); }
.site-bar__logo { display: block; flex: none; line-height: 0; }
/* Runde 5: Logo, Punkte und Telefon am Desktop rund 12 % größer (Handy-Maße stehen unten im 900-px-Block) */
.site-bar__logo img { height: 36px; width: auto; transition: height .4s var(--ease); }
body.scrolled .site-bar__logo img { height: 27px; }
.site-bar__nav { display: flex; align-items: center; gap: 22px; }
.site-menu { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.site-menu li { position: relative; display: flex; align-items: center; }
.site-menu a { position: relative; color: var(--mist); font-size: 14.5px; text-decoration: none; padding: 7px 0; transition: color .25s var(--ease); }
/* Hover-Linie in der Kachelfarbe des Punkts (--nc am li, Untermenü erbt sie); ohne Zuordnung weiß */
.site-menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--nc, #fff); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-menu a:hover, .site-menu a:focus-visible { color: #fff; }
.site-menu a:hover::after, .site-menu a:focus-visible::after { transform: scaleX(1); }
/* Alle Farben der Navigation kommen aus --nc des eigenen Punkts (nie aus --c, der Bereichsfarbe der aktuellen Seite) */
.site-menu a[aria-current="page"] { color: #fff; border-bottom: 2px solid var(--nc, var(--c)); }
.site-menu :focus-visible { box-shadow: 0 0 0 5px var(--nc, var(--c)); }
.site-menu a[aria-current="page"]::after { display: none; }
.sub-toggle { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; margin-left: 2px; border: 0; background: none; color: var(--mist); cursor: pointer; }
.sub-toggle .ico { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.sub-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.sub-menu {
	position: absolute; top: 100%; left: -14px; min-width: 210px; margin: 0; padding: 10px 14px; list-style: none;
	background: var(--night); border: 1px solid var(--slate); border-top: 2px solid var(--nc, var(--c)); border-radius: 0 0 8px 8px;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.sub-menu li { display: block; }
.sub-menu a { display: block; padding: 7px 0; }
.has-sub:not(.sub-closed):hover > .sub-menu, .has-sub:not(.sub-closed):focus-within > .sub-menu, .has-sub.open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-bar__tel { color: #fff; font-size: 14.5px; text-decoration: none; border: 1px solid var(--steel); padding: 7px 14px; border-radius: 20px; white-space: nowrap; transition: border-color .25s var(--ease); }
.site-bar__tel:hover { border-color: var(--fog); }
/* Kopf, Symbole und E-Mail des Handy-Panels (Runde 2) gibt es nur unter 900 px */
.site-menu__head, .site-bar__mail, .site-bar__withdraw, .site-bar__tel .ico { display: none; }
.site-bar__contact { display: flex; align-items: center; }
.site-bar__toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.site-bar__burger { position: relative; width: 24px; height: 16px; }
.site-bar__burger i { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 1px; transition: transform .3s var(--ease), opacity .2s; }
.site-bar__burger i:nth-child(1) { top: 0; } .site-bar__burger i:nth-child(2) { top: 7px; } .site-bar__burger i:nth-child(3) { top: 14px; }
body.menu-open .site-bar__burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .site-bar__burger i:nth-child(2) { opacity: 0; }
body.menu-open .site-bar__burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
	.site-bar, body.scrolled .site-bar { padding-left: 16px; padding-right: 16px; }
	/* Handy: Logo wie vor Runde 5 */
	.site-bar__logo img { height: 32px; }
	body.scrolled .site-bar__logo img { height: 24px; }
	.site-bar__toggle { display: flex; }
	.site-bar { flex-wrap: wrap; }
	.site-bar__nav { flex-direction: column; align-items: stretch; width: 100%; gap: 14px; }
	.site-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-menu li { flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--slate); }
	.site-menu > li > a { flex: 1; padding: 12px 0; font-size: 16px; }
	.site-menu a[aria-current="page"] { border-bottom: 0; box-shadow: inset 3px 0 0 var(--nc, var(--c)); padding-left: 10px; }
	.sub-toggle { width: 44px; height: 44px; }
	.sub-menu { position: static; width: 100%; min-width: 0; padding: 0 0 8px 10px; border: 0; border-radius: 0; opacity: 1; visibility: visible; transform: none; }
	/* ohne JS: Menü sichtbar unter dem Logo, Telefon und E-Mail untereinander */
	.site-bar__contact { flex-direction: column; align-items: flex-start; gap: 10px; }
	.site-bar__mail { display: block; color: var(--fog); font-size: 13px; text-decoration: none; }
	/* Handy-Menü: „Vertrag widerrufen“ (Runde 7) – ohne JS als Link unter Telefon/E-Mail */
	.site-bar__withdraw { display: block; color: #fff; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

	/* Mit JS (Runde 2): Vollbild-Panel fährt von rechts herein (motion.js setzt body.menu-open/.menu-visible, html.menu-locked).
	   Geschlossen außer Sicht und per visibility für Tastatur/Vorleser verborgen. */
	html.js .site-bar__nav {
		position: fixed; top: 0; right: 0; z-index: 10; display: flex; flex-direction: column; align-items: stretch; gap: 0;
		width: 100vw; height: 100vh; height: 100dvh; padding: 0 16px calc(24px + env(safe-area-inset-bottom));
		overflow-y: auto; overscroll-behavior: contain; background: var(--night); box-shadow: -24px 0 60px rgba(0, 0, 0, .35);
		visibility: hidden; transform: translateX(100%);
		transition: transform .35s var(--ease), visibility 0s .35s;
	}
	html.js .site-bar__nav, html.js .site-bar__nav * { box-sizing: border-box; }
	html.js body.menu-open .site-bar__nav { visibility: visible; transform: none; transition: transform .35s var(--ease), visibility 0s; }
	/* offenes Panel über dem App-Hinweis (z-index 880) */
	body.menu-visible .site-bar { z-index: 890; }
	/* geschlossenes Panel (rechts außer Sicht) darf kein seitliches Scrollen erzeugen */
	html.js .site-bar { overflow: clip; }
	html.js .site-menu__head { display: flex; flex: none; align-items: center; justify-content: space-between; min-height: 68px; }
	html.js .site-menu__logo { display: block; width: auto; height: 32px; }
	html.js .site-menu__close { display: grid; place-items: center; width: 48px; height: 48px; margin-right: -2px; padding: 0; border: 1px solid rgba(155, 168, 171, .35); border-radius: 50%; background: none; color: #fff; cursor: pointer; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
	html.js .site-menu__close:hover { border-color: var(--fog); background: rgba(255, 255, 255, .06); }
	html.js .site-menu__close .ico { width: 18px; height: 18px; }

	html.js .site-menu { margin: 20px 0 0; padding: 0 8px; }
	html.js .site-menu > li { border-top: 0; border-bottom: 1px solid rgba(155, 168, 171, .16); }
	html.js .site-menu > li > a { display: flex; align-items: center; min-height: 60px; padding: 10px 0; color: var(--fog); font-size: 28px; font-weight: 300; line-height: 1.2; letter-spacing: -.01em; }
	html.js .site-menu a::after { display: none; }
	html.js .site-menu a:hover, html.js .site-menu a:focus-visible { color: #fff; }
	/* aktiver Punkt: weiß mit Punkt in der Bereichsfarbe */
	html.js .site-menu > li > a[aria-current="page"] { padding-left: 0; box-shadow: none; color: #fff; }
	html.js .site-menu > li > a[aria-current="page"]::before { content: ""; flex: none; width: 7px; height: 7px; margin-right: 14px; border-radius: 50%; background: var(--nc, var(--c)); }
	html.js .sub-toggle { width: 48px; height: 48px; margin: 0 -2px 0 0; border: 1px solid rgba(155, 168, 171, .35); border-radius: 50%; color: var(--fog); }
	html.js .sub-toggle .ico { width: 18px; height: 18px; }
	/* Kaufen/Mieten als Akkordeon; :not(.open) schlägt die Desktop-Regel für :hover/:focus-within */
	html.js .sub-menu { max-height: 0; overflow: hidden; padding: 0 0 0 2px; transition: max-height .35s var(--ease), visibility 0s .35s; }
	html.js .site-menu .has-sub:not(.open) > .sub-menu { visibility: hidden; }
	html.js .site-menu .has-sub.open > .sub-menu { max-height: 16rem; visibility: visible; transition: max-height .35s var(--ease), visibility 0s; }
	html.js .sub-menu li { border: 0; }
	html.js .sub-menu li:last-child { margin-bottom: 10px; }
	html.js .sub-menu a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 6px 0 6px 21px; color: var(--mist); font-size: 19px; }

	html.js .site-bar__contact { flex: none; align-items: stretch; gap: 10px; margin-top: auto; padding: 32px 8px 0; }
	html.js .site-bar__tel, html.js .site-bar__mail { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 20px; border-radius: 999px; font-size: 18px; text-decoration: none; }
	html.js .site-bar__tel { align-self: stretch; border: 1px solid var(--fog); background: var(--fog); color: var(--night); }
	html.js .site-bar__tel:hover { background: #fff; border-color: #fff; }
	html.js .site-bar__mail { border: 1px solid rgba(155, 168, 171, .35); color: #fff; font-size: 17px; overflow-wrap: anywhere; }
	html.js .site-bar__mail:hover { border-color: var(--fog); }
	html.js .site-bar__withdraw { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid rgba(155, 168, 171, .35); border-radius: 999px; color: var(--fog); font-size: 16px; text-decoration: none; }
	html.js .site-bar__withdraw:hover { border-color: var(--fog); color: #fff; }
	html.js .site-bar__tel .ico, html.js .site-bar__mail .ico { display: block; width: 20px; height: 20px; }

	/* Punkte gestaffelt, kurz und dezent */
	@keyframes menu-in { from { opacity: 0; transform: translateX(18px); } }
	html.js body.menu-open .site-menu > li { animation: menu-in .45s var(--ease) calc(.12s + var(--i, 0) * .04s) backwards; }
	html.js body.menu-open .site-bar__contact { animation: menu-in .45s var(--ease) .38s backwards; }
}
html.menu-locked { overflow: hidden; }

.page-head { position: relative; overflow: hidden; background: var(--night); color: #fff; border-bottom: 3px solid var(--c); }
.page-head__inner { position: relative; padding: 26px 32px 30px; max-width: 1200px; margin: 0 auto; }
.contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* eigene Ebene nur, wo motion.js verschiebt (Parallaxe im Seitenkopf); Runde 8: vorher an allen Höhenlinien */
.page-head .contours { will-change: transform; }
.contours path { fill: none; stroke: var(--mist); stroke-width: .6; opacity: .3; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.2s var(--ease) forwards; }
.contours path:nth-child(2) { animation-delay: .1s; } .contours path:nth-child(3) { animation-delay: .2s; } .contours path:nth-child(4) { animation-delay: .3s; }
.page-head__crumbs { font-size: 12px; color: var(--mist); }
.page-head__crumbs a { color: var(--fog); text-decoration: none; }
.page-head__crumbs a:hover { color: #fff; }
.page-head__sep { margin: 0 .4em; }
.page-head h1 { margin: 6px 0 4px; font-weight: 300; font-size: 40px; line-height: 1.15; letter-spacing: -.01em; color: #fff; overflow-wrap: anywhere; }
.page-head .lead { margin: 0; font-size: 14px; color: var(--mist); }
@media (max-width: 600px) {
	.page-head__inner { padding: 20px 16px 24px; }
	.page-head h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	.contours path { stroke-dashoffset: 0; }
}

/* === Fragen-Streifen === */
.questions { background: #fff; border-top: 1px solid var(--line); }
.questions__inner { max-width: 1200px; margin: 0 auto; padding: 36px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.questions__title { margin: 0 0 4px; font: 300 clamp(1.5rem, 3vw, 1.9rem)/1.2 'Outfit', system-ui, sans-serif; color: var(--night); padding: 0; }
.questions__text p { margin: 0; color: var(--steel); font-size: 15px; }
.questions__actions { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.questions__tel { display: inline-flex; align-items: center; gap: 8px; color: var(--night); font-size: 18px; font-weight: 400; text-decoration: none; white-space: nowrap; transition: color .25s var(--ease); }
.questions__tel:hover { color: var(--steel); }
/* ID-Regeln der Alt-CSS (#contactusbtn) überstimmen */
#contactusbtn.btn { background: var(--night); color: #fff; border: 1px solid var(--night); border-radius: 999px; padding: .8em 1.6em; }
#contactusbtn.btn:hover { background: var(--slate); border-color: var(--slate); transform: translateY(-2px); }
@media (max-width: 600px) {
	.questions__inner { padding: 28px 16px; }
	.questions__actions { width: 100%; }
	#contactusbtn.btn { width: 100%; }
}

/* App-Streifen (Runde 2, partials/app-strip): statt „Haben Sie Fragen?“ auf Baufinanzierung, Über uns, Kontakt.
   Ein Handy ragt von unten in den Streifen (unten abgeschnitten); Runde 9: steht sofort, kein Hereingleiten. */
.app-strip { position: relative; overflow: hidden; background: #fff; border-top: 1px solid var(--line); }
.app-strip *, .app-strip *::before, .app-strip *::after { box-sizing: border-box; }
.app-strip__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "phone text badges"; align-items: center; gap: 0 36px; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.app-strip__phone { grid-area: phone; align-self: end; height: 150px; margin-top: 28px; padding: 0 16px; overflow: hidden; }
.app-strip__device { display: block; width: 108px; padding: 5px; border-radius: 20px; background: #0b1a22; box-shadow: 0 12px 28px rgba(6, 20, 27, .22), inset 0 0 0 1px rgba(155, 168, 171, .25); transition: transform 1s var(--ease), opacity 1s var(--ease); }
.app-strip__device img { display: block; width: 100%; height: auto; border-radius: 15px; }
.app-strip__text { grid-area: text; padding: 28px 0; }
.app-strip__title { margin: 0 0 4px; font: 300 clamp(1.5rem, 3vw, 1.9rem)/1.2 'Outfit', system-ui, sans-serif; color: var(--night); padding: 0; text-align: left; }
.app-strip__text p { max-width: 52ch; margin: 0; color: var(--steel); font-size: 15px; line-height: 1.55; }
.app-strip__badges { grid-area: badges; display: flex; flex-wrap: wrap; gap: 10px; }
.app-strip__badges a { display: block; line-height: 0; }
.app-strip__badges img { height: 40px; width: auto; }
@media (max-width: 760px) {
	.app-strip__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "badges" "phone"; padding: 0 16px; }
	.app-strip__text { padding: 28px 0 16px; }
	.app-strip__phone { justify-self: center; height: 120px; margin-top: 24px; }
	.app-strip__device { width: 96px; }
}

/* === Footer === */
.site-foot { background: var(--night); color: var(--mist); font-size: 13px; line-height: 1.7; text-align: left; }
.site-foot__grid { max-width: 1200px; margin: 0 auto; padding: 40px 32px 24px; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 28px 24px; }
.site-foot a { text-align: left; color: var(--fog); text-decoration: none; transition: color .25s var(--ease); }
.site-foot a:hover { color: #fff; }
.site-foot__head { margin: 0 0 6px; padding: 0; color: #fff; font: 500 13px/1.7 'Outfit', system-ui, sans-serif; }
.site-foot__logo { display: block; height: 34px; width: auto; margin-bottom: 12px; }
.site-foot__brand p { margin: 0; }
.site-foot address { font-style: normal; }
.site-foot address a, .site-foot nav a { display: block; }
.site-foot__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.site-foot__badges img { display: block; height: 30px; width: auto; }
.site-foot__area { max-width: 1200px; margin: 0 auto; padding: 16px 32px 24px; border-top: 1px solid rgba(155, 168, 171, .15); }
.site-foot__area b { color: #fff; font-weight: 500; margin-right: 6px; }
.site-foot__copy { border-top: 1px solid rgba(155, 168, 171, .15); color: var(--mist); font-size: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px max(32px, calc((100% - 1200px) / 2 + 32px)); }
.site-foot__copy a { color: var(--mist); }
/* „Vertrag widerrufen“ (§ 356a BGB, Runde 7, Nachbesserung): letzter Eintrag unter „Angebote“, kleiner dunkler Button –
   Fläche deep und Rand mist heben ihn von den Textlinks ab (Rand gegen night ≥ 3:1), Text fog auf deep ≥ 4.5:1 */
.site-foot nav a.withdraw-btn { display: inline-block; margin-top: 12px; padding: 5px 12px; border: 1px solid var(--mist); border-radius: 999px; background: var(--deep); color: var(--fog); font-size: 12.5px; font-weight: 500; line-height: 1.4; text-decoration: none; transition: border-color .25s var(--ease), color .25s var(--ease); }
.site-foot nav a.withdraw-btn:hover { border-color: var(--fog); color: #fff; }
.site-foot nav a.withdraw-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: none; }
@media (max-width: 900px) {
	.site-foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.site-foot__grid { grid-template-columns: 1fr; padding: 32px 16px 16px; }
	.site-foot__area { padding: 16px 16px 20px; }
	.site-foot__copy { padding: 12px 16px; }
}

/* === Kurzkontakt-Dialog === */
/* Selektoren mit dialog#… übertrumpfen die ID-Regeln aus style.css/responsive.css/seo-fixes.css (laden früher bzw. gleich) */
dialog#diag_smallcontact { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; box-sizing: border-box; left: 50%; top: 50%; margin: 0; padding: 28px 28px 24px; transform: translate(-50%, -50%); background: var(--paper); color: var(--night); border: 0; border-radius: 16px; text-align: left; box-shadow: 0 24px 60px rgba(6, 20, 27, .35); }
dialog#diag_smallcontact::backdrop { background: rgba(6, 20, 27, .65); }
dialog#diag_smallcontact .diag-title { margin: 0 0 18px; padding: 0; font: 300 1.6rem/1.2 'Outfit', system-ui, sans-serif; color: var(--night); }
dialog#diag_smallcontact #close_diag { position: absolute; top: 14px; right: 14px; float: none; margin: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--steel); font-size: 16px; font-weight: 500; line-height: 1; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); }
dialog#diag_smallcontact #close_diag:hover { background: var(--line); color: var(--night); -webkit-transform: none; transform: none; }
/* Runde 8: Personenfelder der Anfrage-Formulare (partials/person-fields) – Anrede allein, Vor-/Nachname, Straße/Nr.,
   Ort, Telefon/E-Mail nebeneinander; schmal alles untereinander */
.person-fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 12px; }
.person-fields > * { grid-column: span 6; min-width: 0; }
.person-fields > .pf--salutation { grid-column: 1 / span 2; }
.person-fields > .pf--firstname { grid-column: 1 / span 3; }
.person-fields > .pf--lastname, .person-fields > .pf--phone, .person-fields > .pf--email { grid-column: span 3; }
.person-fields > .pf--phone { grid-column: 1 / span 3; }
.person-fields > .pf--street { grid-column: 1 / span 4; }
.person-fields > .pf--housenumber { grid-column: span 2; }
#contact-area .person-fields, .expose-ask .person-fields { row-gap: 14px; }
@media (max-width: 480px) {
	.person-fields > *, .person-fields > [class*="pf--"] { grid-column: 1 / -1; }
}
dialog#diag_smallcontact input[type=tel], dialog#diag_smallcontact select,
dialog#diag_smallcontact input[type=text], dialog#diag_smallcontact input[type=email], dialog#diag_smallcontact textarea {
	display: block; box-sizing: border-box; width: 100%; margin: 0 0 14px; padding: 11px 12px;
	font: 400 15px/1.4 'Outfit', system-ui, sans-serif; color: var(--night); background: #fff;
	border: 1px solid var(--fog); border-radius: 8px; transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
dialog#diag_smallcontact textarea { height: 120px; resize: vertical; }
dialog#diag_smallcontact input[type=text]:focus, dialog#diag_smallcontact input[type=email]:focus, dialog#diag_smallcontact textarea:focus { border-color: var(--steel); }
dialog#diag_smallcontact input::placeholder, dialog#diag_smallcontact textarea::placeholder { color: var(--steel); opacity: 1; }
dialog#diag_smallcontact :focus-visible { outline: 2px solid var(--night); outline-offset: 2px; box-shadow: 0 0 0 5px var(--c); }
dialog#diag_smallcontact .field-error { margin: -8px 0 12px 2px; color: #b00020; }
dialog#diag_smallcontact .privacy-consent { margin: 4px 0 14px; color: var(--steel); }
dialog#diag_smallcontact .privacy-consent a { color: var(--night); text-decoration: underline; }
dialog#diag_smallcontact .privacy-consent + .field-error { margin-top: -8px; }
dialog#diag_smallcontact #smallcontact_send { float: none; display: block; width: auto; margin-left: auto; padding: .8em 2em; border: 0; border-radius: 999px; background: var(--night); color: #fff; font: 500 1rem/1.2 'Outfit', system-ui, sans-serif; cursor: pointer; transition: background-color .3s var(--ease), transform .3s var(--ease); }
dialog#diag_smallcontact #smallcontact_send:hover { background: var(--slate); transform: translateY(-2px); }
dialog#diag_smallcontact #smallcontact_send:disabled { transform: none; }
@media (max-width: 600px) {
	dialog#diag_smallcontact { padding: 24px 16px 20px; }
	dialog#diag_smallcontact #smallcontact_send { width: 100%; }
}

/* === Meldungen (Danke/Fehler nach Formularversand) === */
/* #msg-success/#msg-error liegen außerhalb von .wrapper (footer.blade.php, position: fixed) und wurden von style.css
   unsymmetrisch (margin-left -210 px bei 335 px Breite) und von responsive.css mit top: 32 % / 10 % gesetzt → hier mittig und im Thema. */
div#msg-success, div#msg-error { box-sizing: border-box; width: min(420px, calc(100vw - 32px)); height: auto; left: 50%; top: 50% !important; margin: 0; padding: 28px; transform: translate(-50%, -50%); background: var(--paper); color: var(--night); border-radius: 16px; text-align: left; box-shadow: 0 24px 60px rgba(6, 20, 27, .35); }
div#msg-success .msg-title, div#msg-error .msg-title { margin: 0 0 8px; font: 300 1.6rem/1.2 'Outfit', system-ui, sans-serif; }
div#msg-success h2, div#msg-error h2 { margin: 0; padding: 0; font: 400 1rem/1.5 'Outfit', system-ui, sans-serif; color: var(--steel); }

/* === Reduzierte Bewegung === */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	html.js .r { opacity: 1; transform: none; }
	html.js .reveal:not(.is-in) img { opacity: 1; }
	html.js h2 + .rule { transform: scaleX(1); }
	.btn::before { display: none; }
	.btn:hover { transform: none; }
	#contactusbtn.btn:hover, dialog#diag_smallcontact #smallcontact_send:hover { transform: none; }
}

/* === Startseite === */
/* Mockups kacheln-v3.html (Hero, Kacheln), startseite-v2.html (Leistungen, Neu im Angebot, App), bewegung.html (Bewegung) */
.home-page, .home-page *, .home-page *::before, .home-page *::after { box-sizing: border-box; }
.home-page h2, .home-page h3 { padding: 0; text-align: left; }

/* Hero: Foto zoomt einmal langsam heraus, H1 steigt Wort für Wort auf (Runde 5: ohne Höhenlinien über dem Foto) */
@keyframes ken-burns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.06) translate(var(--kx, 0), var(--ky, 0)); } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
.home-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(420px, 66vh, 640px); padding: 72px 0 110px; background: var(--night); color: #fff; }
/* Bildwechsel mit Ken-Burns (Runde 5, motion.js „Hero-Bildwechsel“): Der Container dunkelt ab (.55), das neue Bild blendet
   über dem alten ein (das alte bleibt voll stehen → keine dunkle Delle), jedes Bild zoomt 1 → 1.06 und gleitet leicht in seine
   Richtung (--kx/--ky/--ko je Position). Ohne JS und bei reduzierter Bewegung: nur Bild 1, statisch. */
/* Runde 8: Abdunkeln nicht mehr per opacity am Container (Gruppen-Deckkraft über zwei animierten Vollbildern = teure
   Zwischenfläche je Frame, v. a. in Firefox), sondern als Fläche in .home-hero::after; heller als vorher (0,35 statt 0,45). */
.home-hero__slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.home-hero__photo { position: absolute; inset: 0; display: block; }
.home-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform-origin: var(--ko, 50% 50%); }
.home-hero__photo:nth-child(4n+1) { --kx: -1.2%; --ky: -.6%; --ko: 40% 55%; }
.home-hero__photo:nth-child(4n+2) { --kx: 1.2%; --ky: -.4%; --ko: 60% 45%; }
.home-hero__photo:nth-child(4n+3) { --kx: -.8%; --ky: .6%; --ko: 50% 35%; }
.home-hero__photo:nth-child(4n+4) { --kx: .8%; --ky: .5%; --ko: 45% 65%; }
html:not(.js) .home-hero__photo:not(:first-child) { display: none; }
html.js .home-hero__photo { opacity: 0; transition: opacity 1.8s ease-in-out; }
html.js .home-hero__photo.is-active { z-index: 1; opacity: 1; }
html.js .home-hero__photo.is-leaving { z-index: 0; opacity: 1; transition: none; }
/* Dauer = Standzeit + zwei Überblendungen (7,5 s + 2 × 1,8 s), damit der Zoom im Ausblenden weiterläuft */
html.js .home-hero__photo.is-active img, html.js .home-hero__photo.is-leaving img { animation: ken-burns 11.5s cubic-bezier(.33, 0, .25, 1) forwards; }
/* nur ein Bild: ruhig hin und zurück */
html.js .home-hero__slides[data-count="1"] .is-active img { animation: ken-burns 16s ease-in-out infinite alternate; }
/* Tab verborgen oder Hero außer Sicht (motion.js) */
.home-hero__slides.is-paused img { animation-play-state: paused !important; }
/* Abdunkelung (Runde 8): Grundfläche night 0,35 + Verlauf 0,2 → 0,9 nach unten. Kontrast im ungünstigsten Fall (rein weißes
   Foto) auf Höhe des Logos (≥ 15 % der Höhe) ≥ 4,8:1, beim Fließtext unten deutlich mehr – WCAG AA auch für 16-px-Text. */
.home-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6, 20, 27, .2), rgba(6, 20, 27, .9)), rgba(6, 20, 27, .35); pointer-events: none; }
.home-hero__inner { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
/* Logo über der H1 (dekorativ): steigt wie die Wörter aus seiner Zeile auf, kurz davor; margin-left gleicht den Rand im SVG aus */
.home-hero__brand { display: block; overflow: hidden; margin: 0 0 18px; line-height: 0; }
.home-hero__logo { display: block; width: auto; height: 130px; margin-left: -16px; }
.home-hero__title { margin: 0 0 12px; padding: 0; font: 300 clamp(38px, 6vw, 58px)/1.05 'Outfit', system-ui, sans-serif; letter-spacing: -.01em; color: #fff; text-align: left; text-shadow: 0 1px 14px rgba(6, 20, 27, .45); }
.home-hero__title .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.home-hero__title .w > span { display: inline-block; }
.home-hero__lead { margin: 0; max-width: 46ch; font-size: 16px; line-height: 1.5; color: var(--fog); text-shadow: 0 1px 10px rgba(6, 20, 27, .5); }
/* Scroll-Hinweis: Rädchen läuft dreimal, verschwindet beim Scrollen */
.home-hero__scroll { position: absolute; z-index: 2; right: max(32px, calc((100% - 1200px) / 2 + 32px)); bottom: 106px; width: 22px; height: 36px; border: 1px solid var(--fog); border-radius: 12px; transition: opacity .4s var(--ease); }
.home-hero__scroll::after { content: ""; position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: #fff; opacity: 0; animation: wheel 1.8s ease-in-out 1.6s 3; }
body.scrolled .home-hero__scroll { opacity: 0; }

/* Kacheln über der Kante; Hover: hebt sich, wandernder Verlauf aus Schiefer und Bereichsfarbe (dezent). Farbe in deep gemischt, --k 40 %:
   weißer Text hat so auf jeder Stelle des Verlaufs bei allen sechs Bereichsfarben >= 4.5:1 (hellster Stopp, Sand #707061: 5.02:1) */
/* Runde 8: Verlauf wandert per transform (Compositor) statt background-position (Neuzeichnen je Frame). Die Fläche ist 3 × 3 so groß
   wie die Kachel (wie vorher background-size 300 %) und gleitet zwischen linker und rechter Kante hin und her. */
@keyframes flow { 0% { transform: translateX(0); } 50% { transform: translateX(-66.667%); } 100% { transform: translateX(0); } }
.home-tiles { --k: 40%; position: relative; z-index: 3; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; max-width: 1200px; margin: -62px auto 0; padding: 0 32px; }
.home-tile {
	position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
	min-height: 136px; padding: 16px 14px; color: #fff; text-decoration: none; text-align: left;
	background: linear-gradient(160deg, var(--slate), var(--deep)); border: 1px solid rgba(155, 168, 171, .22); box-shadow: 0 14px 30px rgba(6, 20, 27, .28);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.home-tile > * { position: relative; z-index: 1; }
.home-tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 2px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.home-tile::after {
	content: ""; position: absolute; left: 0; top: -100%; z-index: 0; width: 300%; height: 300%; opacity: 0; transition: opacity .5s var(--ease);
	background: linear-gradient(120deg, var(--deep) 0%, color-mix(in srgb, var(--c) var(--k), var(--deep)) 30%, var(--slate) 50%, color-mix(in srgb, var(--c) calc(var(--k) * .7), var(--deep)) 72%, var(--deep) 100%);
}
.home-tile__icon { width: 26px; height: 26px; fill: none; stroke: var(--mist); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s var(--ease), transform .35s var(--ease); }
.home-tile__text b { display: block; font-weight: 500; font-size: 15px; }
.home-tile__text small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.3; color: var(--mist); transition: color .3s var(--ease); }
.home-tile > .home-tile__arrow { position: absolute; right: 14px; top: 20px; width: 14px; height: 14px; fill: none; stroke: var(--fog); stroke-width: 1.8; opacity: 0; transform: translateX(-6px); transition: opacity .3s var(--ease), transform .35s var(--ease); }
/* Aktiv: Maus (nur echte Hover-Geräte, sonst bleibt :hover nach dem Antippen hängen), Tastatur, kurz beim Antippen (.touch aus motion.js) */
.home-tile:focus-visible, .home-tile.touch { transform: translateY(-5px); box-shadow: 0 20px 36px rgba(6, 20, 27, .34); border-color: rgba(204, 208, 207, .5); }
.home-tile:focus-visible::before, .home-tile.touch::before { transform: scaleX(1); }
.home-tile:focus-visible::after, .home-tile.touch::after { opacity: 1; animation: flow 6s ease-in-out infinite; }
.home-tile:focus-visible .home-tile__icon, .home-tile.touch .home-tile__icon { stroke: var(--c); transform: translateY(-2px); }
.home-tile:focus-visible small, .home-tile.touch small { color: #fff; }
.home-tile:focus-visible .home-tile__arrow, .home-tile.touch .home-tile__arrow { opacity: 1; transform: none; }
@media (hover: hover) {
	.home-tile:hover { transform: translateY(-5px); box-shadow: 0 20px 36px rgba(6, 20, 27, .34); border-color: rgba(204, 208, 207, .5); }
	.home-tile:hover::before { transform: scaleX(1); }
	.home-tile:hover::after { opacity: 1; animation: flow 6s ease-in-out infinite; }
	.home-tile:hover .home-tile__icon { stroke: var(--c); transform: translateY(-2px); }
	.home-tile:hover small { color: #fff; }
	.home-tile:hover .home-tile__arrow { opacity: 1; transform: none; }
}
/* Fokus: weiße Linie mit dunklem Band, auf Hero (dunkel) und Paper (hell) sichtbar */
.home-tile:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--night), 0 20px 36px rgba(6, 20, 27, .34); }

/* Abschnitte auf Paper */
.home-section { max-width: 1200px; margin: 0 auto; padding: 64px 32px 8px; }
.home-section__title, .home-app h2 { margin: 0 0 6px; font: 300 clamp(26px, 3vw, 30px)/1.2 'Outfit', system-ui, sans-serif; color: var(--night); }
.home-page .rule { margin-bottom: 26px; }
.home-section__sub { margin: -12px 0 24px; font-size: 14px; color: var(--steel); }

/* Leistungen: Foto, Titel, heutiger Text; ganze Karte klickbar */
.home-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { position: relative; background: #fff; box-shadow: 0 1px 3px rgba(6, 20, 27, .08); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.service-card__photo { height: 170px; }
.service-card__photo picture { display: block; height: 100%; transition: transform .6s var(--ease); }
.service-card__body { padding: 16px 18px 18px; }
.service-card h3 { margin: 0 0 6px; font: 500 17px/1.3 'Outfit', system-ui, sans-serif; color: var(--night); }
.service-card__link { color: inherit; text-decoration: none; text-align: left; }
.service-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.service-card p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--steel); }
.service-card__more { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 2px; border-bottom: 1px solid var(--mist); font-size: 13px; color: var(--slate); }
.service-card__more .ico { width: 14px; height: 14px; stroke-width: 1.8; transition: transform .35s var(--ease); }
.service-card:hover, .service-card:focus-within { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(6, 20, 27, .12); }
.service-card:hover picture { transform: scale(1.05); }
.service-card:hover .service-card__more .ico { transform: translateX(4px); }

/* Objektkarte (partials/property-card): Basis + Variante tile; row ergänzt die Listen-Seite */
.prop-card { position: relative; display: flex; flex-direction: column; background: #fff; box-shadow: 0 1px 3px rgba(6, 20, 27, .08); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.prop-card:hover, .prop-card:focus-within { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(6, 20, 27, .12); }
.card-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--fog); }
.card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-photo--empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--slate), var(--deep)); color: var(--mist); }
.card-photo--empty .ico { width: 48px; height: 48px; stroke-width: 1.2; }
.prop-card__body { padding: 14px 16px 18px; }
.prop-card__title { margin: 0 0 4px; padding: 0; font: 400 16px/1.3 'Outfit', system-ui, sans-serif; color: var(--night); text-align: left; overflow-wrap: anywhere; }
.card-link { color: inherit; text-decoration: none; text-align: left; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.prop-card__place { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--steel); }
.prop-card__place .ico { width: 14px; height: 14px; }
.prop-card__price { margin: 10px 0 0; font-size: 18px; color: var(--night); }
/* Zeilenkarte: Maße siehe Abschnitt Objektlisten */
/* Karten-Fokus: Ring um die ganze Karte (Overlay des Titel-Links) statt nur um den Titel */
.card-link:focus-visible, .service-card__link:focus-visible { outline: none; box-shadow: none; }
.card-link:focus-visible::after, .service-card__link:focus-visible::after { outline: 2px solid var(--night); outline-offset: 2px; box-shadow: 0 0 0 5px var(--c); }

/* Neu im Angebot */
/* immer eine volle Reihe: 4 Spalten Desktop, 2 Tablet, 1 Handy (weniger Objekte = weniger Karten, keine Platzhalter) */
.home-newest { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

/* App-Bereich: drei aufgefächerte Handys gleiten ein ([data-reveal] → .vis) */
.home-app { position: relative; overflow: hidden; margin-top: 64px; background: var(--night); color: var(--fog); }
html.js .home-app .contours path { animation: none; transition: stroke-dashoffset 2.6s var(--ease); }
html.js .home-app.vis .contours path { stroke-dashoffset: 0; }
.home-app__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.25fr; gap: 30px; align-items: center; max-width: 1200px; margin: 0 auto; padding: 64px 32px 0; }
.home-app__text { padding-bottom: 56px; }
.home-app h2 { color: #fff; margin-bottom: 12px; }
.home-app p { margin: 0 0 16px; max-width: 46ch; font-size: 15px; line-height: 1.6; color: var(--mist); }
.home-app ul { margin: 0 0 22px; padding: 0; list-style: none; font-size: 14px; color: var(--fog); }
.home-app li { padding: 6px 0; border-bottom: 1px solid rgba(155, 168, 171, .18); }
.home-app__badges { display: flex; flex-wrap: wrap; gap: 10px; }
.home-app__badges a { display: block; line-height: 0; }
.home-app__badges img { height: 40px; width: auto; }
.home-app__phones { position: relative; height: 420px; }
.phone { position: absolute; bottom: -40px; width: 190px; padding: 7px; border-radius: 26px; background: #0b1a22; box-shadow: 0 20px 40px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(155, 168, 171, .25); transition: transform 1.1s var(--ease), opacity 1.1s var(--ease); }
.phone img { display: block; width: 100%; height: auto; border-radius: 20px; }
.phone--1 { left: 6%; transform: rotate(-7deg) translate(0, 30px); }
.phone--2 { left: 34%; z-index: 2; transform: rotate(0deg) translate(0, -10px); transition-delay: .15s; }
.phone--3 { left: 62%; transform: rotate(7deg) translate(0, 30px); transition-delay: .3s; }

@media (max-width: 1000px) {
	.home-tiles { grid-template-columns: repeat(3, 1fr); }
	.home-newest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.home-app__inner { grid-template-columns: 1fr; gap: 8px; }
	.home-app__text { padding-bottom: 0; }
	.home-app__phones { width: 100%; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 760px) {
	.home-services { grid-template-columns: 1fr; }
	.service-card__photo { height: 200px; }
}
@media (max-width: 600px) {
	.home-hero { min-height: 400px; padding: 56px 0 92px; }
	.home-hero__inner { padding: 0 16px; }
	.home-hero__brand { margin-bottom: 12px; }
	.home-hero__logo { height: 88px; margin-left: -11px; }
	.home-hero__scroll { display: none; }
	.home-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: -48px; padding: 0 16px; }
	.home-tile { min-height: 120px; }
	.home-newest { grid-template-columns: 1fr; }
	.home-section { padding: 48px 16px 4px; }
	.home-app { margin-top: 48px; }
	.home-app__inner { padding: 48px 16px 0; }
	.home-app__phones { height: 330px; }
	.phone { width: 140px; padding: 5px; border-radius: 20px; bottom: -30px; }
	.phone img { border-radius: 16px; }
	.phone--1 { left: 2%; } .phone--2 { left: 30%; } .phone--3 { left: 58%; }
}
@media (prefers-reduced-motion: reduce) {
	html.js .home-hero__title .w > span, html.js .home-hero__logo { transform: none; }
	html.js .home-hero__lead { opacity: 1; }
	.home-hero__scroll::after { opacity: 1; }
	.home-tile:hover, .home-tile:focus-visible, .home-tile.touch, .service-card:hover, .service-card:focus-within, .prop-card:hover, .prop-card:focus-within { transform: none; }
	.service-card:hover picture { transform: none; }
}

/* === Objektlisten === */
/* Mockup liste.html: Kopf mit Chips, Zeilenkarten (Foto 4:3 links, Preis rechts), Hinweis, leerer Zustand */
.chips, .chips *, .list-page, .list-page *, .list-page *::before, .list-page *::after { box-sizing: border-box; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { padding: 6px 14px; border: 1px solid var(--steel); border-radius: 20px; font-size: 13px; color: var(--fog); text-decoration: none; transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease); }
.chip:hover { border-color: var(--fog); color: #fff; }
.chip[aria-current="page"] { background: var(--fog); border-color: var(--fog); color: var(--night); }
.list-page { max-width: 1200px; margin: 0 auto; padding: 28px 32px 36px; }
.list-page h2, .list-page h3 { padding: 0; text-align: left; }
.list-cards { display: grid; gap: 16px; }
.prop-card--row { display: grid; grid-template-columns: 260px minmax(0, 1fr) auto; gap: 24px; }
.prop-card--row:hover, .prop-card--row:focus-within { transform: translateY(-3px); }
.prop-card--row .card-photo img { transition: transform .8s var(--ease); }
/* Foto füllt die volle Kartenhöhe (Text kann höher sein als 4:3) – sonst weißer Streifen unter dem Bild */
.prop-card--row .card-photo { aspect-ratio: auto; height: 100%; min-height: 180px; }
/* html davor: Vorrang vor den Einblend-Regeln (.reveal img), damit der Zoom sicher greift */
html .prop-card--row:hover .card-photo img, html .prop-card--row:focus-within .card-photo img { transform: scale(1.04); }
.prop-card--row .prop-card__body { padding: 20px 0; min-width: 0; }
.prop-card--row .prop-card__title { margin: 0 0 6px; font-size: 19px; }
.prop-card__note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 60ch; margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--steel); }
.prop-card__facts { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.prop-card__facts .fact-label { display: block; font-size: 11px; color: var(--steel); }
.prop-card__facts b { display: block; margin-top: 2px; font-size: 15px; font-weight: 500; color: var(--night); }
.fact--short { display: none; }
.prop-card__side { padding: 20px 24px 20px 0; text-align: right; }
.prop-card__side small { display: block; font-size: 11px; color: var(--steel); }
.prop-card--row .prop-card__price { margin: 0; max-width: 22ch; font-size: 22px; font-weight: 500; overflow-wrap: anywhere; }
.prop-card__go { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; margin-top: 44px; font-size: 13px; color: var(--slate); }
.prop-card__go .ico { width: 14px; height: 14px; stroke-width: 1.8; transition: transform .35s var(--ease); }
.prop-card--row:hover .prop-card__go, .prop-card--row:focus-within .prop-card__go { color: var(--night); }
.prop-card--row:hover .prop-card__go .ico, .prop-card--row:focus-within .prop-card__go .ico { transform: translateX(4px); }
.list-more { margin: 22px 0 0; font-size: 14px; text-align: center; color: var(--steel); }
.list-more__link { padding: 0; border: 0; background: none; font: inherit; color: var(--night); text-decoration: underline; cursor: pointer; }
.list-empty { max-width: 620px; margin: 8px auto 0; padding: 30px 28px; text-align: center; background: #fff; box-shadow: 0 1px 3px rgba(6, 20, 27, .08); }
.list-empty__ico { width: 40px; height: 40px; fill: none; stroke: var(--steel); stroke-width: 1.2; }
.list-empty h2 { margin: 10px 0 6px; font: 400 20px/1.3 'Outfit', system-ui, sans-serif; color: var(--night); text-align: center; }
.list-empty p { max-width: 42ch; margin: 0 auto 16px; font-size: 14px; line-height: 1.5; color: var(--steel); }
.list-empty__btn { background: var(--slate); color: #fff; border-radius: 0; font-size: 14px; padding: 10px 18px; }
@media (max-width: 760px) {
	.prop-card--row { grid-template-columns: 200px minmax(0, 1fr); gap: 0 20px; }
	.prop-card--row .card-photo { grid-row: 1 / span 2; }
	.prop-card__side { grid-column: 2; padding: 0 16px 16px 0; text-align: left; }
	.prop-card__go { margin: 6px 0 0 16px; }
}
@media (max-width: 600px) {
	.list-page { padding: 16px; }
	.list-cards { gap: 14px; }
	.chips { flex-wrap: nowrap; overflow-x: auto; margin: 8px -6px 0; padding: 6px; scrollbar-width: none; } /* Polster: der Fokusring wird sonst im Scroll-Container abgeschnitten */
	.chip { flex: none; }
	.prop-card--row { grid-template-columns: 1fr; gap: 0; }
	.prop-card--row .card-photo { grid-row: auto; aspect-ratio: 4 / 3; height: auto; min-height: 0; }
	.prop-card--row .prop-card__body { padding: 14px 16px 0; }
	.prop-card--row .prop-card__title { font-size: 17px; }
	.prop-card__facts { gap: 12px 18px; }
	.prop-card__side { grid-column: auto; display: flex; justify-content: space-between; align-items: baseline; padding: 10px 16px 16px; text-align: left; }
	.prop-card__side small { display: none; }
	.prop-card--row .prop-card__price { font-size: 20px; }
	.prop-card__go { margin: 0; }
}
/* LIN-16: Mietlisten am Handy zeigen nur die Kurzfassung „Kategorie“ (Bestand zeigte beide nebeneinander) */
@media only screen and (max-width: 450px) {
	.fact--long { display: none; }
	.fact--short { display: block; }
}
@media (prefers-reduced-motion: reduce) {
	html.js .chips { opacity: 1; animation: none; }
	.prop-card--row:hover, .prop-card--row:focus-within { transform: none; }
	html .prop-card--row:hover .card-photo img, html .prop-card--row:focus-within .card-photo img, .prop-card--row:hover .prop-card__go .ico, .prop-card--row:focus-within .prop-card__go .ico { transform: none; }
}

/* === Exposé === */
/* Mockup expose.html: Kopf mit Ort/Drucken/Teilen, Fotomosaik, Eckdaten, Abschnitte, mitlaufende Seitenleiste, Anfrage auf night, Handy-Leiste */
.expose-page, .expose-page *, .expose-page *::before, .expose-page *::after, .expose-bar, .expose-bar *, .lb, .lb * { box-sizing: border-box; }
.expose-page h2, .expose-page h3 { padding: 0; text-align: left; }
.expose-page .page-head h1 { max-width: 28ch; margin: 8px 0 12px; font-size: 32px; }
.expose-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.expose-head__place { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--fog); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .25s var(--ease); }
.expose-head__place:hover { color: var(--fog); border-color: var(--fog); }
.expose-head__place .ico, .expose-tool .ico { width: 15px; height: 15px; }
/* Runde 5: Drucken/Teilen als dezenter Block zwischen Preis und Ansprechpartner (Seitenleiste, auf Paper) */
.expose-tools { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.expose-tool { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border: 1px solid var(--fog); border-radius: 20px; background: transparent; font-size: 13px; color: var(--slate); text-decoration: none; transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease); }
.expose-tool:hover { border-color: var(--steel); background: #fff; color: var(--night); }
/* Meldung „Link kopiert“ (role=status, bleibt im Baum, damit Vorleser die Änderung ansagen) */
.expose-tools__status { flex-basis: 100%; min-height: 0; font-size: 12px; color: var(--steel); text-align: center; }
.expose-tools__status:empty { display: none; }

/* Runde 5: „Zurück zur Übersicht“ über den Brotkrumen – gut sichtbar, ohne JS ein normaler Link */
.page-head__back { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 7px 14px 7px 10px; border: 1px solid var(--steel); border-radius: 999px; font-size: 14px; color: #fff; text-decoration: none; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.page-head__back:hover { border-color: var(--fog); background: rgba(255, 255, 255, .06); }
.page-head__back .ico { width: 16px; height: 16px; stroke-width: 1.8; transition: transform .3s var(--ease); }
.page-head__back:hover .ico { transform: translateX(-3px); }

/* Fotomosaik: 1 groß + 4 klein; bei weniger Bildern angepasst, ein Bild allein in voller Breite */
.expose-gallery { max-width: 1200px; margin: 0 auto; padding: 24px 32px 0; }
.gallery-mosaic { position: relative; }
.gallery-mosaic__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, clamp(150px, 17vw, 220px)); gap: 8px; }
.gallery-mosaic__tile { display: block; cursor: zoom-in; background: var(--fog); }
.gallery-mosaic__tile:first-child { grid-row: span 2; }
html .gallery-mosaic .gallery-mosaic__tile:hover img { transform: scale(1.04); }
.gallery-mosaic[data-count="2"] .gallery-mosaic__grid, .gallery-mosaic[data-count="3"] .gallery-mosaic__grid { grid-template-columns: 2fr 1fr; }
.gallery-mosaic[data-count="2"] .gallery-mosaic__tile:nth-child(2) { grid-row: span 2; }
.gallery-mosaic[data-count="4"] .gallery-mosaic__tile:nth-child(4) { grid-column: span 2; }
.gallery-mosaic--single .gallery-mosaic__grid { grid-template-columns: 1fr; grid-template-rows: clamp(260px, 38vw, 460px); }
.gallery-mosaic--single .gallery-mosaic__tile:first-child { grid-row: auto; }
.gallery-mosaic__all { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; background: rgba(6, 20, 27, .86); color: #fff; font: 400 13px/1.2 'Outfit', system-ui, sans-serif; cursor: pointer; transition: background-color .25s var(--ease); }
.gallery-mosaic__all:hover { background: var(--night); }
.gallery-mosaic__all .ico { width: 15px; height: 15px; }
.gallery-mosaic__all:focus-visible { outline-color: #fff; }
.gallery-mosaic__count { color: var(--fog); }
/* ohne JS führen die Kacheln direkt zum großen Bild; der Knopf braucht die Großansicht */
html:not(.js) .gallery-mosaic__all { display: none; }
.gallery-mosaic__noscript { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13px; }
.gallery-mosaic__noscript li { list-style: none; }
.gallery-mosaic__noscript a { color: var(--night); text-decoration: underline; }

/* Inhalt und Seitenleiste */
.expose-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; max-width: 1200px; margin: 0 auto; padding: 24px 32px 56px; }
.expose-keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); background: #fff; box-shadow: 0 1px 3px rgba(6, 20, 27, .08); }
.expose-keyfacts > div { padding: 16px 18px; border-left: 1px solid var(--line); font-size: 12px; color: var(--steel); }
.expose-keyfacts > div:first-child { border-left: 0; }
.expose-keyfacts b { display: block; margin-top: 4px; font-size: 20px; font-weight: 400; color: var(--night); overflow-wrap: anywhere; }
.expose-section { margin-top: 34px; }
.expose-main > .expose-section:first-child { margin-top: 0; }
.expose-section h2 { margin: 0 0 10px; font: 400 22px/1.3 'Outfit', system-ui, sans-serif; color: var(--night); }
.expose-section .rule { margin-bottom: 16px; }
.expose-section p { max-width: 68ch; margin: 0 0 12px; font-size: 15px; line-height: 1.7; color: var(--slate); overflow-wrap: anywhere; }
/* „Weiterlesen“: nur mit JS gekürzt (motion.js setzt .is-clamped), ohne JS voller Text */
.expose-section__text.is-clamped { max-height: 17em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.expose-more { padding: 0 0 1px; border: 0; border-bottom: 1px solid var(--steel); background: none; font: 400 14px/1.4 'Outfit', system-ui, sans-serif; color: var(--night); cursor: pointer; }
.expose-more:hover { border-color: var(--night); }
.feature-list { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 28px; }
.feature-list li { position: relative; padding: 6px 0 6px 20px; font-size: 14px; line-height: 1.5; color: var(--slate); list-style: none; break-inside: avoid; }
.feature-list li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 1.5px; background: var(--steel); }
.expose-data { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; }
.expose-data > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.expose-data dt { color: var(--steel); }
.expose-data dd { flex: 1; min-width: 0; margin: 0; color: var(--night); text-align: right; overflow-wrap: anywhere; }
/* Preise/Provision (highlight): Linie in der Bereichsfarbe, Wert kräftiger */
.expose-data > .is-highlight { border-bottom: 2px solid var(--c); }
.expose-data .is-highlight dd { font-weight: 500; }

.expose-side { position: sticky; top: 84px; display: grid; gap: 14px; }
.expose-card { padding: 20px; background: #fff; box-shadow: 0 1px 3px rgba(6, 20, 27, .08); }
.expose-price small { display: block; font-size: 12px; color: var(--steel); }
.expose-price b { display: block; margin: 2px 0 6px; font-size: 30px; font-weight: 400; line-height: 1.2; color: var(--night); overflow-wrap: anywhere; }
.expose-price__note { margin: 0; font-size: 12px; line-height: 1.4; color: var(--steel); }
.btn.expose-btn { display: flex; width: 100%; margin-top: 16px; padding: 13px; border-radius: 0; background: var(--slate); color: #fff; font-size: 15px; font-weight: 400; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.btn.expose-btn:hover { transform: none; background: var(--night); }
.btn.expose-btn.btn--ghost { margin-top: 8px; background: none; color: var(--night); border-color: var(--fog); }
.btn.expose-btn.btn--ghost:hover { border-color: var(--steel); }
.expose-card__title { margin: 0 0 10px; font: 500 13px/1.3 'Outfit', system-ui, sans-serif; color: var(--steel); }
.expose-agent { display: flex; align-items: center; gap: 14px; }
.expose-agent__badge { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--slate); color: #fff; font-size: 18px; font-weight: 300; }
.expose-agent b { display: block; font-size: 15px; font-weight: 500; color: var(--night); }
.expose-agent div > span { font-size: 12px; color: var(--steel); }
.expose-agent__lines { display: grid; gap: 8px; margin-top: 14px; font-size: 14px; }
.expose-agent__lines a, .expose-downloads a { display: flex; align-items: center; gap: 8px; color: var(--night); text-decoration: none; overflow-wrap: anywhere; }
.expose-agent__lines a:hover, .expose-downloads a:hover { text-decoration: underline; }
.expose-agent__lines .ico, .expose-downloads .ico { width: 15px; height: 15px; }
.expose-downloads { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.expose-downloads li { list-style: none; }
.expose-downloads__type { font-size: 12px; color: var(--steel); }

/* Anfrage auf night; Felder und Prüfung wie bisher (Inline-Skript), nur neue Optik */
.expose-ask { position: relative; overflow: hidden; background: var(--night); color: #fff; scroll-margin-top: 64px; }
.expose-ask .contours path { animation: none; stroke-dashoffset: 0; }
.expose-ask__inner { position: relative; display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 44px 32px 52px; }
.expose-ask h2 { margin: 0 0 10px; font: 300 clamp(26px, 3vw, 30px)/1.2 'Outfit', system-ui, sans-serif; color: #fff; }
.expose-ask .rule { margin-bottom: 16px; }
.expose-ask__intro p { max-width: 40ch; margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--mist); }
.expose-ask__intro .expose-ask__hint { font-size: 12px; }
.expose-ask .kontaktform-fields { float: none; width: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-content: start; }
.expose-ask__field { display: grid; gap: 6px; align-content: start; }
.expose-ask__field--wide, .expose-ask__send, .expose-ask .kontaktform-fields h3 { grid-column: 1 / -1; }
.expose-ask label { font-size: 12px; color: var(--mist); }
.expose-ask .input-data, .expose-ask .input-data-wide { width: 100%; max-width: none; height: auto; margin: 0; padding: 11px 12px; border: 1px solid var(--steel); border-radius: 0; background: rgba(255, 255, 255, .04); color: #fff; font: 400 15px/1.4 'Outfit', system-ui, sans-serif; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.expose-ask .input-data-wide { height: 96px; resize: vertical; }
.expose-ask .input-data:focus, .expose-ask .input-data-wide:focus { border-color: var(--c); background-color: rgba(255, 255, 255, .07); }
.expose-ask__send { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.expose-ask .privacy-consent { max-width: 52ch; margin: 0; font-size: 13px; color: var(--mist); }
.expose-ask .privacy-consent a { color: var(--fog); text-decoration: underline; }
.expose-ask .privacy-consent.privacy-missing, .expose-ask .field-error { color: #FFB4B4; }
.expose-ask .absenden-button { width: auto; height: auto; padding: 12px 26px; border: 0; border-radius: 0; background: var(--fog); color: var(--night); font: 400 15px/1.2 'Outfit', system-ui, sans-serif; cursor: pointer; transition: background-color .25s var(--ease); }
.expose-ask .absenden-button:hover { background: #fff; }
/* Alt-Skript setzt nach einem Serverfehler inline background #333333: dann Schrift weiß (Logik bleibt) */
.expose-ask .absenden-button[style*="333333"], .expose-ask .absenden-button[style*="rgb(51, 51, 51)"] { color: #fff; }
.expose-ask .kontaktform-fields h3 { font: 300 22px/1.3 'Outfit', system-ui, sans-serif; }

/* Handy-Leiste: Preis, Anruf, Anfragen (nur unter 760 px) */
.expose-bar { display: none; }

/* Großansicht (motion.js „Lightbox“) */
@keyframes lb-in { from { opacity: 0; } }
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 76px 20px; background: rgba(6, 20, 27, .96); color: #fff; font-family: 'Outfit', system-ui, sans-serif; animation: lb-in .3s var(--ease); }
.lb[hidden] { display: none; }
.lb:focus { outline: none; }
.lb__figure { display: flex; flex-direction: column; align-items: center; min-height: 0; max-width: 100%; margin: 0; }
.lb__img { display: block; max-width: min(84vw, 1400px); max-height: 72vh; object-fit: contain; }
.lb__cap { margin-top: 14px; font-size: 15px; color: var(--fog); text-align: center; }
.lb__count { position: absolute; top: 20px; left: 24px; margin: 0; font-size: 13px; color: var(--mist); }
.lb__btn { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--steel); border-radius: 50%; background: none; color: #fff; cursor: pointer; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.lb__btn:hover { border-color: var(--fog); background: rgba(255, 255, 255, .06); }
.lb__btn .ico { width: 18px; height: 18px; }
.lb__close { top: 14px; right: 20px; }
.lb__prev, .lb__next { top: 50%; margin-top: -22px; }
.lb__prev { left: 20px; }
.lb__next { right: 20px; }
.lb__thumbs { display: flex; gap: 6px; max-width: 100%; margin-top: 16px; padding: 4px; overflow-x: auto; scrollbar-width: thin; }
.lb__thumb { flex: none; padding: 0; border: 0; background: none; opacity: .45; cursor: pointer; transition: opacity .2s var(--ease); }
.lb__thumb img { display: block; width: 64px; height: 44px; object-fit: cover; }
.lb__thumb:hover, .lb__thumb[aria-current="true"] { opacity: 1; }
.lb__thumb[aria-current="true"] { outline: 1px solid #fff; }

@media (max-width: 1000px) {
	.expose-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; }
	.expose-ask__inner { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 759px) {
	.expose-page .page-head h1 { font-size: 24px; }
	.expose-gallery { padding: 0; }
	/* Handy: wischbare Fotoreihe */
	.gallery-mosaic__grid, .gallery-mosaic--single .gallery-mosaic__grid { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.gallery-mosaic__grid::-webkit-scrollbar { display: none; }
	.gallery-mosaic__tile { flex: 0 0 100%; height: 260px; scroll-snap-align: start; }
	.gallery-mosaic__tile:focus-visible { outline-offset: -4px; box-shadow: none; } /* Ring innen, der Scroll-Container schneidet außen ab */
	.expose-layout { grid-template-columns: 1fr; padding: 16px 16px 40px; }
	.expose-side { position: static; }
	.expose-keyfacts { grid-template-columns: 1fr 1fr; }
	.expose-keyfacts > div { padding: 12px 16px; border-left: 0; border-bottom: 1px solid var(--line); }
	.expose-keyfacts > div:nth-child(2n) { border-left: 1px solid var(--line); }
	.expose-keyfacts b { font-size: 17px; }
	.feature-list { columns: 1; }
	.expose-data { grid-template-columns: 1fr; }
	.expose-ask__inner { padding: 36px 16px 40px; }
	.expose-ask .kontaktform-fields { grid-template-columns: 1fr; }
	.expose-ask .absenden-button { width: 100%; }
	.expose-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(6, 20, 27, .08); font-family: 'Outfit', system-ui, sans-serif; }
	.expose-bar__sp { flex: 1; }
	.expose-bar b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-weight: 500; color: var(--night); }
	.expose-bar a { font-size: 14px; text-decoration: none; }
	.expose-bar__call { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--fog); color: var(--night); }
	.expose-bar__call .ico { width: 18px; height: 18px; }
	.expose-bar__go { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--slate); color: #fff; }
	/* Platz für die feste Leiste, damit der Footer nicht verdeckt wird */
	body:has(.expose-bar) { padding-bottom: 68px; }
	html.app-hint-visible body:has(.expose-bar) { padding-bottom: calc(var(--app-hint-height, 57px) + 68px); } /* App-Hinweisleiste (site.css) + Exposé-Leiste */
	.lb { padding: 56px 8px 16px; }
	.lb__prev, .lb__next { display: none; }
	.lb__img { max-width: 100%; max-height: 62vh; }
}
@media (prefers-reduced-motion: reduce) {
	html.js .expose-head, .page-head__back { opacity: 1; animation: none; }
	.page-head__back:hover .ico { transform: none; }
	html .gallery-mosaic .gallery-mosaic__tile:hover img { transform: none; }
}

/* === Inhaltsseiten === */
/* Baufinanzierung, Firmenprofil, Kontakt, Rechtstexte, Fehlerseiten, App-First (Mockup inhaltsseiten.html) */
.content-page, .content-page *, .content-page *::before, .content-page *::after, .firm-band, .firm-band * { box-sizing: border-box; }
.content-page { max-width: 1200px; margin: 0 auto; padding: 40px 32px 48px; color: var(--slate); }
.content-page h2, .content-page h3 { padding: 0; text-align: left; font-family: 'Outfit', system-ui, sans-serif; }
.content-page p { margin: 0 0 14px; max-width: 66ch; font-size: 15px; line-height: 1.7; }
.content-page a { color: var(--night); }
.content-page .btn { background: var(--slate); color: #fff; text-decoration: none; }
.content-page .btn:hover { background: var(--night); }
.content-page .btn--ghost { background: transparent; color: var(--night); border-color: var(--fog); }
.content-page .btn--ghost:hover { background: transparent; border-color: var(--steel); }

/* Baufinanzierung */
.split-text { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.split-text__big { margin: 0 0 16px; font-size: 28px; font-weight: 300; line-height: 1.25; color: var(--night); }
.split-text__photo { aspect-ratio: 4 / 3; background: var(--fog); }
.split-text__photo::before { content: ""; position: absolute; left: -1px; bottom: -1px; z-index: 1; width: 38%; height: 38%; border-left: 3px solid var(--c); border-bottom: 3px solid var(--c); }
.ask-card { margin-top: 40px; padding: 26px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.ask-card h2 { margin: 0; font-size: 20px; font-weight: 400; color: var(--night); }
.ask-card__text span { font-size: 14px; color: var(--steel); }
.ask-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Firmenprofil: Bildband mit Leitsatz (Zeile für Zeile, Mockup bewegung.html) */
.firm-band { position: relative; overflow: hidden; height: 260px; background: var(--night); }
.firm-band picture, .firm-band img { display: block; width: 100%; height: 100%; }
.firm-band img { object-fit: cover; filter: saturate(.75); }
.firm-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 20, 27, 0) 30%, rgba(6, 20, 27, .75)); pointer-events: none; }
.firm-band .contours { z-index: 1; }
.firm-band .contours path { stroke: var(--fog); opacity: .3; }
.firm-band__quote { position: absolute; z-index: 2; left: max(32px, calc((100% - 1200px) / 2 + 32px)); right: 32px; bottom: 24px; margin: 0; color: #fff; font-size: 26px; font-weight: 300; line-height: 1.3; }
.quote-line { display: block; overflow: hidden; }
.quote-line > span { display: block; }
.firm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.firm-card { padding: 24px 26px; }
.firm-card--wide { grid-column: 1 / -1; }
.firm-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--steel); }
.firm-card h2::before { content: ""; width: 16px; height: 2px; background: var(--c); }
.firm-card ul { list-style: none; padding: 0; margin: 0; }
.firm-card li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--night); list-style: none; }
.firm-card li:last-child { border: 0; }
.firm-card p:last-child { margin-bottom: 0; }
.firm-card .area-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.firm-card .area-chips li { padding: 6px 12px; border: 1px solid var(--fog); border-radius: 20px; font-size: 14px; }
.firm-card .area-chips li:last-child { border: 1px solid var(--fog); }
.firm-card--seat { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.firm-card--seat p { margin: 0; color: var(--night); }

/* Kontakt */
.contact-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
#contact-area.contact-form { margin: 0; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form__field--wide, .contact-form__send { grid-column: 1 / -1; }
#contact-area .contact-form__field label:not(.privacy-consent) { display: block; position: static; width: auto; height: auto; margin: 0 0 6px; padding: 0; clip: auto; clip-path: none; overflow: visible; white-space: normal; font-size: 12px; color: var(--steel); }
#contact-area .contact-form__field select,
#contact-area .contact-form__field input[type=text], #contact-area .contact-form__field input[type=tel], #contact-area .contact-form__field input[type=email], #contact-area .contact-form__field textarea {
	display: block; width: 100%; margin: 0; padding: 11px 12px; border: 1px solid var(--fog); border-radius: 0; background: #fff; color: var(--night);
	font: 400 15px/1.4 'Outfit', system-ui, sans-serif; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
#contact-area .contact-form__field textarea { height: 140px; min-height: 100px; resize: vertical; }
#contact-area .contact-form__field input:focus, #contact-area .contact-form__field textarea:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(243, 158, 239, .35); }
#contact-area .contact-form__field input:focus-visible, #contact-area .contact-form__field textarea:focus-visible { outline: 2px solid var(--night); outline-offset: 1px; }
#contact-area .field-error { margin: 4px 0 0; color: #b00020; }
/* Anrede-Auswahl (Runde 8): eigener Pfeil statt Systemoptik; nach den Eingabe-Regeln (deren background-Kürzel) */
dialog#diag_smallcontact select, #contact-area .contact-form__field select, .expose-ask select.input-data {
	appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
	background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%);
	background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.expose-ask select.input-data { background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%), linear-gradient(135deg, var(--mist) 50%, transparent 50%); }
.expose-ask select.input-data option { color: var(--night); background: #fff; }
#contact-area .privacy-consent { display: block; margin: 0; font-size: 13px; line-height: 1.5; color: var(--steel); }
#contact-area .privacy-consent a { color: var(--night); text-decoration: underline; }
#contact-area .privacy-consent.privacy-missing { color: #b00020; }
#contact-area .privacy-consent input { margin: 0 8px 0 0; vertical-align: middle; }
.contact-form__send { text-align: right; }
#contact-area input#sendbtn {
	display: inline-block; float: none; width: auto; margin: 0; padding: .8em 2em; border: 1px solid transparent; border-radius: 999px;
	background: var(--slate); color: #fff; font: 500 1rem/1.2 'Outfit', system-ui, sans-serif; cursor: pointer;
	transition: background-color .3s var(--ease), transform .3s var(--ease);
}
#contact-area input#sendbtn:hover:not(:disabled) { background: var(--night); transform: translateY(-2px); }
#contact-area input#sendbtn:disabled { opacity: .6; cursor: progress; }
.contact-card { position: relative; overflow: hidden; padding: 26px; background: var(--night); color: var(--fog); border-radius: 16px; }
.contact-card .contours { z-index: 0; }
.contact-card > :not(.contours) { position: relative; }
.contact-card h2 { margin: 0; font-size: 20px; font-weight: 400; color: #fff; }
.contact-card__who { margin: 2px 0 18px; font-size: 14px; color: var(--mist); }
.contact-card address { font-style: normal; }
.contact-card__line { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(155, 168, 171, .2); font-size: 15px; line-height: 1.5; }
.contact-card__line .ico { width: 16px; height: 16px; margin-top: 3px; stroke: var(--c); }
.content-page .contact-card a { color: #fff; text-decoration: none; }
.content-page .contact-card a:hover { text-decoration: underline; }
.contact-route { width: 100%; margin-top: 14px; }

/* Rechtstexte (Runde 5: breite Lesespalte, Karte bis 1000 px, Text ca. 920 px), Fehlerhinweis und App-First: schmale Karten (720 px) */
.content-page--legal { max-width: 1064px; }
.legal-doc { max-width: 1000px; margin: 0 auto; padding: 40px 40px; }
.content-page .legal-doc p { max-width: none; }
.legal-doc h1 { margin: 26px 0 10px; font-size: 22px; font-weight: 400; color: var(--night); }
.legal-doc h2 { margin: 26px 0 10px; font-size: 20px; font-weight: 400; line-height: 1.3; color: var(--night); }
.legal-doc h3 { margin: 20px 0 8px; font-size: 16px; font-weight: 500; color: var(--night); }
.legal-doc > :first-child { margin-top: 0; }
.legal-doc ul, .legal-doc ol { margin: 0 0 14px; padding-left: 1.3em; font-size: 15px; line-height: 1.7; }
.legal-doc ul li { list-style: disc; }
.legal-doc ol li { list-style: decimal; }
.legal-doc a { text-decoration: underline; }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-doc td, .legal-doc th { padding: 6px 8px; vertical-align: top; border-bottom: 1px solid var(--line); }
/* „Vertrag widerrufen“ (Runde 7): Formular, Zusammenfassung, Eingangsbestätigung in der Rechtstext-Karte */
.withdraw { max-width: 760px; }
.withdraw__notice { margin-bottom: 26px; }
.withdraw h2 { margin: 0 0 14px; }
.withdraw__form { display: grid; gap: 18px; }
.withdraw__field label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 500; color: var(--night); }
.withdraw__req { font-weight: 400; color: var(--steel); }
.withdraw__hint { margin: -2px 0 8px; font-size: 13px; color: var(--steel); }
.withdraw__field input { display: block; box-sizing: border-box; width: 100%; padding: 11px 12px; border: 1px solid var(--fog); border-radius: 0; background: #fff; color: var(--night); font: 400 15px/1.4 'Outfit', system-ui, sans-serif; transition: border-color .25s var(--ease); }
.withdraw__field input:focus { border-color: var(--slate); }
.withdraw__field input:focus-visible { outline: 2px solid var(--night); outline-offset: 1px; }
.withdraw__field input[aria-invalid="true"] { border-color: #b00020; }
.withdraw .field-error { margin: 6px 0 0; color: #b00020; font-size: 14px; }
.withdraw__errors { margin: 0 0 22px; padding: 14px 18px; border-left: 3px solid #b00020; background: #fdf3f4; }
.withdraw__errors p { margin: 0 0 6px; }
.withdraw__errors ul { margin: 0; padding-left: 1.2em; }
.withdraw__errors a { color: #b00020; }
.withdraw__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.content-page .withdraw .btn.withdraw__primary { background: var(--night); border-color: var(--night); color: #fff; }
.content-page .withdraw .btn.withdraw__primary:hover { background: var(--slate); }
.withdraw__summary { display: grid; gap: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.withdraw__summary > div { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 6px 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.withdraw__summary dt { color: var(--steel); font-size: 14px; }
.withdraw__summary dd { margin: 0; color: var(--night); font-weight: 500; overflow-wrap: anywhere; }
.withdraw__received { font-size: 17px; color: var(--night); }
.withdraw__warn { padding: 12px 16px; border-left: 3px solid #b8860b; background: #fbf6ea; color: var(--night); }
.withdraw__from { margin-top: 20px; font-size: 13px; color: var(--steel); }
@media (max-width: 600px) {
	.withdraw__summary > div { grid-template-columns: 1fr; gap: 2px; }
	.withdraw__actions .btn { width: 100%; }
}
.notice-card { max-width: 720px; margin: 0 auto; padding: 28px 32px; }
.notice-card .btn { margin-top: 6px; }
.app-first-card { max-width: 720px; margin: 0 auto; overflow: hidden; }
.app-first-card__photo { max-height: 420px; aspect-ratio: 16 / 9; background: var(--fog); }
.app-first-card__body { padding: 28px 32px 18px; }
.app-first-card__tag { display: inline-block; margin-bottom: 12px; padding: 5px 12px; border: 1px solid var(--fog); border-radius: 20px; font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--steel); }
.app-first-card .app-first-stores { margin: 18px 0; }
.app-first-card .app-first-store { display: inline-block; margin: 0 12px 8px 0; }
.app-first-card .app-first-store img { display: block; height: 44px; width: auto; }

@media (max-width: 900px) {
	.split-text, .contact-split { grid-template-columns: 1fr; gap: 28px; }
	.firm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.content-page { padding: 24px 16px 32px; }
	.split-text__big { font-size: 24px; }
	.ask-card, .firm-card, .notice-card { padding: 20px; }
	.ask-card__actions, .ask-card__actions .btn { width: 100%; }
	.firm-band { height: 240px; }
	.firm-band__quote { left: 16px; right: 16px; bottom: 16px; font-size: 20px; }
	#contact-area.contact-form { grid-template-columns: 1fr; padding: 20px; }
	.contact-form__send, #contact-area input#sendbtn { width: 100%; }
	.legal-doc { padding: 24px 20px; }
	.app-first-card__body { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	html.js .quote-line > span { transform: none; }
	#contact-area input#sendbtn:hover:not(:disabled) { transform: none; }
}
.content-page .contact-intro { margin-bottom: 20px; color: var(--steel); }

/* === Druck === */
/* Einblendungen warten auf Scrollen und würden als leere Flächen drucken; Handy-, Dialog- und Bedienelemente haben auf Papier nichts verloren. */
@media print {
	html.js .r, html.js .chips, html.js .expose-head, html.js .home-hero__lead, html.js .home-app__phones:not(.vis) .phone { opacity: 1 !important; animation: none !important; transform: none !important; }
	html.js .quote-line > span, html.js .home-hero__title .w > span, html.js .home-hero__logo { transform: none !important; }
	html.js .reveal:not(.is-in) img { opacity: 1 !important; }
	html.js .reveal.is-in img { animation: none !important; }
	html.js h2 + .rule { transform: none; }
	.contours path { stroke-dashoffset: 0 !important; animation: none !important; }
	.home-hero__photo img { animation: none !important; transform: none !important; }
	html.js .home-hero__photo:not(.is-active) { display: none; }
	.site-bar { position: static; }
	.site-bar__toggle, .site-bar__nav, .site-bar__tel, .expose-bar, .gallery-mosaic__all, .lb, .questions, .app-strip, .chips, .list-more, dialog, div#msg-success, div#msg-error, .expose-tools, .page-head__back, .expose-more, .expose-btn, .expose-ask { display: none !important; }
	.expose-section__text.is-clamped { max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
	html.lb-open { overflow: visible; }
	body, body:has(.expose-bar), html.app-hint-visible body:has(.expose-bar) { padding-bottom: 0 !important; }
}
