/* Sommer Immobilienbewertung · Konzeptentwurf von Makhu Studio
   Tokens und Regeln: siehe DESIGN.md */

:root {
  --ink: #131A21;
  --ink-2: #2A323B;
  --stone: #5C646D;
  --line: #DCDDDA;
  --mist: #EDEEEC;
  --paper: #F7F7F5;
  --white: #FFFFFF;
  --sun: #F5B47A;
  --sun-deep: #8F5320;
  --on-dark: #F7F7F5;
  --on-dark-2: #A9B0B7;
  --line-dark: #2F3842;

  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;

  --pad: clamp(20px, 4vw, 48px);
  --gap: clamp(16px, 2.2vw, 32px);
  --sec: clamp(72px, 9vw, 132px);
  --r: 2px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --kopf: 72px;

  /* Ebenen */
  --z-kopf: 40;
  --z-menue: 39;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf) + 24px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--sun-deep); outline-offset: 3px; border-radius: var(--r); }
.dunkel :focus-visible { outline-color: var(--sun); }
::selection { background: var(--sun); color: var(--ink); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 12px; }

/* ---------- Typografie ---------- */
h1, h2, .h3, .zitat p, .gross { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; }
h1 { font-size: clamp(2.7rem, 4.6vw + 1.1rem, 5.1rem); line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(2rem, 2.3vw + 1.1rem, 3.1rem); line-height: 1.08; text-wrap: balance; }
.h3 { font-size: clamp(1.45rem, .8vw + 1.2rem, 1.8rem); line-height: 1.15; }
h1 em, h2 em { font-style: italic; }
.lead { font-size: clamp(1.1rem, .45vw + 1rem, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
p { max-width: 62ch; text-wrap: pretty; }
.leise { color: var(--stone); }
.klein { font-size: .9rem; line-height: 1.5; }
.marke-zeile { font: 500 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.dunkel .marke-zeile { color: var(--on-dark-2); }

.link { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: .28em; transition: text-decoration-color .18s var(--ease); }
.link:hover { text-decoration-color: currentColor; }

.pfeil { display: inline-block; flex: none; width: 20px; height: 12px; vertical-align: middle; transition: transform .2s var(--ease); }
a:hover > .pfeil, button:hover > .pfeil, a:hover .pfeil { transform: translateX(4px); }

/* ---------- Layout ---------- */
.w { width: min(1240px, 100% - 2 * var(--pad)); margin-inline: auto; }
.sek { padding-block: var(--sec); }
.sek--weiss { background: var(--white); }
.sek--nebel { background: var(--mist); }
.sek--knapp { padding-block: calc(var(--sec) * .62); }
.raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.kopfzeile { display: grid; gap: 18px; margin-bottom: clamp(36px, 4.5vw, 64px); }
.kopfzeile--mitte { justify-items: center; text-align: center; }

/* ---------- Schaltflächen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 1px solid var(--ink); border-radius: var(--r);
  background: var(--ink); color: var(--on-dark); font: 500 1rem/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease);
}
.btn:hover { background: var(--ink-2); }
.btn:active { transform: scale(.98); }
.btn--sonne { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn--sonne:hover { background: #F8C596; }
.btn--klein { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn-reihe { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

/* ---------- Konzeptstreifen + Kopf ---------- */
.konzept { max-width: none; background: var(--ink); color: var(--on-dark-2); text-align: center; font: 400 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 9px var(--pad); }

.kopf { position: sticky; top: 0; z-index: var(--z-kopf); background: rgb(247 247 245 / .8); -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); view-transition-name: kopf; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .kopf { background: var(--paper); } }
@media (prefers-reduced-transparency: reduce) { .kopf { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.kopf__tel { display: none; font-size: .97rem; text-decoration: none; white-space: nowrap; transition: color .16s var(--ease); }
.kopf__tel:hover { color: var(--sun-deep); }
@media (min-width: 1280px) { .kopf__tel { display: block; } }
.kopf.ist-unten { border-bottom-color: var(--line); }
.kopf__innen { display: flex; align-items: center; gap: 28px; height: var(--kopf); }
.kopf__marke { display: block; flex: none; padding: 8px 0; }
.kopf__marke img { height: 22px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(16px, 1.9vw, 30px); }
.nav ul a { position: relative; display: block; padding: 10px 0; font-size: .97rem; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .24s var(--ease); }
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav ul a[aria-current="page"] { color: var(--ink); }
.menue-knopf { display: none; margin-left: auto; min-height: 44px; padding: 0 14px; background: none; border: 1px solid var(--line); border-radius: var(--r); font-size: .95rem; }

@media (max-width: 1120px) {
  .menue-knopf { display: inline-flex; align-items: center; }
  .kopf__cta, .kopf__tel { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; z-index: var(--z-menue); margin: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 28px;
    visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .16s var(--ease), transform .16s var(--ease), visibility 0s .16s; }
  .kopf[data-offen] .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .24s var(--ease), transform .24s var(--ease); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav ul a { padding: 15px 0; font: 400 1.5rem/1.2 var(--serif); color: var(--ink); }
  .nav ul a::after { display: none; }
  .nav__cta { display: block; margin-top: 22px; }
  .nav__cta .btn { width: 100%; }
}
@media (min-width: 1121px) { .nav__cta { display: none; } }
@media (max-width: 600px) { :root { --kopf: 64px; } .kopf__marke img { height: 19px; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-block: clamp(28px, 4vw, 64px) clamp(56px, 7vw, 104px); }
/* Sommerlicht: ein kaum sichtbarer warmer Schein hinter dem Porträt */
.hero::after { content: ""; position: absolute; z-index: -1; inset: -140px 0 0 0; background: radial-gradient(48% 60% at 84% 16%, rgb(245 180 122 / .22), transparent 72%); pointer-events: none; }
.hero .raster { align-items: center; }
.hero__text { grid-column: 1 / span 7; display: grid; gap: clamp(20px, 2.2vw, 30px); justify-items: start; }
.hero__bild { grid-column: 8 / span 5; position: relative; }
.hero__bild::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; background: var(--mist); }
.hero__bild img { position: relative; width: 100%; aspect-ratio: 6 / 7; max-height: max(420px, calc(100dvh - 200px)); object-fit: cover; object-position: 50% 20%; }
@media (max-width: 900px) {
  .hero__text, .hero__bild { grid-column: 1 / -1; }
  .hero__bild::before { inset: 14px -14px -14px 14px; }
  .hero__bild img { aspect-ratio: 5 / 4; object-position: 60% 22%; }
  .hero__bild { margin-right: 14px; margin-top: 8px; }
}

/* ---------- Seitenkopf (Unterseiten) ---------- */
.seitenkopf { padding-block: clamp(28px, 4vw, 56px) clamp(48px, 6vw, 88px); }
.seitenkopf .raster { align-items: end; }
.seitenkopf__text { grid-column: 1 / span 7; display: grid; gap: 22px; justify-items: start; }
.seitenkopf__bild { grid-column: 8 / span 5; }
.seitenkopf__bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.seitenkopf--ohne .seitenkopf__text { grid-column: 1 / span 9; }
.brot { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .88rem; color: var(--stone); }
.brot a { text-decoration: none; }
.brot a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: .25em; }
.brot li + li::before { content: "/"; margin-right: 10px; color: var(--line); }
@media (max-width: 900px) {
  .seitenkopf__text, .seitenkopf--ohne .seitenkopf__text, .seitenkopf__bild { grid-column: 1 / -1; }
  .seitenkopf__bild { margin-top: 12px; }
  .seitenkopf__bild img { aspect-ratio: 16 / 10; }
}

/* ---------- Bestellung & Zertifizierung ---------- */
.nachweis__bild { grid-column: 1 / span 5; }
.nachweis__bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.nachweis__text { grid-column: 7 / span 6; display: grid; gap: 30px; align-content: center; }
.urkunden > div { padding-block: 22px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.urkunden > div:last-child { border-bottom: 1px solid var(--line); }
.urkunden dt { font: 400 1.5rem/1.2 var(--serif); letter-spacing: -.01em; }
.urkunden dd { color: var(--stone); max-width: 52ch; }
.mitglied { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; }
.mitglied a { display: block; opacity: .82; transition: opacity .18s var(--ease); }
.mitglied a:hover { opacity: 1; }
.mitglied img { height: 34px; width: auto; mix-blend-mode: multiply; }
.mitglied img.hoch { height: 44px; }
@media (max-width: 900px) {
  .nachweis__bild, .nachweis__text { grid-column: 1 / -1; }
}

/* ---------- Reiter (Für wen) ---------- */
.reiter__liste { display: flex; gap: clamp(18px, 2.6vw, 40px); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.reiter__liste::-webkit-scrollbar { display: none; }
.reiter__liste button { flex: none; position: relative; padding: 14px 0 16px; background: none; border: 0; font: 400 1.02rem/1.2 var(--sans); color: var(--stone); white-space: nowrap; transition: color .18s var(--ease); }
.reiter__liste button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .26s var(--ease); }
.reiter__liste button:hover { color: var(--ink); }
.reiter__liste button[aria-selected="true"] { color: var(--ink); font-weight: 500; }
.reiter__liste button[aria-selected="true"]::after { transform: scaleX(1); }
.reiter__feld { padding-top: clamp(28px, 3.5vw, 48px); }
.reiter__feld[hidden] { display: none; }
.reiter__feld .gross { grid-column: 1 / span 6; font-size: clamp(1.45rem, 1.1vw + 1.1rem, 2rem); line-height: 1.25; max-width: 26ch; }
.reiter__feld .spalte { grid-column: span 3; display: grid; gap: 12px; align-content: start; }
.reiter__feld .spalte:first-of-type { grid-column: 7 / span 3; }
.reiter__feld li { padding-block: 9px; border-top: 1px solid var(--line); }
.reiter__feld li a { text-decoration: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.reiter__feld li .pfeil { color: var(--stone); }
.reiter__feld li a:hover { color: var(--sun-deep); }
.js .reiter__feld.neu { animation: einblenden .22s var(--ease); }
@keyframes einblenden { from { opacity: 0; } }
@media (max-width: 900px) {
  .reiter__feld .gross, .reiter__feld .spalte, .reiter__feld .spalte:first-of-type { grid-column: 1 / -1; }
  .reiter__feld .gross { max-width: none; margin-bottom: 8px; }
}

/* ---------- Verzeichnis (Anlässe) ---------- */
.verz { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
.verz a { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: baseline; padding: 24px 0 26px; border-top: 1px solid var(--line); text-decoration: none; }
.verz .h3 { transition: color .18s var(--ease); }
.verz p { grid-column: 1; color: var(--stone); font-size: .98rem; }
.verz .pfeil { grid-row: 1; grid-column: 2; align-self: center; color: var(--stone); }
.verz a:hover .h3 { color: var(--sun-deep); }
.verz a:hover .pfeil { color: var(--ink); }
@media (max-width: 760px) { .verz { grid-template-columns: 1fr; } }

/* ---------- Anlässe mit Bild (Übersicht) ---------- */
.liste-bild a { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px var(--gap); align-items: center; padding: clamp(20px, 2.4vw, 32px) 0; border-top: 1px solid var(--line); text-decoration: none; }
.liste-bild a:first-child { border-top: 0; }
.liste-bild img { grid-column: 1 / span 3; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.liste-bild .t { grid-column: 5 / span 4; display: grid; gap: 8px; }
.liste-bild .t .h3 { font-size: clamp(1.7rem, 1.4vw + 1.2rem, 2.3rem); transition: color .18s var(--ease); }
.liste-bild .t p { color: var(--stone); }
.liste-bild .u { grid-column: 9 / span 3; display: grid; gap: 5px; color: var(--stone); font-size: .96rem; }
.liste-bild .pfeil { grid-column: 12; justify-self: end; color: var(--stone); }
.liste-bild a:hover .h3 { color: var(--sun-deep); }
.liste-bild a:hover .pfeil { color: var(--ink); }
@media (max-width: 900px) {
  .liste-bild img { grid-column: 1 / span 4; }
  .liste-bild .t { grid-column: 5 / -1; }
  .liste-bild .u, .liste-bild .pfeil { display: none; }
}
@media (max-width: 560px) {
  .liste-bild img { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .liste-bild .t { grid-column: 1 / -1; }
}

/* ---------- Gutachten-Matrix ---------- */
.matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }
.matrix a { display: grid; grid-template-columns: clamp(96px, 11vw, 150px) 1fr; gap: 8px 24px; padding: 28px 0 30px; border-top: 1px solid var(--line); text-decoration: none; align-items: start; }
.matrix .par { grid-row: span 2; font: 400 clamp(2rem, 2.2vw + 1rem, 2.9rem)/1 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.matrix .par small { display: block; margin-top: 8px; font: 500 .74rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); white-space: normal; }
.matrix strong { font-weight: 500; font-size: 1.08rem; line-height: 1.35; transition: color .18s var(--ease); }
.matrix p { color: var(--stone); font-size: .98rem; }
.matrix a:hover strong { color: var(--sun-deep); }
@media (max-width: 900px) { .matrix { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .matrix a { grid-template-columns: 1fr; } .matrix .par { grid-row: auto; } .matrix .par small { display: inline; margin-left: 10px; } }

/* ---------- Bilder: Graustufe, Farbe bei Zuwendung ---------- */
.grau img { filter: grayscale(1) contrast(1.04); transition: filter .5s var(--ease); }
@media (hover: hover) { a.grau:hover img, button.grau:hover img, .grau:focus-visible img { filter: none; } }

.bildtext { display: grid; gap: 4px; padding-top: 14px; }
.bildtext .marke-zeile { font-size: .72rem; }
.bildtext strong { font: 400 1.35rem/1.2 var(--serif); letter-spacing: -.01em; }
.bildtext span:last-child { color: var(--stone); font-size: .95rem; }

/* Mosaik (Startseite) */
.mosaik { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); align-items: start; }
.mosaik figure:first-child { grid-row: span 2; }
.mosaik img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.mosaik figure:not(:first-child) img { aspect-ratio: 16 / 9; }
.mosaik a { display: block; text-decoration: none; }
@media (max-width: 760px) { .mosaik { grid-template-columns: 1fr; } .mosaik figure:not(:first-child) img { aspect-ratio: 4 / 3; } }

/* Referenzen (Übersicht) */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 3vw, 44px); }
.filter button { min-height: 44px; padding: 0 18px; background: none; border: 1px solid var(--line); border-radius: var(--r); font-size: .95rem; color: var(--ink-2); transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease); }
.filter button:hover { border-color: var(--ink); }
.filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3.6vw, 56px) var(--gap); }
.refs figure[hidden] { display: none; }
.refs button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.refs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 960px) { .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .refs { grid-template-columns: 1fr; } }

dialog.bild { width: min(1100px, 100% - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r); background: var(--white); color: var(--ink); overflow: auto; }
dialog.bild::backdrop { background: rgb(19 26 33 / .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog.bild[open] { animation: auf .26s var(--ease); }
dialog.bild[open]::backdrop { animation: einblenden .26s var(--ease); }
@keyframes auf { from { opacity: 0; transform: scale(.975); } }
dialog.bild img { width: 100%; max-height: 72dvh; object-fit: contain; background: var(--ink); }
dialog.bild .fuss { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 18px 22px 20px; }
dialog.bild .bildtext { padding: 0; }

/* ---------- Band mit Karte (Über) ---------- */
.band { position: relative; }
.band > img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 6%; }
.band__karte { position: relative; margin: clamp(-150px, -11vw, -80px) 0 0 auto; width: min(620px, 100%); background: var(--paper); padding: clamp(28px, 3.6vw, 52px); display: grid; gap: 22px; justify-items: start; }
.zitat p { font-size: clamp(1.6rem, 1.5vw + 1.1rem, 2.35rem); line-height: 1.18; font-style: italic; max-width: 20ch; padding-bottom: 4px; }
.zitat footer { margin-top: 14px; font-size: .92rem; color: var(--stone); }
@media (max-width: 760px) { .band > img { aspect-ratio: 4 / 3; } .band__karte { margin-top: -48px; width: calc(100% - 20px); } }

/* ---------- Ablauf ---------- */
.schritte { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: s; }
.schritte li { counter-increment: s; padding-top: 22px; border-top: 1px solid var(--ink); display: grid; gap: 8px; align-content: start; }
.schritte li::before { content: counter(s); font: 400 2.6rem/1 var(--serif); color: var(--sun-deep); }
.schritte p { color: var(--stone); font-size: .98rem; }
.schritte--lang { grid-template-columns: 1fr; gap: 0; }
.schritte--lang li { grid-template-columns: clamp(64px, 9vw, 140px) minmax(0, 5fr) minmax(0, 6fr); gap: 12px var(--gap); padding: clamp(28px, 3.5vw, 48px) 0; border-top: 1px solid var(--line); align-items: start; }
.schritte--lang li::before { font-size: clamp(3rem, 4vw, 4.6rem); }
.schritte--lang p { font-size: 1.0625rem; color: var(--ink-2); }
.schritte--lang .klein { color: var(--stone); margin-top: 10px; }
@media (max-width: 900px) { .schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } .schritte--lang { grid-template-columns: 1fr; row-gap: 0; } .schritte--lang li { grid-template-columns: 56px 1fr; } .schritte--lang li > div:last-child { grid-column: 2; } }
@media (max-width: 480px) { .schritte { grid-template-columns: 1fr; } }

/* ---------- Listen mit Filet ---------- */
.zeilen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }
.zeilen > div, .zeilen > li { padding: 20px 0 22px; border-top: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.zeilen dt, .zeilen strong { font-weight: 500; font-size: 1.08rem; }
.zeilen dd, .zeilen p { color: var(--stone); }
.zeilen--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .zeilen--3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .zeilen { grid-template-columns: 1fr; } }

.zwei { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.zwei > :first-child { grid-column: 1 / span 4; display: grid; gap: 16px; align-content: start; }
.zwei > :last-child { grid-column: 6 / span 7; }
@media (max-width: 900px) { .zwei > :first-child, .zwei > :last-child { grid-column: 1 / -1; } .zwei > :first-child { margin-bottom: 12px; } }

/* Gutachten-Zeile auf Anlass-Seiten */
.gz { display: grid; }
.gz a { display: grid; grid-template-columns: clamp(96px, 11vw, 150px) 1fr auto; gap: 6px 24px; padding: 24px 0 26px; border-top: 1px solid var(--line); text-decoration: none; align-items: baseline; }
.gz .par { font: 400 clamp(1.7rem, 1.8vw + 1rem, 2.4rem)/1 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.gz strong { font-weight: 500; font-size: 1.08rem; transition: color .18s var(--ease); }
.gz p { grid-column: 2; color: var(--stone); font-size: .98rem; }
.gz .pfeil { grid-row: 1; grid-column: 3; align-self: center; color: var(--stone); }
.gz a:hover strong { color: var(--sun-deep); }
@media (max-width: 560px) { .gz a { grid-template-columns: 1fr auto; } .gz .par { grid-column: 1; } .gz strong, .gz p { grid-column: 1; } .gz .pfeil { grid-column: 2; } }

/* Referenz-Streifen auf Anlass-Seiten */
.streifen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.streifen img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.streifen--1 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
.streifen--1 img { aspect-ratio: 16 / 9; }
@media (max-width: 760px) { .streifen, .streifen--1 { grid-template-columns: 1fr; } }

/* Downloads */
.laden { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }
.laden a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); text-decoration: none; }
.laden a span:last-child { font-size: .82rem; color: var(--stone); letter-spacing: .08em; text-transform: uppercase; }
.laden a:hover { color: var(--sun-deep); }
@media (max-width: 600px) { .laden { grid-template-columns: 1fr; } }

/* Objektarten */
.objekte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) var(--gap); }
.objekte article { display: grid; gap: 18px; align-content: start; }
.objekte img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.objekte ul { display: flex; flex-wrap: wrap; gap: 6px 0; color: var(--ink-2); }
.objekte li:not(:last-child)::after { content: ","; margin-right: .35em; }
@media (max-width: 760px) { .objekte { grid-template-columns: 1fr; } }

/* Gutachtenarten (lange Seite) */
.arten { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.arten__index { grid-column: 1 / span 3; position: sticky; top: calc(var(--kopf) + 28px); display: grid; gap: 2px; }
.arten__index a { padding: 9px 0 9px 14px; border-left: 2px solid var(--line); text-decoration: none; font-size: .95rem; color: var(--stone); transition: color .16s var(--ease), border-color .16s var(--ease); }
.arten__index a:hover { color: var(--ink); border-left-color: var(--sun); }
.arten__liste { grid-column: 5 / span 8; }
.art { padding-block: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); display: grid; gap: 18px; }
.art:first-child { border-top: 0; padding-top: 0; }
.art .par { font: 500 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sun-deep); }
.art ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); margin-top: 6px; }
.art li { padding: 10px 0; border-top: 1px solid var(--line); font-size: .98rem; color: var(--ink-2); }
@media (max-width: 900px) { .arten__index { display: none; } .arten__liste { grid-column: 1 / -1; } }
@media (max-width: 600px) { .art ul { grid-template-columns: 1fr; } }

/* Details (Fragen) */
.fragen details { border-top: 1px solid var(--line); }
.fragen details:last-child { border-bottom: 1px solid var(--line); }
.fragen summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font: 400 1.4rem/1.25 var(--serif); }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat; transition: transform .24s var(--ease); }
.fragen details[open] summary::after { transform: rotate(45deg); }
.fragen details p { padding: 0 0 24px; color: var(--ink-2); }
.js .fragen details[open] p { animation: runter .28s var(--ease); }
@keyframes runter { from { opacity: 0; transform: translateY(-6px); } }

/* Über */
.portraets { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: var(--gap); align-items: end; }
.portraets img { width: 100%; object-fit: cover; }
.portraets figure:nth-child(1) img { aspect-ratio: 3 / 4; }
.portraets figure:nth-child(2) img { aspect-ratio: 1; }
.portraets figure:nth-child(3) img { aspect-ratio: 3 / 4; }
.portraets figcaption { padding-top: 10px; font-size: .9rem; color: var(--stone); }
@media (max-width: 760px) { .portraets { grid-template-columns: 1fr 1fr; } .portraets figure:nth-child(1) { grid-column: 1 / -1; } .portraets figure:nth-child(1) img { aspect-ratio: 4 / 3; } }
.drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.drei > div { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 1px solid var(--ink); }
.drei .h3 { font-style: italic; }
.drei p { color: var(--stone); }
@media (max-width: 760px) { .drei { grid-template-columns: 1fr; } }

/* ---------- Kontakt + Formular ---------- */
.kontakt { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.kontakt__daten { grid-column: 1 / span 4; display: grid; gap: 28px; position: sticky; top: calc(var(--kopf) + 28px); }
.kontakt__daten img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.kontakt__daten dl { display: grid; gap: 16px; }
.kontakt__daten dt { font: 500 .74rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin-bottom: 3px; }
.kontakt__daten dd a { text-decoration: none; }
.kontakt__daten dd a:hover { color: var(--sun-deep); }
.kontakt__form { grid-column: 6 / span 7; background: var(--white); padding: clamp(24px, 3.6vw, 52px); }
@media (max-width: 960px) { .kontakt__daten, .kontakt__form { grid-column: 1 / -1; position: static; } .kontakt__daten { grid-template-columns: 1fr 1fr; align-items: start; } .kontakt__form { order: -1; margin-inline: calc(var(--pad) * -1); } }
@media (max-width: 560px) { .kontakt__daten { grid-template-columns: 1fr; } }

form { display: grid; gap: 34px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 20px; }
legend { padding: 0 0 14px; font: 400 1.6rem/1.2 var(--serif); }
.feld { display: grid; gap: 7px; }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .feld-reihe { grid-template-columns: 1fr; } }
label, .feld > span:first-child { font-size: .93rem; font-weight: 500; color: var(--ink-2); }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; background: var(--paper); border: 1px solid #B9BDBF; border-radius: var(--r);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background-color .16s var(--ease);
}
textarea { min-height: 128px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(245 180 122 / .55); background: var(--white); }
[aria-invalid="true"] { border-color: #A3271C; }
.hilfe { font-size: .86rem; color: var(--stone); }
.fehler { font-size: .88rem; color: #A3271C; }
.fehler:empty { display: none; }
.wahl { display: flex; flex-wrap: wrap; gap: 10px; }
.wahl label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #B9BDBF; border-radius: var(--r); font-weight: 400; cursor: pointer; transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease); }
.wahl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wahl label:hover { border-color: var(--ink); }
.wahl label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.wahl label:has(input:focus-visible) { outline: 2px solid var(--sun-deep); outline-offset: 3px; }
.haken { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-weight: 400; font-size: .95rem; color: var(--ink-2); cursor: pointer; }
.haken input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.form-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.erfolg { display: grid; gap: 18px; justify-items: start; padding-block: 12px; }
.erfolg[hidden] { display: none; }
.js .erfolg { animation: rein .5s var(--ease); }
@keyframes rein { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.erfolg dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; padding: 18px 0; border-block: 1px solid var(--line); width: 100%; font-size: .98rem; }
.erfolg dt { color: var(--stone); }

/* ---------- Abschluss (dunkel) ---------- */
.dunkel { background: var(--ink); color: var(--on-dark); }
.schluss { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--sec) clamp(28px, 3vw, 40px); }
.schluss::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(40% 50% at 8% 0%, rgb(245 180 122 / .13), transparent 70%); pointer-events: none; }
.schluss__ruf { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; padding-bottom: clamp(56px, 7vw, 104px); }
.schluss__ruf > div:first-child { grid-column: 1 / span 8; display: grid; gap: 22px; justify-items: start; }
.schluss__ruf > div:last-child { grid-column: 10 / span 3; display: grid; gap: 12px; justify-items: start; }
.schluss__ruf p { color: var(--on-dark-2); }
.schluss .tel { font: 400 1.6rem/1.2 var(--serif); text-decoration: none; }
.schluss .tel:hover { color: var(--sun); }
.fuss { display: grid; grid-template-columns: 4fr 3fr 3fr 2fr; gap: 36px var(--gap); padding-block: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line-dark); font-size: .95rem; }
.fuss img { width: 190px; height: auto; }
.fuss h3 { font: 500 .74rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 14px; }
.fuss a { text-decoration: none; color: var(--on-dark); }
.fuss a:hover { color: var(--sun); }
.fuss li { padding-block: 3px; }
.fuss p { color: var(--on-dark-2); }
.fuss__ende { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: .84rem; color: var(--on-dark-2); }
.fuss__ende a { color: inherit; }
.fuss__ende a:hover { color: var(--sun); }
.fuss__ende ul { display: flex; gap: 22px; }
@media (max-width: 900px) {
  .schluss__ruf > div:first-child, .schluss__ruf > div:last-child { grid-column: 1 / -1; }
  .fuss { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .fuss { grid-template-columns: 1fr; } }

/* ---------- Bewegung ---------- */
.js .rv { opacity: 0; transform: translateY(12px); filter: blur(4px); transition: opacity .52s var(--ease), transform .52s var(--ease), filter .52s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rv.in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rv, .js .fokus { opacity: 1; transform: none; filter: none; }
}

/* Scharfstellen: Bilder kommen aus der Unschärfe */
.js .fokus { opacity: 0; filter: blur(16px); transform: scale(1.025); transition: opacity .7s var(--ease), filter 1.1s var(--ease), transform 1.3s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .fokus.in { opacity: 1; filter: none; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .fokus { opacity: 1; filter: none; transform: none; } }

/* Seitenwechsel: weiches Überblenden, der Kopf bleibt stehen */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-raus .16s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-rein .46s var(--ease) both; }
}
@keyframes vt-raus { to { opacity: 0; } }
@keyframes vt-rein { from { opacity: 0; filter: blur(8px); } }

@media print { .konzept, .kopf, .schluss .btn { display: none; } }

/* ---------- Auswahl im Abschluss ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 1px solid #3C4753; border-radius: var(--r); text-decoration: none; color: var(--on-dark); transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), transform .12s var(--ease); }
.chips a:hover { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.chips a:active { transform: scale(.98); }
.schluss .link { color: var(--on-dark); }

/* ---------- Anfrage in drei Schritten ---------- */
.wiz { gap: 26px; }
.wiz__kopf { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wiz__weg { display: flex; gap: 6px; width: min(200px, 50%); }
.wiz__weg li { position: relative; flex: 1; height: 3px; background: var(--line); overflow: hidden; }
.wiz__weg li::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.wiz__weg li.an::after { transform: scaleX(1); }
.wiz__stand { font-size: .86rem; color: var(--stone); }
.wiz__schritt { display: grid; gap: 18px; }
.wiz__schritt h2 { font-size: clamp(1.8rem, 1.5vw + 1.3rem, 2.5rem); outline: 0; }
.js .wiz__schritt.neu { animation: rein .5s var(--ease); }
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.kachel { position: relative; display: grid; gap: 3px; align-content: center; min-height: 78px; padding: 14px 44px 14px 18px; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), transform .12s var(--ease); }
.kachel strong { font: 400 1.28rem/1.2 var(--serif); letter-spacing: -.01em; }
.kachel span { font-size: .88rem; line-height: 1.35; color: var(--stone); transition: color .16s var(--ease); }
.kachel::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-top: 1.5px solid var(--stone); border-right: 1.5px solid var(--stone); transform: translateY(-50%) rotate(45deg); transition: transform .2s var(--ease), border-color .16s var(--ease); }
.kachel:hover { background: var(--white); border-color: var(--ink); }
.kachel:hover::after { border-color: var(--ink); transform: translate(3px, -50%) rotate(45deg); }
.kachel:active { transform: scale(.985); }
.kachel[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.kachel[aria-pressed="true"] span { color: var(--on-dark-2); }
.kachel[aria-pressed="true"]::after { border-color: var(--sun); }
@media (max-width: 560px) { .kacheln { grid-template-columns: 1fr; gap: 8px; } .kachel { min-height: 58px; padding-block: 10px; } .kachel span { display: none; } }
.wiz__tipp { display: grid; gap: 12px; padding: 18px 20px; background: var(--paper); border-left: 2px solid var(--sun); }
.wiz__gut { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: baseline; }
.wiz__gut .par { font: 400 1.9rem/1 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.wiz__gut strong { font-weight: 500; }
.wiz__gut small { display: block; margin-top: 3px; font-size: .9rem; color: var(--stone); }
.wiz__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .93rem; }
.wiz__links span { color: var(--stone); }
.wiz__mehr summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; font-size: .95rem; color: var(--ink-2); }
.wiz__mehr summary::-webkit-details-marker { display: none; }
.wiz__mehr summary::before { content: ""; width: 11px; height: 11px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat; transition: transform .24s var(--ease); }
.wiz__mehr[open] summary::before { transform: rotate(45deg); }
.wiz__mehr > div { display: grid; gap: 18px; padding-top: 12px; }
.js .wiz__mehr[open] > div { animation: runter .28s var(--ease); }
.wiz__fuss { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--stone); }
.wiz__zurueck { min-height: 44px; padding: 0; background: none; border: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: .28em; }
.wiz__zurueck:hover { text-decoration-color: currentColor; }
#wiz-wahl { margin-left: auto; text-align: right; }
#e-check { display: grid; gap: 10px; }
#e-check:empty { display: none; }

/* ---------- Ablauf mit Bildern ---------- */
.schritte--lang.mit-bild li { grid-template-columns: clamp(56px, 7vw, 110px) minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); align-items: center; }
.schritt__bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .schritte--lang.mit-bild li { grid-template-columns: 56px 1fr; align-items: start; } .schritte--lang li > div { grid-column: 2; } .schritt__bild { max-width: 440px; margin-top: 6px; } }

/* ---------- Schnellkontakt (schmal) ---------- */
.leiste { display: none; }
@media (max-width: 760px) {
  .leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-kopf); display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: rgb(247 247 245 / .86); -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15); border-top: 1px solid var(--line); visibility: hidden; transform: translateY(105%); transition: transform .32s var(--ease), visibility 0s .32s; }
  .leiste.an { visibility: visible; transform: none; transition: transform .32s var(--ease); }
  .leiste__tel { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: var(--r); text-decoration: none; font-weight: 500; font-size: .95rem; }
  .leiste .btn { width: 100%; }
}
