/* =========================================================================
   SV Lilie – Immobilienbewertung
   Basis-Stylesheet. System-Schriften, keine externen Ressourcen.
   Bewegung: kurz, ruhig, unterbrechbar. Tiefe statt Rahmen.
   ========================================================================= */

:root {
  color-scheme: light;

  /* Farben – Tinte & Neutraltöne */
  --ink:        #142c3a;
  --ink-700:    #22475b;
  --ink-600:    #2f5b71;
  --muted:      #566773;
  --muted-soft: #7f8d97;
  --line:       #e8e2d8;
  --line-strong:#d8cdbd;

  /* Flächen */
  --paper:   #fcfaf6;
  --surface: #ffffff;
  --soft:    #f3eee5;
  --soft-2:  #ebe2d4;

  /* Akzent – das Bronze, plus dunkle Lesevariante */
  --accent:      #b29463;
  --accent-soft: #d6bf98;
  --accent-deep: #806437;
  --accent-ink:  #142c3a;
  --serif-accent:#806437;
  --accent-glow: rgba(178,148,99,.16);
  --hero-glow:   rgba(178,148,99,.24);

  /* Primärer Button – eigenes Paar, damit er im Dark Mode invertiert
     (helle Fläche, dunkle Schrift) statt unlesbar zu werden */
  --btn-bg:       #142c3a;
  --btn-bg-hover: #22475b;
  --btn-text:     #ffffff;

  /* Bewusst dunkle Panels (Ablauf, Kontakt, Ergebnis-Kacheln) –
     eigene Tokens, damit sie im Dark Mode als abgesetzte Region lesbar bleiben */
  --panel:          #142c3a;
  --panel-2:        #1b3b4d;
  --panel-text:     #ffffff;
  --panel-text-dim: #c7d7df;
  --panel-line:     rgba(255,255,255,.25);
  --panel-field:    rgba(255,255,255,.08);
  --panel-field-bd: rgba(255,255,255,.28);

  /* Durchscheinende Materialschichten */
  --header-bg:        rgba(252,250,246,.7);
  --header-bg-scroll: rgba(252,250,246,.86);
  --glass-bg:         rgba(255,255,255,.9);
  --footer-bg:        #f3eee5;

  /* Radien – der grösste Modernisierer */
  --r-xs:  8px;
  --r-sm:  12px;
  --r-md:  18px;
  --r-lg:  26px;
  --r-pill:999px;

  /* Tiefe – geschichtet, leicht getönt; Lichtkante fängt das Licht oben */
  --shadow-sm: 0 1px 2px rgba(20,44,58,.05), 0 3px 10px rgba(20,44,58,.05);
  --shadow-md: 0 6px 16px rgba(20,44,58,.06), 0 18px 44px rgba(20,44,58,.10);
  --shadow-lg: 0 12px 28px rgba(20,44,58,.10), 0 36px 80px rgba(20,44,58,.16);
  --edge-highlight: inset 0 1px 0 rgba(255,255,255,.65);

  /* Bewegung */
  --ease-out:    cubic-bezier(.16,.84,.34,1);
  --ease-in-out: cubic-bezier(.62,.04,.3,1);
  --ease-spring: cubic-bezier(.22,1.14,.36,1);
  --dur-1: .16s;
  --dur-2: .24s;
  --dur-3: .42s;

  /* Schrift – die Plattform-UI-Familie, mit optischer Grösse & Kerning */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
               "Helvetica Neue", "Arial", sans-serif;
  --font-serif:"New York", ui-serif, "Iowan Old Style", "Palatino Linotype",
               "Palatino", "Georgia", serif;

  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

/* -------------------------------------------------------------------------
   Dunkles Farbschema – gleiche Ruhe, invertierte Tinte.
   Folgt der System-Einstellung; kein Umschalter, kein Flackern.
   ------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --ink:        #e9eff1;
    --ink-700:    #cfdbdf;
    --ink-600:    #b6c6cc;
    --muted:      #93a4ac;
    --muted-soft: #6d818a;
    --line:       rgba(255,255,255,.11);
    --line-strong:rgba(255,255,255,.2);

    --paper:   #0f1a1f;
    --soft:    #142128;
    --soft-2:  #182731;
    --surface: #1b2b34;

    /* Bronze trägt jetzt Text auf dunklem Grund – hell statt oliv */
    --accent:      #d6bf98;
    --accent-soft: #e6d5b9;
    --accent-deep: #d6bf98;
    --accent-ink:  #142c3a;
    --serif-accent:#d6bf98;
    --accent-glow: rgba(214,191,152,.14);
    --hero-glow:   rgba(178,148,99,.12);

    /* Panels: knapp über dem Seitengrund, mit Lichtkante abgesetzt */
    --panel:          #16252d;
    --panel-2:        #1e333d;
    --panel-text:     #eef4f5;
    --panel-text-dim: #a9bcc4;
    --panel-line:     rgba(255,255,255,.16);
    --panel-field:    rgba(255,255,255,.06);
    --panel-field-bd: rgba(255,255,255,.2);

    --header-bg:        rgba(15,26,31,.68);
    --header-bg-scroll: rgba(15,26,31,.86);
    --glass-bg:         rgba(21,33,40,.9);
    --footer-bg:        #121d23;

    /* Glas-Chips auf Fotos: im Dark Mode dunkles Glas statt heller Fleck */
    --chip-bg:       rgba(16,25,30,.62);
    --chip-text:     #eef4f5;
    --chip-text-dim: #a9bcc4;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.32), 0 3px 12px rgba(0,0,0,.34);
    --shadow-md: 0 8px 20px rgba(0,0,0,.4), 0 22px 50px rgba(0,0,0,.46);
    --shadow-lg: 0 14px 34px rgba(0,0,0,.48), 0 42px 90px rgba(0,0,0,.56);
    --edge-highlight: inset 0 1px 0 rgba(255,255,255,.07);

    --btn-bg:       #eaf0f2;
    --btn-bg-hover: #ffffff;
    --btn-text:     #12222a;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

/* Seitenwechsel als ruhige Überblendung – Kopf/Fuss sind deckungsgleich,
   also bewegt sich dort nichts. Fortschrittliche Browser; sonst harter Wechsel. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .26s;
  animation-timing-function: var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}

figure { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button { touch-action: manipulation; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }

a {
  color: inherit;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

p:last-child { margin-bottom: 0; }

/* Fokus – ein ruhiger, runder Ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2.5px solid var(--ink-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */
.wrap { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }

.skip {
  position: fixed; top: -100px; left: 20px; z-index: 100;
  padding: 12px 20px; background: var(--accent); color: var(--accent-ink);
  border-radius: var(--r-xs); font-weight: 600;
  transition: top var(--dur-2) var(--ease-out);
}
.skip:focus { top: 12px; }

/* -------------------------------------------------------------------------
   Kopfzeile – durchscheinende Materialschicht, weiche Scroll-Kante
   ------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  transition: background var(--dur-2) var(--ease-out);
}
/* Weiche Scroll-Kante statt harter Trennlinie – nur sichtbar, wenn Inhalt darunter liegt */
.header::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 24px;
  background: linear-gradient(rgba(20,44,58,.07), transparent);
  opacity: 0; transition: opacity var(--dur-2) var(--ease-out);
  pointer-events: none;
}
.header.is-scrolled { background: var(--header-bg-scroll); }
.header.is-scrolled::after { opacity: 1; }

.nav {
  min-height: 76px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex; gap: 16px; align-items: center;
  text-decoration: none; font-size: 1rem; font-weight: 600; line-height: 1.3;
}
.brand small {
  display: block; font-size: .8125rem; font-weight: 400;
  color: var(--muted); margin-top: 3px; letter-spacing: .01em;
}
.monogram {
  font-size: 2.5rem; letter-spacing: -.12em; line-height: 1;
  padding-right: 6px; font-weight: 600;
}
.monogram span { color: var(--accent-deep); }

.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-nav > a {
  font-size: .9375rem; text-decoration: none; color: var(--muted);
  position: relative; padding: 4px 0;
  transition: color var(--dur-2) var(--ease-out);
}
.desktop-nav > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: currentColor; border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
.desktop-nav > a[aria-current="page"] { color: var(--ink); }
.desktop-nav > a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .desktop-nav > a:not(.button):hover { color: var(--ink); }
  .desktop-nav > a:not(.button):hover::after { transform: scaleX(1); }
}

/* Mobiles Menü */
.mobile-menu { display: none; position: relative; }
.mobile-menu > summary {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 9px 18px; min-height: 44px; cursor: pointer;
  font-size: .875rem; font-weight: 500; list-style: none;
  background: var(--surface);
  transition: border-color var(--dur-2) var(--ease-out);
}
.mobile-menu > summary::-webkit-details-marker { display: none; }
.menu-lines {
  width: 16px; height: 8px; border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transition: transform var(--dur-2) var(--ease-out),
              height var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out);
}
.mobile-menu[open] .menu-lines {
  height: 1px; border-bottom-color: transparent; transform: rotate(-45deg);
}
.mobile-menu nav {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: min(300px, 78vw);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg), var(--edge-highlight);
  padding: 10px 20px 16px;
  display: flex; flex-direction: column;
  max-height: calc(100dvh - 130px); overflow-y: auto;
}
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu[open] nav { animation: menuIn .28s var(--ease-out); transform-origin: top right; }
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
}
.mobile-menu nav a {
  display: block; min-height: 48px; padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem; text-decoration: none; color: var(--ink);
}
.mobile-menu nav a:last-child { border-bottom: 0; }

/* -------------------------------------------------------------------------
   Schrift-Hierarchie – Kerning grössenabhängig
   ------------------------------------------------------------------------- */
h1, h2, h3, p { margin-top: 0; }

/* Kerning grössenabhängig: grosse Displaygrade enger, Fliesstext neutral.
   text-wrap: balance glättet den Flattersatz, ohne harte <br> zu erzwingen. */
h1 {
  font-size: clamp(2.8rem, 4.6vw, 4.35rem);
  line-height: 1.035;
  letter-spacing: -0.038em;
  font-weight: 560;
  margin-bottom: 26px;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2.05rem, 3.3vw, 3.2rem);
  line-height: 1.11;
  letter-spacing: -0.032em;
  font-weight: 560;
  margin-bottom: 22px;
  text-wrap: balance;
}
h3 {
  font-size: 1.35rem; line-height: 1.3;
  letter-spacing: -0.02em; font-weight: 560;
  text-wrap: balance;
}
p { text-wrap: pretty; }
h1 em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--serif-accent);
}

.eyebrow {
  font-size: .8125rem; font-weight: 650;
  letter-spacing: .14em; text-transform: uppercase;
  margin: 0 0 22px; color: var(--muted);
}

.lead {
  font-size: 1.15rem; color: var(--muted);
  line-height: 1.75; max-width: 60ch;
}
.muted { color: var(--muted); }

/* -------------------------------------------------------------------------
   Schaltflächen & Textlinks
   ------------------------------------------------------------------------- */
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 18px;
  min-height: 54px; padding: 15px 26px;
  background: var(--btn-bg); color: var(--btn-text);
  font-weight: 600; font-size: .9375rem; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--r-sm);
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform var(--dur-1) var(--ease-out),
              background-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
.button span {
  font-size: 1.15rem; line-height: 1;
  transition: transform var(--dur-2) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--btn-bg-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .button:hover span { transform: translateX(3px); }
}
.button:active { transform: translateY(0) scale(.985); transition-duration: .1s; }
.button.small { min-height: 46px; padding: 11px 20px; gap: 12px; }

.text-link {
  font-size: .9375rem; font-weight: 600; text-decoration: none;
  display: inline-flex; gap: 12px; align-items: center; min-height: 44px;
  color: var(--ink);
}
.text-link span { transition: transform var(--dur-2) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { text-decoration: underline; text-decoration-color: var(--accent-deep); }
  .text-link:hover span { transform: translateX(4px); }
}

.actions {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 32px;
}

/* Druck-Feedback sofort beim Antippen, nicht erst beim Loslassen */
.text-link:active,
.desktop-nav > a:active,
.footer-top > div > a:active,
.footer-bottom a:active,
.contact-phone:active,
.contact-mail:active,
.breadcrumb:active,
.jump-links a:active { opacity: .6; transition: opacity .1s var(--ease-out); }

.faq-item summary:active,
.mobile-menu > summary:active,
.mobile-contact a:active { transform: scale(.985); transition: transform .1s var(--ease-out); }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  display: grid; grid-template-columns: 1.12fr 1fr;
  gap: 60px; align-items: center;
  padding-block: 72px 76px;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: -10% -20% 30% 40%;
  background: radial-gradient(60% 60% at 70% 30%, var(--hero-glow), transparent 70%);
  pointer-events: none; z-index: -1; filter: blur(10px);
}
.hero-copy { min-width: 0; }
.hero-note {
  font-size: .875rem; color: var(--muted); margin-top: 30px;
  display: flex; align-items: center; gap: 10px;
}
.status-dot {
  height: 7px; width: 7px; border-radius: 50%;
  background: var(--accent-deep); flex: none;
  box-shadow: 0 0 0 4px var(--accent-glow);
}
@media (prefers-reduced-motion: no-preference) {
  .status-dot { animation: pulse-dot 2.8s var(--ease-in-out) infinite; }
  @keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px var(--accent-glow); }
    50%      { box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent-glow), transparent 45%); }
  }
}

.hero-visual {
  position: relative; min-height: 500px;
  background: var(--panel);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--edge-highlight);
}
.photo-hero { height: 540px; min-height: 0; align-self: stretch; }
.photo-hero > img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center bottom;
}
.photo-hero:not(.hero-draw)::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,44,58,.05) 0%, transparent 30%, rgba(20,44,58,.32) 100%);
  pointer-events: none;
}

/* -------------------------------------------------------------------------
   Hero: Architekturzeichnung, die sich beim Scrollen aufbaut.
   Standbild (letztes Frame) trägt LCP und Fallback; Canvas legt sich darüber
   und scrubt durch die Frames. Weisser Grund = Papier; im Dark Mode invertiert.
   ------------------------------------------------------------------------- */
.hero-draw { background: #f8f8f8; }
.hero-draw > .hero-poster,
.hero-draw > .hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
}
.hero-draw > .hero-canvas {
  opacity: 0;
  transition: opacity .45s var(--ease-out);
}
.hero-draw.is-ready > .hero-canvas { opacity: 1; }
.hero-draw > .hero-poster { transition: opacity .45s var(--ease-out); }
.hero-draw.is-ready > .hero-poster { opacity: 0; }
.hero-draw .image-badge {
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
}

@media (prefers-color-scheme: dark) {
  .hero-draw {
    background: #080808;
    box-shadow: var(--edge-highlight), 0 0 0 1px rgba(255,255,255,.06),
                0 14px 34px rgba(0,0,0,.5);
  }
  .hero-draw > .hero-canvas,
  .hero-draw > .hero-poster { filter: invert(1); }
  .hero-draw .image-badge {
    background: var(--chip-bg);
    border-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-draw > .hero-canvas { display: none; }
  .hero-draw.is-ready > .hero-poster { opacity: 1; }
}
.photo-hero figcaption {
  position: absolute; bottom: 14px; left: 20px; z-index: 2;
  color: #fff; font-size: .75rem;
  background: rgba(20,44,58,.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 3px 9px; border-radius: var(--r-pill);
}
.image-badge {
  position: absolute; bottom: 22px; left: 20px; right: 20px; z-index: 2;
  display: flex; gap: 16px; align-items: center;
  background: var(--chip-bg, rgba(255,255,255,.82));
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  padding: 18px 20px; border-radius: var(--r-md);
  color: var(--chip-text, var(--ink));
  box-shadow: 0 10px 30px rgba(0,0,0,.22), var(--edge-highlight);
}
.badge-mark {
  font-size: 2.6rem; line-height: 1; font-weight: 560;
  letter-spacing: -.06em; padding-right: 16px;
  border-right: 1px solid var(--line-strong);
}
.image-badge strong { display: block; font-size: 1rem; font-weight: 650; }
.image-badge small {
  display: block; font-size: .8125rem; line-height: 1.5;
  margin-top: 2px; color: var(--muted);
}

/* -------------------------------------------------------------------------
   Kennzahlen-Band
   ------------------------------------------------------------------------- */
.proof { border-block: 1px solid var(--line); background: var(--soft); }
.proof-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding-block: 26px; gap: 4px;
}
.proof-grid > div {
  padding-inline: 32px; border-left: 1px solid var(--line-strong);
}
.proof-grid > div:first-child { padding-left: 0; border-left: 0; }
.proof span, .proof strong { display: block; }
.proof span { font-size: .8125rem; color: var(--muted); margin-bottom: 4px; letter-spacing: .01em; }
.proof strong { font-size: 1.0625rem; font-weight: 560; letter-spacing: -.01em; }

/* -------------------------------------------------------------------------
   Sektionen
   ------------------------------------------------------------------------- */
.section { padding-block: 100px; }
.soft { background: var(--soft); }

.section-heading {
  display: flex; justify-content: space-between; gap: 56px;
  align-items: flex-end; margin-bottom: 44px;
}
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 42ch; color: var(--muted); margin: 0; }
.section-heading > .text-link { flex-shrink: 0; }

/* -------------------------------------------------------------------------
   Leistungs-Karten
   ------------------------------------------------------------------------- */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.service-card {
  padding: 30px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm), var(--edge-highlight);
  display: flex; flex-direction: column;
  transition: transform var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--edge-highlight);
    border-color: var(--line-strong);
  }
  .service-card:hover .text-link span { transform: translateX(4px); }
}
.card-number {
  font-size: .8125rem; letter-spacing: .04em; color: var(--muted);
  margin-bottom: 42px;
}
.service-card h3 { font-size: 1.55rem; margin-bottom: 14px; }
.service-card p { color: var(--muted); margin-bottom: 22px; }
.service-card .text-link {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
}

/* -------------------------------------------------------------------------
   Über-Teaser & Portrait
   ------------------------------------------------------------------------- */
.about-teaser {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: 80px; align-items: center;
}
.about-teaser > div > p:not(.eyebrow):not(.lead) { color: var(--muted); }
.about-teaser .text-link { margin-top: 12px; }

.portrait-card {
  position: relative; margin: 0; background: var(--panel);
  overflow: hidden; min-height: 460px;
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg), var(--edge-highlight);
}
.portrait-card img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.portrait-card figcaption {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  background: var(--chip-bg, rgba(255,255,255,.85));
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  padding: 15px 18px; border-radius: var(--r-sm);
  color: var(--chip-text, var(--ink)); font-size: 1.05rem; font-weight: 650;
  box-shadow: 0 10px 30px rgba(0,0,0,.18), var(--edge-highlight);
}
.portrait-card figcaption span {
  display: block; color: var(--chip-text-dim, var(--muted)); font-size: .8125rem; font-weight: 400;
  margin-top: 2px;
}

/* -------------------------------------------------------------------------
   Ablauf (dunkle Sektion)
   ------------------------------------------------------------------------- */
.process-section {
  background: var(--panel); color: var(--panel-text);
  box-shadow: var(--edge-highlight);
}
.process-section .eyebrow { color: var(--accent); }
.process-section .section-heading > p { color: var(--panel-text-dim); }
.steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 0; margin: 56px 0 0; list-style: none; gap: 26px;
}
.step-number {
  display: block; padding-bottom: 22px;
  border-bottom: 1px solid var(--panel-line);
  font-size: 1rem; color: var(--accent); margin-bottom: 22px;
}
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--panel-text-dim); font-size: .9375rem; }

/* -------------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------------- */
.faq-layout {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 84px;
}
.faq-layout > div:first-child > p:not(.eyebrow) { color: var(--muted); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 24px; min-height: 74px; padding: 20px 0;
  font-size: 1.0625rem; line-height: 1.5; font-weight: 560; cursor: pointer;
  transition: color var(--dur-2) var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) {
  .faq-item summary:hover { color: var(--ink-600); }
}
.faq-item summary > span {
  font-size: 1.5rem; line-height: 1; flex: none; color: var(--accent-deep);
  transition: transform var(--dur-2) var(--ease-out);
}
.faq-item[open] summary > span { transform: rotate(45deg); }
.faq-body { padding: 0 32px 24px 0; color: var(--muted); }
.faq-body p { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-body { animation: faqIn .3s var(--ease-out); }
}
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } }

/* -------------------------------------------------------------------------
   Kontakt (dunkle Sektion) + Formular
   ------------------------------------------------------------------------- */
.contact {
  background: linear-gradient(165deg, var(--panel) 0%, var(--panel-2) 100%);
  color: var(--panel-text);
  box-shadow: var(--edge-highlight);
}
.contact .eyebrow { color: var(--accent); }
.contact p { color: var(--panel-text-dim); }
.contact h2 em { color: var(--accent); }
.contact .button { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) {
  .contact .button:hover { background: var(--accent-soft); }
}
.contact .button:focus-visible { outline-color: var(--accent); }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 84px; }
.contact-grid > div > p:not(.eyebrow) { max-width: 40ch; }

.contact-phone {
  display: flex; width: fit-content; align-items: center; gap: 22px;
  font-size: 1.75rem; letter-spacing: -.03em; margin-top: 32px;
  text-decoration: none;
}
.contact-phone span { transition: transform var(--dur-2) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .contact-phone:hover span { transform: translateX(4px); }
}
.contact-mail { display: block; width: fit-content; margin-top: 10px; color: var(--panel-text-dim); }

.contact-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 44px; font-size: .875rem; color: var(--panel-text-dim);
}
.contact-meta span {
  display: block; color: color-mix(in oklab, var(--panel-text-dim), transparent 25%);
  font-size: .8125rem; margin-bottom: 6px;
}

.contact-form {
  background: var(--panel-field);
  border: 1px solid var(--panel-line);
  border-radius: var(--r-lg);
  padding: 34px;
  display: flex; flex-direction: column; gap: 18px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--edge-highlight);
}
.contact-form h3 { font-size: 1.55rem; margin-bottom: 0; }
.contact-form .form-intro { font-size: .875rem; color: var(--panel-text-dim); margin: 0 0 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.contact-form label { display: block; font-size: .875rem; margin-bottom: 7px; color: var(--panel-text); }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; min-width: 0;
  background: var(--panel-field);
  border: 1px solid var(--panel-field-bd);
  color: var(--panel-text); border-radius: var(--r-xs);
  padding: 13px 14px; min-height: 48px; line-height: 1.5;
  transition: border-color var(--dur-2) var(--ease-out),
              background-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
.contact-form input:hover,
.contact-form textarea:hover,
.contact-form select:hover { border-color: color-mix(in oklab, var(--panel-field-bd), #fff 25%); }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 0 4px rgba(178,148,99,.18);
}
.contact-form textarea { resize: vertical; }
.contact-form select option { color: #1a1a1a; background: #fff; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--panel-text-dim); opacity: .8; }
.contact-form .form-note { font-size: .8125rem; color: var(--panel-text-dim); line-height: 1.7; }
.contact-form .button { width: 100%; }
.contact-form :focus-visible { outline-color: var(--accent); }
.contact-form #form-status:empty { display: none; }
.contact-form #form-status {
  background: rgba(255,255,255,.1); padding: 12px 14px; border-radius: var(--r-xs);
}

.check-control {
  display: flex; gap: 12px; align-items: flex-start;
  font-weight: 400; line-height: 1.5;
}
.check-control input {
  width: 20px; height: 20px; min-height: 0; flex: none; margin-top: 2px;
  accent-color: var(--accent-deep);
}

.hp {
  position: absolute !important; left: -9999px !important;
  width: 1px !important; height: 1px !important; overflow: hidden;
}

/* -------------------------------------------------------------------------
   Fusszeile
   ------------------------------------------------------------------------- */
.footer { padding: 56px 0 0; background: var(--footer-bg); border-top: 1px solid var(--line); }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1.1fr .8fr .8fr;
  gap: 36px; padding-bottom: 44px;
}
.footer-top .brand { align-self: start; }
.footer-top > p { color: var(--muted); font-size: 1.05rem; }
.footer-top > div > a {
  display: block; font-size: .875rem; margin-bottom: 10px;
  text-decoration: none; min-height: 26px; color: var(--muted);
  transition: color var(--dur-2) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .footer-top > div > a:hover { color: var(--ink); }
}
.footer-bottom {
  display: flex; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--line); padding-block: 22px;
  color: var(--muted); font-size: .8125rem;
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* -------------------------------------------------------------------------
   Schnellkontakt-Leiste (mobil)
   ------------------------------------------------------------------------- */
.mobile-contact { display: none; }

/* -------------------------------------------------------------------------
   Unterseiten – Intro
   ------------------------------------------------------------------------- */
.page-intro { padding-block: 56px 64px; }
.breadcrumb {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .875rem; color: var(--muted); margin-bottom: 36px;
  text-decoration: none;
}
.breadcrumb span { color: var(--muted-soft); }
.page-intro h1 { font-size: clamp(2.8rem, 5vw, 4.4rem); }
.page-intro .lead { max-width: 66ch; }

.jump-links {
  display: flex; gap: 28px; padding-bottom: 26px;
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.jump-links a { font-size: .9375rem; text-decoration: none; min-height: 40px; }

/* -------------------------------------------------------------------------
   Leistungs-Detail / Listen / Hinweisboxen
   ------------------------------------------------------------------------- */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.service-detail .button { margin-top: 20px; }
.detail-content > h3 { font-size: 1.45rem; }
.detail-content p { color: var(--muted); }

.check-list { list-style: none; margin: 24px 0; padding: 0; }
.check-list li {
  position: relative; padding: 13px 0 13px 30px;
  border-bottom: 1px solid var(--line); line-height: 1.5;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 12px;
  color: var(--accent-deep); font-weight: 700;
}

.object-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.object-grid article {
  border-top: 2px solid var(--ink); padding-top: 22px;
}
.object-grid h3 { font-size: 1.15rem; }
.object-grid p { color: var(--muted); }

.note-box {
  padding: 30px 32px; background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--accent-deep);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  margin-top: 48px;
}
.note-box p { color: var(--muted); max-width: 85ch; }

.cta-row {
  display: flex; justify-content: space-between; align-items: center; gap: 40px;
}
.cta-row .button { flex: none; }

/* -------------------------------------------------------------------------
   Rechtstexte
   ------------------------------------------------------------------------- */
.legal { max-width: 820px; padding-block: 64px 88px; }
.legal > h1 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  hyphens: auto; overflow-wrap: anywhere;
}
.legal .page-label,
.legal .section-label,
.legal .eyebrow {
  display: block; font-size: .8125rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 18px; font-weight: 650;
}
.legal .intro { color: var(--muted); font-size: 1.0625rem; margin-bottom: 8px; }
.legal .block { margin-top: 36px; }
.legal h2 {
  font-size: 1.45rem; line-height: 1.35; margin-bottom: 16px;
  letter-spacing: -.015em;
}
.legal h2 .num { margin-right: 9px; color: var(--accent-deep); }
.legal h3 { font-size: 1.1rem; margin-top: 24px; }
.legal p, .legal li { color: var(--muted); overflow-wrap: anywhere; }
.legal .stand { font-size: .875rem; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--ink-600); }

/* -------------------------------------------------------------------------
   Scroll-Einblendungen
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .52s var(--ease-out), transform .52s var(--ease-out);
  }
  [data-reveal].in { opacity: 1; transform: none; }

  /* Hero-Einzug beim Laden: das Bild materialisiert – Skalierung + weiche
     Kante gemeinsam –, die Textzeilen laufen knapp gestaffelt nach. */
  .hero-visual[data-reveal] {
    transform: translateY(18px) scale(.985);
    transition: opacity .62s var(--ease-out), transform .62s var(--ease-spring);
  }
  .hero-visual[data-reveal] > img { transition: none; }
  .image-badge[data-reveal] {
    transform: translateY(10px) scale(.96);
    transition: opacity .5s var(--ease-out) .16s, transform .5s var(--ease-spring) .16s;
  }
  .page-intro [data-reveal] { transform: translateY(12px); }
}

/* -------------------------------------------------------------------------
   Reduzierte Bewegung – sanfter, nicht aus
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .16s !important;
    scroll-behavior: auto !important;
  }
  .button:hover, .service-card:hover, .portrait-card { transform: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .header, .mobile-menu nav, .image-badge, .portrait-card figcaption, .contact-form,
  .mobile-contact {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .header { background: var(--paper); }
  .mobile-menu nav, .mobile-contact { background: var(--surface); }
  .image-badge, .portrait-card figcaption {
    background: var(--surface); color: var(--ink);
  }
  .portrait-card figcaption span { color: var(--muted); }
  .contact-form { background: var(--panel); }
}

/* Höherer Kontrast: klare, feste Ränder statt weicher Flächen */
@media (prefers-contrast: more) {
  :root { --line: #b7c4c8; --line-strong: #93a4aa; --muted: #3f4e58; }
  .service-card, .region-grid article, .note-box, .calculator,
  .evaluation-box, .table-wrap, .certificate-card {
    border-width: 2px; box-shadow: none;
  }
  .header.is-scrolled::after { display: none; }
  .header.is-scrolled { border-bottom: 2px solid var(--line-strong); }
  .button { border-color: var(--ink); }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root {
    --line: rgba(255,255,255,.34); --line-strong: rgba(255,255,255,.5);
    --muted: #c2d0d6; --panel-line: rgba(255,255,255,.4);
  }
  .button { border-color: var(--panel-line); }
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (min-width: 1101px) {
  .hero { gap: 52px; }
  .desktop-nav { gap: 26px; }
}

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 56px); }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .hero { grid-template-columns: 1.05fr 1fr; gap: 32px; }
  .photo-hero { height: 500px; }
  .section-heading { gap: 40px; }
  .service-card { padding: 26px; }
  .about-teaser, .contact-grid, .faq-layout, .service-detail { gap: 48px; }
  .steps { gap: 22px; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-top > p { display: none; }
  .object-grid { grid-template-columns: 1fr 1fr; }
  .hero-note { align-items: flex-start; }
  .hero-note .status-dot { margin-top: 7px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  body { padding-bottom: 66px; }
  html { scroll-padding-top: 84px; }
  .nav { min-height: 68px; }
  .brand { gap: 12px; font-size: .875rem; }
  .brand small { font-size: .8125rem; }
  .monogram { font-size: 2.2rem; }

  .hero { grid-template-columns: 1fr; padding-block: 40px 44px; gap: 32px; }
  .hero::before { inset: -5% -10% 60% 10%; }
  .photo-hero { height: 420px; }
  .hero-note { font-size: .8125rem; max-width: 40ch; }

  .proof-grid { grid-template-columns: 1fr; padding-block: 8px; gap: 0; }
  .proof-grid > div, .proof-grid > div:first-child {
    border: 0; border-bottom: 1px solid var(--line);
    padding: 15px 0; display: flex; justify-content: space-between; gap: 15px;
    align-items: baseline;
  }
  .proof-grid > div:last-child { border-bottom: 0; }
  .proof strong { text-align: right; font-size: .9375rem; }
  .proof span { font-size: .8125rem; }

  .section { padding-block: 66px; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading > p, .section-heading > .text-link { margin-top: 18px; }
  .lead { font-size: 1.075rem; }

  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card h3 { font-size: 1.5rem; }
  .card-number { margin-bottom: 24px; }

  .about-teaser, .faq-layout, .contact-grid, .service-detail { grid-template-columns: 1fr; gap: 34px; }

  .steps { grid-template-columns: 1fr; margin-top: 34px; gap: 0; }
  .steps li {
    position: relative; padding: 24px 0 24px 52px;
    border-top: 1px solid var(--panel-line);
  }
  .step-number { position: absolute; left: 0; top: 24px; border: 0; margin: 0; padding: 0; }
  .steps h3 { margin-bottom: 8px; }
  .steps p { margin: 0; }

  .faq-body { padding-right: 20px; }

  .contact-form { padding: 24px 20px; }
  .contact-phone { font-size: 1.45rem; gap: 16px; }
  .contact-meta { margin-top: 30px; }

  .footer { padding-top: 42px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-top > .brand { grid-column: 1 / -1; }
  .footer-top > div > a { padding-block: 5px; min-height: 36px; }
  .footer-bottom { flex-wrap: wrap; gap: 12px; }
  .footer-bottom > span:nth-child(2) { order: 3; width: 100%; }
  .footer-bottom > a { margin-left: auto; }

  .mobile-contact {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 25;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    border-top: 1px solid var(--line);
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    gap: 9px; box-shadow: 0 -6px 24px rgba(0,0,0,.12);
  }
  .mobile-contact a {
    display: flex; justify-content: center; align-items: center; gap: 12px;
    min-height: 46px; padding: 9px 15px; text-decoration: none;
    font-size: .875rem; font-weight: 550;
    border: 1px solid var(--line-strong); border-radius: var(--r-pill);
    flex: 1; color: var(--ink);
  }
  .mobile-contact a:last-child {
    flex: 1.7; background: var(--btn-bg); color: var(--btn-text); border-color: transparent;
  }

  .page-intro { padding-block: 30px 44px; }
  .breadcrumb { margin-bottom: 26px; }
  .page-intro h1 { font-size: clamp(2.6rem, 9vw, 3.6rem); }
  .jump-links { gap: 12px 22px; }

  .object-grid { grid-template-columns: 1fr; gap: 22px; }
  .cta-row { display: block; }
  .cta-row > .button { margin-top: 24px; }
  .note-box { padding: 26px 24px; margin-top: 36px; }

  .legal { padding-block: 40px 60px; }
  .legal h2 { font-size: 1.25rem; }

  .image-badge { left: 16px; right: 16px; padding: 16px; gap: 13px; }
  .image-badge small { font-size: .75rem; }
  .image-badge strong { font-size: .9375rem; }
  .badge-mark { font-size: 2.2rem; padding-right: 13px; }
}

@media (max-width: 430px) {
  .wrap { width: calc(100% - 32px); }
  .form-row { grid-template-columns: 1fr; }
  .hero .actions .button { width: 100%; }
  .contact-meta { grid-template-columns: 1fr; }
  .photo-hero { height: 380px; }
  .mobile-contact a { padding-inline: 8px; gap: 8px; font-size: .8125rem; }
}

/* -------------------------------------------------------------------------
   Druck
   ------------------------------------------------------------------------- */
@media print {
  .header, .footer, .mobile-contact, .contact-form, .actions, .mobile-menu { display: none; }
  body { padding: 0; color: #000; background: #fff; }
  .wrap { width: 100%; }
  .section { padding-block: 24px; }
  .contact, .soft, .process-section { background: #fff; color: #000; }
  .hero { display: block; }
  .photo-hero { height: 300px; margin-top: 24px; box-shadow: none; }
  .page-intro { padding-block: 20px; }
  .legal { max-width: none; }
  .contact p, .process-section p { color: #333; }
  .contact h2 em { color: #333; }
  a { color: inherit; }
  .faq-item .faq-body { display: block; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Robert Lilie – Logo in beiden Farbschemata */
.brand { flex: 0 0 auto; line-height: 1; }
.brand picture { display: block; }
.brand-logo { display: block; width: 264px; height: auto; max-width: 100%; }
.footer-top .brand-logo { width: 280px; }
@media (min-width: 1101px) and (max-width: 1200px) {
 .header .brand-logo { width: 220px; }
 .desktop-nav { gap: 16px; }
 .desktop-nav > a { font-size: .85rem; }
}
@media (max-width: 1100px) { .header .brand-logo { width: 235px; } }
@media (max-width: 480px) { .header .brand-logo { width: 205px; } }
@media (max-width: 360px) { .header .brand-logo { width: 180px; } }
