/*
Theme Name: Schmalbach Immobilien
Theme URI: https://schmalbach.immobilien
Author: Monkeyreels
Author URI: https://monkeyreels.de
Description: Individuelles Block-Theme für Schmalbach Immobilien, Julia Schmalbach, Eppelheim. Navy und Gold, Libre Caslon und Jost, lokal gehostete Schriften.
Version: 1.0.32
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
License: Proprietär
Text Domain: schmalbach
*/

/* Schmalbach Immobilien — generated from tokens.json */
:root, [data-theme="light"] {
  --navy-900: #0a2148;
  --navy-800: #132c59;
  --navy-700: #1e3563;
  --navy-100: #e6eaf1;
  --gold-500: #c18c40;
  --gold-300: #d9b47a;
  --gold-text: #8a5d1a;
  --ground: #faf8f4;
  --surface: #ffffff;
  --sand: #f2ede3;
  --ink: #2b3654;
  --muted: #5b6478;
  --on-navy: #ffffff;
  --on-navy-muted: #afb8cc;
  --hairline: #e3dccf;
  --field-border: #8c8270;
  --error: #b42318;
  --focus: var(--navy-900);
  --shadow-card: 0 1px 2px rgba(10,33,72,0.06), 0 8px 24px rgba(10,33,72,0.06);
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --content-width: 1200px;
  --text-width: 680px;
  --radius-0: 0px;
  --radius-sm: 2px;
  --radius-round: 999px;
  --rule-gold: 2px;
  --rule-hair: 1px;
  --font-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --font-serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-sans: Jost, "Avenir Next", "Segoe UI", sans-serif;
  --text-display: 400 80px/84px var(--font-display);
  --text-h1: 400 60px/64px var(--font-display);
  --text-h2: 400 46px/52px var(--font-display);
  --text-h3: 500 26px/34px var(--font-serif);
  --text-quote: italic 400 24px/38px var(--font-serif);
  --text-lead: 300 20px/32px var(--font-sans);
  --text-body: 400 17px/28px var(--font-sans);
  --text-small: 400 14px/22px var(--font-sans);
  --text-label: 500 12px/16px var(--font-sans);
  --text-phone: 500 28px/32px var(--font-sans);
}
.display {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 84px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.h1 {
  font-family: var(--font-display);
  font-size: 60px;
  line-height: 64px;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.h2 {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 52px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 34px;
  font-weight: 500;
  letter-spacing: 0;
}
.quote {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 38px;
  font-weight: 400;
  letter-spacing: 0;
  font-style: italic;
}
.lead {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 32px;
  font-weight: 300;
  letter-spacing: 0;
}
.body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 28px;
  font-weight: 400;
  letter-spacing: 0;
}
.small {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  letter-spacing: 0;
}
.label {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.22em;
}
.phone {
  font-family: var(--font-sans);
  font-size: 28px;
  line-height: 32px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
@font-face {
  font-family: "Libre Caslon Display";
  src: url("assets/fonts/LibreCaslonDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("assets/fonts/LibreCaslonText-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("assets/fonts/LibreCaslonText-Italic-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("assets/fonts/Jost-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Schmalbach Immobilien – Komponenten. Werte kommen aus tokens.css. */
.sb-root { font-family: var(--font-sans); color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; }
.sb-root *, .sb-root *::before, .sb-root *::after { box-sizing: border-box; }
.sb-label { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.sb-display { font-family: var(--font-display); font-weight: 400; color: var(--navy-900); letter-spacing: -.015em; }
.sb-display em, .sb-sec__title em, .sb-cta__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--gold-text); letter-spacing: -.01em; }
.sb-on-navy .sb-display em, .sb-on-navy .sb-cta__title em { color: var(--gold-300); }

/* ---------- Button ---------- */
.sb-btn { --arrow-shift: 0px; position: relative; 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: var(--radius-0); cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease; white-space: nowrap; }
.sb-btn .sb-arrow { width: 22px; height: 10px; flex: none; transform: translateX(var(--arrow-shift)); transition: transform .25s ease; }
.sb-btn:hover { --arrow-shift: 5px; }
.sb-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sb-btn--primary { background: var(--navy-900); color: var(--on-navy); }
.sb-btn--primary::after { content: ""; position: absolute; left: 32px; right: 32px; bottom: 12px; height: 1px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.sb-btn--primary:hover { background: var(--navy-800); }
.sb-btn--primary:hover::after { transform: scaleX(1); }
.sb-btn--primary .sb-arrow { color: var(--gold-500); }
.sb-btn--outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.sb-btn--outline:hover { background: var(--navy-900); color: var(--on-navy); }
.sb-btn--gold { background: var(--gold-500); color: var(--navy-900); }
.sb-btn--gold:hover { background: var(--gold-300); }
.sb-btn--ghost-light { background: transparent; color: var(--on-navy); border-color: rgba(255,255,255,.4); }
.sb-btn--ghost-light:hover { border-color: var(--gold-500); color: var(--gold-300); }
.sb-on-navy .sb-btn:focus-visible { outline-color: var(--gold-500); }
.sb-btn[disabled] { opacity: .4; cursor: not-allowed; }
.sb-link { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--navy-900); text-decoration: none; padding-bottom: 8px; background: linear-gradient(var(--gold-500), var(--gold-500)) left bottom / 100% 1px no-repeat; transition: background-size .3s ease; }
.sb-link .sb-arrow { width: 22px; height: 10px; color: var(--gold-500); transition: transform .25s ease; }
.sb-link:hover .sb-arrow { transform: translateX(5px); }
.sb-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.sb-phone-link { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy-900); }
.sb-phone-link__ring { width: 44px; height: 44px; border-radius: var(--radius-round); border: 1px solid var(--gold-500); display: grid; place-items: center; color: var(--gold-500); transition: background-color .25s ease, color .25s ease; }
.sb-phone-link__ring svg { width: 18px; height: 18px; }
.sb-phone-link:hover .sb-phone-link__ring { background: var(--gold-500); color: var(--navy-900); }
.sb-phone-link__txt { display: grid; gap: 2px; }
.sb-phone-link__txt small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.sb-phone-link__txt span { font-size: 17px; font-weight: 500; letter-spacing: .02em; }
.sb-phone-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

/* ---------- Abschnittsüberschrift ---------- */
.sb-sec { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8) var(--space-16); align-items: end; }
.sb-sec__meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.sb-sec__no { font-family: var(--font-display); font-size: 18px; color: var(--gold-text); }
.sb-sec__line { flex: 0 0 56px; height: 1px; background: var(--gold-500); }
.sb-sec__label { color: var(--muted); }
.sb-sec__title { font-family: var(--font-display); font-weight: 400; font-size: 46px; line-height: 52px; letter-spacing: -.01em; color: var(--navy-900); margin: 0; }
.sb-sec__intro { font-size: 17px; line-height: 28px; font-weight: 300; color: var(--ink); margin: 0; padding-bottom: 6px; }
.sb-sec--stacked { grid-template-columns: 1fr; }
@media (max-width: 760px) { .sb-sec { grid-template-columns: 1fr; } .sb-sec__title { font-size: 32px; line-height: 38px; } }

/* ---------- Säulen ---------- */
.sb-pillars { display: grid; grid-template-columns: repeat(3, 1fr); }
.sb-pillar { text-align: center; padding: var(--space-6) var(--space-4); }
.sb-pillar + .sb-pillar { border-left: var(--rule-hair) solid var(--gold-500); }
.sb-pillar__icon { width: 48px; height: 48px; color: var(--gold-500); margin: 0 auto var(--space-4); display: block; }
.sb-pillar__label { font-family: var(--font-sans); font-size: 15px; letter-spacing: .14em; font-weight: 500; text-transform: uppercase; color: var(--navy-900); margin: 0; }
.sb-pillar__rule { display: block; width: 48px; height: var(--rule-gold); background: var(--gold-500); margin: var(--space-3) auto 0; }
.sb-pillar__text { font-size: 15px; line-height: 24px; color: var(--muted); margin: var(--space-3) auto 0; max-width: 260px; }
@media (max-width: 640px) { .sb-pillars { grid-template-columns: 1fr; } .sb-pillar + .sb-pillar { border-left: 0; border-top: var(--rule-hair) solid var(--hairline); } }

/* ---------- CTA-Panel mit Rahmen wie die Schilder ---------- */
.sb-cta { position: relative; background: var(--navy-900); color: var(--on-navy); padding: 72px 72px 64px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: center; overflow: hidden; }
.sb-cta::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(193,140,64,.55); pointer-events: none; }
.sb-cta__title { font-family: var(--font-display); font-weight: 400; font-size: 46px; line-height: 52px; letter-spacing: -.01em; margin: 18px 0 20px; color: var(--on-navy); }
.sb-cta__text { font-size: 17px; line-height: 28px; font-weight: 300; color: var(--on-navy-muted); margin: 0 0 32px; max-width: 520px; }
.sb-cta__label { color: var(--gold-500); display: flex; align-items: center; gap: 14px; }
.sb-cta__label::before { content: ""; width: 40px; height: 1px; background: var(--gold-500); }
.sb-cta__actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.sb-cta__actions .sb-phone-link { color: var(--on-navy); }
.sb-cta__actions .sb-phone-link__txt small { color: var(--on-navy-muted); }
.sb-cta__portrait { position: relative; margin: 0; }
.sb-cta__portrait img { display: block; width: 100%; aspect-ratio: 5 / 6; object-fit: cover; position: relative; z-index: 1; }
.sb-cta__portrait::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--gold-500); }
.sb-cta__portrait figcaption { position: relative; z-index: 1; margin-top: 26px; font-size: 14px; color: var(--on-navy-muted); }
.sb-cta__portrait figcaption strong { display: block; font-family: var(--font-serif); font-weight: 500; font-size: 18px; color: var(--on-navy); }
@media (max-width: 860px) { .sb-cta { grid-template-columns: 1fr; padding: 48px 32px; } .sb-cta__portrait { max-width: 220px; } .sb-cta__title { font-size: 34px; line-height: 40px; } }

/* ---------- Kontaktband ---------- */
.sb-band { position: relative; background: var(--navy-900); color: var(--on-navy); padding: 56px var(--space-8) 40px; clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
.sb-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100%; background: var(--gold-500); clip-path: polygon(0 18%, 100% 0, 100% 4px, 0 calc(18% + 4px)); }
.sb-band__inner { display: flex; align-items: center; justify-content: center; gap: var(--space-6); flex-wrap: wrap; }
.sb-band__circle { width: 64px; height: 64px; border-radius: var(--radius-round); background: var(--gold-500); color: var(--navy-900); display: grid; place-items: center; flex: none; }
.sb-band__circle svg { width: 30px; height: 30px; }
.sb-band__divider { width: 1px; align-self: stretch; background: var(--gold-500); }
.sb-band__phone { font-family: var(--font-sans); font-size: 28px; line-height: 32px; font-weight: 500; letter-spacing: .02em; color: var(--on-navy); text-decoration: none; border-bottom: var(--rule-gold) solid var(--gold-500); padding-bottom: 6px; }
.sb-band__phone:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 4px; }
.sb-band__label { font-size: 14px; color: var(--on-navy-muted); margin: 0 0 var(--space-1); }

/* ---------- Kundenstimme ---------- */
.sb-quote { background: var(--surface); border: var(--rule-hair) solid var(--hairline); border-radius: var(--radius-sm); padding: var(--space-8); position: relative; }
.sb-quote__mark { font-family: var(--font-display); font-size: 72px; line-height: 1; color: var(--gold-500); height: 32px; display: block; }
.sb-quote__text { font-family: var(--font-serif); font-style: italic; font-size: 20px; line-height: 32px; color: var(--navy-900); margin: var(--space-3) 0 var(--space-6); }
.sb-quote__who { font-size: 14px; line-height: 22px; color: var(--muted); border-top: var(--rule-gold) solid var(--gold-500); padding-top: var(--space-3); display: inline-block; }
.sb-quote__who strong { color: var(--ink); font-weight: 500; }

/* ---------- Formular ---------- */
.sb-form { background: var(--surface); border-radius: var(--radius-0); box-shadow: var(--shadow-card); padding: 40px; max-width: 560px; }
.sb-steps { display: flex; gap: var(--space-2); margin: 0 0 32px; padding: 0; list-style: none; counter-reset: st; }
.sb-steps li { flex: 1; counter-increment: st; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 10px; border-top: 2px solid var(--hairline); }
.sb-steps li::before { content: "0" counter(st) " "; font-family: var(--font-display); letter-spacing: 0; font-size: 14px; margin-right: 4px; }
.sb-steps li[aria-current="step"] { color: var(--navy-900); border-top-color: var(--gold-500); }
.sb-steps li.is-done { color: var(--navy-900); border-top-color: var(--navy-900); }
.sb-field { display: grid; gap: var(--space-2); margin: 0 0 20px; }
.sb-field label, .sb-legend { font-size: 15px; font-weight: 500; color: var(--navy-900); }
.sb-input { font: inherit; font-size: 17px; color: var(--ink); background: var(--surface); border: 0; border-bottom: 1px solid var(--field-border); border-radius: 0; padding: 10px 0 12px; }
.sb-input:focus { outline: none; border-bottom: 2px solid var(--navy-900); padding-bottom: 11px; }
.sb-input:focus-visible { box-shadow: 0 2px 0 0 var(--navy-900); }
.sb-input[aria-invalid="true"] { border-bottom-color: var(--error); }
.sb-error { font-size: 14px; color: var(--error); margin: 0; }
.sb-hint { font-size: 14px; color: var(--muted); margin: 0; }
.sb-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-3); border: 0; padding: 0; margin: 0 0 24px; }
.sb-choice { position: relative; }
.sb-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sb-choice span { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 15px; color: var(--navy-900); border: 1px solid var(--hairline); padding: 20px 12px 16px; background: var(--surface); transition: border-color .2s ease; }
.sb-choice span svg { width: 34px; height: 34px; color: var(--gold-500); }
.sb-choice:hover span { border-color: var(--field-border); }
.sb-choice input:checked + span { border-color: var(--navy-900); box-shadow: inset 0 -3px 0 var(--gold-500); }
.sb-choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.sb-form__actions { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-top: 32px; }

/* ---------- Kopfzeile ---------- */
.sb-topbar { background: var(--navy-900); color: var(--on-navy-muted); font-size: 13px; letter-spacing: .04em; }
.sb-topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 9px 40px; }
.sb-topbar a { color: var(--on-navy); text-decoration: none; }
.sb-topbar a:hover { color: var(--gold-300); }
.sb-topbar__right { display: flex; gap: 28px; }
.sb-topbar__right span { color: var(--gold-500); margin-right: 8px; }
.sb-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 18px 40px; background: var(--ground); border-bottom: var(--rule-hair) solid var(--hairline); }
.sb-header__logo { display: block; line-height: 0; }
.sb-header__logo svg { height: 52px; width: auto; }
.sb-nav { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.sb-nav a { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--navy-900); text-decoration: none; padding: 8px 0; background: linear-gradient(var(--gold-500), var(--gold-500)) left bottom / 0 1px no-repeat; transition: background-size .3s ease; }
.sb-nav a:hover, .sb-nav a[aria-current="page"] { background-size: 100% 1px; }
.sb-nav a:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.sb-header .sb-btn { height: 48px; padding: 0 24px; }
@media (max-width: 980px) { .sb-nav { display: none; } .sb-topbar__left { display: none; } }

/* ---------- Hero ---------- */
.sb-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); min-height: 560px; background: var(--ground); }
.sb-hero__copy { padding: 80px 64px 64px 72px; display: flex; flex-direction: column; justify-content: center; }
.sb-hero__label { color: var(--gold-text); display: flex; align-items: center; gap: 14px; margin: 0 0 28px; }
.sb-hero__label::before { content: ""; width: 40px; height: 1px; background: var(--gold-500); }
.sb-hero__title { font-size: 80px; line-height: 84px; margin: 0 0 28px; }
.sb-hero__lead { font-size: 20px; line-height: 32px; font-weight: 300; color: var(--ink); max-width: 480px; margin: 0 0 40px; }
.sb-hero__actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.sb-hero__facts { display: flex; gap: 40px; margin: 56px 0 0; padding: 28px 0 0; border-top: 1px solid var(--hairline); list-style: none; }
.sb-hero__facts strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; color: var(--navy-900); margin-bottom: 8px; }
.sb-hero__facts span { font-size: 13px; line-height: 18px; color: var(--muted); }
.sb-hero__media { position: relative; background: var(--sand); overflow: hidden; }
.sb-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.sb-hero__media::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 24px; top: 24px; border: 1px solid rgba(255,255,255,.7); pointer-events: none; }
.sb-hero__badge { position: absolute; left: 0; bottom: 48px; z-index: 1; background: var(--navy-900); color: var(--on-navy); padding: 18px 28px 18px 24px; }
.sb-hero__badge strong { display: block; font-family: var(--font-serif); font-weight: 500; font-size: 17px; }
.sb-hero__badge span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
@media (max-width: 860px) { .sb-hero { grid-template-columns: 1fr; } .sb-hero__copy { padding: 48px 20px; } .sb-hero__title { font-size: 48px; line-height: 52px; } .sb-hero__media { min-height: 420px; } }

/* Libre Caslon Italic setzt „st“ sonst als historische Ligatur */
.sb-root em, .sb-quote__text, .sb-display em { font-feature-settings: "liga" 0, "dlig" 0, "hlig" 0; font-variant-ligatures: no-common-ligatures no-discretionary-ligatures no-historical-ligatures; }
