/* immovista – Stylesheet. Design „Plan und Raum“ (seit 22.10.2026, Entwurf v2): Serif-Überschriften, eckig, Linien statt
   Schatten. Gilt auch für den internen Bereich (dort Überschriften weiter in Poppins, siehe .intern). */

/* Poppins nur noch im Logo (und im internen Bereich); Source Serif 4 für Überschriften, Preise, Ziffern (OFL, lokal – DSGVO) */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-medium.woff2") format("woff2"), url("../fonts/poppins-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-bold.woff2") format("woff2"), url("../fonts/poppins-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --navy: #0F2B46;
  --navy-2: #1C3A57;
  --navy-line: #2E5070;
  --blue: #17669A;
  --sky: #9EC9E6;
  --ink: #1B2733;
  --text: #3E4C5A;
  --muted: #4A5866;
  --line: #DCE4EB;
  --line-strong: #B9C6D2;
  --alt: #F3F7FA;
  --on-dark: #D3DEE8;
  --on-dark-2: #C9D6E2;
  --err: #B42318;
  --radius: 0;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --head: var(--serif);
  --logo: "Poppins", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 76px;
  --ease-out: cubic-bezier(.23, 1, .32, 1); /* kräftiges Abbremsen: reagiert sofort, wirkt schneller als „ease“ */
}
.intern { --head: "Poppins", system-ui, sans-serif; } /* interner Bereich: Schrift wie bisher */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; } /* kein grauer Blitz beim Antippen; Rückmeldung kommt über :active */
body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--blue); }
@media (hover: hover) and (pointer: fine) { a:hover { color: var(--navy); } }
h1, h2, h3, h4 { color: var(--navy); margin: 0; line-height: 1.12; text-wrap: balance; } /* keine Einzelwörter in der letzten Zeile */
h1, h2 { font-family: var(--head); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; }
h1 em, h2 em, .h3-gross em { font-weight: 400; font-style: italic; color: var(--blue); }
h3 { font-family: var(--body); font-weight: 600; font-size: 20px; line-height: 1.3; }
.intern h1, .intern h2 { font-weight: 700; letter-spacing: -0.02em; }
.intern h3 { font-family: var(--head); font-weight: 500; font-size: 22px; }
p { margin: 0; }
ul, ol { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
/* in Leisten mit overflow (Reiter, Segmente, Umschalter) würde ein Rahmen außen abgeschnitten – dort nach innen */
.reiter[role=tablist] [role=tab]:focus-visible, .umschalter button:focus-visible, .pill:focus-visible { outline-offset: -4px; }
/* gewählte Felder sind navy gefüllt – dort weißer Rahmen (blau auf Navy wäre unter 3:1) */
.umschalter button[aria-pressed="true"]:focus-visible, .pill[aria-pressed="true"]:focus-visible { outline-color: #FFFFFF; }
.dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .konfig-ergebnis :focus-visible { outline-color: #FFFFFF; } /* blau auf Navy wäre unter 3:1 */
section[id], main[id], article[id] { scroll-margin-top: var(--header-h); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #FFF; padding: 10px 16px; }
.skip:focus { top: 12px; color: #FFF; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-right, 0px)) 0 max(24px, env(safe-area-inset-left, 0px)); } /* Querformat: Inhalt nicht unter der Notch (viewport-fit=cover) */
.section { padding: 112px 0; }
.section--alt { background: var(--alt); }
.section--dark { background: var(--navy); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #FFFFFF; }
.section--dark h2 em { color: var(--sky); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.section-head { max-width: 680px; margin-bottom: 48px; display: flex; flex-direction: column; gap: 12px; }
/* Abschnittskopf zweispaltig: Überschrift links, Einleitung rechts (unten bündig) */
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.section-head--split .eyebrow { margin-bottom: 4px; }
.lead { color: var(--text); }
.section--dark .lead { color: var(--on-dark); }
.muted { color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.section--dark .eyebrow { color: var(--sky); }
.grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); } /* minmax(0): lange Wörter dürfen die Spalte nicht über den Rand drücken */
/* Spalten nebeneinander erst, wenn alle in eine Zeile passen – sonst stünde am Tablet eine allein (2 + 1) */
@media (min-width: 900px) { .grid, .price-grid { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 380px; min-width: 0; }
.split--oben { align-items: flex-start; }
/* kleine Helfer statt Inline-Stilen (Schriftskala 14/16/18/20/22) */
.klein { font-size: 14px; }
.mittel { font-size: 16px; }
.stark { font-weight: 600; }
.auf-dunkel { color: var(--on-dark); }
.h-klein { font-size: 20px; font-weight: 600; }
.h2-mittel { font-size: clamp(26px, 3vw, 34px); }
.h3-gross { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; color: var(--navy); }
.preis-zeile { margin-top: 24px; font-size: 16px; }
.nowrap { white-space: nowrap; } /* letztes Wort und Pfeil bleiben zusammen */

/* Buttons: eckig mit 4 px */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 4px; border: 1.5px solid transparent; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn[aria-disabled="true"] { cursor: progress; transform: none; } /* Formular wird gesendet */
.btn--primary { background: var(--navy); color: #FFFFFF; }
@media (hover: hover) and (pointer: fine) { .btn--primary:hover { background: var(--blue); color: #FFFFFF; } }
.btn--outline { background: #FFFFFF; color: var(--navy); border-color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .btn--outline:hover { background: var(--navy); color: #FFFFFF; } }
.btn--light { background: #FFFFFF; color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .btn--light:hover { background: var(--sky); color: var(--navy); } }
.btn--ghost-light { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.75); }
@media (hover: hover) and (pointer: fine) { .btn--ghost-light:hover { background: #FFFFFF; color: var(--navy); } }
.btn--block { width: 100%; }
.btn--small { min-height: 44px; padding: 9px 14px; font-size: 16px; }
.link-arrow { font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover { text-decoration: underline; } }
/* Pfeile in Links/Knöpfen: <span class="arr" aria-hidden="true">→</span>, rücken bei Hover/Fokus */
.arr { display: inline-block; font-weight: 400; transition: transform .25s var(--ease-out); }
a:focus-visible .arr, button:focus-visible .arr { transform: translateX(4px); }
@media (hover: hover) and (pointer: fine) { a:hover .arr, button:hover:not([disabled]) .arr { transform: translateX(4px); } }

/* Kopf */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid transparent; transition: transform 250ms var(--ease-out), border-color .3s ease; }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); } }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo span { font-family: var(--logo); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
@media (hover: hover) and (pointer: fine) { .logo:hover { color: var(--navy); } }
.nav { display: flex; align-items: center; gap: 26px; font-size: 16px; }
.nav a:not(.btn) { position: relative; color: var(--ink); text-decoration: none; padding: 8px 0; font-weight: 500; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav a:not(.btn):hover::after { transform: scaleX(1); } }
.nav a[aria-current="page"], .nav a.is-active { color: var(--navy); font-weight: 600; }
.nav a.is-active::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-mobile { display: none; align-items: center; gap: 8px; }
@media (max-width: 359px) { .header-inner { gap: 8px; } } /* 320-px-Handys: Logo, „Anfragen“ und Menü passen in eine Zeile */
.menu-btn { width: 44px; height: 44px; border-radius: 4px; border: 1px solid var(--line); background: #FFFFFF; color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }
.mobile-panel { border-top: 1px solid var(--line); padding: 4px max(24px, env(safe-area-inset-right, 0px)) 20px max(24px, env(safe-area-inset-left, 0px)); background: #FFFFFF; }
.mobile-panel:not([hidden]) { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
@starting-style { .mobile-panel:not([hidden]) { opacity: 0; transform: translateY(-8px); } } /* Menü kommt aus dem Kopf; Schließen bleibt sofort ([hidden] ist display: none !important) */
.mobile-panel ul { list-style: none; padding: 0; }
.mobile-panel li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; }
.mobile-panel a[aria-current="page"] { color: var(--blue); }
.mobile-panel .tel { display: inline-block; margin-top: 16px; font-weight: 600; }
@media (max-width: 1100px) {
  .nav { display: none; }
  .nav-mobile { display: flex; }
}
@media (min-width: 1101px) { .mobile-panel { display: none !important; } }
/* Ohne JavaScript bleibt das Handy-Menü offen – sonst gäbe es am Handy keine Navigation */
@media (max-width: 1100px) { html:not(.js) #mobil-menu[hidden] { display: block !important; } html:not(.js) .site-header { position: static; } html:not(.js) .menu-btn { display: none; } }

/* Hero (Startseite): Bild über die volle Breite, Text darüber mit Abdunkelung */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #FFFFFF; min-height: min(88vh, 820px); min-height: min(88svh, 820px); display: flex; align-items: flex-end; }
.hero-bild { position: absolute; inset: 0; }
.hero-bild img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s var(--ease-out); }
.ist-geladen .hero-bild img { transform: none; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(15,43,70,.92) 0%, rgba(15,43,70,.8) 45%, rgba(15,43,70,.35) 100%), linear-gradient(0deg, rgba(15,43,70,.55), transparent 45%); }
@media (max-width: 1100px) { .hero::after { background: rgba(15,43,70,.74); } } /* Text reicht bis in die helle Bildhälfte – gleichmäßig abdunkeln (≥ 4,5:1) */
.hero-content { position: relative; z-index: 1; width: 100%; padding-top: 104px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 24px; }
.hero .zeile-klein { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); font-weight: 600; }
.hero h1 { color: #FFFFFF; font-size: clamp(44px, 6.4vw, 88px); line-height: 1.04; max-width: 900px; }
.hero h1 em { color: var(--sky); }
.hero p { color: #E3EBF2; font-size: 20px; max-width: 600px; }
.hero .hero-fakten { font-size: 16px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.25); max-width: 760px; }
.hero-fakten i { font-style: normal; color: var(--sky); margin: 0 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; } /* Knopfreihe */
.maske { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.maske > * { display: inline-block; }
.scroll-hinweis { position: absolute; z-index: 1; left: 50%; bottom: 24px; width: 1px; height: 48px; background: rgba(255,255,255,.3); overflow: hidden; }
.scroll-hinweis span { display: block; width: 1px; height: 16px; background: #FFFFFF; animation: runter 1.8s var(--ease-out) 1.5s 3 both; }
@keyframes runter { from { transform: translateY(-16px); } to { transform: translateY(48px); } }

/* Wegweiser unter dem Hero */
.wegweiser { border-bottom: 1px solid var(--line); }
.wegweiser-innen { display: grid; grid-template-columns: repeat(3, 1fr); }
.wegweiser a { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 28px 32px 28px 0; text-decoration: none; color: var(--muted); font-size: 16px; }
.wegweiser a + a { padding-left: 32px; border-left: 1px solid var(--line); }
.wegweiser strong { font: 600 24px/1.2 var(--serif); color: var(--navy); }
.wegweiser a::after { content: ""; position: absolute; left: 0; right: 32px; bottom: -1px; height: 2px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--ease-out); }
.wegweiser a + a::after { left: 32px; }
.wegweiser a:focus-visible::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .wegweiser a:hover::after { transform: scaleX(1); } }

/* Seitenkopf der Unterseiten */
.page-hero { background: var(--alt); padding: 80px 0 88px; }
.page-hero h1 { font-size: clamp(36px, 4.8vw, 58px); line-height: 1.08; max-width: 800px; }
.page-hero p { font-size: 20px; color: var(--text); max-width: 600px; }
.page-hero-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.page-hero-bild { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.page-hero-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; gap: 32px; } .page-hero-bild { aspect-ratio: 16 / 10; max-height: 40vh; max-height: 40svh; } } /* Tablet: Preise sollen ohne viel Scrollen sichtbar bleiben */
.page-hero .eyebrow { font-size: 14px; color: var(--blue); } /* sonst gewinnt .page-hero p (groß, grau) */

/* Karten: ohne Schatten und Rundung, Linie oben */
.card { background: #FFFFFF; border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card--feature { border: 2px solid var(--navy); }
.section--alt .card { border-color: transparent; }
.card-bild { display: block; width: calc(100% + 64px); max-width: none; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: -32px -32px 8px; background: var(--line); } /* Bild bündig oben in der Karte */
.card .icon { color: var(--blue); }
.card ul { padding-left: 20px; color: var(--text); display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.card h3 { overflow-wrap: break-word; hyphens: auto; }
.card .price-note { font: 600 18px var(--serif); color: var(--navy); margin-top: auto; } /* Preiszeilen der Karten auf einer Höhe */
.lift { transition: transform 250ms var(--ease-out), border-color 250ms ease; }
@media (hover: hover) and (pointer: fine) { .lift:hover { transform: translateY(-3px); border-color: var(--navy); } }

/* Preise (Preisseite) */
.price-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.price-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; border: 1px solid var(--line); padding: 28px; background: #FFFFFF; }
@media (hover: hover) and (pointer: fine) { .price-card:hover { color: inherit; } }
.price-card--feature { border: 2px solid var(--navy); }
.price-card .name { font-weight: 600; font-size: 18px; color: var(--navy); }
.price-card .desc { color: var(--muted); font-size: 16px; }
.price-card .amount { font-family: var(--serif); font-weight: 600; font-size: 40px; color: var(--navy); margin-top: auto; padding-top: 6px; }
.price-card .amount small, .box-line .amount small { font-family: var(--body); font-weight: 400; font-size: 16px; color: var(--muted); }
.pkg { border: 1px solid var(--line); padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; background: #FFFFFF; }
.pkg--feature { border: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--navy); }
.pkg h3 { font-size: 20px; }
.pkg .amount, .box-line .amount { font-family: var(--serif); font-weight: 600; font-size: 52px; color: var(--navy); line-height: 1.05; font-variant-numeric: tabular-nums; }
.pkg .save { font-size: 16px; color: var(--blue); font-weight: 600; }
.pkg ul { padding-left: 20px; color: var(--text); display: flex; flex-direction: column; gap: 6px; flex-grow: 1; font-size: 16px; }
.badge { align-self: flex-start; color: var(--blue); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; } /* „Empfohlen“ als Eyebrow statt Pille */
.pkg-head { min-height: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
/* Flächenwahl als Segment-Leiste */
.size-switch { display: inline-flex; border: 1.5px solid var(--navy); border-radius: 4px; overflow: hidden; }
.pill { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 0; background: #FFFFFF; color: var(--navy); font-weight: 600; font-size: 16px; cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.pill + .pill { border-left: 1.5px solid var(--navy); }
.pill[aria-pressed="true"] { background: var(--navy); color: #FFFFFF; }
@media (max-width: 480px) { .size-switch { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; } .size-switch .pill { padding-left: 6px; padding-right: 6px; } }
.num { display: inline-block; }
.num.is-changing { animation: fadein .2s var(--ease-out) both; }

.section--kurz { padding-bottom: 44px; } /* Preisseite: kein großes Loch zwischen „Extras“ und dem Hausverwaltungs-Kasten */

/* Aufklapper (FAQ, Extras) */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.acc { border-top: 2px solid var(--navy); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; color: var(--navy); font-weight: 600; font-size: 18px; }
.acc .answer { margin: 0 48px 22px 0; color: var(--text); max-width: 760px; }
.chev { flex: none; color: var(--blue); transition: transform 200ms var(--ease-out); }
details[open] > summary .chev { transform: rotate(180deg); }
details[open] .answer, details[open] .extras-body { animation: fadein .3s var(--ease-out) both; }
.extras { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 24px; }
.extras summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; color: var(--navy); font-weight: 600; font-size: 18px; }
.extras summary .hint { display: flex; align-items: center; gap: 8px; color: var(--blue); font-size: 16px; }
.extras-body { padding: 4px 0 20px; }
.extras dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); column-gap: 48px; font-size: 16px; line-height: 1.4; }
.extras dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid #EEF2F5; }
.extras dt { color: var(--text); }
.extras dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; } /* darf umbrechen; Preise halten per &nbsp; zusammen */

/* Rabatt-Tabelle, Kästen */
.discount { width: 100%; border-collapse: collapse; font-size: 16px; }
.discount caption { text-align: left; font-family: var(--serif); font-weight: 600; font-size: 22px; padding-bottom: 12px; }
.discount td { padding: 14px 0; border-top: 1px solid var(--navy-line); }
.discount tr:last-child td { border-bottom: 1px solid var(--navy-line); }
.discount td:last-child { text-align: right; font-weight: 600; }
.box-dark { background: var(--navy); color: #FFFFFF; padding: 48px; display: flex; flex-wrap: wrap; gap: 40px; }
.box-dark > * { flex: 1 1 300px; min-width: 0; }
.box-dark h2, .box-dark h3 { color: #FFFFFF; font-size: 30px; font-family: var(--serif); font-weight: 600; }
.box-dark p { color: var(--on-dark); }
.box-dark a:not(.btn) { color: #FFFFFF; font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .box-dark a:not(.btn):hover { color: var(--sky); } }
.box-line { border: 1px solid var(--line); padding: 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.box-line h2, .box-line h3 { font-size: 30px; font-family: var(--serif); font-weight: 600; }

/* Ablauf: große Serif-Ziffern, Linie darüber füllt sich beim Hineinscrollen (main.js setzt .anim/.is-in) */
.steps { position: relative; list-style: none; padding: 32px 0 0; display: grid; gap: 32px; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.steps::after { height: 2px; background: var(--blue); }
.js .steps.anim::after { transform: scaleX(0); transform-origin: left; }
.js .steps.anim.is-in::after { transform: scaleX(1); transition: transform 1.6s var(--ease-out); }
.steps li { display: flex; flex-direction: column; gap: 8px; }
.steps li::before { counter-increment: step; content: counter(step); font: 400 64px/1 var(--serif); color: var(--navy); margin-bottom: 8px; }
.steps h3 { font-size: 20px; }
.steps p { color: var(--text); font-size: 16px; }
.section--dark .steps p { color: var(--on-dark); }
.section--dark .steps li::before { color: #FFFFFF; }
@media (max-width: 999px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .steps { grid-template-columns: 1fr; gap: 24px; } .steps li::before { font-size: 48px; } }

/* Ansprechpartner (Unterseiten) */
.portrait { flex: 0 1 300px !important; aspect-ratio: 4 / 5; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.facts, .card .facts { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.facts li { border-top: 1px solid var(--line); padding: 12px 0 0; }
.facts strong { display: block; color: var(--navy); }
.facts span { color: var(--muted); font-size: 16px; }

/* Kontakt & Formular */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; }
.contact > * { min-width: 0; }
.contact-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 8px; }
.contact-list a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.contact-list a span:first-child { font-weight: 600; }
.contact-list a span:last-child { color: var(--muted); }
.form { background: #FFFFFF; border: 1px solid var(--line); padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend { font-weight: 600; font-size: 16px; margin-bottom: 10px; padding: 0; color: var(--navy); }
.form legend span, .label-hint { font-weight: 400; color: var(--muted); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 6px; }
.form-row > .field { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; } /* Beschriftung, Feld und Fehlertext beider Spalten auf gleicher Höhe, auch bei zweizeiliger Beschriftung */
.form-row > .field > label { align-self: end; }
@media (max-width: 600px) { .form-row { display: flex; flex-direction: column; gap: 22px; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 16px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 4px; background: #FFFFFF; font-size: 16px; transition: border-color .2s ease; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
.field select { -webkit-appearance: none; appearance: none; padding-right: 44px; background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230F2B46' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--ink); line-height: 1.25; } /* Safari zeichnet die Auswahl sonst flacher als die Eingabefelder */
.field textarea { resize: vertical; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--err); }
.error { font-size: 14px; color: var(--err); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 14px; border-radius: 4px; border: 1.5px solid var(--line-strong); background: #FFFFFF; color: var(--ink); font-weight: 500; font-size: 16px; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .12s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .chip span:hover { border-color: var(--navy); } }
.chip span svg { display: none; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #FFFFFF; font-weight: 600; }
.chip input:checked + span svg { display: block; animation: haken .18s var(--ease-out) both; }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.add-msg { align-self: flex-start; background: none; border: 0; padding: 0; min-height: 44px; color: var(--blue); font-weight: 600; font-size: 16px; cursor: pointer; }
.form-note { font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { background: #FEF3F2; border: 1px solid #FECDCA; color: var(--err); padding: 12px 14px; font-size: 16px; }
.error:not([hidden]), .form-alert:not([hidden]) { animation: fadein 160ms var(--ease-out) both; } /* Fehler erscheinen nicht schlagartig */
.msg-field:not([hidden]) { animation: fadein 200ms var(--ease-out) both; }
.formular-uebernahme { background: var(--alt); border-left: 2px solid var(--navy); padding: 10px 14px; font-size: 16px; color: var(--navy); animation: fadein .4s var(--ease-out) both; }
.weiter { list-style: none; padding: 0; counter-reset: w; margin-top: 8px; border-top: 1px solid var(--line); }
.weiter li { counter-increment: w; display: grid; grid-template-columns: 40px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--text); }
.weiter li::before { content: counter(w); grid-row: span 2; font: 400 28px/1 var(--serif); color: var(--blue); }
.weiter strong { color: var(--navy); }
.kontakt-zeilen { display: flex; flex-direction: column; gap: 4px; }
.kontakt-zeilen a { display: inline-flex; align-items: center; min-height: 44px; font: 600 22px var(--serif); color: var(--navy); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .kontakt-zeilen a:hover { color: var(--blue); } }

/* Fußzeile (seit 22.10.2026: Aufruf auf Unterseiten, vier Spalten, „Nach oben“) */
.site-footer { background: var(--navy); color: var(--on-dark-2); font-size: 16px; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .site-footer a:not(.btn):hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; } }
.site-footer .btn--light { color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .site-footer .btn--light:hover { color: var(--navy); } } /* sonst gewinnt die Linkfarbe der Fußzeile */
.site-footer .btn--ghost-light { color: #FFFFFF; }
@media (hover: hover) and (pointer: fine) { .site-footer .btn--ghost-light:hover { color: var(--navy); } }
.footer-aufruf { border-bottom: 1px solid var(--navy-line); }
.footer-aufruf-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: 56px; padding-bottom: 56px; }
.footer-aufruf-titel { font: 600 clamp(28px, 3vw, 38px)/1.1 var(--serif); color: #FFFFFF; margin-bottom: 8px; }
.footer-aufruf-titel em { font-weight: 400; color: var(--sky); }
.footer-grid { display: grid; gap: 48px; grid-template-columns: 1.6fr 1fr 1.2fr 1.3fr; padding-top: 64px; padding-bottom: 48px; }
.footer-marke { display: flex; flex-direction: column; gap: 14px; max-width: 340px; }
.site-footer .logo { color: #FFFFFF; }
.footer-region { color: var(--sky); font-size: 14px; letter-spacing: .04em; }
.social { display: flex; gap: 20px; }
.site-footer .social a { color: #FFFFFF; font-weight: 600; }
.footer-title { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--sky); margin-bottom: 14px; }
.footer-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-gross { display: flex; flex-direction: column; }
.site-footer .footer-gross a { display: inline-flex; align-items: center; min-height: 44px; font: 600 22px/1.3 var(--serif); color: #FFFFFF; overflow-wrap: anywhere; }
.footer-note { font-size: 14px; margin-top: 8px; }
.footer-bottom { border-top: 1px solid var(--navy-line); }
.footer-bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 20px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer .nach-oben { color: #FFFFFF; font-weight: 600; }

/* Schwebender Anruf-Knopf (Handy) */
.fab { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; transition: opacity .25s var(--ease-out), visibility .25s; }
.fab.is-weg { opacity: 0; visibility: hidden; } /* Formular sichtbar (main.js) */
body:has(.form :focus) .fab { opacity: 0; visibility: hidden; } /* Feld hat den Fokus: Tastatur am Handy, nichts verdecken */
.fab-cta { background: #FFFFFF; color: var(--navy); border: 1.5px solid var(--navy); padding: 12px 18px; border-radius: 4px; font-weight: 600; font-size: 16px; text-decoration: none; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility .25s; }
.fab-cta.is-visible { opacity: 1; visibility: visible; transform: none; }
.fab-call { width: 56px; height: 56px; border-radius: 999px; background: var(--navy); color: #FFFFFF; display: none; align-items: center; justify-content: center; border: 2px solid #FFFFFF; box-shadow: 0 8px 20px rgba(15,43,70,.3); }
@media (max-width: 1100px) { .fab-call { display: flex; } .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); } .footer-bottom .container { padding-bottom: 24px; } } /* Sicherheitsabstand nur einmal (Fußzeile) */
@media (max-width: 1460px) { .fab-cta { display: none; } } /* erst ab 1461 px ist neben dem Inhalt Platz; „Angebot anfragen“ steht im Kopf */

/* Rechtstexte */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 104px; display: flex; flex-direction: column; gap: 28px; }
.legal h1 { font-size: clamp(34px, 4.2vw, 48px); }
.legal h2 { font-size: 24px; }
.legal section { display: flex; flex-direction: column; gap: 10px; }
.legal p, .legal li, .legal dd { color: var(--text); max-width: 70ch; }
.legal ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal dl { margin: 0; display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 8px 20px; }
.legal dt { font-weight: 600; color: var(--ink); }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 10px; } }

/* Danke, 404 */
.center-page { max-width: 760px; margin: 0 auto; padding: 104px 24px 128px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.center-page h1 { font-size: clamp(34px, 4.4vw, 52px); }
.center-page p { font-size: 20px; color: var(--text); }
.center-page div[data-danke] { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.big-check { width: 80px; height: 80px; border-radius: 999px; background: var(--navy); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.next-steps { list-style: none; padding: 0; margin-top: 12px; width: 100%; text-align: left; display: grid; gap: 0 24px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); counter-reset: n; }
.next-steps li { counter-increment: n; border-top: 2px solid var(--navy); padding: 16px 0; }
.next-steps li::before { content: counter(n); display: block; font: 400 36px/1 var(--serif); color: var(--blue); margin-bottom: 8px; }
.next-steps strong { display: block; color: var(--navy); }
.next-steps span { color: var(--muted); font-size: 16px; }
.code-404 { font-family: var(--serif); font-weight: 400; font-size: 120px; line-height: 1; color: var(--line-strong); }
.row-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* ===================== Startseite: Bausteine (aus Entwurf v2) ===================== */

/* Vorteile nach Zielgruppe + Reiter mit gleitendem Unterstrich */
.reiter[role=tablist] { position: relative; display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 40px; overflow-x: auto; scrollbar-width: none; }
.reiter[role=tablist]::-webkit-scrollbar { display: none; }
.reiter[role=tablist] [role=tab] { flex: none; background: none; border: 0; padding: 14px 8px; min-height: 48px; font: 600 16px var(--body); color: var(--muted); cursor: pointer; transition: color .2s ease; scroll-margin-top: calc(var(--header-h) + 24px); /* Sprung per #tab-fotos */ }
.reiter[role=tablist] [role=tab][aria-selected="true"] { color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .reiter[role=tablist] [role=tab]:hover { color: var(--navy); } }
.reiter-linie { position: absolute; bottom: 0; left: 0; height: 2px; width: 1px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease-out); } /* Breite per scaleX statt width: kein Layout je Bild */
.reiter--dunkel[role=tablist] { border-color: var(--navy-line); }
.reiter--dunkel[role=tablist] [role=tab] { color: #B8C7D5; }
.reiter--dunkel[role=tablist] [role=tab][aria-selected="true"] { color: #FFFFFF; }
@media (hover: hover) and (pointer: fine) { .reiter--dunkel[role=tablist] [role=tab]:hover { color: #FFFFFF; } }
.reiter--dunkel[role=tablist] .reiter-linie { background: var(--sky); }
.reiter-panel:not([hidden]) { animation: rein 150ms var(--ease-out); } /* kurz: Reiter lassen sich per Pfeiltaste durchschalten */
@keyframes rein { from { opacity: 0; } }
.nutzen { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.nutzen article { padding: 32px 28px 0 0; }
.nutzen article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.nutzen .nr { display: block; font: 400 44px/1 var(--serif); color: var(--blue); margin-bottom: 20px; }
.nutzen h3 { margin-bottom: 10px; }
.nutzen p { color: var(--text); font-size: 16px; }

/* Zeitrechner */
.rechner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.rechner .lead { margin-top: 20px; }
.rechner-karte { background: #FFFFFF; border: 1px solid var(--line); padding: 36px; display: grid; gap: 12px; }
.rechner-karte label { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; font-weight: 500; }
.rechner-karte output { font: 600 20px var(--serif); color: var(--navy); min-width: 3ch; text-align: right; }
.rechner-karte input[type=range] { width: 100%; accent-color: var(--navy); height: 44px; margin: 0 0 4px; }
.rechner-ergebnis { border-top: 2px solid var(--navy); padding-top: 20px; margin-top: 8px; font: 600 clamp(40px, 5vw, 64px)/1 var(--serif); color: var(--navy); }
.rechner-ergebnis small { display: block; font: 400 16px/1.5 var(--body); color: var(--text); margin-top: 8px; }

/* Vermarktung: Handy-Modell mit Inserat + Schritte */
.portale-raster { display: grid; grid-template-columns: 420px 1fr; gap: 80px; align-items: start; }
.geraet-spalte { position: sticky; top: calc(var(--header-h) + 32px); }
.geraet { width: 340px; margin: 0 auto; border: 10px solid var(--navy); border-radius: 36px; background: #FFFFFF; padding: 18px 14px 20px; box-shadow: 0 30px 60px -30px rgba(15,43,70,.45); }
/* Handy-Modell: verkleinerte Darstellung eines Inserats (aria-hidden) – 12/13 px hier bewusst außerhalb der Schriftskala */
.geraet-kopf { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 0 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.inserat-bild { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--alt); }
.inserat-bild > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.25) brightness(.8) contrast(.9); transition: filter .6s var(--ease-out); }
.marke-360 { position: absolute; left: 10px; top: 10px; background: var(--navy); color: #FFFFFF; font-weight: 600; font-size: 13px; padding: 4px 8px; opacity: 0; transform: translateY(-6px) scale(.9); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.tour-ebene, .qr-ebene { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease-out), transform .45s var(--ease-out); }
.tour-ebene img { width: 100%; height: 100%; object-fit: cover; }
.tour-knopf { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #FFFFFF; color: var(--navy); font-size: 13px; font-weight: 600; padding: 8px 12px; white-space: nowrap; }
.qr-ebene { background: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; transform: scale(.96); }
.qr { width: 46%; height: auto; }
.qr-ebene span { font-size: 13px; font-weight: 600; color: var(--navy); }
.inserat-titel { font-weight: 600; font-size: 16px; margin-top: 12px; color: var(--navy); }
.inserat-daten { font-size: 14px; color: var(--muted); }
.inserat-leiste { display: flex; gap: 6px; margin-top: 12px; }
.inserat-leiste span { flex: 1; text-align: center; font-size: 12px; padding: 6px 0; border: 1px solid var(--line); color: #8A97A4; transition: background-color .35s ease, border-color .35s ease, color .35s ease; }
.kanaele { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.kanaele span { font-size: 12px; padding: 4px 8px; background: var(--alt); color: #8A97A4; transition: background-color .35s ease, color .35s ease; }
/* Zustände je Schritt (main.js setzt data-schritt): 0 = Handyfoto, 1 Fotos, 2 Rundgang, 3 Grundriss, 4 QR-Code, 5 Kanäle */
.geraet:not([data-schritt="0"]) .inserat-bild > img { filter: none; }
.geraet[data-schritt="1"] .l-foto, .geraet[data-schritt="2"] .l-foto, .geraet[data-schritt="2"] .l-tour,
.geraet[data-schritt="3"] .inserat-leiste span, .geraet[data-schritt="4"] .inserat-leiste span, .geraet[data-schritt="5"] .inserat-leiste span { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.geraet:not([data-schritt="0"]):not([data-schritt="1"]) .marke-360 { opacity: 1; transform: none; }
.geraet[data-schritt="2"] .tour-ebene { opacity: 1; }
.geraet[data-schritt="4"] .qr-ebene { opacity: 1; transform: none; }
.geraet[data-schritt="5"] .kanaele span { background: var(--navy); color: #FFFFFF; }
.geraet[data-schritt="5"] .kanaele span:nth-child(2) { transition-delay: 60ms; }
.geraet[data-schritt="5"] .kanaele span:nth-child(3) { transition-delay: 120ms; }
.geraet[data-schritt="5"] .kanaele span:nth-child(4) { transition-delay: 180ms; }
.geraet[data-schritt="5"] .kanaele span:nth-child(5) { transition-delay: 240ms; }
.geraet[data-schritt="5"] .kanaele span:nth-child(6) { transition-delay: 300ms; }
.geraet[data-schritt="5"] .kanaele span:nth-child(7) { transition-delay: 360ms; }
.schritte-portal { list-style: none; padding: 0; counter-reset: s; }
.schritte-portal li { min-height: 52vh; min-height: 52svh; display: flex; flex-direction: column; justify-content: center; padding-left: 72px; position: relative; transition: opacity .4s var(--ease-out); }
.schritte-portal li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 50%; transform: translateY(-50%); font: 400 48px/1 var(--serif); color: var(--blue); }
.schritte-portal h3 { font: 600 clamp(24px, 2.4vw, 32px)/1.15 var(--serif); margin-bottom: 12px; }
.schritte-portal p { font-size: 18px; max-width: 480px; color: var(--text); }
@media (min-width: 1101px) { .js .schritte-portal.folgt li.reveal:not(.ist-aktiv) { opacity: .35; } } /* nur im Computer-Modus (main.js setzt .folgt); stärker als das Einblenden */
.lieferung { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 2px solid var(--navy); margin-top: 48px; }
.lieferung li { padding: 20px 16px 0 0; display: flex; flex-direction: column; }
.lieferung li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.lieferung strong { font: 600 20px var(--serif); color: var(--navy); }
.lieferung span { font-size: 14px; color: var(--muted); }

/* Trefferliste zum Umschalten */
.treffer { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; margin-top: 112px; padding-top: 64px; border-top: 1px solid var(--line); }
.treffer-text { display: grid; gap: 16px; }
.treffer-text > p:not(.klein) { color: var(--text); }
.umschalter { display: inline-flex; border: 1.5px solid var(--navy); border-radius: 4px; overflow: hidden; justify-self: start; }
.umschalter button { background: #FFFFFF; border: 0; padding: 12px 18px; min-height: 48px; font: 600 16px var(--body); color: var(--navy); cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.umschalter button + button { border-left: 1.5px solid var(--navy); }
.umschalter button[aria-pressed="true"] { background: var(--navy); color: #FFFFFF; }
.treffer-liste { list-style: none; display: grid; gap: 12px; background: var(--alt); padding: 20px; }
.treffer-liste li { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; background: #FFFFFF; border: 1px solid var(--line); padding: 10px; transition: border-color .4s ease, box-shadow .4s var(--ease-out), transform .4s var(--ease-out); }
.t-bild { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.t-bild img { width: 100%; height: 100%; object-fit: cover; transition: filter .5s var(--ease-out), transform .5s var(--ease-out); }
.t-fremd .t-bild img { filter: saturate(.5) brightness(.82) contrast(.9); }
.t-360 { position: absolute; left: 6px; top: 6px; background: var(--navy); color: #FFFFFF; font-size: 14px; font-weight: 600; padding: 2px 6px; transition: opacity .3s ease, transform .3s var(--ease-out); }
.t-titel { font-weight: 600; color: var(--navy); font-size: 16px; line-height: 1.3; }
.t-daten { font-size: 14px; color: var(--muted); }
.t-extra { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; transition: opacity .3s ease; }
.t-extra span { font-size: 14px; padding: 2px 8px; background: var(--alt); color: var(--navy); }
.treffer-liste[data-modus="mit"] .t-ihr { border-color: var(--navy); box-shadow: inset 3px 0 0 var(--navy); transform: translateX(-6px); }
.treffer-liste[data-modus="ohne"] .t-ihr .t-bild img { filter: saturate(.55) brightness(.75) sepia(.3) contrast(.85); transform: rotate(-2deg) scale(1.12); }
.treffer-liste[data-modus="ohne"] .t-360 { opacity: 0; transform: scale(.8); }
.treffer-liste[data-modus="ohne"] .t-extra { opacity: 0; }

/* Leistungen: Spalten ohne Karten, Bild 3:2, Linie */
.leistungen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.bildrahmen { overflow: hidden; aspect-ratio: 3 / 2; margin-bottom: 20px; background: var(--line); }
.bildrahmen img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .leistungen article:hover .bildrahmen img { transform: scale(1.04); } }
.leistungen h3 { padding-top: 16px; border-top: 1px solid var(--line-strong); margin-bottom: 8px; }
.leistungen p { color: var(--text); font-size: 16px; }
.leistungen .ab { margin-top: 12px; font: 600 18px var(--serif); color: var(--navy); }

/* Vorher/Nachher-Schieber */
.vorher { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 64px; align-items: center; margin-top: 96px; }
.vorher-text { display: grid; gap: 16px; }
.vorher-text > p:not(.klein) { color: var(--text); }
.vorher-buehne { position: relative; aspect-ratio: 3 / 4; overflow: hidden; user-select: none; touch-action: pan-y; background: var(--line); }
.vorher-buehne img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vorher-nachher { filter: brightness(1.07) contrast(1.06) saturate(.78) hue-rotate(-6deg); } /* shortcut: Darstellung per Filter – durch ein echtes Vorher/Nachher-Paar ersetzen, sobald es eines gibt */
.vorher-handy-rahmen { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); } /* Schnittkante gerade an der Trennlinie; am Bild selbst würde sie mitgedreht */
.vorher-handy { filter: brightness(.72) contrast(.82) saturate(1.3) sepia(.28); transform: rotate(-1.8deg) scale(1.08); }
.vorher-marke { position: absolute; top: 12px; background: rgba(15,43,70,.85); color: #FFFFFF; font-size: 14px; font-weight: 600; padding: 4px 8px; pointer-events: none; }
.vorher-marke.links { left: 12px; } .vorher-marke.rechts { right: 12px; }
.vorher-griff { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #FFFFFF; pointer-events: none; }
.vorher-griff::after { content: "↔"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #FFFFFF; color: var(--navy); display: grid; place-items: center; font-size: 18px; box-shadow: 0 4px 16px rgba(15,43,70,.3); }
.vorher-buehne input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.vorher-buehne:focus-within .vorher-griff::after { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Beispiel (Referenz): Rundgang mit Info-Punkten, Fotos als Vorschau + Großansicht */
.eckdaten { display: block; margin-top: 16px; font-size: 16px; color: var(--sky); }
.tour-buehne { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: var(--navy-2); }
.tour-buehne > img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82); }
.tour-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.punkt { position: absolute; z-index: 2; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 0; background: #FFFFFF; color: var(--navy); font: 600 16px var(--serif); cursor: pointer; transition: transform .2s var(--ease-out), background-color .2s ease; }
.punkt::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); animation: puls 2.2s var(--ease-out) 1s 3 both; }
.punkt[aria-expanded="true"] { transform: scale(1.12); background: var(--sky); }
@media (hover: hover) and (pointer: fine) { .punkt:hover { transform: scale(1.12); background: var(--sky); } } /* am Handy bliebe der Punkt nach dem Antippen vergrößert */
@keyframes puls { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.punkt-info { position: absolute; z-index: 3; width: 250px; transform: translate(-50%, calc(-100% - 30px)); background: #FFFFFF; color: var(--text); padding: 14px 16px; font-size: 16px; line-height: 1.45; box-shadow: 0 12px 32px rgba(0,0,0,.25); animation: blende .3s var(--ease-out); }
@keyframes blende { from { opacity: 0; } } /* nur Deckkraft: ein transform-Keyframe würde die Positionierung überschreiben */
.punkt-info strong { display: block; color: var(--navy); font: 600 18px var(--serif); margin-bottom: 4px; }
.punkt-info--links { transform: translate(calc(-100% + 20px), calc(-100% - 30px)); }
.punkt-info--unten { transform: translate(-50%, 30px); }
.punkt-info--unten-rechts { transform: translate(-20px, 30px); }
.punkt-info--unten-links { transform: translate(calc(-100% + 20px), 30px); }
.tour-laden { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; padding: 48px 20px 20px; background: linear-gradient(0deg, rgba(15,43,70,.9), transparent); }
.tour-laden small { flex-basis: 100%; text-align: center; font-size: 14px; color: #E3EBF2; }
.tour-laden small a { color: #FFFFFF; }
.tour-buehne.ist-geladen .punkt, .tour-buehne.ist-geladen .punkt-info, .tour-buehne.ist-geladen .tour-laden, .tour-buehne.ist-geladen > img { display: none; }
.vorschau { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.vorschau button { display: block; width: 100%; padding: 0; border: 0; background: var(--navy-2); cursor: zoom-in; aspect-ratio: 1; overflow: hidden; }
.vorschau img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .vorschau button:hover img { transform: scale(1.06); } }
.vorschau-hinweis { color: #B8C7D5; margin-top: 12px; }
.gross { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; max-height: 100dvh; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; overscroll-behavior: contain; }
.gross::backdrop { background: rgba(10, 26, 42, .94); }
.gross[open] { display: grid; place-items: center; animation: gross-auf .35s var(--ease-out); }
@keyframes gross-auf { from { opacity: 0; transform: scale(.97); } }
.gross.zu, .gross.zu::backdrop { opacity: 0; transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out); } /* main.js grossZu(): erst ausblenden, dann close() */
.gross.zu { transform: scale(.97); animation: none; } /* sonst überdeckt das Öffnen (0,35 s) ein frühes Schließen */
.gross figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
.gross img { max-height: 82vh; max-height: 82dvh; max-width: 88vw; width: auto; height: auto; touch-action: pan-y; }
.gross figcaption { color: #E3EBF2; font-size: 16px; }
.gross button { position: fixed; width: 48px; height: 48px; border-radius: 4px; border: 1px solid rgba(255,255,255,.35); background: rgba(15,43,70,.6); color: #FFFFFF; font-size: 22px; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .gross button:hover { background: var(--blue); } }
.gross :focus-visible { outline-color: #FFFFFF; }
.gross-zu { top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); }
.gross-zurueck { left: calc(16px + env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.gross-weiter { right: calc(16px + env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }

/* Vergleich selbst gemacht / mit immovista */
.vergleich { border-top: 2px solid var(--navy); }
.v-zeile { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.v-kopf { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.v-kopf span:last-child { color: var(--blue); }
.v-zeile [role=rowheader] { font: 600 20px var(--serif); color: var(--navy); }
.v-zeile [role=cell]:nth-child(2) { color: var(--muted); }
.v-zeile:not(.v-kopf) [role=cell]:last-child { color: var(--navy); font-weight: 500; position: relative; padding-left: 28px; }
.v-zeile:not(.v-kopf) [role=cell]:last-child::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg) scale(.6); opacity: 0; transition: transform 300ms var(--ease-out), opacity 300ms var(--ease-out); } /* nicht aus scale(0): wirkt gesetzt statt hingezaubert */
.vergleich.is-visible [role=cell]:last-child::before, html:not(.js) .vergleich [role=cell]:last-child::before { transform: rotate(-45deg) scale(1); opacity: 1; }
.js .vergleich .v-zeile:nth-child(3) [role=cell]:last-child::before { transition-delay: .08s; }
.js .vergleich .v-zeile:nth-child(4) [role=cell]:last-child::before { transition-delay: .16s; }
.js .vergleich .v-zeile:nth-child(5) [role=cell]:last-child::before { transition-delay: .24s; }
.js .vergleich .v-zeile:nth-child(6) [role=cell]:last-child::before { transition-delay: .32s; }

/* Preisrechner */
.konfig { display: grid; grid-template-columns: 1.4fr 1fr; background: #FFFFFF; border: 1px solid var(--line); }
.konfig-wahl { padding: 36px; display: grid; gap: 28px; }
.konfig fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.konfig legend { font-weight: 600; color: var(--navy); margin-bottom: 12px; font-size: 16px; padding: 0; }
.segment { display: flex; border: 1.5px solid var(--navy); border-radius: 4px; overflow: hidden; }
.segment label { flex: 1; position: relative; }
.segment input, .schalter-liste input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segment span { display: block; text-align: center; padding: 12px 8px; font-size: 16px; font-weight: 600; color: var(--navy); cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.segment label + label span { border-left: 1.5px solid var(--navy); }
.segment input:checked + span { background: var(--navy); color: #FFFFFF; }
.segment input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: -4px; }
.segment input:checked:focus-visible + span { outline-color: #FFFFFF; }
.schalter-liste input:focus-visible + span::before { outline: 3px solid var(--blue); outline-offset: 2px; }
.schalter-liste { display: grid; border-top: 1px solid var(--line); }
.schalter-liste label { border-bottom: 1px solid var(--line); }
.schalter-liste span { display: grid; grid-template-columns: 1fr 48px; gap: 2px 16px; align-items: center; padding: 14px 0; cursor: pointer; }
.schalter-liste b { font-weight: 600; color: var(--navy); }
.schalter-liste i { font-style: normal; font-size: 14px; color: var(--muted); grid-column: 1; }
.schalter-liste span::before { content: ""; grid-column: 2; grid-row: 1 / span 2; width: 46px; height: 26px; border-radius: 13px; background: var(--line-strong) radial-gradient(circle at 13px 13px, #FFFFFF 9px, transparent 10px) no-repeat; transition: background-color .25s ease, background-position .25s var(--ease-out); }
.schalter-liste input:checked + span::before { background-color: var(--navy); background-position: 20px 0; }
.schalter-liste input:disabled + span { opacity: .45; cursor: not-allowed; }
.konfig-ergebnis { background: var(--navy); color: var(--on-dark); padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.konfig-name { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--sky); }
.konfig-preis { font: 600 64px/1 var(--serif); color: #FFFFFF; font-variant-numeric: tabular-nums; }
.konfig-preis.huepft { animation: huepf .35s var(--ease-out); }
@keyframes huepf { 40% { transform: translateY(-4px); } }
.konfig-posten { list-style: none; padding: 14px 0 0; display: grid; gap: 6px; border-top: 1px solid var(--navy-line); font-size: 16px; }
.konfig-posten li { display: flex; justify-content: space-between; gap: 12px; }
.konfig-tipp { background: rgba(158,201,230,.14); border-left: 2px solid var(--sky); padding: 10px 12px; font-size: 16px; color: #FFFFFF; }
.konfig-tipp button { display: block; min-height: 44px; background: none; border: 0; padding: 0; color: var(--sky); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.konfig-ergebnis .btn { margin-top: auto; }
.konfig-ergebnis .klein { color: #B8C7D5; }

/* Für Makler */
.makler-raster { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.makler-raster li { border-top: 1px solid var(--navy-line); padding-top: 20px; }
.makler-raster h3 { margin-bottom: 8px; }
.makler-raster p { color: var(--on-dark-2); font-size: 16px; }
.makler-aktion { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 56px; padding-top: 28px; border-top: 2px solid #FFFFFF; }
.makler-aktion p { font: 600 clamp(22px, 2.2vw, 28px)/1.3 var(--serif); color: #FFFFFF; }


/* Ansprechpartner (Startseite) */
.person { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.person-bild { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--line); }
.person-bild img { width: 100%; height: 100%; object-fit: cover; }
.person-text .lead { margin-top: 20px; }
.person blockquote { margin: 32px 0; padding-left: 24px; border-left: 2px solid var(--navy); font: italic 400 24px/1.4 var(--serif); color: var(--navy); }
.person cite { display: block; margin-top: 12px; font: 400 14px var(--body); color: var(--muted); }
.fakten { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.fakten li { padding: 16px 16px 0 0; display: flex; flex-direction: column; font-size: 16px; color: var(--text); }
.fakten li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.fakten strong { color: var(--navy); }

/* FAQ der Startseite */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; align-items: start; }
.faq .lead { margin-top: 20px; }
.tel-gross { display: inline-block; margin-top: 8px; font: 600 28px var(--serif); color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); }
@media (hover: hover) and (pointer: fine) { .tel-gross:hover { border-color: var(--navy); color: var(--navy); } }

/* Region */
.region { position: relative; height: 420px; overflow: hidden; color: #FFFFFF; display: flex; align-items: center; background: var(--navy); }
.region > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.region::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,43,70,.88), rgba(15,43,70,.25)); z-index: 1; }
.region-text { position: relative; z-index: 2; width: 100%; }
.region-text p { font: 600 clamp(32px, 4vw, 52px)/1.1 var(--serif); }
.region-text em { font-weight: 400; color: var(--sky); }

/* Ohne JavaScript: alle Inhalte der Reiter untereinander, keine Leisten; statt des Rechners der Verweis auf die Preisübersicht */
html:not(.js) .reiter[role=tablist], html:not(.js) .konfig, html:not(.js) .umschalter { display: none; }
html:not(.js) .nutzen.reiter-panel[hidden] { display: grid !important; margin-top: 32px; }
html:not(.js) .reiter-panel[hidden] { display: block !important; margin-top: 32px; }
.nur-ohne-js { display: none; }
html:not(.js) .nur-ohne-js { display: block; }
html:not(.js) .nur-mit-js { display: none; }
html:not(.js) .reiter-panel[data-titel]::before { content: attr(data-titel); grid-column: 1 / -1; display: block; padding-top: 16px; font: 600 22px var(--serif); color: var(--navy); } /* Zielgruppe als Überschrift, wenn die Reiterleiste fehlt */

/* ===================== Bewegung ===================== */
@keyframes fadein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes haken { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.pop { animation: pop .45s cubic-bezier(.2,.9,.3,1.3) both; }
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .leistungen .reveal:nth-child(2), .js .nutzen article:nth-child(2) { transition-delay: .08s; }
.js .leistungen .reveal:nth-child(3), .js .nutzen article:nth-child(3) { transition-delay: .16s; }
/* Bilder öffnen sich von oben nach unten */
.js .reveal .bildrahmen, .js .person-bild.reveal { clip-path: inset(0 0 100% 0); transition: clip-path 700ms var(--ease-out), opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .reveal.is-visible .bildrahmen, .js .person-bild.reveal.is-visible { clip-path: inset(0); }
/* Kursiver Teil der Überschrift wird beim Einblenden unterstrichen */
.js .reveal h2 em, .js .reveal .h3-gross em, .js .hero h1 em { -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(currentColor, currentColor) left 92% / 0 1.5px no-repeat; transition: background-size 700ms var(--ease-out) 200ms; }
.js .reveal.is-visible h2 em, .js .reveal.is-visible .h3-gross em { background-size: 100% 1.5px; }
.js.ist-geladen .hero h1 em { background-size: 100% 2px; transition-delay: 450ms; }
/* Hero: Überschrift fährt zeilenweise aus einer Maske, der Rest blendet ein */
.js .maske > * { transform: translateY(105%); transition: transform 600ms var(--ease-out); }
.js .maske + .maske > * { transition-delay: 80ms; }
.js.ist-geladen .maske > * { transform: none; }
.js .hero-an { opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--ease-out) 150ms, transform 500ms var(--ease-out) 150ms; }
.js .hero-an.zeile-klein { transition-delay: .05s; }
.js.ist-geladen .hero-an { opacity: 1; transform: none; }

/* Druck-Rückmeldung für alles Antippbare */
.pill:active, .chip span:active, .umschalter button:active, .segment span:active, .reiter[role=tablist] [role=tab]:active { transform: scale(.97); transition-duration: 120ms; }

/* Handy wie eine App: Bedienelemente reagieren ohne Doppeltipp-Verzögerung, ihre Beschriftung lässt sich nicht versehentlich markieren (Inhaltstext bleibt markierbar) */
a, button, summary, label, [role=tab] { touch-action: manipulation; }
button, .btn, [role=tab], .chip span, .segment span, .schalter-liste span, summary { -webkit-user-select: none; user-select: none; }
@media (pointer: coarse) { :where(a:not(.btn), .menu-btn, .add-msg, .punkt, .vorschau button, .gross button, summary):active { opacity: .7; } } /* Ersatz für den abgeschalteten Tipp-Blitz */

/* ===================== Breiten ===================== */
@media (max-width: 1100px) {
  .portale-raster { grid-template-columns: 1fr; gap: 0; }
  .geraet-spalte { position: static; margin-bottom: 32px; }
  .geraet { width: min(320px, 100%); }
  .schritte-portal li { min-height: 0; padding-top: 20px; padding-bottom: 20px; }
  .nutzen { grid-template-columns: 1fr 1fr; }
  .nutzen article:nth-child(3) { padding-left: 0; border-left: 0; }
  .nutzen article { padding-bottom: 32px; }
  .makler-raster { grid-template-columns: 1fr 1fr; }
  .lieferung { grid-template-columns: repeat(3, 1fr); }
  .lieferung li:nth-child(4) { padding-left: 0; border-left: 0; }
  .lieferung li { padding-bottom: 20px; }
}
@media (max-width: 860px) {
  .nur-computer { display: none !important; } /* z. B. „Rundgang hier laden“: am Handy fängt ein eingebetteter Rundgang die Wischgesten */
  .section { padding: 72px 0; }
  .section-head--split, .rechner, .person, .faq, .contact, .treffer, .vorher, .konfig { grid-template-columns: 1fr; gap: 32px; }
  .section-head--split { margin-bottom: 40px; }
  .leistungen { grid-template-columns: 1fr; }
  .v-zeile { grid-template-columns: 1fr 1fr; gap: 4px 16px; }
  .v-zeile [role=rowheader] { grid-column: 1 / -1; }
  .v-kopf span:first-child { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; padding-top: 48px; }
  .footer-marke, .footer-kontakt { grid-column: 1 / -1; max-width: none; }
  .footer-aufruf-innen { padding-top: 40px; padding-bottom: 40px; }
  .person-bild { max-width: 420px; }
  .treffer { margin-top: 72px; padding-top: 48px; }
  .vorher { margin-top: 64px; }
  .vorher-buehne { max-width: 420px; }
  .vorschau { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tour-buehne { aspect-ratio: 4 / 3; }
  .punkt-info { width: 200px; font-size: 14px; }
}
@media (max-width: 640px) {
  .card, .pkg, .price-card, .form, .box-dark, .box-line, .rechner-karte, .konfig-wahl, .konfig-ergebnis { padding: 24px; }
  .card-bild { width: calc(100% + 48px); margin: -24px -24px 6px; }
  .hero-content { padding-top: 80px; padding-bottom: 80px; }
  .hero .hero-fakten i { margin: 0 4px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .wegweiser-innen { grid-template-columns: 1fr; }
  .wegweiser a, .wegweiser a + a { padding: 20px 0; border-left: 0; }
  .wegweiser a + a { border-top: 1px solid var(--line); }
  .wegweiser a::after, .wegweiser a + a::after { left: 0; right: 0; }
  .nutzen { grid-template-columns: 1fr; }
  .nutzen article, .nutzen article + article { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .fakten { grid-template-columns: 1fr; }
  .fakten li, .fakten li + li { padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .schritte-portal li { padding-left: 52px; }
  .schritte-portal li::before { font-size: 36px; }
  .lieferung { grid-template-columns: 1fr 1fr; }
  .lieferung li, .lieferung li + li { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .makler-raster { grid-template-columns: 1fr; gap: 28px; }
  .treffer-liste { padding: 12px; }
  .treffer-liste li { grid-template-columns: 96px 1fr; gap: 12px; }
  .konfig-preis { font-size: 52px; }
  .segment span { padding: 12px 4px; font-size: 14px; }
  .reiter[role=tablist] { gap: 12px; }
  .gross-zurueck, .gross-weiter { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: none; }
  .tour-buehne { aspect-ratio: 3 / 4; }
  .region { height: 300px; }
  .acc .answer { margin-right: 0; }
}

@media (max-width: 400px) { /* 320-px-Handys: Fußzeile enger */
  .footer-grid { gap: 32px 16px; } /* zwei Spalten bleiben, Linktexte brechen um */
  .footer-list a { overflow-wrap: anywhere; }
  .site-footer .footer-gross a { font-size: 20px; }
  .footer-aufruf .actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; animation-delay: 0s !important; }
  /* Weniger Bewegung heißt nicht gar kein Übergang: reines Einblenden ohne Verschieben bleibt */
  .js .reveal { transform: none; transition: opacity .4s ease !important; }
  /* Einblenden ohne Verschieben bleibt auch hier: Fehler, Nachricht, FAQ, Info-Punkte, Großansicht, Handy-Menü */
  .error:not([hidden]), .form-alert:not([hidden]), .msg-field:not([hidden]), .formular-uebernahme, details[open] .answer, details[open] .extras-body, .punkt-info, .gross[open] { animation: blende 150ms ease both !important; }
  .mobile-panel:not([hidden]) { transition: opacity 150ms ease !important; transform: none !important; }
  .js .reveal .bildrahmen, .js .person-bild.reveal { clip-path: none; }
  .js .maske > *, .js .hero-an, .hero-bild img { transform: none; opacity: 1; }
  .js .reveal h2 em, .js .reveal .h3-gross em, .js .hero h1 em { background-size: 100% 1.5px; }
  .js .steps.anim::after { transform: none; }
  .scroll-hinweis span, .punkt::before { animation: none; }
}

/* Tippflächen 44 px auch für die kleinen Links (Fußzeile, Handy-Menü) auf Touch-Geräten */
@media (pointer: coarse) {
  .footer-list a, .footer-bottom nav a, .site-footer .social a, .mobile-panel .tel { display: inline-block; padding: 12px 0; }
  .footer-list { gap: 0; }
}

/* Drucken (v. a. AGB und Datenschutz): ohne Kopf, schwebende Knöpfe und Fußzeilen-Spalten, Farben bleiben */
@media print {
  .site-header, .mobile-panel, .fab, .skip, .footer-grid, .footer-aufruf, .nach-oben, .scroll-hinweis, .gross { display: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .section { padding: 24px 0; }
  .legal { padding: 0; }
  .js .reveal, .js .hero-an, .js .maske > * { opacity: 1 !important; transform: none !important; }
  .js .reveal .bildrahmen, .js .person-bild.reveal { clip-path: none !important; }
}
