/* Schmalbach Immobilien – Seitenlayout und WordPress-Anpassungen */

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 28px; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
a { color: var(--navy-900); }
a:hover { color: var(--gold-text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.sb-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy-900); color: #fff; padding: 12px 18px; text-decoration: none; }
.sb-skip:focus { top: 12px; color: #fff; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
.is-layout-flow > * + * { margin-block-start: 0; }
.entry-content > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
p { margin: 0; }
em { font-feature-settings: "liga" 0, "dlig" 0, "hlig" 0; }

/* Raster */
.wrap { max-width: 1200px; margin-left: auto !important; margin-right: auto !important; padding-left: 40px; padding-right: 40px; }
.sec { padding-top: 112px; padding-bottom: 112px; }
.sec--sand { background: var(--sand); }
.sec--surface { background: var(--surface); border-top: 1px solid var(--hairline); }
.sec--tight { padding-top: 0; padding-bottom: 24px; }
.mt-56 { margin-top: 56px !important; }
.mt-64 { margin-top: 64px !important; }

/* Überschriften im Editor-Inhalt */
.sb-display, h1.sb-display { font-family: var(--font-display); font-weight: 400; color: var(--navy-900); letter-spacing: -.015em; font-size: 60px; line-height: 64px; margin: 0 0 28px; }
.sb-display--xl { font-size: 80px; line-height: 84px; }
.sb-lead { font-size: 20px; line-height: 32px; font-weight: 300; max-width: 560px; margin: 0 0 40px !important; }
.sb-text { font-size: 17px; line-height: 29px; }
.sb-text + .sb-text { margin-top: 22px !important; }
.sb-muted { color: var(--muted); font-size: 14px; line-height: 22px; }
.sb-h3 { font-family: var(--font-serif); font-weight: 500; font-size: 22px; line-height: 30px; color: var(--navy-900); margin: 0 0 10px; }
.sb-sec__title em, .sb-display em, .sb-cta__title em { font-family: var(--font-serif); font-style: italic; color: var(--gold-text); }
.sb-on-navy .sb-cta__title em { color: var(--gold-300); }

/* Buttons im Block-Editor (Stilvarianten von core/button) */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 24px 28px; align-items: center; }
.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 14px; height: 56px; padding: 0 32px; font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; border-radius: 0; background: var(--navy-900); color: var(--on-navy); transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.wp-block-button__link::after { content: ""; width: 22px; height: 10px; flex: none; background: currentColor; -webkit-mask: url("../img/pfeil.svg") center / contain no-repeat; mask: url("../img/pfeil.svg") center / contain no-repeat; transition: transform .25s ease; }
.wp-block-button__link:hover::after { transform: translateX(5px); }
.wp-block-button__link:hover { background: var(--navy-800); color: var(--on-navy); }
.is-style-fill .wp-block-button__link::after, .wp-block-button:not([class*="is-style-"]) .wp-block-button__link::after { background: var(--gold-500); }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.is-style-outline .wp-block-button__link:hover { background: var(--navy-900); color: var(--on-navy); }
.is-style-gold .wp-block-button__link { background: var(--gold-500); color: var(--navy-900); }
.is-style-gold .wp-block-button__link:hover { background: var(--gold-300); color: var(--navy-900); }
.is-style-link .wp-block-button__link { height: auto; padding: 0 0 8px; background: linear-gradient(var(--gold-500), var(--gold-500)) left bottom / 100% 1px no-repeat; color: var(--navy-900); }
.is-style-link .wp-block-button__link::after { background: var(--gold-500); }
.is-style-link .wp-block-button__link:hover { background-color: transparent; color: var(--gold-text); }
.sb-on-navy .is-style-link .wp-block-button__link { color: var(--on-navy); }

/* Kopfzeile */
.sb-site-header { position: relative; z-index: 20; }
.sb-header__logo img { height: 52px; width: auto; display: block; }
.sb-burger { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid var(--hairline); background: transparent; color: var(--navy-900); cursor: pointer; }
.sb-burger svg { width: 22px; height: 22px; }
.sb-mobile-nav { display: none; background: var(--ground); border-bottom: 1px solid var(--hairline); padding: 8px 20px 24px; }
.sb-mobile-nav a { display: block; padding: 16px 0; border-bottom: 1px solid var(--hairline); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--navy-900); }
.sb-mobile-nav.is-open { display: block; }
@media (max-width: 980px) { .sb-burger { display: inline-flex; } .sb-header .sb-btn { display: none; } .sb-header { padding: 14px 20px; } .sb-topbar__in { padding: 8px 20px; justify-content: center; } }
@media (max-width: 560px) { .sb-topbar__mail { display: none; } .sb-header__logo img { height: 42px; } }

/* Hero */
.sb-hero__media img { width: 100%; height: 100%; }
.sb-hero__facts { list-style: none; }

/* Wrapper aus den Bausteinen */
.sb-pillars-wrap .wrap { padding-top: 24px; padding-bottom: 24px; }
.sb-pillars-wrap { border-bottom: 1px solid var(--hairline); }
.sb-cta--solo { grid-template-columns: 1fr !important; }
.step-cta { display: flex; align-items: center; }
.phero__text .wp-block-buttons { margin-top: 0; }
.sb-hero .wp-block-buttons { align-items: center; }

/* Säulen als Links */
a.sb-pillar { text-decoration: none; }
a.sb-pillar:hover .sb-pillar__label { color: var(--gold-text); }

/* Drei Risiken */
.risk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); margin-top: 64px; }
.risk > div { padding: 40px 36px 44px; }
.risk > div + div { border-left: 1px solid var(--hairline); }
.risk__label { color: var(--muted); margin: 0 0 18px !important; }
.risk__title { font-family: var(--font-serif); font-weight: 500; font-size: 24px; line-height: 32px; color: var(--navy-900); margin: 0 0 14px; }
.risk > .is-navy { background: var(--navy-900); color: var(--on-navy-muted); }
.risk > .is-navy .risk__label { color: var(--gold-500); }
.risk > .is-navy .risk__title { color: var(--on-navy); }

/* Qualifikationen */
.quals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 72px; }
.quals__big { font-family: var(--font-display); font-size: 28px; line-height: 34px; color: var(--navy-900); margin: 0 0 8px !important; }

/* Schritte */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 40px; margin-top: 72px; }
.step { border-top: 1px solid var(--navy-900); padding-top: 24px; }
.step__no { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--gold-text); margin: 0 0 20px !important; }
.step__title { font-family: var(--font-serif); font-weight: 500; font-size: 21px; line-height: 28px; color: var(--navy-900); margin: 0 0 10px; }
.step p { font-size: 15px; line-height: 25px; }

/* Zeitstrahl (Detailseite) */
.tl { border-top: 1px solid var(--navy-900); margin-top: 56px; }
.tl__row { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); padding: 36px 0; border-bottom: 1px solid var(--hairline); }
.tl__no { font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--gold-text); }
.tl__title { font-family: var(--font-serif); font-weight: 500; font-size: 24px; line-height: 32px; color: var(--navy-900); margin: 0; padding-right: 40px; }

/* Leistungen mit Haken */
.tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hairline); margin-top: 56px; }
.task { display: flex; gap: 18px; padding: 28px 28px 28px 0; border-bottom: 1px solid var(--hairline); }
.task svg { flex: none; width: 22px; height: 22px; color: var(--gold-500); margin-top: 3px; }
.task__title { font-family: var(--font-serif); font-weight: 500; font-size: 19px; line-height: 26px; color: var(--navy-900); margin: 0 0 6px !important; }
.task p:last-child { font-size: 15px; line-height: 24px; color: var(--muted); }

/* Zwei Spalten */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.two--center { align-items: center; }
.phero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; padding-top: 56px; padding-bottom: 96px; }
.crumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); margin: 0 0 48px !important; }
.crumb a { color: var(--muted); text-decoration: none; }

/* Liste Bewertung */
.vlist { list-style: none; margin: 28px 0 36px; padding: 0; border-top: 1px solid var(--hairline); }
.vlist li { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; color: var(--muted); }
.vlist strong { font-family: var(--font-serif); font-weight: 400; font-size: 19px; color: var(--navy-900); }

/* Anlass-Karten und Objektarten */
.cases, .types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.types--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case, .type { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; background: var(--surface); border: 1px solid var(--hairline); text-decoration: none; color: var(--ink); transition: border-color .25s ease; }
.case:hover { border-color: var(--navy-900); color: var(--ink); }
.case__label { color: var(--gold-text); }
.case__title { font-family: var(--font-serif); font-weight: 500; font-size: 22px; line-height: 29px; color: var(--navy-900); }
.case__arrow { width: 22px; height: 10px; color: var(--gold-500); margin-top: auto; }
.type svg { width: 40px; height: 40px; color: var(--gold-500); }

/* Kundenstimmen */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.sb-quote blockquote { margin: var(--space-3) 0 var(--space-6); padding: 0; border: 0; }

/* Orte */
.placelist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.placelist a { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--hairline); font-family: var(--font-display); font-size: 30px; line-height: 36px; color: var(--navy-900); text-decoration: none; }
.placelist a:hover { color: var(--gold-text); }
.placelist a svg { width: 22px; height: 10px; color: var(--gold-500); }
.near { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.near a { padding: 12px 20px; border: 1px solid var(--hairline); background: var(--surface); text-decoration: none; font-size: 15px; color: var(--navy-900); }
.near a:hover { border-color: var(--navy-900); }

/* Marktdaten */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--navy-900); margin-top: 56px; }
.facts > div { padding: 32px 32px 36px 0; border-bottom: 1px solid var(--hairline); }
.facts__big { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--navy-900); margin: 0 0 12px !important; }

/* Büro-Karte */
.office { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--hairline); }
.office__text { padding: 56px; }
.office__map { min-height: 360px; background: var(--sand) url("../img/illustration-haus-800.webp") center / cover no-repeat; border-left: 1px solid var(--hairline); }

/* Über mich */
.ahero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 88px; align-items: center; padding-top: 64px; padding-bottom: 112px; }
.frame { position: relative; margin: 0; }
.frame img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; position: relative; z-index: 1; }
.frame::after { content: ""; position: absolute; inset: 20px -20px -20px 20px; border: 1px solid var(--gold-500); }
.cv { border-top: 1px solid var(--navy-900); margin-top: 56px; }
.cv__row { display: grid; grid-template-columns: 200px minmax(0, 1fr); padding: 30px 0; border-bottom: 1px solid var(--hairline); }
.cv__when { font-family: var(--font-display); font-size: 24px; line-height: 32px; color: var(--gold-text); }
.vals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 64px; }
.vals > div { border-top: 2px solid var(--gold-500); padding-top: 28px; }
.vals__title { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 38px; color: var(--navy-900); margin: 0 0 14px; }
.certs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.cert { background: var(--surface); border: 1px solid var(--hairline); aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; gap: 8px; }
.cert__title { font-family: var(--font-serif); font-weight: 500; font-size: 18px; line-height: 25px; color: var(--navy-900); }

/* FAQ mit core/details */
.faq { margin-top: 40px; border-top: 1px solid var(--hairline); }
.faq .wp-block-details { border-bottom: 1px solid var(--hairline); margin: 0 !important; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font-family: var(--font-serif); font-weight: 500; font-size: 22px; line-height: 30px; color: var(--navy-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; border: 1px solid var(--gold-500); border-radius: 999px; display: grid; place-items: center; color: var(--gold-text); font-family: var(--font-sans); font-size: 20px; font-weight: 300; }
.faq details[open] summary::after { content: "–"; background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.faq details p { margin: 0 0 28px; max-width: 760px; font-size: 17px; line-height: 29px; }

/* Kontaktseite */
.kgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: start; padding-top: 64px; padding-bottom: 112px; }
.kinfo { border-top: 1px solid var(--navy-900); margin-top: 48px; }
.kinfo > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--hairline); font-size: 17px; line-height: 27px; }
.kinfo a { text-decoration: none; }
.sb-anfrage .sb-form { max-width: none; padding: 48px; }
.sb-anfrage [data-step]:not(.is-active) { display: none; }
.sb-anfrage .chips { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0 0 24px; }
.sb-anfrage .chip { position: relative; }
.sb-anfrage .chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sb-anfrage .chip span { display: block; padding: 12px 18px; border: 1px solid var(--hairline); font-size: 15px; color: var(--navy-900); background: var(--surface); }
.sb-anfrage .chip input:checked + span { border-color: var(--navy-900); box-shadow: inset 0 -3px 0 var(--gold-500); }
.sb-anfrage .chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.sb-anfrage .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.sb-anfrage select.sb-input { appearance: none; background: transparent; }
.sb-anfrage textarea.sb-input { resize: vertical; min-height: 96px; }
.sb-anfrage .consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 22px; color: var(--muted); margin: 8px 0 0; }
.sb-anfrage .consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy-900); }
.sb-anfrage .hp { position: absolute; left: -9999px; }
.sb-anfrage__notice { padding: 20px 24px; margin: 0 0 24px; border: 1px solid var(--hairline); background: var(--surface); }
.sb-anfrage__notice.is-error { border-color: var(--error); color: var(--error); }
.sb-btn-text { border: 0; background: transparent; cursor: pointer; }
.next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 56px; }

/* Rechtstexte */
.legal { max-width: 760px; }
.legal h2 { font-family: var(--font-serif); font-weight: 500; font-size: 24px; line-height: 32px; color: var(--navy-900); margin: 48px 0 14px; }
.legal p, .legal li { font-size: 16px; line-height: 27px; }
.legal p + p { margin-top: 14px; }

/* Fußzeile */
.ft a { color: var(--on-navy); text-decoration: none; }
.ft a:hover { color: var(--gold-300); }
.ft-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.ft-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }

/* Responsiv */
@media (max-width: 1000px) {
  .steps, .cases, .types, .tasks, .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: 1fr; }
  .ft-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .sec { padding-top: 72px; padding-bottom: 72px; }
  .risk, .facts, .vals, .next { grid-template-columns: 1fr; }
  .risk > div + div { border-left: 0; border-top: 1px solid var(--hairline); }
  .two, .phero, .ahero, .kgrid, .office { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .office__map { border-left: 0; border-top: 1px solid var(--hairline); }
  .office__text { padding: 32px 24px; }
  .tl__row { grid-template-columns: 72px minmax(0, 1fr); }
  .tl__row > :last-child { grid-column: 2; padding-top: 12px; }
  .cv__row { grid-template-columns: 1fr; gap: 6px; }
  .sb-display { font-size: 40px; line-height: 44px; }
  .sb-display--xl { font-size: 48px; line-height: 52px; }
  .sb-hero__facts { flex-wrap: wrap; gap: 24px; }
  .sb-anfrage .sb-form { padding: 28px 20px; }
  .ft .ft-in { padding: 56px 20px 32px !important; }
}
@media (max-width: 560px) {
  .steps, .cases, .types, .tasks, .quals, .placelist, .certs, .ft-cols { grid-template-columns: 1fr; }
  .placelist a { font-size: 26px; }
  .sb-anfrage .row2 { grid-template-columns: 1fr; }
  .kinfo > div { grid-template-columns: 1fr; gap: 4px; }
  .sb-band__divider { display: none; }
  .ft-bottom { flex-direction: column; align-items: flex-start !important; }
}

/* Lange Ortsnamen in großen Überschriften dürfen auf dem Handy umbrechen */
@media (max-width: 560px) {
  .sb-display, .sb-hero__title { overflow-wrap: break-word; hyphens: auto; }
  .wp-block-buttons .wp-block-button { max-width: 100%; }
  .wp-block-buttons .wp-block-button__link { white-space: normal; }
}

/* ---------- Hero: dezenteres Porträt, Kennzahlen als Editorial-Leiste ---------- */
.sb-hero__media { min-height: 0 !important; background: var(--ground); overflow: visible; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 72px 72px 72px 8px; }
.sb-hero__media::after { display: none; }
.sb-hero__media img { position: relative; inset: auto; width: 100%; max-width: 380px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; box-shadow: 20px 20px 0 -1px var(--ground), 20px 20px 0 0 var(--gold-500); }
.sb-hero__badge { position: static; background: none; color: var(--navy-900); padding: 0; margin-top: 44px; display: flex; flex-direction: column; gap: 6px; }
.sb-hero__badge strong { font-size: 19px; color: var(--navy-900); }
.sb-hero__badge span { font-size: 11px; letter-spacing: .16em; color: var(--gold-text); }
.sb-hero__facts { display: grid; grid-template-columns: repeat(3, max-content); gap: 0; margin: 56px 0 0; padding: 32px 0 0; border-top: 1px solid var(--hairline); }
.sb-hero__facts li { padding: 0 36px; border-left: 1px solid var(--hairline); display: flex; flex-direction: column; }
.sb-hero__facts li:first-child { padding-left: 0; border-left: 0; }
.sb-hero__facts strong { font-size: 46px; line-height: 1; letter-spacing: -.01em; margin: 0; white-space: nowrap; }
.sb-hero__facts strong::after { content: ""; display: block; width: 24px; height: 1px; background: var(--gold-500); margin: 18px 0 14px; }
.sb-hero__facts span { font-size: 11px; line-height: 18px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (max-width: 860px) {
  .sb-hero__media { padding: 8px 20px 64px; align-items: center; }
  .sb-hero__media img { max-width: 320px; }
  .sb-hero__badge { align-items: center; text-align: center; }
}
@media (max-width: 560px) {
  .sb-hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sb-hero__facts li { padding: 0 12px; }
  .sb-hero__facts strong { font-size: 30px; }
  .sb-hero__facts span { font-size: 10px; letter-spacing: .1em; line-height: 15px; white-space: normal; }
}

/* Umgebungs-Chips: Absatzabstände der Textklasse aufheben, damit alle gleich hoch sitzen */
.near { align-items: flex-start; }
.near > * { margin: 0 !important; }

/* CTA-Porträt: Goldrahmen nur um das Bild, nicht durch die Bildunterschrift */
.sb-cta__portrait::after { display: none; }
.sb-cta__portrait img { box-shadow: 14px 14px 0 -1px var(--navy-900), 14px 14px 0 0 var(--gold-500); }
.sb-cta__portrait figcaption { margin-top: 40px; }

/* Hero auf dieselbe Inhaltsbreite wie alle Abschnitte darunter */
.sb-hero { max-width: 1200px; margin: 0 auto; padding: 0 40px; box-sizing: border-box; gap: 64px; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.sb-hero__copy { padding: 88px 0 80px; }
.sb-hero__media { padding: 88px 20px 80px 0; align-items: flex-end; }
.sb-hero__badge { align-self: stretch; max-width: 380px; margin-left: auto; }
@media (max-width: 860px) {
  .sb-hero { padding: 0 20px; gap: 0; grid-template-columns: minmax(0, 1fr); }
  .sb-hero__copy { padding: 48px 0 32px; }
  .sb-hero__media { padding: 8px 0 64px; align-items: center; }
  .sb-hero__badge { margin: 44px auto 0; }
}
.sb-hero__badge { align-self: flex-end; width: 380px; max-width: 100%; margin-left: 0; }
/* Kopfzeile und Topbar an derselben Inhaltskante ausrichten */
@media (min-width: 981px) {
  .sb-header, .sb-topbar__in { padding-left: max(40px, calc((100% - 1120px) / 2)); padding-right: max(40px, calc((100% - 1120px) / 2)); }
}
@media (max-width: 560px) {
  .sb-hero__facts { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .sb-hero__facts li { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 16px; padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--hairline); }
  .sb-hero__facts strong { font-size: 32px; }
  .sb-hero__facts strong::after { display: none; }
  .sb-hero__facts span { font-size: 10px; letter-spacing: .14em; white-space: normal; }
  .sb-hero__media img { max-width: 260px; }
  .sb-hero__badge { width: 260px; align-self: center; }
}
@media (max-width: 560px) { .sb-hero__badge { align-items: flex-start; text-align: left; } .sb-hero__badge span { font-size: 10px; letter-spacing: .1em; } }

/* Urkunden mit Bild */
.cert.has-img { aspect-ratio: auto; justify-content: flex-start; padding: 20px 20px 24px; }
.cert__img { display: block; margin: 0 0 20px; border: 1px solid var(--hairline); background: var(--ground); }
.cert__img img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; transition: opacity .2s; }
.cert__img:hover img { opacity: .85; }
.cert__title { font-family: var(--font-serif); font-weight: 500; font-size: 17px; line-height: 24px; color: var(--navy-900); }

/* Qualifikationen: gleiche Leiste wie die Kennzahlen im Hero */
.quals { gap: 0; margin-top: 72px; padding-top: 36px; border-top: 1px solid var(--hairline); }
.quals > * { padding: 0 32px; border-left: 1px solid var(--hairline); display: flex; flex-direction: column; }
.quals > *:first-child { padding-left: 0; border-left: 0; }
.quals__big { font-size: 26px !important; line-height: 32px !important; }
.quals__big::after { content: ""; display: block; width: 24px; height: 1px; background: var(--gold-500); margin: 18px 0 14px; }
.quals .sb-muted { font-size: 11px !important; line-height: 18px !important; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 !important; }
@media (max-width: 1000px) { .quals > *:nth-child(3) { padding-left: 0; border-left: 0; } .quals > * { padding-bottom: 28px; } }
@media (max-width: 560px) { .quals > * { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--hairline); } .quals { padding-top: 0; } }

/* Überschriften ausgewogen umbrechen, keine einzelnen Wörter in der letzten Zeile */
h1, h2, h3, .sb-sec__title, .sb-display, .sb-cta__title { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* Fußzeile: Spalten mit feinen Trennlinien und Goldstrich unter den Überschriften */
.ft-cols { gap: 0; }
.ft-cols > div { padding: 0 36px; border-left: 1px solid rgba(255, 255, 255, .12); }
.ft-cols > div:first-child { padding-left: 0; border-left: 0; }
.ft-cols .sb-label { margin-bottom: 0 !important; }
.ft-cols .sb-label::after { content: ""; display: block; width: 24px; height: 1px; background: var(--gold-500); margin: 16px 0 22px; }
.ft-cols > div:first-child p { margin-top: 4px; }
.ft-list { gap: 12px; }
@media (max-width: 1000px) { .ft-cols { row-gap: 40px; } .ft-cols > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .ft-cols > div { padding: 0 0 28px; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); } .ft-cols > div:last-child { border-bottom: 0; } }

/* Über mich: Porträt dezenter, wie auf der Startseite */
.ahero { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 80px; }
.ahero .frame { max-width: 360px; width: 100%; justify-self: start; margin: 0; }
.ahero .frame::after { inset: 18px -18px -18px 18px; }
@media (max-width: 860px) { .ahero { grid-template-columns: minmax(0, 1fr); gap: 48px; } .ahero .frame { max-width: 280px; justify-self: center; } }

/* CTA: Abstand nach farbigen Abschnitten, Illustration als gerahmter Druck */
.sec--sand + .sec--tight, .sec--surface + .sec--tight { padding-top: 112px; }
.sb-cta__portrait--illu img { aspect-ratio: 1 / 1; object-fit: contain; background: var(--ground); }

/* ---------- Korrekturen aus dem Design-Review ---------- */
html, body { overflow-x: clip; }
/* Mobil: lange Wörter in großen Überschriften nicht mitten im Wort trennen, Schrift skaliert */
@media (max-width: 560px) {
  .sb-display, .sb-hero__title { overflow-wrap: normal; hyphens: manual; }
  .phero h1, .ahero h1, .kgrid h1, .sec > h1, h1.sb-display { font-size: clamp(30px, 8.6vw, 44px) !important; line-height: 1.12 !important; }
  .wp-block-button__link { line-height: 1.3; }
  .risk__item:not(.is-navy) { padding-left: 0 !important; padding-right: 0 !important; }
  .vlist li { flex-direction: column; gap: 4px; }
  .ft-in > div[style*="justify-content: space-between"], .ft-in > div[style*="justify-content:space-between"] { flex-direction: column; align-items: flex-start !important; }
  .ft-in .sb-label { display: block; margin: 0 0 6px !important; }
}
/* Karten: Links einzeilig, gleiche Grundlinie */
.type .sb-link, .case .sb-link { white-space: nowrap; }
.type h3 { min-height: 2.6em; }
.step__title { min-height: 2.6em; }
/* Kundenstimmen: Autorzeile unten bündig, Goldlinie gleich lang */
.quotes { align-items: stretch; }
.quotes .sb-quote { display: flex; flex-direction: column; height: 100%; }
.quotes .sb-quote__text { flex: 1; }
.sb-quote__who { border-top: 0 !important; position: relative; padding-top: 18px !important; }
.sb-quote__who::before { content: ""; position: absolute; left: 0; top: 0; width: 48px; height: 1px; background: var(--gold-500); }
/* Buttons/Links in Textspalten mit Luft */
.two__text .wp-block-buttons, .bridge__text .wp-block-buttons { margin-top: 28px !important; }
/* Rechtstexte: klare Hierarchie */
.legal { margin-top: 48px; }
.legal h2:first-child { margin-top: 0; }
.legal h2 { margin-top: 56px; }
/* Hochgestellte Zeichen in großen Zahlen */
.facts__big { font-variant-position: normal; }
/* Fußzeilen-Logo nicht verzögert laden */
.ft-cols > div:first-child { align-self: start; }

/* Orts-Chips: bündig, gleiche Höhe, kein Versatz */
.near { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin: 28px 0 0 !important; padding: 0; }
.near > *, .near > * + * { margin: 0 !important; }
.near__chip, .near a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--hairline); background: var(--surface); font-size: 15px; line-height: 1.2; color: var(--navy-900); }

/* Freigestellte Illustrationen liegen direkt auf dem Seitenhintergrund */
.phero__media img { background: transparent !important; box-shadow: none !important; }
.phero__media { max-width: 520px; justify-self: center; width: 100%; }

/* Mobil: Hero-Porträt bündig an der linken Kante, Rahmen innerhalb der Seite */
@media (max-width: 860px) {
  .sb-hero__media { padding: 8px 20px 64px 0 !important; align-items: flex-start !important; }
  .sb-hero__media img { max-width: 300px !important; }
  .sb-hero__badge { width: 300px !important; max-width: 100%; align-self: flex-start !important; align-items: flex-start !important; text-align: left !important; margin: 44px 0 0 !important; }
}
/* Mobil: lange Buttons einzeilig und linksbündig */
@media (max-width: 560px) {
  .wp-block-button__link { height: auto; min-height: 56px; padding: 14px 22px; letter-spacing: .14em; font-size: 11.5px; justify-content: space-between; text-align: left; line-height: 1.4; }
  .wp-block-buttons > .wp-block-button { max-width: 100%; }
}

@media (max-width: 860px) { .ahero .frame { justify-self: start !important; margin: 0 !important; max-width: 300px; } }

/* Porträt freigestellt: Sandfläche ab Schulterhöhe, Goldlinie läuft nach oben aus */
.sb-cutout { position: relative; display: block; width: 100%; max-width: 400px; margin: 0; isolation: isolate; }
.sb-cutout::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: 30%; background: linear-gradient(180deg, #EDE4D3 0%, #E6DAC4 100%); z-index: -1; }
.sb-cutout::after { content: ""; position: absolute; left: -18px; right: -18px; bottom: -18px; top: 44%; border: 1px solid var(--gold-500); border-top: 0; z-index: -2; pointer-events: none;
  -webkit-mask: linear-gradient(to bottom, transparent 0, #000 38%); mask: linear-gradient(to bottom, transparent 0, #000 38%); }
.sb-cutout img, .sb-hero__media .sb-cutout img, .sb-cta__portrait .sb-cutout img { display: block; position: relative; width: 100% !important; max-width: none !important; height: auto !important; aspect-ratio: auto !important; object-fit: contain !important; box-shadow: none !important; background: transparent !important; inset: auto; }
.sb-hero__media .sb-cutout { max-width: 380px; }
.sb-cutout--about { max-width: 360px; justify-self: start; }
.sb-cutout--navy { max-width: 220px; }
.sb-cutout--navy::before { background: var(--navy-800); }
@media (max-width: 860px) {
  .sb-hero__media .sb-cutout, .sb-cutout--about { max-width: 300px; }
  .ahero .sb-cutout--about { justify-self: start; }
}

/* Qualifikationen als eigenes Band */
.sec--quals { background: var(--navy-900); padding-top: 64px !important; padding-bottom: 64px !important; }
.sec--quals .quals { margin-top: 0; padding-top: 0; border-top: 0; }
.sec--quals .quals > * { border-left-color: rgba(255,255,255,.14); }
.sec--quals .quals__big { color: #fff !important; }
.sec--quals .quals .sb-muted { color: var(--on-navy-muted) !important; }
@media (max-width: 560px) { .sec--quals .quals > * { border-bottom-color: rgba(255,255,255,.14); } .sec--quals .quals > *:last-child { border-bottom: 0; padding-bottom: 0; } .sec--quals .quals > *:first-child { padding-top: 0; } }

/* Region: Hinweis-Link statt "Alle Orte" */
.placelist a.placelist__more { font-family: var(--font-body, inherit); font-size: 17px; line-height: 24px; font-weight: 600; color: var(--gold-text); }
.placelist a.placelist__more:hover { color: var(--navy-900); }


/* AGB */
.legal p.agb-sender, .agb-sender { color: var(--gold-text); margin: 0 0 32px; font-size: 12px; line-height: 20px; }
.agb-list { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.agb-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; padding: 22px 0; border-top: 1px solid var(--hairline); }
.agb-list li:last-child { border-bottom: 1px solid var(--hairline); }
.agb-list__no { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--gold-500); }
.agb-list p { margin: 0; }
.agb-pdf { margin-top: 32px; }
@media (max-width: 560px) { .agb-list li { grid-template-columns: 40px minmax(0, 1fr); } .agb-list__no { font-size: 24px; } }

/* Julia Runde 1: Anlass-Kacheln ohne eigene Seite */
.case--static:hover { border-color: var(--hairline); }
/* Langer Eintrag „Rhein-Neckar-Kreis“: in einer Zeile halten, damit die Reihe nicht höher wird */
.placelist { container-type: inline-size; }
.placelist a.placelist__all { white-space: nowrap; gap: 12px; font-size: min(25px, 5.6cqi); }
@media (max-width: 560px) { .placelist a.placelist__all { font-size: 26px; } }

/* ---------- 404: „Schon verkauft“ ---------- */
.sb-404__hero { padding-top: 72px; padding-bottom: 72px; }
.sb-404__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.sb-404 .sb-display { font-size: clamp(40px, 5vw, 60px); line-height: 1.08; }
.sb-404 .wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.sb-404__media { position: relative; margin: 0; overflow: hidden; }
.sb-404__media img { display: block; width: 100%; height: auto; }
.sb-404__banner { position: absolute; top: 34px; right: -58px; width: 240px; padding: 10px 0; transform: rotate(35deg); background: var(--gold-500); color: var(--navy-900); font: 500 13px/1 var(--font-sans); letter-spacing: .32em; text-transform: uppercase; text-align: center; box-shadow: 0 8px 20px -10px rgba(10,33,72,.5); }
.sb-404__links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hairline); }
.sb-404__links a { position: relative; display: block; padding: 26px 48px 26px 0; border-bottom: 1px solid var(--hairline); text-decoration: none; color: var(--navy-900); }
.sb-404__links a + a { padding-left: 28px; border-left: 1px solid var(--hairline); }
.sb-404__links small { display: block; margin-bottom: 8px; font-size: 11px; line-height: 1; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.sb-404__links span { font-family: var(--font-display); font-size: 24px; line-height: 30px; }
.sb-404__links svg { position: absolute; right: 18px; top: 50%; width: 22px; height: 10px; color: var(--gold-500); transition: transform .25s ease; }
.sb-404__links a:hover { color: var(--gold-text); }
.sb-404__links a:hover svg { transform: translateX(5px); }
@media (max-width: 1080px) {
	.sb-404__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.sb-404__media { max-width: 560px; }
	.sb-404__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sb-404__links a:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
	.sb-404__hero { padding-top: 40px; padding-bottom: 48px; }
	.sb-404__links { grid-template-columns: minmax(0, 1fr); }
	.sb-404__links a, .sb-404__links a + a { padding-left: 0; border-left: 0; }
	.sb-404__banner { top: 22px; right: -64px; font-size: 11px; }
}
