/* Burgwinkel Gebäudetechnik – Landingpage zur Umfirmierung (Fassung 2)
   Marke vorn: Logo, Rot / Marineblau / Flamme. Echte Projektfotos. Wenig Text.
   Farbwerte aus der Umfirmierungs-Grafik gemessen (Näherung) – durch das Farbkonzept ersetzen.
   Logo ist eine hochgerechnete Vorschau – durch die Originaldatei ersetzen. */

/* Hausschrift Noka (aus dem Markenpaket, Lizenz „crossmedia“) */
@font-face { font-family: "Noka"; src: url("brand/Noka-Medium.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Noka"; src: url("brand/Noka-Semibold.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }

:root {
  --ground: #FFFFFF;
  --soft: #F3F4F7;
  --ink: #02243F;
  --ink-soft: #3E5168;
  --red: #CB0007;
  --red-press: #A30006;
  --navy: #02243F;
  --navy-2: #0D3354;
  --flame: #FBA900;
  --lilac: #9F9FFF;
  --grey: #D1D1D1;
  --on-navy: #FFFFFF;
  --on-navy-soft: #B9C4D4;

  /* Kennfarben der Bereiche (Rohrkennzeichnung) */
  --k-waerme: #CB0007;
  --k-sanitaer: #02243F;
  --k-klima: #9F9FFF;
  --k-trinkwasser: #02243F;
  --k-pv: #FBA900;
  --k-elektro: #FBA900;

  --font: "Noka", "Helvetica Neue", Arial, sans-serif;
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  --step-hero: clamp(2.4rem, 1.2rem + 3.4vw, 4.1rem);

  --margin: clamp(16px, 3vw, 48px);
  --max: 1320px;
  --section: clamp(72px, 9vw, 136px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-weight: 500; font-size: var(--step-body); line-height: 1.55; letter-spacing: .005em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--margin)); margin-inline: auto; padding-inline: max(var(--margin), env(safe-area-inset-left, 0px)) max(var(--margin), env(safe-area-inset-right, 0px)); }
.section { padding-block: var(--section); }
.head { font-size: var(--step-head); max-width: 20ch; }
.lead { font-size: var(--step-lead); line-height: 1.4; color: var(--ink-soft); max-width: 40ch; }

/* Buttons */
a, button { -webkit-tap-highlight-color: transparent; }
.btn { display: inline-flex; align-items: center; gap: .6em; min-height: 52px; padding: 0 1.4em; background: var(--red); color: #fff; text-decoration: none; font-weight: 600; border-radius: var(--radius); transition: background-color .15s ease-out, transform .1s ease-out; white-space: nowrap; }
.btn:hover { background: var(--red-press); }
.btn:active { transform: scale(.97); background: var(--red-press); }
.btn.ghost:active { background: var(--ink); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }

/* Kopfzeile */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); transition: box-shadow .25s ease-out; }
.bar.scrolled { box-shadow: 0 10px 24px -18px rgba(2,36,63,.45); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .bar { background: #fff; } }
@media (prefers-reduced-transparency: reduce) { .bar { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { .bar { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 2px 0 var(--ink); } }
.bar .wrap { position: relative; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding-block: 12px; }
.logo { display: block; flex: none; }
.logo img { height: clamp(52px, 5.2vw, 76px); width: auto; }
.nav { display: flex; gap: clamp(16px, 2.2vw, 32px); margin-left: auto; font-weight: 500; font-size: var(--step-small); }
.nav a { position: relative; text-decoration: none; padding-block: 8px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav a[aria-current="true"] { color: var(--red); }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; margin-left: 8px; border: 0; border-radius: var(--radius); background: var(--soft); color: var(--ink); font: inherit; font-weight: 600; font-size: var(--step-small); cursor: pointer; transition: transform .1s ease-out, background-color .15s ease-out; }
.menu-btn:active { transform: scale(.97); background: #E3E6EB; }
.menu-btn i { position: relative; width: 16px; height: 2px; background: currentColor; transition: background-color .15s; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; transition: transform .2s ease-out; }
.menu-btn i::before { top: -5px; } .menu-btn i::after { top: 5px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-5px) rotate(-45deg); }
.bar .btn { min-height: 44px; font-size: var(--step-small); }

/* Hero */
.hero { padding-block: clamp(24px, 4vw, 64px) var(--section); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: var(--step-hero); line-height: 1; letter-spacing: -0.03em; }
.hero h1 .red { color: var(--red); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-photo { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; animation: drift 18s var(--ease) both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.stamp { position: absolute; left: 0; bottom: 0; background: var(--navy); color: #fff; padding: 18px 22px; display: flex; flex-direction: column; gap: 2px; }
.stamp b { font-size: var(--step-lead); font-weight: 600; line-height: 1.1; }
.stamp span { font-size: var(--step-small); color: var(--on-navy-soft); }
.stamp b i { font-style: normal; color: var(--flame); }

/* Umstellung: nach der eigenen Grafik des Betriebs */
.switch { position: relative; background: var(--soft); overflow: hidden; }
.switch-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: .14; filter: grayscale(1); }
.switch .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.35fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding-block: clamp(56px, 7vw, 104px); }
.switch .old, .switch .new { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.switch .old img { width: min(220px, 100%); filter: grayscale(1); opacity: .5; }
.switch .slogan { width: min(520px, 100%); margin-top: 10px; }
.switch-pattern { position: absolute; inset: 0; background: url("brand/muster.webp") 0 0 / 200px auto repeat; opacity: .07; pointer-events: none; }
.switch .new img { width: min(560px, 100%); }
.switch figcaption { font-size: var(--step-small); font-weight: 600; color: var(--ink-soft); }
.switch .arrow { display: block; width: clamp(56px, 7vw, 110px); color: var(--red); }
.switch .arrow svg { display: block; width: 100%; height: auto; }
.claim { background: var(--navy); color: #fff; }
.claim .wrap { padding-block: clamp(22px, 3vw, 36px); display: flex; justify-content: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.change + .services { padding-top: 0; }
.claim .claim-text { font-size: clamp(1.5rem, .8rem + 3vw, 3.25rem); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; text-align: center; line-height: 1.05; }

/* Was bleibt, was neu ist */
.change .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
.change-intro { display: flex; flex-direction: column; gap: 22px; }
.change-lists { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.change-lists > div { background: var(--soft); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.change-lists .new-list { background: var(--navy); color: #fff; }
.change-lists h3 { font-size: var(--step-lead); }
.change-lists li { display: flex; gap: 12px; align-items: baseline; padding-block: 6px; }
.change-lists li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--ink); transform: translateY(-1px); }
.change-lists .new-list li::before { background: var(--flame); }
.change-lists li span { color: var(--ink-soft); }
.change-lists .new-list li span { color: var(--on-navy-soft); }
.notice { grid-column: 1 / -1; display: flex; gap: 18px; align-items: flex-start; border-left: 4px solid var(--flame); background: var(--soft); padding: 18px 22px; }
.notice svg { width: 24px; height: 24px; flex: none; color: #B07800; margin-top: 2px; }
.notice p { max-width: 60ch; }

/* Leistungen: Fotos mit Rohrkennzeichnung */
.services-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.tile { position: relative; display: flex; flex-direction: column; background: var(--soft); overflow: hidden; }
.tile .pic { aspect-ratio: 4 / 3; overflow: hidden; }
.tile .pic img { width: 100%; height: 100%; object-fit: cover; }
.tile .txt { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.tile .txt p { color: var(--ink); font-size: var(--step-body); line-height: 1.45; }
.tile.pv .pic { background: var(--navy); display: grid; place-items: center; }
.tile.pv .pic svg { width: 46%; height: auto; }

.rohr { --k: var(--ink); display: inline-flex; align-self: flex-start; align-items: stretch; background: #fff; color: var(--ink); font-weight: 650; font-size: .9375rem; letter-spacing: 0; line-height: 1; box-shadow: inset 0 0 0 1px #D5D9E0; }
.rohr::before { content: ""; width: 34px; background: var(--k) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M0 6h13M9 1.5 13.5 6 9 10.5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center / 16px 12px no-repeat; }
.rohr.dark::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M0 6h13M9 1.5 13.5 6 9 10.5' fill='none' stroke='%23132337' stroke-width='2'/%3E%3C/svg%3E"); }
.rohr span { padding: 9px 12px; }
.k-waerme { --k: var(--k-waerme); } .k-sanitaer { --k: var(--k-sanitaer); } .k-klima { --k: var(--k-klima); }
.k-trinkwasser { --k: var(--k-trinkwasser); } .k-pv { --k: var(--k-pv); } .k-elektro { --k: var(--k-elektro); }

/* Geschichte */
.history { background: var(--soft); }
.history .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.history figure { display: flex; flex-direction: column; gap: 10px; }
.history figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 55% 50%; }
.history figcaption { font-size: var(--step-small); color: var(--ink-soft); }
.history-text { display: flex; flex-direction: column; gap: 24px; }
.years li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 16px; padding-block: 12px; }
.years li + li { box-shadow: inset 0 1px 0 #D5D9E0; }
.years b { font-weight: 700; font-variant-numeric: tabular-nums; }
.years li.next b, .years li.next span { color: var(--red); font-weight: 600; }

/* Kontakt */
.contact { background: var(--navy); color: #fff; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
.contact .lead { color: var(--on-navy-soft); }
.contact-text { display: flex; flex-direction: column; gap: 24px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--navy-2); }
.contact-grid > * { background: var(--navy); padding: clamp(20px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 6px; }
.contact-grid dt { font-size: var(--step-small); color: var(--on-navy-soft); }
.contact-grid dd { font-size: var(--step-lead); font-weight: 600; line-height: 1.25; }
.contact-grid a { text-decoration: none; }
.contact-grid a:hover { color: var(--flame); }
.contact .btn { align-self: flex-start; }

/* Footer */
.foot { background: #fff; padding-block: 36px 28px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.foot .logo img { height: 52px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--step-small); font-weight: 500; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; text-decoration: none; }
.foot nav a:hover { color: var(--red); }
.foot small { width: 100%; font-size: var(--step-small); color: var(--ink-soft); }

/* Unterseiten */
.doc { padding-block: clamp(40px, 6vw, 96px) var(--section); }
.doc > * { max-width: 72ch; }
.doc h1 { font-size: var(--step-head); margin-bottom: 32px; }
.doc h2 { font-size: var(--step-lead); margin: 2em 0 .5em; }
.doc p + p { margin-top: .8em; }
.doc .todo { background: #FCEFD2; padding: 0 .25em; }

.callbar { display: none; }
.callbar.show { opacity: 1; transform: none; pointer-events: auto; }

/* Einblenden */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .35s ease-out, transform .35s ease-out; transition-delay: var(--d, 0ms); }
  .js .switch .arrow.reveal { transform: translateX(-28px); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo img { animation: none; }
  .callbar, .nav { transform: none !important; }
}

@media (max-width: 1024px) {
  .bar .btn { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; }
  .hero .wrap, .change .wrap, .history .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .bar .btn { display: none; }
  .switch .wrap { grid-template-columns: 1fr; justify-items: center; }
  .switch .arrow { width: 48px; }
  .js .switch .arrow.reveal { transform: translateY(-20px); }
  .js .switch .arrow.reveal.in { transform: none; }
  .change-lists, .contact-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .tile { flex-direction: row; }
  .tile .pic { aspect-ratio: auto; width: 38%; flex: none; }
  .tile .txt { padding: 14px 16px; }
  .callbar { display: inline-flex; position: fixed; z-index: 30; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity .25s ease-out, transform .25s ease-out; outline: 2px solid #fff; outline-offset: 0; }
  .callbar.show { opacity: 1; transform: none; pointer-events: auto; }
  .menu-btn { margin-left: auto; }
  .switch .old img { width: 150px; }
  .switch .arrow svg { transform: rotate(90deg); }
}

/* ===== Fassung 3: Tiefe und Bewegung ===== */
:root {
  /* Tiefe in vier Stufen – Schatten in Marineblau, nie farbig */
  --sh-1: 0 1px 2px rgba(2,36,63,.06), 0 6px 16px -6px rgba(2,36,63,.14);
  --sh-2: 0 2px 4px rgba(2,36,63,.06), 0 22px 40px -14px rgba(2,36,63,.30);
  --sh-3: 0 10px 24px -8px rgba(2,36,63,.25), 0 40px 80px -24px rgba(2,36,63,.45);
}

/* Kopfzeile wird schmaler, Logo verkleinert sich weich */
.bar .wrap { transition: padding .3s cubic-bezier(.2,.8,.2,1); }
.bar .logo img { transform-origin: left center; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.bar.compact .wrap { padding-block: 6px; }
.bar.compact .logo img { transform: scale(.8); }

/* Stufe 2 für das Hero-Foto, Stufe 1 für Listenflächen */
.hero-photo { box-shadow: var(--sh-2); border-radius: 6px; }
.change-lists > div { box-shadow: var(--sh-1); border-radius: 6px; }
.contact-grid { box-shadow: var(--sh-2); border-radius: 6px; overflow: hidden; }
.history figure img { box-shadow: var(--sh-2); border-radius: 6px; }

/* Leistungen: Karussell */
.carousel { position: relative; }
.car-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-bottom: clamp(24px, 3vw, 40px); }
.car-controls { display: flex; align-items: center; gap: 10px; }
.car-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); box-shadow: var(--sh-1); display: grid; place-items: center; cursor: pointer; transition: transform .1s ease-out, box-shadow .2s ease-out, opacity .2s; }
.car-btn svg { width: 22px; height: 22px; }
.car-btn:hover { box-shadow: var(--sh-2); }
.car-btn:active { transform: scale(.94); }
.car-btn:disabled { opacity: .35; cursor: default; box-shadow: none; }
.car-viewport { overflow-x: auto; scroll-snap-type: x mandatory; outline: none; padding-block: 18px 34px; margin-block: -18px -34px; }
.carousel.live .car-viewport { overflow: hidden; touch-action: pan-y; cursor: grab; scroll-snap-type: none; }
.carousel.live.dragging .car-viewport { cursor: grabbing; }
.car-viewport:focus-visible { outline: 3px solid var(--flame); outline-offset: 4px; }
.car-track { display: flex; gap: clamp(14px, 1.6vw, 22px); padding-inline: max(var(--margin), calc((100vw - var(--max)) / 2)); will-change: transform; }
.card {
  flex: 0 0 clamp(270px, 30vw, 400px); scroll-snap-align: start;
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: var(--sh-1); cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s cubic-bezier(.2,.8,.2,1);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.card.pressed { transform: translateY(-2px) scale(.98); box-shadow: var(--sh-2); transition-duration: .1s; }
.card:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; }
.card .pic { aspect-ratio: 4 / 3.2; overflow: hidden; background: var(--navy); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.card .pic svg { width: 40%; margin: auto; height: 100%; display: block; }
.card .txt { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .txt p { font-size: var(--step-body); line-height: 1.45; }
.card .more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--red); font-size: var(--step-small); }
.card .more svg { width: 16px; height: 16px; transition: transform .2s ease-out; }
.card:hover .more svg { transform: translateX(4px); }
.car-foot { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.car-progress { flex: 1; max-width: 320px; height: 4px; background: #E3E6EB; border-radius: 2px; overflow: hidden; }
.car-progress i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(.16); border-radius: 2px; }
.car-hint { font-size: var(--step-small); color: var(--ink-soft); }
.js .car-hint .nojs { display: none; }

/* Fenster von unten (Sheet) */
.sheet[hidden] { display: none; }
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(10, 20, 33, .55); opacity: 0; }
.sheet-panel {
  position: absolute; left: 50%; bottom: 0; width: min(760px, 100%); max-height: min(88svh, 900px);
  background: #fff; border-radius: 18px 18px 0 0; box-shadow: var(--sh-3);
  display: flex; flex-direction: column; transform: translate3d(-50%, 100%, 0); will-change: transform;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sheet-panel.fade-in { animation: sheetfade .2s ease-out both; }
@keyframes sheetfade { from { opacity: 0; } to { opacity: 1; } }
.sheet-grip { flex: none; height: 28px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet-grip::before { content: ""; width: 44px; height: 5px; border-radius: 3px; background: #CDD2DA; }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--soft); color: var(--ink); display: grid; place-items: center; cursor: pointer; z-index: 2; transition: transform .1s ease-out, background-color .15s; }
.sheet-close:active { transform: scale(.92); background: #E3E6EB; }
.sheet-close svg { width: 20px; height: 20px; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 clamp(20px, 4vw, 40px) clamp(24px, 4vw, 40px); }
.sheet-head { display: flex; flex-direction: column; gap: 12px; padding-right: 48px; padding-bottom: 18px; touch-action: none; }
.sheet-head h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
.sheet-photo { border-radius: 10px; overflow: hidden; margin-bottom: 22px; box-shadow: var(--sh-1); }
.sheet-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sheet-body p { max-width: 60ch; }
.sheet-body ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; margin-block: 20px 28px; }
.sheet-body li { display: flex; gap: 12px; align-items: baseline; }
.sheet-body li::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--k, var(--ink)); }
.sheet-menu { display: flex; flex-direction: column; padding-bottom: 8px; }
.sheet-menu a { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding-inline: 4px; font-size: var(--step-lead); font-weight: 600; text-decoration: none; box-shadow: inset 0 -1px 0 #E3E6EB; }
.sheet-menu a:active { color: var(--red); }
.sheet-menu .btn { margin-top: 18px; justify-content: center; font-size: var(--step-body); box-shadow: none; }
html.sheet-open, html.sheet-open body { overflow: hidden; }

/* Handy-Anruf-Button schwebt: Stufe 3 */
@media (max-width: 700px) {
  .callbar { outline: none; box-shadow: var(--sh-3); }
  .sheet-body ul { grid-template-columns: 1fr; }
  .card { flex-basis: 78vw; }
  .car-controls { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card:hover { transform: none; transition: box-shadow .2s; }
  .bar .logo img, .bar .wrap { transition: none; }
}
.stack-text { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 1024px) { .nav.nav-sub { display: flex; margin-left: auto; } .nav-sub ~ .btn { display: none; } }
.h-touch { display: none; }
@media (max-width: 700px) { .h-desk { display: none; } .h-touch { display: inline; } }
.carousel.live .card { scroll-snap-align: none; }
.carousel.live .car-viewport { overflow: clip; }

/* ===== Fassung 4 ===== */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.btn.ghost-light:hover, .btn.ghost-light:active { background: #fff; color: var(--navy); }

/* Einstieg: Logowechsel links, Botschaft rechts */
.hero4 { padding-block: clamp(28px, 5vw, 80px) var(--section); }
.hero4-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.logo-switch { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 18px; }
.logo-switch figure { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.logo-switch figcaption { font-size: var(--step-small); font-weight: 600; color: var(--ink-soft); }
.ls-old img { width: min(190px, 46vw); filter: grayscale(1); opacity: .5; }
.ls-new > img:first-child { width: min(420px, 100%); }
.ls-slogan { width: min(420px, 100%); margin-top: 6px; }
.ls-arrow { display: block; width: 46px; color: var(--red); }
.ls-arrow svg { display: block; width: 100%; transform: rotate(90deg); }
.hero4-text { display: flex; flex-direction: column; gap: 26px; }
.hero4 h1 { font-size: var(--step-hero); line-height: 1.02; letter-spacing: -0.03em; }
.hero4 h1 .red { color: var(--red); }

/* Was sich ändert */
.change4 + .services { padding-top: 0; }
.change4 .wrap { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }
.change4-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.change4-intro .head { max-width: 16ch; }
.change4-intro .lead { max-width: 52ch; }
.compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 0; }
.cmp { border-radius: 10px; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; box-shadow: var(--sh-1); }
.cmp-stay { background: var(--soft); }
.cmp-new { background: var(--navy); color: #fff; box-shadow: var(--sh-2); }
.cmp h3 { font-size: var(--step-lead); }
.cmp dl { display: flex; flex-direction: column; margin: 0; }
.cmp dl > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 18px; padding-block: 11px; box-shadow: inset 0 -1px 0 rgba(2,36,63,.10); }
.cmp-new dl > div { box-shadow: inset 0 -1px 0 rgba(255,255,255,.14); }
.cmp dl > div:last-child { box-shadow: none; }
.cmp dt { font-size: var(--step-small); color: var(--ink-soft); padding-top: .2em; }
.cmp-new dt { color: var(--on-navy-soft); }
.cmp dd { margin: 0; font-weight: 600; }
.cmp-arrow { align-self: center; width: 56px; margin-inline: -14px; position: relative; z-index: 2; color: var(--red); filter: drop-shadow(0 6px 12px rgba(2,36,63,.25)); }
.cmp-arrow svg { display: block; width: 100%; height: auto; }
.change4 .notice { margin: 0; }

/* Aufklappbare Texte */
.more-text { border-radius: 8px; background: var(--soft); max-width: 70ch; }
.more-text summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 0 18px; font-weight: 600; transition: background-color .15s; border-radius: 8px; }
.more-text summary::-webkit-details-marker { display: none; }
.more-text summary:active { background: #E6E9EF; }
.more-text summary i { width: 12px; height: 12px; border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s cubic-bezier(.2,.8,.2,1); flex: none; }
.more-text[open] summary i { transform: rotate(225deg) translate(-2px, -2px); }
.more-body { overflow: hidden; }
.more-inner { padding: 4px 18px 20px; display: flex; flex-direction: column; gap: .9em; }
.more-inner p { max-width: 64ch; }
.history .more-text { background: #fff; box-shadow: var(--sh-1); }

/* Leistungen: Karussell mittig, Nachbarn verblassen */
.car-head .stack-text { max-width: 760px; }
.carousel.live .car-track { padding-inline: var(--car-pad, 10vw); }
.card { flex-basis: clamp(270px, 40vw, 560px); }
.carousel.live .card { transition: box-shadow .25s cubic-bezier(.2,.8,.2,1); will-change: transform, opacity; }
.carousel.live .card:hover { transform: none; }
.carousel.live .card.is-active { box-shadow: var(--sh-2); }
.car-foot { justify-content: center; }
.car-progress { max-width: 260px; }

/* Geschichte */
.history-text { gap: 22px; }
.history-short { max-width: 52ch; }
.years li span { font-weight: 500; }

/* Gedenken */
.memorial { padding-block: 0 var(--section); background: var(--soft); }
.memorial-card { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; background: #fff; border-radius: 12px; padding: clamp(20px, 3vw, 40px); box-shadow: var(--sh-1); max-width: 1080px; margin-inline: auto; }
.memorial-card figure { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.memorial-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 8px; filter: grayscale(1); }
.memorial-card figcaption { font-size: var(--step-small); color: var(--ink-soft); text-align: center; }
.memorial-text { display: flex; flex-direction: column; gap: 16px; }
.memorial-text h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); }
.memorial-text p { max-width: 54ch; }
@media (prefers-reduced-motion: no-preference) {
  .js .memorial .reveal { transform: none; transition: opacity .9s ease-out; }
}

/* Kontakt */
.contact .hours span { white-space: nowrap; }
.contact .btn-row { margin-top: 4px; }

/* Footer */
.foot nav a:first-child { margin-left: auto; }

/* Anruf-Button auf dem Handy: klein und rund */
.callbar { width: 58px; height: 58px; border-radius: 50%; background: var(--red); color: #fff; align-items: center; justify-content: center; }
.callbar svg { width: 24px; height: 24px; }
.callbar:active { transform: scale(.94); }

/* Rechtstexte im Fenster und auf eigenen Seiten */
.legal-text h2 { font-size: var(--step-lead); margin-top: 1.4em; }
.legal-text .sheet-head h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); margin-top: 0; }
.legal-text h3 { font-size: 1.05rem; margin-top: 1.4em; margin-bottom: .35em; }
.legal-text p { max-width: 68ch; }
.legal-text p + p { margin-top: .6em; }
.legal-text a { color: var(--navy); text-decoration-color: var(--red); }

@media (max-width: 1024px) {
  .hero4-grid { grid-template-columns: 1fr; }
  .change4-intro { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .cmp-arrow { justify-self: center; margin-block: -14px; margin-inline: 0; width: 52px; }
  .cmp-arrow svg { transform: rotate(90deg); }
  .memorial-card { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 700px) {
  .hero4 { padding-top: 12px; }
  .logo-switch { grid-template-columns: auto auto auto; align-items: center; justify-content: center; gap: 10px; }
  .ls-old img { width: 92px; }
  .ls-arrow { width: 30px; }
  .ls-arrow svg { transform: none; }
  .ls-new > img:first-child { width: min(200px, 46vw); }
  .ls-slogan { display: none; }
  .logo-switch figcaption { font-size: .8125rem; }
  .btn-row { flex-wrap: nowrap; gap: 8px; }
  .btn-row .btn { flex: 1 1 0; justify-content: center; padding: 0 .8em; min-height: 50px; font-size: 1rem; }
  .cmp dl > div { grid-template-columns: 1fr; gap: 2px; }
  .card { flex-basis: 76vw; }
  .callbar { width: 56px; height: 56px; }
}
@media (max-width: 360px) {
  .btn-row { flex-wrap: wrap; }
  .btn-row .btn { flex-basis: 100%; }
}
.carousel.live .card { transform: scale(calc(var(--s, 1) * var(--press, 1))); opacity: var(--o, 1); }
.carousel.live .card.pressed { --press: .97; }
.memorial-card.reveal, .memorial .reveal { transform: none; }
.carousel.live .card:hover { transform: scale(calc(var(--s, 1) * var(--press, 1))); }

/* ===== Fassung 5 ===== */
/* Einstieg: hervorgehobener Kasten über abgedämpftem Projektfoto */
.hero5 { position: relative; padding-block: clamp(28px, 5vw, 88px); overflow: hidden; isolation: isolate; }
.hero5-bg { position: absolute; inset: 0; z-index: -1; }
.hero5-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; filter: saturate(.75); transform: scale(1.04); }
.hero5-bg::after { content: ""; position: absolute; inset: 0; background: rgba(243, 244, 247, .80); }
.hero5-card {
  max-width: 940px; margin-inline: auto; background: rgba(255, 255, 255, .96);
  border-radius: 18px; box-shadow: var(--sh-3); padding: clamp(24px, 4.5vw, 60px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(20px, 2.6vw, 30px);
}
.hero5 .logo-switch { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 40px); width: 100%; }
.hero5 .logo-switch figure { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; }
.hero5 .logo-switch figcaption { font-size: var(--step-small); font-weight: 600; color: var(--ink-soft); }
.hero5 .ls-old img { width: clamp(84px, 16vw, 190px); filter: grayscale(1); opacity: .5; }
.hero5 .ls-new img { width: clamp(170px, 34vw, 400px); }
.hero5 .ls-arrow { display: block; width: clamp(28px, 4vw, 56px); color: var(--red); }
.hero5 .ls-arrow svg { display: block; width: 100%; transform: none; }
.hero5 h1 { font-size: var(--step-hero); line-height: 1.04; letter-spacing: -0.03em; max-width: 18ch; }
.hero5 h1 .red { color: var(--red); }
.hero5 .lead { max-width: 56ch; margin-inline: auto; }
.hero5 .btn-row { justify-content: center; }
.hero5 + .section { padding-top: var(--section); }

/* Was sich ändert: Überschrift oben, Text darunter */
.change4-intro { display: flex; flex-direction: column; gap: 18px; }
.change4-intro .head { max-width: 22ch; }
.change4-intro .lead { max-width: 70ch; }
.change4 .notice { width: 100%; background: #fff; border-left: 0; border-radius: 10px; box-shadow: var(--sh-1); padding: clamp(18px, 2.4vw, 28px); gap: 16px; align-items: flex-start; }
.change4 .notice svg { width: 30px; height: 30px; color: var(--flame); background: rgba(251, 169, 0, .14); border-radius: 50%; padding: 6px; box-sizing: content-box; margin-top: 0; }
.change4 .notice h3 { font-size: 1.05rem; margin-bottom: 4px; }
.change4 .notice p { max-width: none; }

/* Geschichte: Überschrift oben, Bild und Zeitleiste nebeneinander, Text darunter */
.history .wrap { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.history-title { max-width: none; }
.history-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.history-grid figure { margin: 0; }
.history-grid figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 55% 50%; border-radius: 6px; box-shadow: var(--sh-2); }
.years li { grid-template-columns: 6.6rem minmax(0, 1fr); }
.history-more { display: flex; flex-direction: column; gap: 18px; }
.history-more .history-short { max-width: 70ch; }
.history-more .more-text { max-width: none; }

/* Leistungen: endloses Karussell */
.carousel { --cw: clamp(270px, 40vw, 560px); }
.carousel.live .car-track { position: relative; display: block; height: var(--car-h, 520px); padding: 0; transform: none !important; }
.carousel.live .card,
.carousel.live .card:hover { position: absolute; top: 0; left: 50%; width: var(--cw); height: var(--car-h, auto); margin-left: calc(var(--cw) / -2); transform: translate3d(var(--tx, 0px), 0, 0) scale(calc(var(--s, 1) * var(--press, 1))); }
.car-progress { position: relative; }
.carousel.live .car-progress i { width: calc(100% / var(--n, 6)); transform: translateX(var(--pos, 0%)); border-radius: 2px; }

/* Footer: Rechtezeile mittig */
.foot small { text-align: center; }

@media (max-width: 1024px) {
  .history-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .carousel { --cw: 78vw; }
  .hero5 { padding-block: 16px 40px; }
  .hero5-card { border-radius: 14px; padding: 22px 18px; gap: 18px; }
  .hero5 .btn-row { flex-wrap: nowrap; width: 100%; }
  .cmp-stay { background: #fff; box-shadow: var(--sh-2); }
  .cmp { padding: 20px 18px; }
  .cmp dl > div { padding-block: 10px; }
  .cmp dt { font-size: .8125rem; }
  .change4 .notice { flex-direction: column; gap: 10px; }
  .foot .wrap { flex-direction: column; align-items: center; gap: 14px; }
  .foot nav { justify-content: center; }
  .foot nav a:first-child { margin-left: 0; }
  .foot nav a:last-child { flex-basis: 100%; justify-content: center; }
}
@media (max-width: 1024px) {
  .foot .wrap { flex-direction: column; align-items: center; gap: 14px; }
  .foot nav { justify-content: center; }
  .foot nav a:first-child { margin-left: 0; }
  .foot nav a:last-child { flex-basis: 100%; justify-content: center; }
}
.hero5-card { padding: clamp(22px, 3.4vw, 44px) clamp(20px, 4vw, 56px); gap: clamp(16px, 2vw, 24px); }
.hero5 h1 { font-size: clamp(2.2rem, 1.2rem + 2.8vw, 3.4rem); }
.hero5 .ls-new img { width: clamp(170px, 28vw, 330px); }
.hero5 .ls-old img { width: clamp(84px, 13vw, 160px); }
.change4-intro { align-items: flex-start; }
.history .wrap { align-items: stretch; }

/* ===== Fassung 6 ===== */
/* Überschriften-System: eine Skala für die ganze Seite
   H1  Hauptbotschaft (nur einmal, im Einstieg)
   H2  Abschnitt (Was sich ändert, Unser Service, 74 Jahre …, Gedenken, Kontakt, Fenster-Titel)
   H3  Unterüberschrift (Alles für Ihr Haus …, Unsere Geschichte, Das bleibt, Das ist neu)
   H4  Auszeichnung im Text (Hinweis Bankverbindung, Zwischentitel in Rechtstexten) */
:root {
  --h1: clamp(2.3rem, 1.2rem + 3.2vw, 3.75rem);
  --h2: clamp(1.85rem, 1.2rem + 2vw, 2.75rem);
  --h3: clamp(1.3rem, 1.05rem + 0.8vw, 1.625rem);
  --h4: 1.0625rem;
  --step-lead: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
}
h1, .hero5 h1, .doc h1 { font-size: var(--h1); font-weight: 600; line-height: 1.04; letter-spacing: -0.03em; }
h2, .head, .memorial-text h2, .sheet-head h2, .legal-text .sheet-head h2 { font-size: var(--h2); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; max-width: none; }
h3, .h3, .cmp h3, .change-lists h3 { font-size: var(--h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.notice h3, .legal-text h3, .answer h3 { font-size: var(--h4); font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.legal-text h2 { font-size: var(--h3); }
.hero5 h1 { max-width: 18ch; }
.lead { max-width: none; }
.hero5 .lead { max-width: 56ch; color: var(--ink); }

/* Einstieg: Milchglas statt weißer Fläche, Foto sichtbar */
.hero5-bg img { filter: saturate(.95); }
.hero5-bg::after { background: rgba(243, 244, 247, .28); }
.hero5-card {
  background: rgba(255, 255, 255, .66);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .7);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .hero5-card { background: rgba(255, 255, 255, .94); } }
@media (prefers-reduced-transparency: reduce) { .hero5-card { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { .hero5-card { background: #fff; border: 2px solid var(--ink); } }

/* Leistungen und Geschichte: Kopfzeile mit Pfeilen, Text über volle Breite */
.car-head { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.title-row .car-controls { flex: none; }
.history-more { gap: 12px; }
.history-more .lead { color: var(--ink-soft); }

/* „Mehr lesen“: Text läuft einfach weiter */
.readmore { display: flex; flex-direction: column; align-items: stretch; }
.readmore .more-inner { padding: 14px 0 0; gap: .9em; }
.readmore .more-inner p { max-width: none; color: var(--ink-soft); font-size: var(--step-lead); line-height: 1.45; }
.js .readmore .more-body { height: 0; overflow: hidden; }
.more-toggle {
  align-self: flex-end; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
  border: 0; background: none; color: var(--red); font: inherit; font-weight: 600; cursor: pointer;
  transition: transform .1s ease-out, opacity .15s;
}
.more-toggle:active { transform: scale(.97); opacity: .8; }
.more-toggle i { width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.readmore.open .more-toggle i { transform: rotate(225deg) translate(-2px, -2px); }
html:not(.js) .more-toggle { display: none; }
/* Apple-Prüfung: nur Transform/Opacity animieren – Kopfzeile ändert beim Scrollen nicht mehr ihre Höhe */
.bar .wrap, .bar.compact .wrap { transition: none; padding-block: 12px; }

/* ===================== Fassung 7 ===================== */
:root { color-scheme: light dark; --stage: #D1D1D1; --surface: #FFFFFF; --red-text: var(--red); --pair-ring: rgba(2, 36, 63, .10); --mourn: #141414; }

/* Änderungen: Text über die volle Breite */
.change4-intro .lead { max-width: none; }
.change4-intro .head { text-wrap: balance; }

/* Vergleich als Liquid Glass: beide Kacheln schweben als Glas auf einer gemeinsamen Bühne.
   Unter dem Glas liegt eine ruhige Fläche im Markengrau (#D1D1D1) –
   keine zusätzliche Farbe. „Das bleibt“ ist klares Glas, „Das ist neu“ marineblau getöntes Glas. */
.compare {
  --pad: clamp(10px, 1.6vw, 20px); --r: 16px;
  position: relative; isolation: isolate; overflow: hidden;
  grid-template-columns: minmax(0, 1fr) 0 minmax(0, 1fr); column-gap: calc(var(--pad) / 2);
  padding: var(--pad); border-radius: calc(var(--r) + var(--pad));
  background: var(--ground); box-shadow: 0 0 0 1px var(--pair-ring), var(--sh-2);
}
.compare::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--stage);
}
.compare .cmp { position: relative; border-radius: var(--r); }
.compare .cmp-stay {
  background: rgba(255, 255, 255, .64);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), inset 0 1px 0 #fff, inset 0 0 28px rgba(255, 255, 255, .45), 0 14px 30px -14px rgba(2, 36, 63, .35);
}
.compare .cmp-new {
  background: rgba(2, 36, 63, .88);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .32), 0 14px 30px -14px rgba(2, 36, 63, .55);
}
/* Lichtkante: oben links fängt das Glas Licht */
.compare .cmp::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 38%);
  mix-blend-mode: soft-light;
}
.compare .cmp > * { position: relative; z-index: 1; }
.compare .cmp-arrow { justify-self: center; width: 60px; margin-inline: -30px; padding: 4px; background: rgba(255, 255, 255, .9); border-radius: 50%; filter: drop-shadow(0 6px 14px rgba(2, 36, 63, .3)); z-index: 3; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .compare .cmp-stay { background: rgba(255, 255, 255, .93); }
  .compare .cmp-new { background: var(--navy); }
}
@media (prefers-reduced-transparency: reduce) {
  .compare::before { display: none; }
  .compare { background: var(--soft); }
  .compare .cmp-stay { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .compare .cmp-new { background: var(--navy); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .compare::before { background: var(--ground); }
  .compare .cmp-stay { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
}
@media (max-width: 1024px) {
  .compare { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 0 auto; column-gap: 0; row-gap: calc(var(--pad) / 2); }
  .compare .cmp-arrow { width: 56px; margin: -28px 0; }
  .compare .cmp-stay { padding-bottom: 36px; }
  .compare .cmp-new { padding-top: 36px; }
}

/* Leistungen: Überschrift, Karussell, dann „Unser Service“ mit Text – wie bei der Geschichte */
.service-more { display: flex; flex-direction: column; gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.service-more .lead { color: var(--ink-soft); }

/* Gedenken: Trauerrand */
.memorial-card { border: 2px solid var(--mourn); box-shadow: var(--sh-2); }

/* Detailfenster wächst aus der angetippten Karte */
.sheet-panel { transform-origin: 50% 50%; }
.card.is-source { visibility: hidden; }

/* Logos für hellen und dunklen Grund */
.on-dark { display: none; }

/* ---------- Dunkelmodus (folgt der Systemeinstellung) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0A1520; --soft: #0F1E2D; --surface: #16283B;
    --ink: #EDF1F6; --ink-soft: #A9B6C6; --red-text: #FF5A5F;
    --navy: #123A5E; --navy-2: #1A4670; --on-navy-soft: #C3CDDA;
    --stage: #253445; --pair-ring: rgba(255, 255, 255, .10); --mourn: #D9DEE5;
    --sh-1: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 16px -6px rgba(0, 0, 0, .55);
    --sh-2: 0 2px 4px rgba(0, 0, 0, .35), 0 22px 40px -14px rgba(0, 0, 0, .65);
    --sh-3: 0 10px 24px -8px rgba(0, 0, 0, .5), 0 40px 80px -24px rgba(0, 0, 0, .75);
  }
  .on-light { display: none; }
  .on-dark { display: block; }

  .bar { background: rgba(10, 21, 32, .74); }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .bar { background: var(--ground); } }
  .foot { background: var(--ground); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
  .menu-btn { background: var(--surface); color: var(--ink); }
  .menu-btn:active { background: #213650; }

  /* Glas im Kopfbereich wird dunkel; die Logos stehen auf einem hellen Schild, damit beide Marken stimmen */
  .hero5-bg::after { background: rgba(5, 12, 20, .42); }
  .hero5-card { background: rgba(12, 24, 38, .66); border-color: rgba(255, 255, 255, .12); }
  .hero5 .logo-switch { background: #fff; border-radius: 14px; padding: 14px clamp(14px, 3vw, 28px); width: auto; }
  .hero5 .logo-switch figcaption { color: #3E5168; }

  .card, .car-btn, .sheet-panel, .memorial-card, .change4 .notice, .history .more-text { background: var(--surface); }
  .rohr { color: #02243F; }
  .car-progress { background: rgba(255, 255, 255, .14); }
  .sheet-grip::before { background: #3A4D63; }
  .sheet-close { background: #213650; }
  .sheet-close:active { background: #2A4260; }
  .sheet-menu a { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .10); }
  .years li + li { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10); }
  .cmp dl > div { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .10); }

  .btn.ghost:hover, .btn.ghost:active { background: var(--ink); color: var(--ground); }
  .legal-text a { color: var(--ink); }

  /* Rot als Schrift braucht auf dunklem Grund mehr Helligkeit; Knöpfe behalten das Markenrot */
  .hero5 h1 .red, .nav a[aria-current="true"], .card .more, .more-toggle, .years li.next b, .years li.next span, .foot nav a:hover, .sheet-menu a:active { color: var(--red-text); }
}
@media (prefers-color-scheme: dark) and (prefers-reduced-transparency: reduce) {
  .bar { background: var(--ground); }
  .hero5-card { background: var(--surface); }
}
@media (prefers-color-scheme: dark) and (prefers-contrast: more) {
  .hero5-card { background: var(--surface); border: 2px solid var(--ink); }
  .bar { background: var(--ground); box-shadow: 0 2px 0 var(--ink); }
}

/* Liquid Glass im Dunkelmodus: rauchiges Glas, Muster gedämpft */
@media (prefers-color-scheme: dark) {
  .compare .cmp-stay { background: rgba(22, 40, 59, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 30px -14px rgba(0, 0, 0, .7); }
  .compare .cmp-new { background: rgba(18, 58, 94, .82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .26), 0 14px 30px -14px rgba(0, 0, 0, .7); }
  .compare .cmp::after { background: linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 38%); }
  .compare .cmp-arrow { background: rgba(22, 40, 59, .9); }
}

/* ===================== Fassung 8 ===================== */
/* Einheitliche Rundungen: klein 12, mittel 18, groß 26 – Innenradien passen zu den Außenradien */
:root { --r-s: 12px; --r-m: 18px; --r-l: 26px; --radius: 999px; }
.card { border-radius: var(--r-m); }
.history-grid figure img, .history figure img, .hero-photo { border-radius: var(--r-m); }
.contact-grid { border-radius: var(--r-m); }
.change4 .notice { border-radius: var(--r-m); }
.memorial-card { border-radius: var(--r-l); }
.memorial-card img { border-radius: var(--r-s); }
.hero5-card { border-radius: var(--r-l); }
@media (max-width: 700px) { .hero5-card { border-radius: 22px; } }
.hero5 .logo-switch { border-radius: var(--r-m); }
.sheet-panel { border-radius: var(--r-l) var(--r-l) 0 0; }
.sheet-photo { border-radius: var(--r-s); }
.compare { --r: var(--r-m); }

/* ---------- Knöpfe als Liquid Glass: Kapselform, Lichtkante oben, weicher Schatten ---------- */
.btn {
  border-radius: 999px; border: 0; position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 58%), var(--red);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(0, 0, 0, .14), inset 0 0 0 1px rgba(255, 255, 255, .14), 0 8px 18px -8px rgba(203, 0, 7, .6);
  transition: transform .12s ease-out, box-shadow .2s ease-out, background-color .15s;
}
.btn:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 58%), var(--red); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .14), inset 0 0 0 1px rgba(255, 255, 255, .18), 0 12px 24px -10px rgba(203, 0, 7, .7); }
.btn:active { transform: scale(.96); background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 58%), var(--red-press); }

/* Klares Glas auf hellem Grund */
.btn.ghost, .menu-btn, .car-btn, .sheet-close {
  background: rgba(255, 255, 255, .62); color: var(--ink);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(2, 36, 63, .12), inset 0 1px 0 rgba(255, 255, 255, .95), 0 6px 16px -8px rgba(2, 36, 63, .3);
}
.btn.ghost:hover, .menu-btn:hover, .car-btn:hover { background: rgba(255, 255, 255, .85); color: var(--ink); }
.btn.ghost:active, .menu-btn:active, .car-btn:active, .sheet-close:active { background: rgba(255, 255, 255, .9); color: var(--ink); transform: scale(.96); }
.menu-btn { border-radius: 999px; }

/* Glas auf Marineblau (Kontakt) */
.btn.ghost-light {
  background: rgba(255, 255, 255, .12); color: #fff;
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32), inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 16px -8px rgba(0, 0, 0, .45);
}
.btn.ghost-light:hover, .btn.ghost-light:active { background: rgba(255, 255, 255, .22); color: #fff; }

/* Runder Anruf-Knopf auf dem Handy: rotes Glas */
.callbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 58%), var(--red);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(255, 255, 255, .16), 0 12px 26px -8px rgba(203, 0, 7, .65);
}

/* Glas abschalten, wenn gewünscht */
@media (prefers-reduced-transparency: reduce) {
  .btn.ghost, .menu-btn, .car-btn, .sheet-close { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .btn.ghost-light { background: var(--navy-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .btn.ghost, .menu-btn, .car-btn, .sheet-close { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
  .btn.ghost-light { box-shadow: inset 0 0 0 2px #fff; }
}

/* ---------- Leistungsbereiche: Kennfarbe + passendes Symbol als Glasperle ---------- */
.rohr {
  align-items: center; gap: 2px; padding: 4px 14px 4px 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .72); color: var(--ink);
  -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(2, 36, 63, .12), inset 0 1px 0 rgba(255, 255, 255, .95), 0 4px 12px -6px rgba(2, 36, 63, .28);
}
.rohr::before, .rohr.dark::before {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: var(--icon) center / 18px 18px no-repeat, linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 60%), var(--k);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 1px rgba(0, 0, 0, .12), inset 0 0 0 1px rgba(255, 255, 255, .18), 0 3px 8px -3px var(--k);
}
.rohr span { padding: 6px 4px 6px 8px; }
.rohr.k-waerme { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23ffffff%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z%22/%3E%3C/svg%3E"); }
.rohr.k-sanitaer { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23ffffff%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m4 4 2.5 2.5%22/%3E%3Cpath d=%22M13.5 6.5a4.95 4.95 0 0 0-7 7%22/%3E%3Cpath d=%22M15 5 5 15%22/%3E%3Cpath d=%22M14 17v.01%22/%3E%3Cpath d=%22M10 16v.01%22/%3E%3Cpath d=%22M13 13v.01%22/%3E%3Cpath d=%22M16 10v.01%22/%3E%3Cpath d=%22M11 20v.01%22/%3E%3Cpath d=%22M17 14v.01%22/%3E%3Cpath d=%22M20 11v.01%22/%3E%3C/svg%3E"); }
.rohr.k-klima { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23132337%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M2 12h20%22/%3E%3Cpath d=%22M12 2v20%22/%3E%3Cpath d=%22m20 16-4-4 4-4%22/%3E%3Cpath d=%22m4 8 4 4-4 4%22/%3E%3Cpath d=%22m16 4-4 4-4-4%22/%3E%3Cpath d=%22m8 20 4-4 4 4%22/%3E%3C/svg%3E"); }
.rohr.k-trinkwasser { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23ffffff%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z%22/%3E%3C/svg%3E"); }
.rohr.k-pv { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23132337%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%224%22/%3E%3Cpath d=%22M12 2v2%22/%3E%3Cpath d=%22M12 20v2%22/%3E%3Cpath d=%22m4.93 4.93 1.41 1.41%22/%3E%3Cpath d=%22m17.66 17.66 1.41 1.41%22/%3E%3Cpath d=%22M2 12h2%22/%3E%3Cpath d=%22M20 12h2%22/%3E%3Cpath d=%22m6.34 17.66-1.41 1.41%22/%3E%3Cpath d=%22m19.07 4.93-1.41 1.41%22/%3E%3C/svg%3E"); }
.rohr.k-elektro { --icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23132337%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z%22/%3E%3C/svg%3E"); }

/* ---------- Dunkelmodus ---------- */
@media (prefers-color-scheme: dark) {
  .btn.ghost, .menu-btn, .car-btn, .sheet-close {
    background: rgba(22, 40, 59, .62); color: var(--ink);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 16px -8px rgba(0, 0, 0, .6);
  }
  .btn.ghost:hover, .menu-btn:hover, .car-btn:hover, .btn.ghost:active, .menu-btn:active, .car-btn:active, .sheet-close:active { background: rgba(40, 62, 86, .8); color: var(--ink); }
  .rohr { background: rgba(22, 40, 59, .72); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .2), 0 4px 12px -6px rgba(0, 0, 0, .6); }
}
/* Gesamtprüfung: runde Aufzählungspunkte, Glanz auch am Menü-Knopf */
.sheet-body li::before { border-radius: 50%; }
.sheet-menu .btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(0, 0, 0, .14), inset 0 0 0 1px rgba(255, 255, 255, .14), 0 8px 18px -8px rgba(203, 0, 7, .6); }
/* Gesamtprüfung: Kontaktlinks bekommen eine größere Tippfläche */
.contact-grid a { display: inline-block; padding-block: 10px; margin-block: -10px; }
/* ===================== /Fassung 8 ===================== */

/* ===================== Fassung 9: Diashow im Kopfbereich ===================== */
/* Ruhige Überblendung eigener Fotos, keine Bewegung im Bild (kein Zoom, kein Schwenk). */
.hero5-bg img { position: absolute; inset: 0; }
.hero5-bg img:not(.is-on) { opacity: 0; }
.hero5-bg img { transition: opacity 1.8s ease-in-out; }
html:not(.js) .hero5-bg img:not(:first-child) { display: none; }
.hero-pause {
  position: absolute; right: max(var(--margin), env(safe-area-inset-right, 0px)); bottom: 16px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .62); color: var(--ink);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(2, 36, 63, .12), inset 0 1px 0 rgba(255, 255, 255, .95), 0 6px 16px -8px rgba(2, 36, 63, .3);
  transition: transform .12s ease-out, background-color .15s;
}
.hero-pause[hidden] { display: none; }
.hero-pause:hover { background: rgba(255, 255, 255, .85); }
.hero-pause:active { transform: scale(.94); }
.hero-pause svg { width: 16px; height: 16px; }
.hero-pause .i-play, .hero-pause[aria-pressed="true"] .i-pause { display: none; }
.hero-pause[aria-pressed="true"] .i-play { display: block; }
@media (prefers-reduced-motion: reduce) { .hero5-bg img { transition: opacity .4s linear; } }
@media (prefers-reduced-transparency: reduce) { .hero-pause { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-color-scheme: dark) {
  .hero-pause { background: rgba(22, 40, 59, .62); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 16px -8px rgba(0, 0, 0, .6); }
  .hero-pause:hover { background: rgba(40, 62, 86, .8); }
}
