/* ==========================================================================
   Schuller Finanzen & Immobilien – Website (Design v3 „Liquid Glass“)
   Marine #0B132B · Eisblau #E2E8F0 · Stahlblau #94A3B8 · Graublau #475569 · Eisweiß #F1F5F9
   Schrift: Cormorant Garamond (Überschriften, passend zum Logo) + Instrument Sans
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond.woff") format("woff");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic.woff") format("woff");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff") format("woff");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben */
  --paper: #ffffff;
  --mist: #f1f5f9;          /* Eisweiß – Grundfläche */
  --mist-2: #e7edf4;        /* etwas dunkler – Footer, Platzhalter */
  --ink: #0b132b;           /* Marine – Text, Buttons, dunkle Flächen */
  --ink-2: #16234a;         /* Marine Hover */
  --slate: #475569;         /* Graublau – Fließtext */
  --muted: #64748b;         /* Nebentexte */
  --line: #e2e8f0;          /* Haarlinien */
  --ice: #e2e8f0;           /* Eisblau – Buttons auf Dunkel */
  --steel: #94a3b8;         /* Stahlblau – Akzente, Ränder */
  --steel-deep: #3e5f82;    /* Stahlblau dunkel – Icons und Links auf Hell */
  --success: #2f6b4f;
  --danger: #a33a2c;
  /* ältere Namen, damit Backend-Stile weiter greifen */
  --gold: var(--steel-deep);
  --gold-soft: #dce6f2;
  --gold-deep: var(--steel-deep);

  /* Glas */
  --glass-light-bg: rgba(230, 239, 250, .58);
  --glass-light-border: rgba(214, 228, 245, .9);
  --glass-dark-bg: rgba(11, 19, 43, .42);
  --glass-dark-border: rgba(148, 180, 214, .38);
  --glass-blur: blur(26px) saturate(175%);

  --serif: "Cormorant Garamond", "Iowan Old Style", Garamond, Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(11, 19, 43, .05), 0 24px 48px -28px rgba(11, 19, 43, .35);
  --shadow-lift: 0 2px 4px rgba(11, 19, 43, .06), 0 30px 60px -26px rgba(11, 19, 43, .45);

  --wrap: 1240px;
  --gutter: clamp(16px, 3vw, 24px);
  --header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--steel-deep); outline-offset: 3px; border-radius: 4px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Glas ---------- */
.glass-light, .glass-dark { position: relative; overflow: hidden; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.glass-light { background: var(--glass-light-bg); border: 1px solid var(--glass-light-border); box-shadow: inset 0 1px 0 #fff, 0 22px 50px -18px rgba(11, 19, 43, .30); }
.glass-dark { background: var(--glass-dark-bg); border: 1px solid var(--glass-dark-border); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(255,255,255,.06), 0 30px 70px -20px rgba(0,0,0,.55); color: #fff; }
.glass-light::before, .glass-dark::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 38%);
}
.glass-light > *, .glass-dark > * { position: relative; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-light { background: rgba(240, 245, 251, .94); }
  .glass-dark { background: rgba(11, 19, 43, .86); }
}

/* ---------- Typografie ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.005em; line-height: 1.06; margin: 0; font-variant-numeric: lining-nums; }
h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); }
h2 { font-size: clamp(2.1rem, 3.6vw, 3.5rem); }
h3 { font-size: 1.75rem; line-height: 1.15; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.2rem); color: var(--slate); line-height: 1.55; max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.prose { max-width: 42em; color: var(--slate); }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: .8em 1.5em; border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .975rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}
.btn:active { transform: scale(.98); }
.btn-gold, .btn-ink { background: var(--ink); color: var(--ice); }
.btn-gold:hover, .btn-ink:hover { background: var(--ink-2); color: #fff; }
.btn-ice { background: var(--ice); color: var(--ink); }
.btn-ice:hover { background: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-line-light { border-color: var(--glass-dark-border); color: #fff; background: rgba(255,255,255,.08); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.btn-line-light:hover { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: .5em 1.1em; font-size: .9rem; }
.on-dark .btn-gold, .darkroom .btn-gold, .glass-dark .btn-gold { background: var(--ice); color: var(--ink); }
.on-dark .btn-gold:hover, .darkroom .btn-gold:hover, .glass-dark .btn-gold:hover { background: #fff; color: var(--ink); }
.text-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--steel); text-decoration-thickness: 1.5px; text-underline-offset: .3em; }
.text-link:hover { color: var(--steel-deep); text-decoration-color: var(--steel-deep); }

/* ---------- Kopfbereich: schwebende Glas-Leiste ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; pointer-events: none; }
.header-inner { pointer-events: auto; display: flex; align-items: center; gap: 24px; border-radius: 999px; padding: 10px 10px 10px 26px; }
.brand { display: block; flex: none; line-height: 0; }
.brand img { height: 40px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 11px 16px; text-decoration: none; font-size: .95rem; font-weight: 500; border-radius: 999px; color: var(--ink); transition: background-color .15s; }
.main-nav a:hover { background: rgba(11, 19, 43, .06); }
.main-nav a[aria-current="page"] { background: rgba(11, 19, 43, .08); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { min-height: 48px; padding: 0 22px; font-size: .95rem; }
.login-link { font-size: .9rem; color: var(--slate); text-decoration: none; padding: 10px 8px; display: inline-flex; gap: 6px; align-items: center; }
.login-link:hover { color: var(--ink); }
.login-link .icon { width: 16px; height: 16px; }
.nav-toggle { display: none; background: var(--ink); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 999px; cursor: pointer; place-items: center; }
.nav-toggle .icon { width: 22px; height: 22px; }
@media (max-width: 1120px) { .login-link span { display: none; } }
@media (max-width: 980px) {
  :root { --header-h: 80px; }
  .brand img { height: 32px; }
  .header-inner { padding: 7px 7px 7px 20px; }
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: grid; margin-left: auto; }
}

.mobile-nav { border: 0; padding: 0; margin: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; background: var(--mist); }
.mobile-nav::backdrop { background: rgba(11, 19, 43, .3); }
.mobile-nav-inner { display: flex; flex-direction: column; min-height: 100%; padding: 16px var(--gutter) 32px; }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.mobile-nav-head img { height: 32px; }
.mobile-nav ul { list-style: none; padding: 24px 0; margin: 0; }
.mobile-nav li a { display: block; padding: 14px 0; font-family: var(--serif); font-size: 2rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 12px; }
.mobile-nav-foot { margin-top: auto; color: var(--muted); font-size: .95rem; padding-top: 24px; }

/* ---------- Meldungen ---------- */
.flashes { padding-top: 8px; padding-bottom: 8px; }
.flash { display: flex; gap: 12px; align-items: flex-start; padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--paper); border: 1px solid var(--line); font-size: .95rem; }
.flash-success { border-color: #cfe3d6; background: #eff6f1; }
.flash-error { border-color: #f0cfc8; background: #fbefed; }
.flash-info { border-color: #d6e4f5; background: #eef4fb; }

/* ---------- Hero (Startseite) ---------- */
.has-flash .hero, .has-flash .detail-hero { margin-top: 0; }
.hero { position: relative; margin-top: calc(-1 * var(--header-h)); min-height: min(940px, 100svh); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,19,43,.38) 0%, rgba(11,19,43,0) 26%, rgba(11,19,43,.28) 55%, rgba(11,19,43,.86) 100%); }
.hero-inner { position: relative; width: 100%; padding-top: calc(var(--header-h) + 64px); padding-bottom: 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: 24px; font-size: clamp(2.8rem, 5.6vw, 5.2rem); line-height: 1; }
.hero .lead { color: rgba(255,255,255,.84); margin-bottom: 30px; }
.finder { border-radius: var(--radius); padding: 18px; max-width: 720px; }
.finder-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); }
.segmented label, .segmented a { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span, .segmented a { display: block; padding: 9px 18px; border-radius: 999px; font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.86); text-decoration: none; }
.segmented input:checked + span { background: rgba(255,255,255,.94); color: var(--ink); font-weight: 600; }
.segmented input:focus-visible + span { outline: 2px solid #fff; outline-offset: 1px; }
.segmented a:hover { background: rgba(255,255,255,.12); }
.finder-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.finder .field label { color: rgba(255,255,255,.72); font-size: .78rem; font-weight: 500; }
.finder .field input, .finder .field select { background-color: rgba(255,255,255,.10); border-color: rgba(255,255,255,.24); color: #fff; }
.finder input::placeholder { color: rgba(255,255,255,.6); }
.finder select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.finder select option { color: var(--ink); }
.finder .field input:focus, .finder .field select:focus { border-color: rgba(255,255,255,.7); box-shadow: 0 0 0 3px rgba(226,232,240,.25); }
.finder .btn { min-height: 50px; }

.sheet-card { display: flex; flex-direction: column; gap: 14px; border-radius: var(--radius); padding: 26px; text-decoration: none; color: #fff; }
.sheet-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: .75rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); }
.tag-ice { background: var(--ice); color: var(--ink); border-color: var(--ice); }
.sheet-title { font-family: var(--serif); font-size: 1.85rem; line-height: 1.12; font-weight: 500; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sheet-meta { margin: 0; font-size: .875rem; color: rgba(255,255,255,.72); }
.sheet-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.22); padding-top: 16px; }
.sheet-figures > div + div { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.16); }
.figure-num { white-space: nowrap; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums; }
.figure-label { font-size: .75rem; color: var(--muted); margin-top: 6px; }
.glass-dark .figure-label { color: rgba(255,255,255,.66); }
.hero-plain { min-height: 640px; }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .finder-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder-fields .btn { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .hero { min-height: 0; }
  .hero-inner { padding-top: calc(var(--header-h) + 140px); padding-bottom: 24px; }
  .hero h1 { font-size: 3rem; }
  .finder { padding: 14px; }
  .finder-fields { grid-template-columns: 1fr; }
  .segmented span, .segmented a { padding: 9px 14px; }
  .sheet-figures .figure-num { font-size: 1.35rem; }
}

/* ---------- Abschnitte ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-mist { background: var(--mist); }
.section-white { background: var(--paper); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { max-width: 18ch; }
.section-head p { margin: 12px 0 0; color: var(--muted); max-width: 36em; }

/* ---------- Objektkarten ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); isolation: isolate; }
.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--mist-2); overflow: hidden; }
.card-media > img { width: 100%; height: 100%; object-fit: cover; }
.card-media .no-photo { position: absolute; inset: 0; display: grid; place-items: center; }
.card-media .no-photo img { width: 64px; height: auto; opacity: .3; }
.badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--glass-light-bg); border: 1px solid var(--glass-light-border); color: var(--ink); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.badge-ink { background: var(--glass-dark-bg); border-color: var(--glass-dark-border); color: #fff; }
.badge-gold { background: var(--ice); border-color: var(--ice); color: var(--ink); }
.badge .icon { width: 13px; height: 13px; }
.price-bar { position: absolute; left: 14px; right: 14px; bottom: 14px; border-radius: var(--radius-md); padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; z-index: 1; }
.price-bar strong { font-family: var(--serif); font-size: 1.65rem; font-weight: 600; line-height: 1.1; font-variant-numeric: lining-nums; }
.price-bar span { font-size: .8rem; color: rgba(255,255,255,.76); white-space: nowrap; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.card-meta { font-size: .85rem; color: var(--muted); margin: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.card-meta .icon { width: 15px; height: 15px; }
.card-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; line-height: 1.15; margin: 0 0 14px; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card-price { display: none; }
.card-facts { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; color: var(--slate); padding-top: 14px; margin: auto 0 0; border-top: 1px solid var(--line); }
.card-facts span { display: inline-flex; align-items: center; gap: 6px; }
.card-facts .icon { width: 17px; height: 17px; color: var(--steel-deep); }
.card-cta { margin-top: 16px; font-weight: 600; font-size: .95rem; color: var(--ink); }

.empty-state { padding: 44px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 38em; }

/* ---------- Leistungen auf weichgezeichnetem Foto ---------- */
.frosted { position: relative; overflow: hidden; overflow: clip; background: #2a3a55; }
.frosted-bg { position: absolute; inset: -60px; }
.frosted-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(40px) saturate(120%); opacity: .8; }
.frosted::after { content: ""; position: absolute; inset: 0; background: rgba(241, 245, 249, .55); }
.frosted > .wrap { position: relative; z-index: 1; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }
.split-intro h2 { margin-bottom: 20px; }
.split-intro .lead { color: var(--slate); }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }
.service { border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.service .icon { width: 30px; height: 30px; color: var(--steel-deep); }
.service h3 { font-size: 1.9rem; }
.service p { color: var(--slate); margin: 0; font-size: .97rem; line-height: 1.55; }
.service .service-more { margin-top: auto; padding-top: 6px; }

/* ---------- Ablauf (Wertermittlung) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; padding: 26px; background: var(--paper); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 2.6rem; font-weight: 500; line-height: 1; display: block; margin-bottom: 14px; color: var(--steel); font-variant-numeric: lining-nums; }
.steps h3 { font-size: 1.45rem; margin-bottom: 6px; }
.steps p { color: var(--slate); margin: 0; font-size: .975rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.valuation-band { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.valuation-band .btn { margin-top: 10px; }
@media (max-width: 1000px) { .valuation-band { grid-template-columns: 1fr; } }

/* ---------- Off-Market (dunkler Raum) ---------- */
.darkroom { background: var(--ink); color: var(--ice); position: relative; overflow: hidden; overflow: clip; }
.darkroom-glow { position: absolute; right: -140px; top: -80px; width: 760px; height: 760px; border-radius: 50%; overflow: hidden; opacity: .45; pointer-events: none; }
.darkroom-glow img { width: 100%; height: 100%; object-fit: cover; filter: blur(50px); }
.darkroom > .wrap { position: relative; }
.darkroom h1, .darkroom h2, .darkroom h3 { color: #fff; }
.darkroom .lead, .darkroom .muted { color: var(--steel); }
.darkroom-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .darkroom-grid { grid-template-columns: 1fr; } }
.darkroom h2 { max-width: 13ch; margin-bottom: 22px; }
.darkroom .btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.vault { border-radius: 32px; padding: 34px; }
.vault-count { font-family: var(--serif); font-size: 6rem; line-height: .9; color: var(--steel); font-weight: 500; font-variant-numeric: lining-nums; }
.vault ul { list-style: none; padding: 0; margin: 18px 0 0; }
.vault li { display: flex; gap: 10px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .95rem; color: #fff; }
.vault li .icon { color: var(--steel); margin-top: 2px; }
.teasers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
@media (max-width: 900px) { .teasers { grid-template-columns: 1fr; } }
.teaser { border-radius: var(--radius); padding: 26px; }
.teaser-lock { display: inline-flex; gap: 8px; align-items: center; color: var(--ice); font-size: .85rem; font-weight: 600; margin-bottom: 16px; }
.teaser h3 { color: #fff; font-size: 1.6rem; margin-bottom: 6px; }
.teaser dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 18px 0 0; font-size: .925rem; }
.teaser dt { color: var(--steel); }
.teaser dd { margin: 0; color: #fff; }
.teaser .veil { display: inline-block; filter: blur(5px); user-select: none; }

/* ---------- Kundenstimmen ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.quote { margin: 0; padding: 30px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.quote blockquote { margin: 0 0 20px; font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; font-style: italic; }
.quote figcaption { display: flex; align-items: center; gap: 14px; font-size: .925rem; }
.quote figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote figcaption span { display: block; color: var(--muted); }

/* ---------- Ansprechpartner ---------- */
.person { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .person { grid-template-columns: 1fr; } }
.person-photo { position: relative; aspect-ratio: 4 / 5; max-height: 680px; border-radius: 32px; overflow: hidden; background: var(--mist-2); display: grid; place-items: center; }
.person-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.person-photo .monogram { width: 46%; height: auto; object-fit: contain; opacity: .85; }
.person-card { position: absolute; left: 18px; right: 18px; bottom: 18px; border-radius: 24px; padding: 18px 20px 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.person-card strong { display: block; font-family: var(--serif); font-size: 1.75rem; font-weight: 500; line-height: 1.1; }
.person-card span { font-size: .875rem; color: var(--slate); }
.round-btn { width: 52px; height: 52px; flex: none; border-radius: 999px; background: var(--ink); color: var(--ice); display: grid; place-items: center; }
.round-btn .icon { width: 22px; height: 22px; }
.round-btn:hover { background: var(--ink-2); }
.person h2 { margin-bottom: 16px; }
.person-role { color: var(--muted); margin-bottom: 24px; }
.contact-lines { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line); }
.contact-lines li { display: flex; gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.contact-lines a { text-decoration: none; font-weight: 500; }
.contact-lines a:hover { color: var(--steel-deep); }
.contact-lines .icon { color: var(--steel-deep); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-head { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); }
.page-head h1 { font-size: clamp(2.5rem, 4.6vw, 4rem); max-width: 20ch; }
.page-head .lead { margin-top: 18px; }
.breadcrumb { font-size: .875rem; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Filter ---------- */
.filterbar { padding: 0 0 8px; }
.filterbar > .wrap > * { position: relative; }
.filter-box { border-radius: var(--radius); padding: 18px 20px; background: var(--paper); box-shadow: var(--shadow); }
.filter-form { display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.filter-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--slate); background: var(--paper); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-form .segmented { background: var(--mist); border-color: var(--line); align-self: end; margin-bottom: 1px; }
.filter-form .segmented span { color: var(--slate); }
.filter-form .segmented input:checked + span { background: var(--ink); color: #fff; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 0 22px; flex-wrap: wrap; }
.results-bar strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; }
.results-bar select { width: auto; min-height: 44px; }
@media (max-width: 1000px) { .filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filter-form .segmented { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 520px) { .filter-form { grid-template-columns: 1fr; } }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--muted); font-weight: 400; }
input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; background: rgba(255,255,255,.85); border: 1px solid #d3dce7; border-radius: var(--radius-sm);
  font-size: 1rem; line-height: 1.4; transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b132b' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--steel-deep); box-shadow: 0 0 0 3px rgba(148, 163, 184, .35); }
.is-invalid input, .is-invalid select, .is-invalid textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; margin: 2px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--slate); line-height: 1.45; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.check a { text-decoration: underline; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-stack { display: grid; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .8rem; color: var(--muted); }
.form-panel { background: var(--paper); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.success-panel { padding: 32px; border-radius: var(--radius); background: #eef6f1; border: 1px solid #cfe3d6; }
.success-panel h2, .success-panel h3 { margin-bottom: 10px; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; margin-bottom: 14px; padding: 0; }

/* ---------- Detailseite ---------- */
.detail-hero { position: relative; margin-top: calc(-1 * var(--header-h)); height: clamp(420px, 56vw, 660px); background: var(--ink); overflow: hidden; }
.detail-hero > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.detail-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11,19,43,.38) 0%, rgba(11,19,43,0) 26%, rgba(11,19,43,0) 60%, rgba(11,19,43,.55) 100%); }
.detail-hero-bar { position: absolute; left: 0; right: 0; bottom: 92px; z-index: 1; }
.detail-hero-bar .wrap { display: flex; justify-content: flex-start; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-hero-bar { z-index: 4; }
.detail-hero .badges { position: static; }
.gallery-all { border-radius: 999px; padding: 12px 20px; font-size: .9rem; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; cursor: pointer; border: 0; }
.detail-hero.is-empty { height: 300px; display: grid; place-items: center; color: var(--steel); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (max-width: 1040px) { .detail-layout { grid-template-columns: 1fr; } }
.facts-bar { position: relative; z-index: 2; margin-top: -64px; margin-bottom: 40px; border-radius: var(--radius); padding: 24px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); background: rgba(236, 243, 251, .84); }
.facts-bar > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.facts-bar .figure-num { font-size: clamp(1.6rem, 2.3vw, 2.1rem); }
.facts-bar .figure-label { font-size: .82rem; }
@media (max-width: 560px) { .facts-bar { grid-template-columns: 1fr 1fr; gap: 16px 0; padding: 20px; } .facts-bar > div + div { border-left: 0; padding-left: 0; } .facts-bar > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); } }
.detail-head { margin-bottom: 28px; }
.detail-head h1 { font-size: clamp(2.1rem, 3.8vw, 3.3rem); max-width: 26ch; margin-top: 10px; }
.detail-loc { display: flex; align-items: center; gap: 8px; color: var(--muted); flex-wrap: wrap; margin: 0; font-size: .95rem; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 44px; }
.thumbs button { position: relative; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; background: var(--mist-2); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.thumbs button:hover img { transform: scale(1.05); }
.thumbs .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11,19,43,.5); color: #fff; font-weight: 600; }
.detail-section { padding: 30px; margin-bottom: 18px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.detail-section h2 { font-size: clamp(1.8rem, 2.6vw, 2.2rem); margin-bottom: 18px; }
.detail-summary { font-size: 1.2rem; line-height: 1.6; color: var(--slate); margin: 0 0 32px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; color: var(--slate); }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--steel-deep); margin-top: 3px; width: 18px; height: 18px; }
@media (max-width: 600px) { .checklist { grid-template-columns: 1fr; } }
.datatable { width: 100%; border-collapse: collapse; }
.datatable th, .datatable td { text-align: left; padding: 12px 0; border-top: 1px solid var(--line); vertical-align: top; font-weight: 400; }
.datatable th { color: var(--muted); width: 50%; padding-right: 20px; }
.datatable td { font-weight: 600; font-variant-numeric: tabular-nums; }
.energy-scale { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; margin: 4px 0 20px; max-width: 520px; }
.energy-scale span { text-align: center; font-size: .72rem; font-weight: 700; padding: 6px 0; color: rgba(0,0,0,.65); }
.energy-scale span:first-child { border-radius: 8px 0 0 8px; }
.energy-scale span:last-child { border-radius: 0 8px 8px 0; }
.energy-scale span.is-active { outline: 2px solid var(--ink); outline-offset: 2px; color: #000; border-radius: 4px; }
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.docs a { font-weight: 600; text-decoration: none; }
.docs a:hover { text-decoration: underline; }
.docs .icon { color: var(--steel-deep); }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 8px); z-index: 3; margin-top: -220px; }
@media (max-width: 1040px) { .aside-sticky { position: static; margin-top: 0; } }
.contact-card { border-radius: 32px; padding: 26px; background: rgba(236, 243, 251, .74); }
.contact-person { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid rgba(11,19,43,.1); }
.contact-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: var(--mist); }
.contact-person .mono { width: 56px; height: 56px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; }
.contact-person .mono img { width: 32px; height: auto; border-radius: 0; background: none; }
.contact-person strong { display: block; font-size: 1.05rem; font-weight: 600; }
.contact-person a { font-size: .925rem; color: var(--slate); text-decoration: none; }
.contact-person a:hover { color: var(--ink); }
.contact-card h2 { font-size: 2rem; margin-bottom: 4px; }
.contact-card .form-stack { gap: 12px; }
.contact-card input, .contact-card textarea { background: rgba(255,255,255,.72); border-color: rgba(11,19,43,.14); }
.share { display: flex; align-items: center; gap: 6px; margin-top: 16px; flex-wrap: wrap; font-size: .875rem; color: var(--muted); padding: 0 6px; }
.share a, .share button { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none; }
.share a:hover, .share button:hover { border-color: var(--ink); }
.share .icon { width: 18px; height: 18px; }
.share-label { margin-right: 6px; }
.share-feedback { font-size: .8rem; color: var(--success); }

/* Lightbox */
.lightbox { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: #070d1e; color: #fff; }
.lightbox::backdrop { background: rgba(7, 13, 30, .92); }
.lightbox-inner { position: relative; height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; font-size: .9rem; }
.lightbox-stage { display: grid; place-items: center; min-height: 0; padding: 0 76px; }
.lightbox-stage img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 12px; }
.lb-btn { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lightbox-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 20px 18px; justify-content: center; }
.lightbox-thumbs button { flex: none; width: 76px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; opacity: .55; }
.lightbox-thumbs button[aria-current="true"] { border-color: var(--ice); opacity: 1; }
.lightbox-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .lightbox-stage { padding: 0 8px; } .lb-prev, .lb-next { top: auto; bottom: 96px; transform: none; } }

/* ---------- Inhalt/Seiten ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.benefits { list-style: none; padding: 0; margin: 24px 0 0; }
.benefits li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.benefits li:last-child { border-bottom: 1px solid var(--line); }
.benefits .icon { color: var(--steel-deep); width: 24px; height: 24px; margin-top: 2px; }
.benefits strong { display: block; margin-bottom: 2px; }
.benefits span { color: var(--slate); font-size: .95rem; }
.legal { max-width: 46em; background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.legal h2 { font-size: 1.9rem; margin: 36px 0 12px; }
.legal h2:first-of-type { margin-top: 12px; }
.legal h3 { font-size: 1.4rem; margin: 26px 0 10px; }
.legal p, .legal li { color: var(--slate); }
.legal .placeholder { background: #eef4fb; border: 1px solid #d6e4f5; padding: 14px 18px; border-radius: var(--radius-sm); font-size: .95rem; }
.error-page { padding: clamp(72px, 12vw, 150px) 0; }
.error-page .code { font-family: var(--serif); font-size: 6rem; color: var(--steel); line-height: 1; margin-bottom: 12px; font-variant-numeric: lining-nums; }

/* ---------- Fußbereich ---------- */
.site-footer { background: var(--mist-2); border-top: 1px solid var(--line); padding: 64px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.4fr)); gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 230px; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 28em; }
.site-footer h2 { font-family: var(--sans); font-size: .95rem; font-weight: 600; margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { text-decoration: none; color: var(--slate); }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--steel); }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; background: var(--paper); }
.socials a:hover { border-color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ==========================================================================
   Bewegung & Animationen
   – Kacheln heben sich beim Überfahren an, neigen sich leicht zur Maus und
     bekommen einen Lichtreflex, der dem Mauszeiger folgt (Werte aus site.js)
   – Inhalte gleiten beim Scrollen sanft ein, Kennzahlen zählen hoch
   – Wer in den Systemeinstellungen „Bewegung reduzieren“ aktiviert hat,
     sieht alles ohne Animation (Regel ganz unten)
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.45, .55, 1);
}

/* ---------- Kacheln: gemeinsame Basis ---------- */
/* Die Kachel wächst nach oben (Unterkante bleibt stehen). So verlässt die Maus
   die Kachel beim Anheben nie – kein Flackern am Rand. Nur 2D-Bewegung, weil
   Safari Glasflächen (backdrop-filter) bei 3D-Drehung falsch darstellt. */
.card, .service, .steps li, .teaser, .quote, .sheet-card {
  --s: 1;
  position: relative;
  transform-origin: 50% 100%;
  transform: scale(var(--s));
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out), background-color .4s, border-color .4s;
}
/* Lichtreflex, folgt der Maus */
.card::after, .service::after, .steps li::after, .teaser::after, .quote::after, .sheet-card::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), var(--spot, rgba(255, 255, 255, .26)), transparent 46%);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.steps li, .quote { --spot: rgba(148, 163, 184, .2); }
/* bei Text-Kacheln liegt der Reflex hinter dem Inhalt, damit die Schrift klar bleibt */
.service::after, .steps li::after, .teaser::after, .quote::after, .sheet-card::after { z-index: 0; }
.service > *, .steps li > *, .teaser > *, .quote > *, .sheet-card > * { position: relative; z-index: 1; }
.teaser, .sheet-card { --spot: rgba(226, 232, 240, .2); }

/* Objektkarte: Pfeil-Knopf, Bild, Preisleiste */
.card-go {
  position: absolute; top: 14px; right: 14px; z-index: 1; width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center; color: var(--ink);
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: 0 10px 24px -12px rgba(11, 19, 43, .5);
  opacity: 0; transform: scale(.4) rotate(-120deg);
  transition: opacity .35s var(--ease-out), transform .6s var(--ease-spring);
}
.card-go .icon { width: 20px; height: 20px; }
.card-media > img { transition: transform 1.4s var(--ease-out), opacity .8s ease; }
.price-bar { transition: transform .6s var(--ease-out), background-color .4s; }
.badges { transition: transform .6s var(--ease-out); }
.card-title { transition: color .3s; }
.card-facts .icon { transition: transform .5s var(--ease-spring); }

.service .icon { transition: transform .6s var(--ease-spring); }
/* Leistungs-Kachel: ganze Fläche ist klickbar (Link wird über die Kachel gezogen) */
.service > .service-more { position: static; }
.service-more .text-link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.service:has(.text-link:focus-visible) { outline: 2px solid var(--steel-deep); outline-offset: 4px; }
.service .text-link:focus-visible { outline: none; }
.steps li::before { transition: color .4s, transform .6s var(--ease-spring); }
.teaser .veil { transition: filter .6s var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .card:hover, .service:hover, .steps li:hover, .teaser:hover, .quote:hover { --s: 1.025; }
  .sheet-card:hover { --s: 1.015; }
  .card:hover::after, .service:hover::after, .steps li:hover::after, .teaser:hover::after, .quote:hover::after, .sheet-card:hover::after { opacity: 1; }

  .card:hover { box-shadow: 0 2px 4px rgba(11, 19, 43, .06), 0 44px 70px -30px rgba(11, 19, 43, .55); }
  .card:hover .card-media > img { transform: scale(1.08); }
  .card:hover .price-bar { transform: translateY(-4px); background-color: rgba(11, 19, 43, .58); }
  .card:hover .badges { transform: translateY(2px); }
  .card:hover .card-go { opacity: 1; transform: scale(1) rotate(-45deg); }
  .card:hover .card-title { color: var(--steel-deep); }
  .card:hover .card-facts span:nth-child(1) .icon { transform: translateY(-2px); transition-delay: .05s; }
  .card:hover .card-facts span:nth-child(2) .icon { transform: translateY(-2px); transition-delay: .1s; }
  .card:hover .card-facts span:nth-child(3) .icon { transform: translateY(-2px); transition-delay: .15s; }

  .service:hover { background-color: rgba(240, 246, 253, .78); box-shadow: inset 0 1px 0 #fff, 0 40px 70px -26px rgba(11, 19, 43, .42); }
  .service:hover .icon { transform: translateY(-4px) scale(1.14) rotate(-8deg); }
  .service:not(:has(a)):hover { --s: 1; }

  .steps li:hover { box-shadow: var(--shadow-lift); }
  .steps li:hover::before { color: var(--ink); transform: translateX(6px); }

  .teaser:hover { border-color: rgba(148, 180, 214, .6); }
  .teaser:hover .teaser-lock .icon { animation: wiggle .7s var(--ease-out); }
  .teaser:hover .veil { filter: blur(3.5px); }

  .quote:hover { box-shadow: var(--shadow-lift); }
  .sheet-card:hover { border-color: rgba(190, 210, 235, .55); }
}
/* Touch: kurzes Eindrücken als Rückmeldung */
@media (hover: none) {
  .card:active, .service:active, .sheet-card:active { --s: .985; transform-origin: 50% 50%; transition-duration: .2s; }
}

/* ---------- Buttons & Links ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: background-color .25s, border-color .25s, color .25s, box-shadow .35s var(--ease-out), transform .35s var(--ease-out); }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 50%; pointer-events: none; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32), transparent);
  transform: skewX(-20deg); opacity: 0;
}
.btn .icon { transition: transform .45s var(--ease-spring); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(11, 19, 43, .5); }
  .btn:hover::after { animation: sheen .9s var(--ease-out); }
  .btn:hover .icon { transform: scale(1.12) rotate(-8deg); }
}
.btn:active { transform: translateY(0) scale(.98); }

.text-link {
  text-decoration: none; padding-bottom: 2px;
  background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--steel), var(--steel));
  background-size: 0% 1.5px, 100% 1.5px; background-position: 0 100%, 0 100%; background-repeat: no-repeat;
  transition: background-size .5s var(--ease-out), color .25s;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.text-link:hover { background-size: 100% 1.5px, 100% 1.5px; }

.main-nav a { transition: background-color .25s, color .25s, transform .35s var(--ease-out); }
.main-nav a:hover { transform: translateY(-1px); }
.chip, .socials a, .share a, .share button, .lb-btn { transition: border-color .2s, background-color .2s, color .2s, transform .45s var(--ease-spring); }
@media (hover: hover) and (pointer: fine) {
  .chip:hover { transform: translateY(-2px); }
  .socials a:hover, .share a:hover, .share button:hover { transform: translateY(-3px); }
  .lb-btn:hover { transform: scale(1.08); }
  .lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }
}
.field label { transition: color .25s; }
.field:focus-within label { color: var(--steel-deep); }
.finder .field:focus-within label { color: #fff; }

/* Anruf-Knopf am Porträt: sanfter Puls */
.round-btn { position: relative; transition: background-color .2s, transform .45s var(--ease-spring); }
.round-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--ink); opacity: 0; pointer-events: none; animation: ring 3.2s ease-out 1.5s infinite; }
.round-btn:hover { transform: scale(1.08); }
.round-btn:hover .icon { animation: wiggle .6s var(--ease-out); }

/* ---------- Kopfleiste: wird beim Scrollen kompakter ---------- */
.header-inner { transition: padding .45s var(--ease-out), box-shadow .45s, background-color .45s; }
.brand img { transition: height .45s var(--ease-out); }
.site-header.is-scrolled .header-inner { background-color: rgba(236, 243, 251, .76); box-shadow: inset 0 1px 0 #fff, 0 18px 44px -16px rgba(11, 19, 43, .42); padding-top: 7px; padding-bottom: 7px; }
.site-header.is-scrolled .brand img { height: 34px; }
@media (max-width: 980px) { .site-header.is-scrolled .brand img { height: 28px; } }

/* ---------- Startbild & Detailbild ---------- */
.hero-media img, .detail-hero > img { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.hero-media img, .detail-hero > img { animation: settle 2.8s var(--ease-out) backwards; }
.hero-enter > * { animation: rise 1s var(--ease-out) backwards; }
.hero-enter > *:nth-child(1) { animation-delay: .15s; }
.hero-enter > *:nth-child(2) { animation-delay: .27s; }
.hero-enter > *:nth-child(3) { animation-delay: .39s; }
.sheet-card { animation: rise-soft 1.1s .55s var(--ease-out) backwards; }
.detail-hero-bar { animation: rise 1s .3s var(--ease-out) backwards; }
.facts-bar { animation: rise 1s .2s var(--ease-out) backwards; }
.detail-head { animation: rise 1s .32s var(--ease-out) backwards; }
.aside-sticky { animation: rise 1s .42s var(--ease-out) backwards; }
.page-head .wrap > * { animation: rise .9s var(--ease-out) backwards; }
.page-head .wrap > *:nth-child(2) { animation-delay: .08s; }
.page-head .wrap > *:nth-child(3) { animation-delay: .16s; }
.page-head .wrap > *:nth-child(4) { animation-delay: .24s; }
.filter-box { animation: rise 1s .2s var(--ease-out) backwards; }

.thumbs img { transition: transform .6s var(--ease-out), opacity .8s ease; }
.quote img { transition: opacity .8s ease; }
.person-photo > img { transition: transform 1.6s var(--ease-out), opacity .8s ease; }
@media (hover: hover) and (pointer: fine) { .person-photo:hover > img { transform: scale(1.03); } }

/* Ruhige Bewegung hinter Glasflächen */
.darkroom-glow { animation: drift 20s ease-in-out infinite alternate; }

/* ---------- Beim Scrollen einblenden (Klasse setzt site.js) ---------- */
.reveal:not(.is-in) { opacity: 0; }
.reveal.is-in { animation: reveal 1.05s var(--ease-out) var(--d, 0s) backwards; }

/* Fotos weich einblenden, sobald geladen */
img.img-wait { opacity: 0; }

/* ---------- Mobiles Menü & Lightbox ---------- */
.mobile-nav[open] { animation: fade .3s ease; }
.mobile-nav[open] li { animation: rise .6s var(--ease-out) backwards; }
.mobile-nav[open] li:nth-child(1) { animation-delay: .05s; }
.mobile-nav[open] li:nth-child(2) { animation-delay: .1s; }
.mobile-nav[open] li:nth-child(3) { animation-delay: .15s; }
.mobile-nav[open] li:nth-child(4) { animation-delay: .2s; }
.mobile-nav[open] li:nth-child(5) { animation-delay: .25s; }
.mobile-nav[open] li:nth-child(6) { animation-delay: .3s; }
.lightbox[open] { animation: fade .35s ease; }
.lightbox-stage img.is-swap { animation: swap .5s var(--ease-out); }

/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise-soft { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(36px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes settle { from { scale: 1.12; } to { scale: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes swap { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sheen { 0% { left: -70%; opacity: 1; } 100% { left: 130%; opacity: 1; } }
@keyframes ring { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 45% { transform: rotate(10deg); } 70% { transform: rotate(-5deg); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-70px, 50px) scale(1.1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .reveal { opacity: 1 !important; animation: none !important; }
  .site-header, .site-footer, .aside-sticky, .share, .gallery-all { display: none !important; }
}
