:root {
  --red: #d6093b;
  --red-dark: #aa062f;
  --ink: #434f4f;
  --ink-2: #263131;
  --muted: #6f7a7a;
  --paper: #f7f6f3;
  --paper-2: #efede8;
  --white: #fff;
  --line: rgba(67, 79, 79, .17);
  --shadow: 0 24px 70px rgba(32, 43, 43, .13);
  --shadow-soft: 0 12px 34px rgba(32, 43, 43, .09);
  --radius: 28px;
  --radius-sm: 16px;
  --container: min(1240px, calc(100vw - 40px));
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.container { width: var(--container); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 9999; background: var(--ink-2); color: white; padding: .7rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 12px; }

h1, h2, h3 { margin: 0 0 .7em; color: var(--ink-2); line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 6.4vw, 6.3rem); font-weight: 650; }
h2 { font-size: clamp(2.2rem, 4vw, 4.35rem); font-weight: 620; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 650; }
p { margin: 0 0 1.2rem; }
.lead { font-size: clamp(1.15rem, 2vw, 1.42rem); line-height: 1.55; color: var(--muted); max-width: 740px; }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.2rem; color: var(--red); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 38px; height: 2px; background: currentColor; }
.kicker { font-family: var(--font-serif); font-size: clamp(1.18rem, 2vw, 1.48rem); font-style: italic; color: var(--red); }
.section { padding: clamp(78px, 10vw, 142px) 0; }
.section-compact { padding: clamp(58px, 8vw, 96px) 0; }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink-2); color: rgba(255,255,255,.78); }
.section-ink h2, .section-ink h3 { color: white; }
.section-red { background: var(--red); color: white; }
.section-red h2, .section-red h3 { color: white; }
.section-head { display: grid; grid-template-columns: minmax(0, .75fr) minmax(280px, .42fr); gap: 4rem; align-items: end; margin-bottom: clamp(42px, 7vw, 84px); }
.section-head p { color: var(--muted); max-width: 530px; }
.section-ink .section-head p { color: rgba(255,255,255,.72); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 52px; padding: .85rem 1.35rem; border: 1px solid transparent; border-radius: 999px; font-weight: 750; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-solid { background: var(--red); color: white; box-shadow: 0 12px 26px rgba(214,9,59,.2); }
.button-solid:hover { background: var(--red-dark); }
.button-outline { border-color: var(--line); background: white; color: var(--ink-2); }
.button-outline:hover { border-color: var(--red); color: var(--red); }
.button-light { background: white; color: var(--ink-2); }
.button-small { min-height: 42px; padding: .62rem 1.05rem; font-size: .92rem; }
.button-arrow::after { content: "→"; font-size: 1.1em; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.text-link { color: var(--red); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.utility-bar { background: var(--ink-2); color: rgba(255,255,255,.77); font-size: .78rem; }
.utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.utility-inner p { margin: 0; letter-spacing: .035em; }
.utility-links { display: flex; align-items: center; gap: 1.2rem; }
.utility-links a { text-decoration: none; }
.utility-emergency { color: white; background: var(--red); padding: .2rem .65rem; border-radius: 999px; font-weight: 750; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.94); backdrop-filter: blur(18px); border-bottom: 1px solid transparent; transition: box-shadow .2s ease, border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 28px rgba(38,49,49,.06); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: grid; width: min(310px, 29vw); min-width: 220px; text-decoration: none; }
.brand img { width: 100%; height: auto; }
.brand-descriptor { margin-top: .22rem; color: var(--ink); font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-align: center; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: clamp(.75rem, 1.6vw, 1.35rem); }
.nav-link { position: relative; padding: 1.9rem 0; text-decoration: none; color: var(--ink-2); font-size: .91rem; font-weight: 670; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 20px; height: 2px; background: var(--red); transition: right .2s ease; }
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }
.nav-link.is-active { color: var(--red); }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--paper); padding: 13px; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink-2); }

.mobile-quick-actions { display: none; }
.mobile-quick-actions__link { text-decoration: none; }

.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 112px) 0 clamp(84px, 11vw, 150px); }
.hero::before { content: ""; position: absolute; width: 560px; height: 560px; right: -260px; top: -220px; border-radius: 50%; border: 100px solid rgba(214,9,59,.055); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr); gap: clamp(38px, 6vw, 86px); align-items: center; }
.hero-copy { max-width: 720px; }
.hero h1 span { color: var(--red); }
.hero .lead { margin-bottom: 2.1rem; }
.hero-micro { margin-top: 2rem; display: flex; gap: 1rem 2.2rem; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.hero-micro strong { color: var(--ink-2); }
.hero-visual { position: relative; padding: 0 0 42px 34px; }
.hero-image-wrap { overflow: hidden; border-radius: 180px 28px 180px 28px; box-shadow: var(--shadow); background: var(--paper); }
.hero-image-wrap img { width: 100%; aspect-ratio: 1.04 / 1; object-fit: cover; object-position: 58% center; }
.hero-card { position: absolute; left: -10px; bottom: 0; max-width: 300px; padding: 1.2rem 1.35rem; border-radius: 18px; background: var(--ink-2); color: white; box-shadow: var(--shadow-soft); }
.hero-card strong { display: block; margin-bottom: .2rem; font-size: 1.05rem; }
.hero-card span { color: rgba(255,255,255,.7); font-size: .9rem; }
.hero-mark { position: absolute; right: -24px; top: 32px; width: 112px; height: 112px; padding: 22px; border-radius: 50%; background: white; box-shadow: var(--shadow-soft); }

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.trust-item { padding: 2rem clamp(1rem, 3vw, 2.4rem); border-right: 1px solid var(--line); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; color: var(--ink-2); font-size: clamp(1.35rem, 2vw, 1.8rem); }
.trust-item span { color: var(--muted); font-size: .9rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { position: relative; min-height: 330px; padding: clamp(26px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 1px 0 rgba(0,0,0,.02); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: rgba(214,9,59,.28); }
.card-number { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 3.2rem; border-radius: 50%; background: var(--paper); color: var(--red); font-weight: 800; }
.card p { color: var(--muted); }
.card-link { position: absolute; left: clamp(26px, 4vw, 42px); right: clamp(26px, 4vw, 42px); bottom: 30px; display: flex; justify-content: space-between; align-items: center; color: var(--red); font-weight: 750; text-decoration: none; }
.card-link::after { content: "↗"; }
.card-dark { background: var(--ink-2); border-color: var(--ink-2); }
.card-dark h3 { color: white; }
.card-dark p { color: rgba(255,255,255,.68); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr); gap: clamp(48px, 8vw, 112px); align-items: center; }
.split.reverse { grid-template-columns: minmax(380px, .9fr) minmax(0, 1fr); }
.split-copy { max-width: 630px; }
.split-media { position: relative; }
.split-media img { width: 100%; min-height: 460px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.image-caption { position: absolute; left: 22px; bottom: 22px; max-width: 310px; padding: .9rem 1.1rem; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-radius: 14px; font-size: .85rem; font-weight: 750; color: var(--ink-2); }
.check-list { list-style: none; margin: 1.8rem 0 2rem; padding: 0; display: grid; gap: .72rem; }
.check-list li { position: relative; padding-left: 1.75rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(214,9,59,.09); }

.quote-panel { position: relative; padding: clamp(38px, 7vw, 84px); overflow: hidden; border-radius: var(--radius); background: var(--ink-2); color: white; }
.quote-panel::after { content: ""; position: absolute; right: -120px; top: -100px; width: 340px; height: 340px; border: 70px solid rgba(214,9,59,.35); border-radius: 50%; }
.quote-panel blockquote { position: relative; z-index: 1; margin: 0; max-width: 920px; font-family: var(--font-serif); font-size: clamp(2rem, 4.2vw, 4.5rem); line-height: 1.12; letter-spacing: -.03em; }
.quote-panel cite { display: block; margin-top: 1.8rem; font: 700 .95rem var(--font-sans); color: rgba(255,255,255,.62); }

.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; counter-reset: process; }
.process-step { position: relative; padding: 34px 28px; border-top: 3px solid var(--red); background: white; min-height: 250px; }
.process-step::before { counter-increment: process; content: "0" counter(process); display: block; margin-bottom: 2rem; color: var(--red); font-weight: 800; }
.process-step p { color: var(--muted); font-size: .95rem; }

.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.service-tile { min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; border-radius: 22px; background: white; border: 1px solid var(--line); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.service-tile:hover { transform: translateY(-4px); border-color: var(--red); }
.service-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--red); font-weight: 850; }
.service-tile p { margin: 0; color: var(--muted); }
.service-tile .arrow { margin-top: 1.4rem; color: var(--red); font-weight: 800; }

.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(36px, 6vw, 70px); border-radius: var(--radius); background: var(--red); color: white; }
.cta-band h2 { color: white; font-size: clamp(2rem, 4vw, 4rem); margin-bottom: .35rem; }
.cta-band p { max-width: 660px; margin: 0; color: rgba(255,255,255,.8); }

.page-hero { position: relative; overflow: hidden; padding: clamp(62px, 9vw, 120px) 0 clamp(68px, 9vw, 118px); background: var(--paper); }
.page-hero::after { content: ""; position: absolute; right: -180px; bottom: -250px; width: 520px; height: 520px; border: 88px solid rgba(214,9,59,.08); border-radius: 50%; }
.page-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(300px, .34fr); gap: 4rem; align-items: end; }
.page-hero h1 { max-width: 900px; font-size: clamp(3rem, 6vw, 6.1rem); }
.page-hero-side { color: var(--muted); }
.breadcrumbs { margin-bottom: 1.4rem; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { text-decoration: none; }

.feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.feature { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.feature strong { display: block; margin-bottom: .55rem; color: var(--ink-2); font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; }

.notice { padding: 1.2rem 1.4rem; border-left: 4px solid var(--red); border-radius: 0 14px 14px 0; background: rgba(214,9,59,.065); }
.notice strong { color: var(--ink-2); }
.notice-warning { border-left-color: #d27a00; background: #fff7e8; }
.notice-emergency { border-left-color: var(--red); background: #fff0f3; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(38px, 7vw, 88px); align-items: start; }
.form-card { padding: clamp(26px, 5vw, 54px); border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-soft); }
.form-section { padding: 0 0 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-section h2 { font-size: 1.45rem; letter-spacing: -.02em; margin-bottom: 1.2rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.form-field { display: grid; gap: .45rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label, .field-label { color: var(--ink-2); font-weight: 700; font-size: .92rem; }
.required { color: var(--red); }
input, select, textarea { width: 100%; min-height: 52px; padding: .8rem .95rem; border: 1px solid #cbd0d0; border-radius: 12px; background: white; color: var(--ink-2); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
textarea { min-height: 145px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(214,9,59,.09); }
input[type="checkbox"], input[type="radio"] { width: 19px; min-height: 19px; accent-color: var(--red); }
.choice-list { display: grid; gap: .75rem; }
.choice { display: flex; align-items: flex-start; gap: .7rem; font-size: .94rem; }
.choice input { margin-top: .18rem; flex: 0 0 auto; }
.field-help { color: var(--muted); font-size: .82rem; }
.tenant-number-card { padding: 1.1rem 1.2rem; border: 1px solid rgba(214,9,59,.22); border-radius: 16px; background: rgba(214,9,59,.045); }
.tenant-number-card input { background: white; font-weight: 750; letter-spacing: .035em; }
.tenant-number-missing { margin-top: .25rem; color: var(--muted); font-weight: 500; }
.tenant-number-card.is-missing { border-color: var(--line); background: var(--paper); }
.tenant-number-card.is-missing input { opacity: .55; }
.file-field { padding: 1rem; border: 1px dashed #bbc2c2; border-radius: 14px; background: var(--paper); }
.file-output { display: block; margin-top: .45rem; color: var(--muted); font-size: .82rem; }
.form-sidebar { position: sticky; top: 145px; display: grid; gap: 18px; }
.sidebar-card { padding: 28px; border-radius: 20px; background: var(--paper); }
.sidebar-card h2 { font-size: 1.25rem; }
.sidebar-card p, .sidebar-card li { color: var(--muted); font-size: .92rem; }
.sidebar-card ul { margin: 0; padding-left: 1.1rem; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.emergency-hero { background: var(--ink-2); color: white; }
.emergency-hero h1 { color: white; }
.emergency-number { display: inline-flex; margin-top: 1rem; font-size: clamp(2rem, 5vw, 5rem); font-weight: 800; color: white; text-decoration: none; letter-spacing: -.04em; }
.emergency-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.emergency-card { padding: 30px; border-radius: 22px; border: 1px solid var(--line); }
.emergency-card strong { display: block; margin-bottom: .6rem; color: var(--ink-2); font-size: 1.2rem; }

.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(48px, 8vw, 110px); }
.contact-facts { display: grid; gap: 1.4rem; }
.contact-fact { padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.contact-fact span { display: block; color: var(--muted); font-size: .84rem; }
.contact-fact strong, .contact-fact a { color: var(--ink-2); font-size: 1.15rem; text-decoration: none; }

.legal { max-width: 900px; }
.legal h2 { margin-top: 2.4rem; font-size: 1.75rem; }
.legal h3 { margin-top: 1.7rem; font-size: 1.2rem; }
.legal p, .legal li { color: #536060; }
.legal a { color: var(--red); }

.reveal { opacity: 1; transform: none; }
.reveal.is-observed { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-observed.is-visible { opacity: 1; transform: none; }

.site-footer { padding: 76px 0 28px; background: var(--ink-2); color: rgba(255,255,255,.68); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: clamp(36px, 6vw, 76px); }
.footer-grid h2 { color: white; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid a { display: block; width: fit-content; margin: .45rem 0; color: rgba(255,255,255,.76); text-decoration: none; }
.footer-grid a:hover { color: white; }
.footer-brand img { width: min(330px, 100%); margin-bottom: 1.5rem; }
.footer-company { display: block; margin: -.45rem 0 1rem; color: rgba(255,255,255,.62); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.footer-brand .footer-claim { max-width: 360px; font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }
.footer-bottom p { margin: 0; }
.footer-bottom div { display: flex; gap: 1.2rem; }
.footer-bottom a { text-decoration: none; }

@media (max-width: 1120px) {
  body { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .utility-inner p { display: none; }
  .utility-inner { justify-content: flex-end; }
  .menu-toggle { display: block; z-index: 1002; }
  .brand { width: 280px; }
  .primary-nav { position: fixed; inset: 0 0 0 auto; width: min(430px, 92vw); height: 100dvh; padding: 120px 32px 40px; background: white; box-shadow: -20px 0 50px rgba(0,0,0,.13); display: flex; flex-direction: column; align-items: stretch; gap: 0; transform: translateX(105%); transition: transform .28s ease; overflow-y: auto; }
  .primary-nav.is-open { transform: none; }
  .nav-link { padding: 1rem 0; font-size: 1.12rem; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .nav-cta { margin-top: 1.5rem; }
  .mobile-quick-actions {
    position: fixed;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 990;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    padding: .55rem;
    border: 1px solid rgba(67, 79, 79, .17);
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 48px rgba(32, 43, 43, .18);
    transition: opacity .2s ease, transform .2s ease;
  }
  body.menu-open .mobile-quick-actions {
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
  }
  .mobile-quick-actions__link {
    display: flex;
    min-width: 0;
    min-height: 56px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .08rem;
    padding: .56rem .7rem;
    border: 1px solid transparent;
    border-radius: 18px;
    color: white;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
  }
  .mobile-quick-actions__link:first-child {
    background: var(--red);
    box-shadow: 0 10px 22px rgba(214, 9, 59, .18);
  }
  .mobile-quick-actions__link:last-child { background: var(--ink-2); }
  .mobile-quick-actions__link:hover,
  .mobile-quick-actions__link:focus-visible { transform: translateY(-1px); }
  .mobile-quick-actions__link.is-active {
    border-color: rgba(255, 255, 255, .58);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.42), 0 10px 22px rgba(38, 49, 49, .16);
  }
  .mobile-quick-actions__eyebrow {
    display: block;
    opacity: .76;
    font-size: .63rem;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
  }
  .mobile-quick-actions__label {
    display: block;
    overflow: hidden;
    max-width: 100%;
    font-size: .95rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero-grid { grid-template-columns: 1fr 420px; }
  .process-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  :root { --container: min(100% - 30px, 720px); }
  .hero-grid, .split, .split.reverse, .page-hero-grid, .section-head, .form-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 650px; margin-top: 15px; }
  .hero h1 { font-size: clamp(3rem, 12vw, 5.4rem); }
  .section-head { gap: 1.4rem; }
  .card-grid, .service-grid { grid-template-columns: repeat(2,1fr); }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split-media { order: -1; }
  .split.reverse .split-media { order: 0; }
  .form-sidebar { position: static; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 620px) {
  body { font-size: 16px; padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .utility-links { width: 100%; justify-content: space-between; gap: .6rem; }
  .utility-links a:nth-child(2) { display: none; }
  .header-inner { min-height: 74px; }
  .brand { min-width: 0; width: 232px; }
  .mobile-quick-actions {
    left: max(9px, env(safe-area-inset-left));
    right: max(9px, env(safe-area-inset-right));
    bottom: max(9px, env(safe-area-inset-bottom));
    gap: .45rem;
    padding: .45rem;
    border-radius: 20px;
  }
  .mobile-quick-actions__link {
    min-height: 54px;
    padding: .52rem .5rem;
    border-radius: 15px;
  }
  .mobile-quick-actions__eyebrow { font-size: .58rem; letter-spacing: .075em; }
  .mobile-quick-actions__label { font-size: .9rem; }
  .hero { padding-top: 44px; }
  .hero-grid { display: block; }
  .hero-visual { padding-left: 0; padding-bottom: 56px; }
  .hero-image-wrap { border-radius: 110px 20px 110px 20px; }
  .hero-mark { width: 76px; height: 76px; padding: 15px; right: -6px; top: 18px; }
  .hero-card { left: 12px; right: 12px; max-width: none; }
  .actions { align-items: stretch; }
  .actions .button { width: 100%; }
  .trust-grid, .card-grid, .service-grid, .feature-grid, .process-grid, .emergency-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); padding-inline: 0; }
  .trust-item:last-child { border-bottom: 0; }
  .card { min-height: 290px; }
  .split-media img { min-height: 340px; }
  .cta-band { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom div { flex-wrap: wrap; }
  .page-hero h1 { font-size: clamp(2.7rem, 14vw, 4.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 520px) { .brand-descriptor { font-size: .55rem; letter-spacing: .09em; } }
.tenant-number-status { display: block; min-height: 1.2em; color: var(--ink-2); font-size: .82rem; font-weight: 700; }
.tenant-number-card input:valid:not(:placeholder-shown) { border-color: #4d7f65; box-shadow: 0 0 0 4px rgba(77,127,101,.08); }
.tenant-number-card input:invalid:not(:placeholder-shown) { border-color: var(--red); }

/* Version 1.6: kuratierter Münchner Verwaltungsbestand */
.hero-image-wrap picture,
.split-media picture,
.portfolio-item picture { display: block; width: 100%; height: 100%; }

.section-portfolio { background: #fff; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 210px;
  gap: 18px;
}
.portfolio-item {
  position: relative;
  grid-column: span 4;
  grid-row: span 2;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 14px 38px rgba(38,49,49,.08);
  isolation: isolate;
}
.portfolio-item--large { grid-column: span 6; }
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.65,.25,1), filter .3s ease;
}
.portfolio-item::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, rgba(20,29,29,.72));
  pointer-events: none;
}
.portfolio-item:hover img { transform: scale(1.025); }
.portfolio-item figcaption {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 22px;
  color: white;
}
.portfolio-item figcaption strong {
  display: block;
  margin-bottom: .12rem;
  font-size: 1.08rem;
  letter-spacing: -.015em;
}
.portfolio-item figcaption span {
  color: rgba(255,255,255,.76);
  font-size: .82rem;
}
.portfolio-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: .82rem;
}

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 230px; }
  .portfolio-item,
  .portfolio-item--large { grid-column: span 1; grid-row: span 2; min-height: 460px; }
  .portfolio-item:first-child { grid-column: 1 / -1; min-height: 500px; }
}

@media (max-width: 620px) {
  .portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 14px; }
  .portfolio-item,
  .portfolio-item--large,
  .portfolio-item:first-child { grid-column: 1; grid-row: auto; min-height: 0; aspect-ratio: 4 / 3; border-radius: 18px; }
  .portfolio-item figcaption { left: 18px; right: 18px; bottom: 16px; }
  .portfolio-item:hover img { transform: none; }
}


/* Version 1.7: responsive Feinschliff, Inhaltsmodule und Barrierearmut */
:focus-visible {
  outline: 3px solid rgba(214, 9, 59, .55);
  outline-offset: 4px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 0;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(214, 9, 59, .1);
}
.hero-office-image {
  aspect-ratio: 726 / 480 !important;
  object-position: center !important;
}
.section-notice { padding: 1.1rem 0 0; }
.public-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 1.35rem;
  border: 1px solid rgba(214,9,59,.18);
  border-radius: 18px;
  background: #fff7f9;
}
.public-notice p { margin: .2rem 0 0; color: var(--muted); }
.public-notice strong { color: var(--ink-2); }

.faq-list { display: grid; gap: 12px; max-width: 950px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  overflow: clip;
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 66px;
  padding: 1rem 1.25rem;
  color: var(--ink-2);
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { color: var(--red); font-size: 1.45rem; transition: transform .2s ease; }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-answer { padding: 0 1.25rem 1.15rem; color: var(--muted); }
.faq-answer p { margin: 0; }

.download-grid,
.job-list { display: grid; gap: 18px; }
.download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.download-card,
.job-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  padding: clamp(24px, 4vw, 38px);
  box-shadow: 0 10px 30px rgba(38,49,49,.06);
}
.download-card { display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem; min-height: 290px; }
.download-card h2,
.job-card h2 { font-size: clamp(1.55rem, 2.5vw, 2.25rem); }
.download-card p,
.job-details { color: var(--muted); }
.download-type {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--red);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .1em;
}
.job-list { max-width: 980px; }
.job-details { white-space: pre-line; margin: 1.3rem 0 1.8rem; }

.legal { overflow-wrap: anywhere; }
.legal code { background: var(--paper); border-radius: 6px; padding: .1rem .35rem; }
.legal h2:first-child { margin-top: 0; }

.form-card input,
.form-card select,
.form-card textarea { max-width: 100%; }
.form-card textarea { min-height: 150px; resize: vertical; }
.file-output { overflow-wrap: anywhere; }

@media (max-width: 1120px) {
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(24, 33, 33, .38);
    backdrop-filter: blur(2px);
  }
  .menu-toggle { position: relative; z-index: 1003; }
  .primary-nav { z-index: 1002; }
  .menu-toggle span:not(.sr-only) { transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 900px) {
  .hero-visual { max-width: 720px; }
  .hero-office-image { min-height: 0; }
  .download-grid { grid-template-columns: 1fr; }
  .public-notice { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .hero-image-wrap { border-radius: 74px 18px 74px 18px; }
  .hero-office-image { aspect-ratio: 3 / 2 !important; }
  .hero-card { position: relative; left: auto; right: auto; bottom: auto; margin: -18px 12px 0; max-width: none; }
  .hero-mark { top: 12px; right: 6px; }
  .hero-visual { padding-bottom: 0; }
  .page-hero { padding-top: 42px; }
  .public-notice { padding: 1rem; }
  .faq-item summary { align-items: flex-start; }
  .download-card, .job-card { border-radius: 18px; }
  .legal h2 { font-size: 1.5rem; }
}

/* Formularversand: sichtbare Rückmeldung während SMTP, PDF- und Bildverarbeitung */
.form-card.is-submitting {
  position: relative;
}
.form-card.is-submitting button[type="submit"] {
  cursor: wait;
  opacity: .86;
}
.form-card.is-submitting input:not([type="hidden"]),
.form-card.is-submitting select,
.form-card.is-submitting textarea {
  pointer-events: none;
}
.form-card button[type="submit"] .submit-spinner {
  margin-right: .15rem;
}
.submit-spinner {
  display: inline-block;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: submit-spin .75s linear infinite;
}
.submit-spinner-large {
  width: 1.55rem;
  height: 1.55rem;
  border-width: 3px;
  color: var(--red);
}
.form-submit-status {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(214, 9, 59, .22);
  border-radius: 16px;
  background: #fff7f9;
  color: var(--ink-2);
  box-shadow: 0 8px 24px rgba(38, 49, 49, .06);
}
.form-submit-status strong,
.form-submit-status span {
  display: block;
}
.form-submit-status span {
  margin-top: .2rem;
  color: var(--muted);
  line-height: 1.45;
}
@keyframes submit-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .submit-spinner { animation-duration: 1.5s; }
}

@media print {
  .utility-bar, .site-header, .mobile-quick-actions, .site-footer, .button, .actions, .menu-toggle { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; padding-bottom: 0; }
  .section, .section-compact, .page-hero { padding: 1rem 0; }
  a { text-decoration: none; }
  .container { width: 100%; }
}


/* Version 2.1: Datenschutzfreundliche Immobilie1-Objektliste */
.external-listing-consent {
  min-height: 260px;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-soft);
}
.external-listing-consent-copy { max-width: 850px; }
.external-listing-consent-copy h3 { margin-top: .8rem; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.external-listing-consent-copy > p { color: var(--muted); max-width: 760px; }
.external-badge {
  display: inline-flex;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--red);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.external-privacy-note { margin-top: 1.2rem; font-size: .9rem; }
.external-listing-output { min-height: 180px; }
.external-listing-loading,
.external-listing-error {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-height: 150px;
  padding: 1.2rem;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink-2);
}
.external-listing-error { align-items: flex-start; border: 1px solid rgba(214, 9, 59, .22); background: #fff7f9; }
.external-listing-error strong,
.external-listing-error span { display: block; }
.external-listing-error span { margin-top: .25rem; color: var(--muted); }
.external-listing-output livewire { display: block; width: 100%; }
@media (max-width: 620px) {
  .external-listing-consent .actions { align-items: stretch; flex-direction: column; }
  .external-listing-consent .button { width: 100%; justify-content: center; }
}


/* Version 2.8: Teamfoto vollständig und ohne Beschnitt anzeigen */
.team-photo-media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #eef0ed;
  box-shadow: var(--shadow-soft);
}
.team-photo-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
}

/* Version 3.1: Digitaler Hausaushang */
.noticeboard-page .mobile-quick-actions{display:none}.noticeboard-hero h1{max-width:18ch}.noticeboard-category{margin-bottom:clamp(2.2rem,5vw,4rem)}.noticeboard-category>h2{margin:0 0 1.2rem;font-size:clamp(1.55rem,3vw,2.15rem)}.noticeboard-card h3{margin:.65rem 0 .55rem;font-size:1.25rem}.noticeboard-validity{font-size:.86rem;font-weight:700;color:var(--color-muted,#687575)}


/* Version 3.6: Kategorienfilter im digitalen Hausaushang */
.noticeboard-content { padding-top: clamp(2rem, 4vw, 3.5rem); }
.noticeboard-filter {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.noticeboard-filter h2 { margin: .35rem 0 0; font-size: clamp(1.25rem, 2vw, 1.7rem); }
.noticeboard-filter-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.noticeboard-filter-controls button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 42px;
  padding: .65rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font: inherit;
  font-size: .88rem;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}
.noticeboard-filter-controls button:hover { border-color: rgba(214, 9, 59, .38); transform: translateY(-1px); }
.noticeboard-filter-controls button.is-active { border-color: var(--red); background: var(--red); color: #fff; }
.noticeboard-filter-controls button span {
  display: inline-grid;
  place-items: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: rgba(38, 49, 49, .08);
  font-size: .72rem;
}
.noticeboard-filter-controls button.is-active span { background: rgba(255, 255, 255, .2); }
.noticeboard-filter-select { display: none; }
.noticeboard-category-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.noticeboard-category-heading h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.15rem); }
.noticeboard-category-heading > span { color: var(--muted); font-size: .85rem; font-weight: 750; white-space: nowrap; }
.noticeboard-category[hidden] { display: none; }
@media (max-width: 760px) {
  .noticeboard-filter { grid-template-columns: 1fr; }
  .noticeboard-filter-controls { display: none; }
  .noticeboard-filter-select { display: grid; gap: .45rem; }
  .noticeboard-filter-select > span { color: var(--muted); font-size: .78rem; font-weight: 750; }
  .noticeboard-filter-select select { width: 100%; min-height: 48px; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
}

/* Version 3.7: Zielgruppen-Navigation, kompaktere Startseite und responsive Feinarbeit */
:root {
  --radius: 24px;
  --radius-sm: 14px;
  --container: min(1280px, calc(100vw - 48px));
}
body { font-size: 16.5px; line-height: 1.62; }
h1 { font-size: clamp(2.85rem, 5.4vw, 5.35rem); }
h2 { font-size: clamp(2rem, 3.55vw, 3.75rem); }
.section { padding: clamp(68px, 8vw, 116px) 0; }
.section-compact { padding: clamp(48px, 6vw, 76px) 0; }
.button { min-height: 50px; }

/* Desktop navigation grouped by audience */
.primary-nav { gap: clamp(.42rem, .85vw, .9rem); }
.nav-group { position: relative; }
.nav-group-toggle {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  min-height: 88px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: .91rem;
  font-weight: 680;
  white-space: nowrap;
}
.nav-group-toggle > span { font-size: .82rem; transition: transform .18s ease; }
.nav-group.is-active > .nav-group-toggle { color: var(--red); }
.nav-group.is-open > .nav-group-toggle > span { transform: rotate(180deg); }
.nav-group-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 20px;
  height: 2px;
  background: var(--red);
  transition: right .2s ease;
}
.nav-group:hover > .nav-group-toggle::after,
.nav-group.is-open > .nav-group-toggle::after,
.nav-group.is-active > .nav-group-toggle::after { right: 0; }
.nav-dropdown {
  position: absolute;
  top: calc(100% - 8px);
  left: -22px;
  z-index: 20;
  display: grid;
  width: 330px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 22px 58px rgba(28,40,40,.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .17s ease, transform .17s ease, visibility .17s ease;
}
.nav-group:hover > .nav-dropdown,
.nav-group:focus-within > .nav-dropdown,
.nav-group.is-open > .nav-dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-dropdown a {
  display: grid;
  gap: 1px;
  padding: 11px 12px;
  border-radius: 11px;
  text-decoration: none;
}
.nav-dropdown a:hover,
.nav-dropdown a:focus-visible { background: var(--paper); outline-offset: 0; }
.nav-dropdown strong { color: var(--ink-2); font-size: .87rem; }
.nav-dropdown span { color: var(--muted); font-size: .74rem; }
.nav-contact { padding-inline: .82rem; border: 1px solid var(--line); border-radius: 999px; }
.nav-contact::after { display: none; }
.nav-contact:hover { border-color: var(--red); color: var(--red); }
.nav-cta { box-shadow: none; }

/* New homepage */
.hero-modern { padding: clamp(58px, 7vw, 94px) 0 clamp(72px, 8vw, 112px); }
.hero-modern .hero-grid { grid-template-columns: minmax(0, 1.03fr) minmax(430px, .97fr); }
.hero-modern h1 { max-width: 850px; font-size: clamp(3rem, 5.35vw, 5.45rem); letter-spacing: -.048em; }
.hero-modern .lead { max-width: 700px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.4rem;
  margin: 2.15rem 0 0;
}
.hero-facts div { display: grid; gap: .05rem; }
.hero-facts dt { color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.hero-facts dd { margin: 0; color: var(--ink-2); font-size: 1rem; font-weight: 800; }
.audience-section { padding: clamp(66px, 8vw, 108px) 0; background: var(--paper); }
.audience-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .42fr); gap: 3rem; align-items: end; margin-bottom: 34px; }
.audience-heading h2 { margin-bottom: 0; }
.audience-heading p { margin: 0; color: var(--muted); }
.audience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.audience-card {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 154px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(38,49,49,.045);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.audience-card:hover { transform: translateY(-3px); border-color: rgba(214,9,59,.3); box-shadow: var(--shadow-soft); }
.audience-card-primary { background: var(--ink-2); border-color: var(--ink-2); color: rgba(255,255,255,.72); }
.audience-card-primary h3 { color: white; }
.audience-card-primary .audience-label { color: rgba(255,255,255,.62); }
.audience-card-primary .audience-icon { background: rgba(255,255,255,.1); color: white; }
.audience-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--paper); color: var(--red); font-size: 1.25rem; font-weight: 800; }
.audience-label { display: block; margin-bottom: 3px; color: var(--red); font-size: .68rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.audience-card h3 { margin: 0 0 4px; font-size: 1.28rem; }
.audience-card p { margin: 0; color: inherit; font-size: .88rem; }
.audience-arrow { color: var(--red); font-size: 1.35rem; }
.home-core-service .actions { margin-top: 1.7rem; }
.home-team-section .split-media img { min-height: 400px; }
.home-service-section { padding-block: clamp(68px, 8vw, 100px); }
.home-service-layout { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(420px, 1fr); gap: clamp(44px, 8vw, 110px); align-items: start; }
.home-service-layout > div:first-child p { max-width: 530px; color: rgba(255,255,255,.68); }
.home-service-links { display: grid; border-top: 1px solid rgba(255,255,255,.16); }
.home-service-links a { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 15px; align-items: center; padding: 20px 2px; border-bottom: 1px solid rgba(255,255,255,.16); color: white; text-decoration: none; }
.home-service-links a > span { color: var(--red); font-size: .72rem; font-weight: 850; }
.home-service-links strong { display: block; margin-bottom: 2px; }
.home-service-links small { display: block; color: rgba(255,255,255,.58); font-size: .79rem; }
.home-service-links b { font-size: 1.15rem; transition: transform .2s ease; }
.home-service-links a:hover b { transform: translateX(4px); }

/* More consistent forms and content surfaces */
.form-card, .sidebar-card, .notice, .download-card, .job-card { border-radius: 20px; }
.page-hero { padding: clamp(58px, 7vw, 92px) 0; }
.page-hero h1 { max-width: 950px; font-size: clamp(2.7rem, 4.7vw, 4.65rem); }
.breadcrumbs { font-size: .78rem; }

@media (max-width: 1240px) {
  .primary-nav { gap: .55rem; }
  .nav-link, .nav-group-toggle { font-size: .86rem; }
  .nav-contact { padding-inline: .65rem; }
  .brand { width: min(285px, 27vw); }
}

@media (max-width: 1120px) {
  .primary-nav { padding: 102px 24px 104px; }
  .nav-group { border-bottom: 1px solid var(--line); }
  .nav-group-toggle { width: 100%; min-height: 54px; justify-content: space-between; font-size: 1.03rem; }
  .nav-group-toggle::after { display: none; }
  .nav-dropdown {
    position: static;
    display: none;
    width: auto;
    padding: 0 0 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-group.is-open > .nav-dropdown { display: grid; }
  .nav-dropdown a { padding: 10px 12px; background: var(--paper); margin-bottom: 5px; }
  .nav-link { font-size: 1.03rem; }
  .nav-contact { padding-inline: 0; border: 0; border-radius: 0; }
  .nav-cta { margin-top: 14px; }
  .mobile-quick-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mobile-quick-actions__link:nth-child(1) { background: var(--red); }
  .mobile-quick-actions__link:nth-child(2) { background: var(--ink-2); }
  .mobile-quick-actions__link:nth-child(3) { background: #536363; }
  .hero-modern .hero-grid { grid-template-columns: minmax(0,1fr) 400px; }
}

@media (max-width: 900px) {
  :root { --container: min(100% - 30px, 760px); }
  .audience-heading, .home-service-layout { grid-template-columns: 1fr; gap: 1.3rem; }
  .hero-modern .hero-grid { grid-template-columns: 1fr; }
  .hero-modern h1 { font-size: clamp(3rem, 10vw, 5rem); }
  .hero-modern .hero-visual { margin-top: 36px; }
  .home-team-section .split-media { order: -1 !important; }
}

@media (max-width: 680px) {
  :root { --container: min(100% - 24px, 620px); }
  body { font-size: 16px; }
  h1 { font-size: clamp(2.55rem, 12vw, 4rem); }
  h2 { font-size: clamp(1.9rem, 9vw, 3rem); }
  .section { padding: 64px 0; }
  .hero-modern { padding-top: 38px; }
  .hero-modern h1 { font-size: clamp(2.75rem, 12.4vw, 4.2rem); }
  .hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
  .hero-facts div { padding: 11px 9px; border: 1px solid var(--line); border-radius: 12px; background: white; }
  .hero-facts dt { font-size: .58rem; }
  .hero-facts dd { font-size: .78rem; }
  .audience-grid { grid-template-columns: 1fr; }
  .audience-card { min-height: 0; padding: 19px; grid-template-columns: 42px minmax(0,1fr) auto; }
  .audience-icon { width: 42px; height: 42px; border-radius: 12px; }
  .audience-card h3 { font-size: 1.12rem; }
  .audience-card p { font-size: .8rem; }
  .trust-item { padding-block: 1.25rem; }
  .home-service-links a { padding-block: 17px; }
  .mobile-quick-actions { gap: .35rem; padding: .38rem; border-radius: 18px; }
  .mobile-quick-actions__link { min-height: 52px; padding: .45rem .25rem; border-radius: 13px; }
  .mobile-quick-actions__eyebrow { font-size: .52rem; }
  .mobile-quick-actions__label { font-size: .76rem; }
}

@media (max-width: 390px) {
  .brand { width: 205px; }
  .mobile-quick-actions__eyebrow { display: none; }
  .mobile-quick-actions__label { font-size: .72rem; }
}
/* Prevent the closed off-canvas navigation and decorative elements from widening mobile pages. */
html, body { overflow-x: clip; }

/* Version 3.8: geführte und mobil optimierte Website-Formulare */
.guided-form { padding-top: 0; overflow: hidden; }
.form-guide { position: sticky; top: 104px; z-index: 12; margin: 0 calc(clamp(26px, 5vw, 54px) * -1) 2rem; padding: 1.15rem clamp(26px, 5vw, 54px) 1rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
.form-guide-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.form-guide-kicker { display: block; margin-bottom: .12rem; color: var(--red); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.form-guide-top strong { color: var(--ink-2); font-size: 1.05rem; }
.form-draft-status { display: inline-flex; align-items: center; gap: .42rem; max-width: 290px; color: var(--muted); font-size: .78rem; text-align: right; }
.form-draft-status > span:first-child { display: grid; width: 1.45rem; height: 1.45rem; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--paper); color: var(--red); font-weight: 850; }
.form-draft-status.is-saved > span:first-child { background: #eaf6ed; color: #28703a; }
.form-progress { height: 5px; overflow: hidden; border-radius: 999px; background: #e8ebeb; }
.form-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--red); transition: width .25s ease; }
.form-step-list { display: grid; grid-template-columns: repeat(var(--form-step-count, 4), minmax(0,1fr)); gap: .45rem; margin: .85rem 0 0; padding: 0; list-style: none; }
.form-step-list li { min-width: 0; }
.form-step-list button { display: flex; align-items: center; gap: .48rem; width: 100%; min-height: 38px; padding: .38rem .5rem; border: 0; border-radius: 9px; background: transparent; color: #7a8585; text-align: left; cursor: default; }
.form-step-list button.is-available { color: var(--ink-2); cursor: pointer; }
.form-step-list button.is-active { background: var(--paper); color: var(--red); }
.form-step-list button span { display: grid; width: 1.45rem; height: 1.45rem; flex: 0 0 auto; place-items: center; border: 1px solid #ccd2d2; border-radius: 50%; font-size: .72rem; font-weight: 800; }
.form-step-list button.is-active span { border-color: var(--red); background: var(--red); color: white; }
.form-step-list button em { overflow: hidden; font-size: .76rem; font-style: normal; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.guided-form .form-section { min-height: 260px; padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.guided-form .form-section[hidden] { display: none !important; }
.guided-form .form-section > h2 { margin-bottom: .4rem; font-size: clamp(1.45rem, 2.4vw, 1.8rem); }
.form-step-intro { margin: 0 0 1.5rem; color: var(--muted); }
.form-step-actions { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.form-step-actions .form-back-button { margin-right: auto; }
.form-step-actions .button { min-width: 132px; justify-content: center; }
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea,
.choice.has-error,
.tenant-number-card.has-error { border-color: #c71d31; box-shadow: 0 0 0 3px rgba(199,29,49,.1); }
.enhanced-file-field { position: relative; display: grid; min-height: 178px; place-content: center; padding: 1.45rem; border: 2px dashed #b8c0c0; text-align: center; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.enhanced-file-field:hover,
.enhanced-file-field:focus-visible,
.enhanced-file-field.is-dragover { border-color: var(--red); background: rgba(214,9,59,.035); outline: none; }
.enhanced-file-field.is-dragover { transform: scale(1.01); }
.enhanced-file-field > label { margin-bottom: .5rem; }
.enhanced-file-field input[type="file"] { position: absolute; width: 1px; height: 1px; min-height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.file-drop-hint { display: grid; gap: .2rem; margin-bottom: .55rem; pointer-events: none; }
.file-drop-hint strong { color: var(--ink-2); font-size: 1rem; }
.file-drop-hint span { color: var(--muted); font-size: .84rem; }
.enhanced-file-field .file-output { display: block; max-width: 640px; margin: .35rem auto 0; color: var(--ink-2); font-weight: 650; }
.form-review { display: grid; gap: 1rem; margin-bottom: 1.4rem; }
.form-review-group { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.form-review-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .82rem 1rem; background: var(--paper); }
.form-review-heading h3 { margin: 0; color: var(--ink-2); font-size: 1rem; }
.form-review-heading button { padding: .34rem .58rem; border: 1px solid #ccd2d2; border-radius: 8px; background: white; color: var(--ink-2); font-size: .76rem; font-weight: 750; cursor: pointer; }
.form-review dl { display: grid; grid-template-columns: minmax(150px, .35fr) minmax(0, 1fr); margin: 0; }
.form-review dt,
.form-review dd { margin: 0; padding: .72rem 1rem; border-top: 1px solid #edf0f0; overflow-wrap: anywhere; }
.form-review dt { color: var(--muted); font-size: .79rem; font-weight: 750; }
.form-review dd { color: var(--ink-2); font-size: .9rem; white-space: pre-line; }
.form-review-step > .choice,
.form-review-step > label.choice { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.form-review-step > .notice { margin: 0 0 1rem !important; }

@media (max-width: 900px) {
  .form-guide { top: 78px; }
  .form-step-list { grid-auto-flow: column; grid-auto-columns: minmax(44px, 1fr); overflow-x: auto; padding-bottom: .2rem; scrollbar-width: thin; }
  .form-step-list button { justify-content: center; }
  .form-step-list button em { display: none; }
  .form-review dl { grid-template-columns: 1fr; }
  .form-review dt { padding-bottom: .18rem; }
  .form-review dd { padding-top: .18rem; border-top: 0; }
}

@media (max-width: 620px) {
  .form-card { padding: 20px 16px; border-radius: 18px; }
  .form-guide { top: 68px; margin: 0 -16px 1.5rem; padding: .9rem 16px .8rem; }
  .form-guide-top { align-items: center; }
  .form-draft-status { max-width: 155px; font-size: .7rem; line-height: 1.25; }
  .form-draft-status > span:first-child { width: 1.25rem; height: 1.25rem; }
  .guided-form .form-section { min-height: 0; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .form-field.full { grid-column: auto; }
  input, select, textarea { min-height: 50px; font-size: 16px; }
  .form-step-actions { position: sticky; bottom: 0; z-index: 8; margin: 1.5rem -16px -20px; padding: .85rem 16px; background: rgba(255,255,255,.97); box-shadow: 0 -8px 22px rgba(38,49,49,.08); backdrop-filter: blur(10px); }
  .form-step-actions .button { min-width: 0; flex: 1; padding-left: .85rem; padding-right: .85rem; }
  .enhanced-file-field { min-height: 150px; padding: 1rem; }
  .form-review-heading { align-items: flex-start; }
}


/* Version 3.8.1: Immobilienangebote sichtbar und klar getrennt */
.home-offers-section { padding: 0 0 clamp(54px, 7vw, 86px); background: var(--paper); }
.home-offers-panel { display: grid; grid-template-columns: minmax(0, .95fr) minmax(380px, .75fr); gap: clamp(30px, 6vw, 76px); align-items: center; padding: clamp(28px, 5vw, 52px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.home-offers-copy h2 { max-width: 680px; margin-bottom: .8rem; }
.home-offers-copy p { max-width: 680px; color: var(--muted); }
.home-offers-links { display: grid; gap: 10px; }
.home-offers-links a { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 18px; align-items: center; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.home-offers-links a:hover { transform: translateY(-2px); border-color: rgba(214,9,59,.28); box-shadow: var(--shadow-soft); }
.home-offers-links span { grid-column: 1; color: var(--red); font-size: .68rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.home-offers-links strong { grid-column: 1; font-size: 1.12rem; }
.home-offers-links b { grid-column: 2; grid-row: 1 / 3; font-size: 1.3rem; color: var(--red); }
.offer-entry-section { padding-bottom: clamp(48px, 7vw, 82px); }
.offer-path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.offer-path-card { display: flex; min-height: 245px; flex-direction: column; padding: clamp(26px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-soft); transition: transform .2s ease, border-color .2s ease; }
.offer-path-card:hover { transform: translateY(-3px); border-color: rgba(214,9,59,.32); }
.offer-path-card-primary { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.offer-path-kicker { color: var(--red); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.offer-path-card-primary .offer-path-kicker { color: rgba(255,255,255,.64); }
.offer-path-card h3 { margin: .65rem 0 .5rem; font-size: clamp(1.55rem, 3vw, 2.25rem); color: inherit; }
.offer-path-card p { margin: 0 0 1.6rem; color: inherit; opacity: .72; }
.offer-path-action { margin-top: auto; font-weight: 800; }
.offer-path-action b { margin-left: .3rem; color: var(--red); }
.offer-path-card-primary .offer-path-action b { color: #fff; }
.offer-empty-state { display: flex; gap: 26px; align-items: center; justify-content: space-between; padding: clamp(26px, 5vw, 46px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.offer-empty-state h3 { margin: .7rem 0 .45rem; }
.offer-empty-state p { max-width: 720px; margin: 0; color: var(--muted); }
.offer-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 6vw, 70px); align-items: center; }
.offer-contact-grid p { max-width: 760px; color: var(--muted); }
.offer-contact-actions, .sale-offers-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sale-offers-teaser { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 6vw, 74px); align-items: center; }
.sale-offers-teaser p { max-width: 760px; color: var(--muted); }
@media (max-width: 900px) {
  .home-offers-panel, .offer-contact-grid, .sale-offers-teaser { grid-template-columns: 1fr; }
  .offer-path-grid { grid-template-columns: 1fr; }
  .offer-path-card { min-height: 0; }
  .offer-empty-state { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .home-offers-section { padding-bottom: 48px; }
  .home-offers-panel { padding: 22px 18px; border-radius: 16px; }
  .home-offers-links a { padding: 17px 18px; }
  .offer-contact-actions, .sale-offers-actions { display: grid; width: 100%; }
  .offer-contact-actions .button, .sale-offers-actions .button, .offer-empty-state .button { width: 100%; justify-content: center; }
}

/* Version 3.9: Fortschrittsleiste überlagert keine Formularfelder mehr. */
.form-guide {
  position: relative;
  top: auto;
  scroll-margin-top: 120px;
}
.guided-form .form-section { scroll-margin-top: 120px; }
@media (max-width: 900px) {
  .form-guide { top: auto; scroll-margin-top: 88px; }
  .guided-form .form-section { scroll-margin-top: 88px; }
}
@media (max-width: 620px) {
  .form-guide { top: auto; }
}
