:root {
  --ink: #202326;
  --ink-soft: #5e6368;
  --paper: #ffffff;
  --surface: #f5f4f2;
  --line: #dedbd7;
  --brand: #ef641f;
  --brand-dark: #bd4310;
  --warm: #f5e7df;
  --radius: 18px;
  --shadow: 0 18px 50px rgb(28 24 21 / 10%);
  --content: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .65em; line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.35rem, 6vw, 5.25rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.75rem); }
p { margin: 0 0 1.1em; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 249 245 / 96%); border-top: 4px solid var(--brand); border-bottom: 1px solid #e7b9a2; box-shadow: 0 8px 24px rgb(152 54 14 / 7%); backdrop-filter: blur(14px); }
.header-inner { width: var(--content); min-height: 90px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: grid; gap: 2px; color: var(--ink-soft); }
.brand-logo { display: block; text-decoration: none; }
.brand img { width: 238px; max-height: 76px; object-fit: contain; object-position: left center; }
.brand-note { max-width: 238px; font-size: .72rem; line-height: 1.25; }
.brand-note p, .brand-note h2, .brand-note h3 { margin: 0; font: inherit; }
.main-nav ul { margin: 0; padding: 0; list-style: none; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.header-search { position: relative; flex: 0 1 195px; }
.header-search input { width: 100%; min-width: 0; padding: 7px 30px 7px 11px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: .8rem; line-height: 1.25; }
.header-search input:focus { outline: 3px solid rgb(239 100 31 / 20%); border-color: var(--brand); }
.header-search button { position: absolute; top: 50%; right: 4px; width: 26px; height: 26px; padding: 0; transform: translateY(-50%); color: var(--ink); background: transparent; border: 0; border-radius: 50%; font-size: 1.05rem; cursor: pointer; }
.header-search button:hover { color: var(--brand-dark); background: var(--warm); }
.nav-list { display: flex; align-items: center; gap: 3px; }
.nav-item { position: relative; }
.nav-parent { display: flex; align-items: center; }
.main-nav a { display: block; padding: 7px 10px; text-decoration: none; border-radius: 999px; font-weight: 650; font-size: .9rem; line-height: 1.3; }
.main-nav a:hover, .main-nav a[aria-current="page"], .nav-item.is-current > .nav-parent > a { background: var(--warm); color: var(--brand-dark); }
.submenu-button { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: -7px; padding: 0; color: var(--ink-soft); background: transparent; border: 0; border-radius: 50%; font: inherit; cursor: pointer; }
.submenu-button:hover, .submenu-button:focus-visible { color: var(--brand-dark); background: var(--warm); outline: none; }
.submenu-button > span[aria-hidden="true"] { font-size: 1.05rem; transition: transform .2s ease; }
.submenu { position: absolute; top: calc(100% + 8px); left: 0; display: none; width: max-content; min-width: 250px; max-width: 340px; padding: 9px !important; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.submenu::before { content: ""; position: absolute; top: -9px; left: 0; width: 100%; height: 9px; }
.submenu a { padding: 9px 11px; border-radius: 9px; font-size: .88rem; line-height: 1.35; }
.nav-item.submenu-open > .submenu { display: block; }
.nav-item.submenu-open .submenu-button > span[aria-hidden="true"] { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 901px) {
  .nav-item.has-children:hover > .submenu { display: block; }
}
.menu-button { display: none; min-height: 38px; padding: 6px 14px; color: #fff; background: var(--brand); border: 1px solid var(--brand); border-radius: 999px; appearance: none; -webkit-appearance: none; font: inherit; font-size: .88rem; line-height: 1; font-weight: 800; cursor: pointer; }
.menu-button:hover, .menu-button:focus-visible, .menu-button[aria-expanded="true"] { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); outline: 3px solid rgb(239 100 31 / 24%); outline-offset: 2px; }

.launch-intro[hidden] { display: none; }
.launch-intro { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 24px; overflow-y: auto; color: #fff; background: radial-gradient(circle at 75% 20%, rgb(255 209 181 / 30%), transparent 32%), linear-gradient(135deg, #8e2d0b, var(--brand) 58%, #e87536); }
.launch-intro::before { position: fixed; inset: 0; content: "35"; display: grid; place-items: center; color: rgb(255 255 255 / 5%); font-size: min(70vw, 780px); font-weight: 900; line-height: .8; pointer-events: none; }
.launch-intro-card { position: relative; width: min(980px, 100%); padding: clamp(28px, 5vw, 54px); background: rgb(255 250 246 / 96%); color: var(--ink); border: 1px solid rgb(255 255 255 / 55%); border-radius: 28px; box-shadow: 0 30px 90px rgb(60 15 0 / 32%); }
.launch-intro-card > img { display: block; width: min(270px, 60%); height: auto; margin: 0 auto clamp(20px, 3vw, 32px); }
.launch-intro-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(210px, .65fr); gap: clamp(28px, 5vw, 58px); align-items: center; }
.launch-intro-copy { text-align: left; }
.launch-intro-card .eyebrow { margin-bottom: 12px; }
.launch-intro-card h1 { max-width: 650px; font-size: clamp(2.15rem, 4.4vw, 4.2rem); line-height: .98; }
.launch-intro-text { max-width: 590px; margin: 0 0 28px; color: var(--ink-soft); font-size: clamp(1rem, 2vw, 1.2rem); }
.launch-intro-text > :last-child { margin-bottom: 0; }
.launch-intro-card .button { min-width: 210px; }
.landing-pdf-box { max-width: 590px; margin: 0 0 22px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 10px 28px rgb(60 36 20 / 8%); }
.landing-pdf-box h2 { margin-bottom: 6px; font-size: 1.2rem; }
.landing-pdf-box p { margin: 0 0 12px; color: var(--ink-soft); font-size: .94rem; }
.landing-pdf-form { display: grid; gap: 12px; }
.landing-pdf-form > label:first-of-type { display: grid; gap: 6px; font-size: .88rem; font-weight: 800; }
.landing-pdf-form input[type="email"] { width: 100%; min-height: 46px; padding: 10px 13px; color: var(--ink); background: #fff; border: 1px solid #cfc9c4; border-radius: 10px; font: inherit; }
.landing-pdf-form input[type="email"]:focus { border-color: var(--brand); outline: 3px solid rgb(239 100 31 / 18%); }
.landing-pdf-privacy { display: flex; align-items: flex-start; gap: 9px; color: var(--ink-soft); font-size: .78rem; font-weight: 500; line-height: 1.45; }
.landing-pdf-privacy input { flex: 0 0 auto; margin-top: 3px; accent-color: var(--brand); }
.landing-pdf-privacy a { color: var(--brand-dark); }
.landing-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.landing-pdf-errors { margin-bottom: 12px; padding: 10px 12px; color: #7c2111; background: #fff0ec; border: 1px solid #efb8aa; border-radius: 10px; font-size: .84rem; }
.landing-pdf-errors ul { margin: 5px 0 0; padding-left: 19px; }
.landing-pdf-success { color: #245f31; }
.landing-pdf-success p { color: #3f6547; }
.launch-certificate { display: block; padding: 9px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 16px 34px rgb(60 36 20 / 14%); text-align: center; text-decoration: none; transform: rotate(1.5deg); transition: transform .2s ease; }
.launch-certificate:hover { color: var(--brand-dark); transform: rotate(0) translateY(-3px); }
.launch-certificate img { display: block; width: 100%; height: min(36vh, 355px); object-fit: contain; background: #f2f0eb; border-radius: 9px; }
.launch-certificate span { display: block; padding: 10px 4px 4px; font-size: .84rem; font-weight: 800; }
.launch-intro-open { overflow: hidden; }

.hero { position: relative; isolation: isolate; width: var(--content); min-height: 650px; margin: 34px auto 0; padding: clamp(36px, 7vw, 88px); display: grid; grid-template-columns: 1.45fr .75fr; align-items: end; gap: 50px; color: #fff; border-radius: 30px; overflow: hidden; background: url('/media/content/hero.jpg') center/cover, #353331; box-shadow: var(--shadow); }
.hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(130deg, rgb(24 24 23 / 88%), rgb(24 24 23 / 54%)); }
.hero-custom-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-copy { max-width: 760px; }
.hero-copy > p:not(.eyebrow) { max-width: 680px; color: rgb(255 255 255 / 86%); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.eyebrow { margin: 0 0 14px; color: var(--brand); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.hero .eyebrow { color: #ff9a61; }
.hero-card { align-self: center; display: grid; gap: 1px; overflow: hidden; border-radius: var(--radius); background: rgb(255 255 255 / 18%); backdrop-filter: blur(12px); }
.hero-card span { padding: 16px 18px; background: rgb(255 255 255 / 10%); font-weight: 700; }
.home-promo { position: relative; width: var(--content); margin: 26px auto 0; overflow: hidden; background: var(--warm); border-radius: 24px; box-shadow: var(--shadow); }
.home-promo > img { width: 100%; height: auto; }
.home-promo-link { position: absolute; top: 70.8%; height: 17.3%; border: 3px solid transparent; border-radius: 6px; }
.home-promo-link-neubau { left: 1.85%; width: 22.8%; }
.home-promo-link-gebraucht { left: 24.55%; width: 25.4%; }
.home-promo-link-grundriss { left: 49.95%; width: 23.25%; }
.home-promo-link-finanzierung { left: 73.15%; width: 24.9%; }
.home-promo-link:hover { background: rgb(239 100 31 / 8%); border-color: rgb(239 100 31 / 48%); }
.home-promo-link:focus-visible { background: rgb(255 255 255 / 18%); border-color: #fff; outline: 4px solid var(--brand); outline-offset: -7px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 12px 20px; border: 0; border-radius: 999px; text-decoration: none; font-weight: 800; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--brand); color: #fff; }
.button-primary:hover { background: var(--brand-dark); }
.button-secondary { background: #fff; color: var(--ink); }
.text-link { color: var(--brand-dark); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.section { width: var(--content); margin: 0 auto; padding: clamp(44px, 6vw, 76px) 0; }
.properties-section { padding-top: clamp(24px, 3.2vw, 40px); }
.section-muted { width: 100%; padding-inline: max(20px, calc((100% - 1180px) / 2)); background: var(--surface); }
.section-heading { max-width: 720px; margin-bottom: 38px; }
.intro-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; }
.page-hero { padding: clamp(34px, 4vw, 58px) max(20px, calc((100% - 1180px) / 2)); background: linear-gradient(135deg, var(--surface), var(--warm)); }
.page-hero > div { max-width: 900px; }
.page-hero .eyebrow { margin-bottom: 7px; }
.page-hero h1 { margin-bottom: .22em; font-size: clamp(2.15rem, 4.2vw, 3.65rem); }
.page-hero p:last-child { margin-bottom: 0; }
.article { max-width: 920px; }
.article > .rich-text > :first-child { margin-top: 0; }
.rich-text { font-size: 1.05rem; }
.rich-text h2, .rich-text h3 { margin-top: 1.7em; }
.rich-text a { color: var(--brand-dark); }
.rich-text a:not([href]) { color: inherit; text-decoration: none; }
.rich-text img { height: auto; margin: 30px 0; border-radius: 14px; }
.rich-text video { display: block; width: 100%; max-height: 72vh; margin: 30px 0; background: #171717; border-radius: 14px; }
.rich-text figure { margin: 30px 0; }
.rich-text figure > img, .rich-text figure > video { margin: 0; }
.rich-text table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.rich-text td, .rich-text th { padding: 10px; border: 1px solid var(--line); }
.text-size-small { font-size: .82em; }
.text-size-normal { font-size: 1em; }
.text-size-large { font-size: 1.25em; }
.text-size-xlarge { font-size: 1.55em; }
.page-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 45px; }
.page-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.notice { margin-bottom: 32px; padding: 18px 20px; border-left: 5px solid var(--brand); background: #fff5ef; border-radius: 0 12px 12px 0; }

.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.property-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgb(30 26 22 / 5%); }
.property-image { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.property-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.property-image:hover img { transform: scale(1.035); }
.status-badge { position: absolute; top: 14px; left: 14px; padding: 7px 11px; background: rgb(255 255 255 / 92%); border-radius: 999px; font-size: .78rem; font-weight: 800; }
.property-copy { padding: 22px; }
.property-copy h2 { font-size: 1.25rem; }
.property-copy h2 a { text-decoration: none; }
.property-place { margin-bottom: 8px; color: var(--brand-dark); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.property-facts { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--ink-soft); font-size: .9rem; }
.property-facts strong { margin-left: auto; color: var(--ink); }
.property-filter { display: grid; gap: 20px; margin-bottom: 38px; padding: clamp(20px, 3vw, 30px); background: #fff8f4; border: 1px solid #efc2ac; border-radius: var(--radius); }
.property-filter-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.property-filter-heading h2 { margin-bottom: 0; font-size: clamp(1.45rem, 2.8vw, 2.1rem); }
.property-filter-heading > p { margin: 0; color: var(--ink-soft); white-space: nowrap; }
.property-filter-heading > p strong { color: var(--brand-dark); font-size: 1.45rem; }
.property-filter-fields { display: grid; grid-template-columns: 1.25fr 1fr 1fr auto; gap: 14px; align-items: end; }
.property-filter label { display: grid; gap: 7px; font-weight: 800; }
.property-filter select { width: 100%; min-width: 0; padding: 12px 38px 12px 13px; color: var(--ink); background: #fff; border: 1px solid #b9b7b4; border-radius: 10px; font: inherit; }
.property-filter select:focus { outline: 3px solid rgb(239 100 31 / 22%); border-color: var(--brand); }
.property-filter .button { min-height: 50px; white-space: nowrap; }
.property-filter-reset { width: fit-content; color: var(--brand-dark); font-weight: 800; }
.centered { margin-top: 36px; text-align: center; }
.empty-state { padding: 50px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.lead-price { color: var(--brand-dark); font-size: 1.35rem; font-weight: 850; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-bottom: 50px; }
.gallery img { width: 100%; height: 260px; padding: 6px; object-fit: contain; background: var(--surface); border-radius: 10px; }
.gallery img:first-child { grid-row: span 2; height: 530px; }
.property-gallery .gallery-item { position: relative; display: block; min-width: 0; padding: 0; overflow: hidden; color: inherit; background: var(--surface); border: 0; border-radius: 10px; cursor: zoom-in; }
.property-gallery .gallery-item:first-child { grid-row: span 2; }
.property-gallery .gallery-item img, .property-gallery .gallery-item img:first-child { display: block; height: 260px; grid-row: auto; transition: transform .25s ease; }
.property-gallery .gallery-item:first-child img { height: 530px; }
.property-gallery .gallery-item:hover img, .property-gallery .gallery-item:focus-visible img { transform: scale(1.018); }
.property-gallery .gallery-item:focus-visible { outline: 4px solid var(--brand); outline-offset: 3px; }
.gallery-zoom { position: absolute; right: 14px; bottom: 14px; padding: 7px 10px; color: #fff; background: rgb(35 29 25 / 76%); border-radius: 999px; font-size: .76rem; font-weight: 800; }
.property-lightbox[hidden] { display: none; }
.property-lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: minmax(46px, 1fr) minmax(0, 12fr) minmax(46px, 1fr); align-items: center; padding: clamp(18px, 4vw, 54px); color: #fff; background: rgb(15 12 10 / 94%); }
.property-lightbox figure { display: grid; max-width: min(1500px, 100%); max-height: 100%; margin: auto; place-items: center; }
.property-lightbox img { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 130px); object-fit: contain; }
.property-lightbox figcaption { min-height: 25px; margin-top: 12px; color: rgb(255 255 255 / 82%); font-size: .9rem; text-align: center; }
.lightbox-close, .lightbox-control { color: #fff; background: rgb(239 100 31 / 88%); border: 1px solid rgb(255 255 255 / 58%); cursor: pointer; }
.lightbox-close { position: absolute; top: 18px; right: 20px; width: 44px; height: 44px; border-radius: 50%; font-size: 2rem; line-height: 1; }
.lightbox-control { width: 48px; height: 64px; border-radius: 14px; font-size: 2.6rem; line-height: 1; }
.lightbox-control:hover, .lightbox-close:hover, .lightbox-control:focus-visible, .lightbox-close:focus-visible { background: var(--brand-dark); outline: 3px solid #fff; outline-offset: 3px; }
.lightbox-previous { justify-self: start; }
.lightbox-next { justify-self: end; }
body.lightbox-open { overflow: hidden; }
.new-build-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.new-build-gallery img, .new-build-gallery img:first-child { grid-row: auto; height: clamp(250px, 34vw, 500px); padding: 8px; object-fit: contain; background: var(--surface); }
.new-build-image { background: var(--surface); }
.new-build-image img { padding: 7px; object-fit: contain; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 70px; align-items: start; }
.facts-panel { position: sticky; top: 125px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.facts-panel > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts-panel span { color: var(--ink-soft); }
.facts-panel .button { width: 100%; margin-top: 24px; }
.facts-panel .button + .button { margin-top: 10px; }
.print-expose-button, .pdf-expose-button { cursor: pointer; }
.pdf-expose-help { display: block; margin: 8px 4px 0; color: var(--ink-soft); font-size: .75rem; line-height: 1.4; text-align: center; }
.print-expose-header { display: none; }
.no-sale-note { margin-top: 16px; color: var(--ink-soft); font-size: .82rem; text-align: center; }

.site-footer { padding: 56px 0; color: #fff; background: linear-gradient(135deg, #a9360d, #df4f17 58%, #bd3e10); border-top: 5px solid #f47b3e; }
.footer-inner { width: var(--content); margin: auto; display: flex; justify-content: space-between; gap: 30px; }
.footer-inner nav { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.footer-inner a { color: #fff; }
.footer-copy { max-width: 360px; }
.footer-copy p { margin: 4px 0 0; color: rgb(255 255 255 / 75%); }
.footer-rich-text { margin-top: 4px; color: rgb(255 255 255 / 75%); }
.footer-rich-text > :first-child { margin-top: 0; }
.footer-rich-text > :last-child { margin-bottom: 0; }
.footer-rich-text a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.footer-copy .copyright { margin-top: 15px; color: #fff; font-size: .88rem; }
.footer-inner .withdrawal-link { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 11px; color: #fff; background: rgb(84 24 7 / 58%); border: 1px solid rgb(255 255 255 / 42%); border-radius: 999px; font-size: .88rem; font-weight: 800; line-height: 1.15; text-decoration: none; }
.footer-inner a:hover { color: #fff4ed; }
.contact-layout, .calculator-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.contact-company { display: grid; gap: 5px; margin-top: 24px; padding: 20px 24px; color: var(--ink); background: linear-gradient(135deg, #fff8f3, #f8eee8); border: 1px solid #ead5ca; border-left: 4px solid var(--brand); border-radius: 12px; }
.contact-company .eyebrow { margin: 0 0 4px; }
.contact-company strong { font-size: 1.12rem; }
.contact-company address { color: var(--ink-soft); font-style: normal; line-height: 1.5; }
.contact-company-phone { width: fit-content; margin-top: 3px; color: var(--brand-dark); font-weight: 850; }
.contact-form, .calculator-card { display: grid; gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.calculator-card { background: linear-gradient(145deg, #fff, #fff8f3); border-color: #ead5ca; }
.calculator-outro { margin-top: clamp(28px, 4vw, 52px); padding: clamp(22px, 4vw, 38px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.calculator-outro > :first-child { margin-top: 0; }
.calculator-outro > :last-child { margin-bottom: 0; }
.calculator-layout { padding-top: clamp(32px, 4vw, 52px); }
.calculator-layout.has-intro { padding-top: clamp(16px, 2vw, 26px); }
.object-reference { display: grid; gap: 5px; padding: 18px 20px; color: var(--ink); background: var(--warm); border-left: 4px solid var(--brand); border-radius: 10px; }
.object-reference span, .object-reference small { color: var(--ink-soft); }
.object-reference strong { font-size: 1.08rem; }
.object-reference a { width: fit-content; color: var(--brand-dark); font-weight: 750; }
.financing-reference { margin-bottom: 14px; padding: 13px 15px; display: grid; gap: 3px; border: 1px solid #efc0aa; border-radius: 12px; background: var(--warm); }
.financing-reference[hidden] { display: none; }
.financing-reference span { color: var(--ink-soft); font-size: .88rem; }
.contact-form label, .calculator-card label { display: grid; gap: 7px; font-weight: 750; }
.calculator-card label { color: var(--ink); font-size: .96rem; font-weight: 700; letter-spacing: -.01em; }
.contact-form input, .contact-form textarea, .calculator-card input { width: 100%; padding: 13px 14px; color: var(--ink); background: #fff; border: 1px solid #b9b7b4; border-radius: 9px; font: inherit; }
.contact-form input:focus, .contact-form textarea:focus, .calculator-card input:focus { outline: 3px solid rgb(239 100 31 / 22%); border-color: var(--brand); }
.human-check { display: grid; gap: 8px; margin: 0; padding: 18px 20px; background: #fff7f2; border: 1px solid #efb99f; border-radius: 12px; }
.human-check legend { padding: 0 7px; color: var(--brand-dark); font-weight: 850; }
.human-check label { display: block; }
.human-check input { max-width: 150px; }
.human-check small { color: var(--ink-soft); font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 500 !important; }
.check input { width: auto; margin-top: 6px; }
.honeypot { position: absolute; left: -9999px; }
.form-errors, .success-message { margin-bottom: 20px; padding: 18px 20px; border-radius: 12px; }
.form-errors { color: #74220c; background: #fff0eb; border: 1px solid #efb39f; }
.success-message { background: #edf8ed; border: 1px solid #a7d3a8; }
.office-route { display: grid; grid-template-columns: minmax(180px, .42fr) minmax(0, 1.58fr); gap: clamp(28px, 5vw, 70px); align-items: center; margin-bottom: clamp(46px, 7vw, 82px); padding: clamp(26px, 5vw, 52px); background: linear-gradient(135deg, #fff8f3, #f5eae3); border: 1px solid #ead5ca; border-radius: var(--radius); box-shadow: var(--shadow); }
.office-route-marker { display: grid; width: min(100%, 230px); aspect-ratio: 1; place-items: center; color: #fff; background: linear-gradient(145deg, var(--brand), #b63b0e); border-radius: 50% 50% 50% 12%; box-shadow: 0 18px 42px rgb(156 55 16 / 24%); transform: rotate(-45deg); }
.office-route-marker span { font-size: clamp(4rem, 8vw, 7rem); line-height: 1; transform: rotate(45deg); }
.office-route-copy h2 { margin-bottom: 14px; }
.office-route-copy address { margin-bottom: 14px; color: var(--ink); font-size: clamp(1.15rem, 2vw, 1.38rem); font-style: normal; font-weight: 800; line-height: 1.5; }
.office-route-copy address a { color: var(--brand-dark); font-size: .92em; }
.office-route-copy > p:not(.eyebrow) { max-width: 680px; color: var(--ink-soft); }
.office-route-copy .actions { margin-top: 22px; }
.office-map-link { border: 1px solid #c9a998; }
.office-route-copy small { display: block; margin-top: 14px; color: var(--ink-soft); }
.calculator-result { padding: clamp(28px, 5vw, 56px); color: var(--ink); background: linear-gradient(145deg, #fff8f3 0%, #f2ddd1 100%); border: 1px solid #e3c3b3; border-radius: var(--radius); box-shadow: var(--shadow); font-family: inherit; }
.calculator-result .eyebrow { color: var(--brand-dark); }
.calculator-result h2 { margin-bottom: 0; color: var(--brand-dark); font-size: clamp(2rem, 4.4vw, 3.7rem); font-weight: 800; letter-spacing: -.045em; }
.calculator-result > p:not(.eyebrow):not(.small-print) { color: var(--ink-soft); font-weight: 650; }
.calculator-result dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid #d9b9a9; }
.calculator-result dt { color: var(--ink-soft); }
.calculator-result dd { margin: 0; color: var(--brand-dark); font-weight: 800; }
.small-print { margin-top: 25px; color: var(--ink-soft); font-size: .83rem; }
.panorama-samples { display: grid; gap: 22px; margin-top: clamp(34px, 5vw, 62px); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.panorama-sample-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panorama-sample-card { display: grid; grid-template-columns: auto 1fr; gap: 5px 18px; align-items: center; padding: clamp(22px, 4vw, 34px); color: var(--ink); background: linear-gradient(145deg, #fff8f3, #f2ddd1); border: 1px solid #e3c3b3; border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow); }
.panorama-sample-card > span { grid-row: 1 / span 2; display: grid; width: 70px; aspect-ratio: 1; place-items: center; color: #fff; background: var(--brand); border-radius: 50%; font-size: 1.25rem; font-weight: 900; }
.panorama-sample-card strong { font-size: 1.1rem; }
.panorama-sample-card small { color: var(--brand-dark); font-weight: 800; }
.affordability { padding-top: clamp(18px, 2.5vw, 34px); padding-bottom: clamp(28px, 4vw, 52px); }
.affordability-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); gap: clamp(18px, 3vw, 42px); align-items: end; margin-bottom: 16px; }
.affordability-heading h2, .form-section-heading h2 { margin-bottom: 8px; }
.affordability-heading p, .form-section-heading p { color: var(--ink-soft); }
.property-picker { display: grid; gap: 5px; font-weight: 800; }
.property-picker select { width: 100%; padding: 10px 38px 10px 12px; color: var(--ink); background: #fff; border: 1px solid #b9b7b4; border-radius: 10px; font: inherit; }
.property-picker select:focus, .affordability-form input:focus, .affordability-form select:focus { outline: 3px solid rgb(239 100 31 / 22%); border-color: var(--brand); }
.selected-property { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-bottom: 16px; background: #e8d5cb; border: 1px solid #e8d5cb; border-radius: 12px; }
.selected-property[hidden] { display: none; }
.selected-property > div, .selected-property > a { display: grid; gap: 2px; align-content: center; min-height: 64px; padding: 10px 12px; background: #fff8f3; }
.selected-property span { color: var(--ink-soft); font-size: .82rem; font-weight: 700; }
.selected-property strong { color: var(--brand-dark); font-size: 1.05rem; }
.selected-property small { color: var(--ink-soft); font-size: .7rem; font-weight: 650; line-height: 1.3; }
.selected-property > a { color: var(--brand-dark); font-weight: 800; text-decoration: none; }
.affordability-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr); gap: clamp(20px, 3vw, 38px); align-items: start; }
.affordability-form { padding: clamp(18px, 2.5vw, 26px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.affordability-fields { display: grid; gap: 11px; margin-top: 14px; }
.affordability-fields label { display: grid; gap: 4px; align-content: start; color: var(--ink); font-weight: 750; }
.affordability-fields input { width: 100%; padding: 9px 11px; color: var(--ink); background: #fff; border: 1px solid #b9b7b4; border-radius: 8px; font: inherit; }
.calculator-field-group { min-width: 0; margin: 0; padding: 13px; background: #faf9f8; border: 1px solid var(--line); border-radius: 11px; }
.calculator-field-group legend { padding: 0 8px; color: var(--brand-dark); font-size: 1.02rem; font-weight: 900; }
.calculator-field-group > p { margin: -2px 0 9px; color: var(--ink-soft); font-size: .8rem; line-height: 1.35; }
.calculator-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.calculator-field-grid > label, .financing-input-grid > label { min-width: 0; }
.calculator-field-grid > label > span:first-child, .financing-input-grid > label > span:first-child, .household-composition > .field-label { display: flex; min-height: 2.25em; align-items: flex-end; line-height: 1.22; }
.household-composition { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 12px; align-items: end; min-width: 0; margin: 0; padding: 0; border: 0; }
.household-composition .field-label { margin-bottom: 0; color: var(--ink); font-weight: 750; }
.household-selects { display: grid; grid-template-columns: repeat(3, minmax(92px, 112px)); gap: 8px; }
.household-selects label { gap: 5px; font-size: .86rem; }
.household-selects select { width: 100%; padding: 9px 32px 9px 11px; color: var(--ink); background: #fff; border: 1px solid #b9b7b4; border-radius: 8px; font: inherit; }
.household-composition small { grid-column: 2 / -1; color: var(--ink-soft); font-size: .72rem; font-weight: 600; line-height: 1.25; }
.household-total { display: block; min-height: 0; padding: 2px 0; color: var(--ink-soft); background: transparent; border: 0; border-radius: 0; font-size: .8rem; font-weight: 750; white-space: nowrap; }
.financing-assumptions { margin-top: 14px; padding: 0; background: #fff8f3; border: 1px solid #e3c3b3; border-radius: 11px; }
.financing-assumptions summary { display: grid; gap: 2px; padding: 12px 14px; color: var(--brand-dark); cursor: pointer; font-weight: 850; list-style-position: inside; }
.financing-assumptions summary small { padding-left: 20px; color: var(--ink-soft); font-size: .78rem; font-weight: 600; }
.editable-interest .input-unit { border-radius: 10px; outline: 2px solid color-mix(in srgb, var(--brand) 28%, transparent); outline-offset: 2px; }
.editable-interest input { font-weight: 800; color: var(--brand-dark); }
.financing-assumption-fields { display: grid; gap: 9px; padding: 2px 12px 12px; }
.financing-assumption-fields label { display: grid; gap: 4px; align-content: start; color: var(--ink); font-weight: 750; }
.financing-assumption-fields label > small { color: var(--ink-soft); font-size: .75rem; font-weight: 600; line-height: 1.4; }
.financing-assumption-fields input { width: 100%; padding: 9px 11px; color: var(--ink); background: #fff; border: 1px solid #b9b7b4; border-radius: 8px; font: inherit; }
.financing-input-group { padding: 11px; background: rgb(255 255 255 / 76%); border: 1px solid #ead4c9; border-radius: 9px; }
.financing-input-group header { margin-bottom: 8px; }
.financing-input-group h3 { margin: 0 0 3px; color: var(--brand-dark); font-size: 1rem; }
.financing-input-group header p { margin: 0; color: var(--ink-soft); font-size: .79rem; }
.financing-input-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 10px; }
.financing-input-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.assumption-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 12px; border-top: 1px solid #e3c3b3; }
.assumption-actions .button { min-height: 38px; padding: 8px 15px; cursor: pointer; }
.assumption-actions small { flex: 1 1 260px; color: var(--ink-soft); line-height: 1.45; }
.input-unit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; overflow: hidden; background: #fff8f3; border: 1px solid #b9b7b4; border-radius: 9px; }
.affordability-fields input, .financing-assumption-fields input, .household-selects select, .property-picker select, .input-unit { min-height: 42px; box-sizing: border-box; }
.input-unit input { min-height: 40px; border: 0; border-radius: 0; }
.input-unit > span { padding: 0 13px; color: var(--brand-dark); font-weight: 850; }
.affordability-result { position: sticky; top: 112px; padding: clamp(18px, 2.5vw, 26px); background: linear-gradient(145deg, #fff8f3, #f2ddd1); border: 1px solid #e3c3b3; border-radius: var(--radius); box-shadow: var(--shadow); }
.affordability-status { margin: 8px 0 12px; padding: 10px 12px; color: var(--ink-soft); background: rgb(255 255 255 / 72%); border-left: 4px solid #a6a09d; border-radius: 8px; font-weight: 750; }
.affordability-status.is-positive { color: #165b32; border-left-color: #2f9e58; }
.affordability-status.is-caution { color: #774d00; border-left-color: #d49216; }
.affordability-status.is-negative { color: #7a2411; border-left-color: #d1492e; }
.rate-highlight { display: grid; gap: 3px; margin-bottom: 10px; padding: 14px; color: #fff; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); border-radius: 11px; }
.rate-highlight span { font-size: .88rem; font-weight: 750; }
.rate-highlight strong { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; }
.result-breakdown { margin: 0; }
.result-breakdown > div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid #d9b9a9; }
.result-breakdown dt { color: var(--ink-soft); }
.result-breakdown dd { margin: 0; color: var(--brand-dark); font-weight: 800; text-align: right; }
.result-breakdown .result-emphasis { padding: 14px 0; }
.result-breakdown .result-emphasis dt, .result-breakdown .result-emphasis dd { color: var(--ink); font-weight: 900; }
.rate-source { margin-top: 12px; color: var(--ink-soft); font-size: .8rem; line-height: 1.4; }
.affordability-result .button { width: 100%; margin-top: 12px; text-align: center; }
.search-page-form { max-width: 760px; margin-top: 28px; }
.search-page-form label { display: block; margin-bottom: 8px; font-weight: 800; }
.search-page-form > div { display: flex; gap: 10px; }
.search-page-form input { flex: 1; min-width: 0; padding: 14px 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.search-hero { padding-top: clamp(34px, 4vw, 56px); padding-bottom: clamp(38px, 4.5vw, 62px); }
.search-hero h1 { margin-bottom: .38em; font-size: clamp(2.35rem, 4.5vw, 3.65rem); }
.search-hero .eyebrow { margin-bottom: 8px; }
.search-hero .search-page-form { margin-top: 12px; }
.search-section { padding-top: clamp(38px, 5vw, 62px); }
.search-results { display: grid; gap: 18px; }
.search-result { display: grid; grid-template-columns: 220px 1fr; gap: 26px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgb(30 26 22 / 5%); }
.search-result-image { display: block; min-height: 150px; overflow: hidden; background: var(--surface); border-radius: 12px; }
.search-result-image img { width: 100%; height: 100%; object-fit: cover; }
.search-result h2 { margin-bottom: 7px; font-size: 1.45rem; }
.search-result h2 a { text-decoration: none; }
.search-meta { color: var(--brand-dark); font-weight: 750; }
mark.search-highlight { padding: .04em .18em; color: #742404; background: #ffd6c2; border-bottom: 3px solid var(--brand); border-radius: .22em; box-decoration-break: clone; -webkit-box-decoration-break: clone; scroll-margin-top: 135px; }
mark.search-highlight-first { color: #fff; background: var(--brand); box-shadow: 0 0 0 4px rgb(239 100 31 / 18%); }
.withdrawal-section { max-width: 860px; }
.withdrawal-card, .withdrawal-form, .withdrawal-receipt { padding: clamp(24px, 5vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.withdrawal-receipt { margin: 24px 0; }
.withdrawal-receipt > div { display: grid; grid-template-columns: minmax(170px, .45fr) 1fr; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.withdrawal-receipt > div:last-child { border-bottom: 0; }
.withdrawal-receipt dt { color: var(--ink-soft); }
.withdrawal-receipt dd { margin: 0; font-weight: 750; overflow-wrap: anywhere; }
.withdrawal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.withdrawal-actions .button-secondary { border: 1px solid var(--line); }

@media (max-width: 1180px) {
  .financing-input-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header-inner { min-height: 80px; }
  .brand img { width: 195px; }
  .menu-button { display: block; }
  .main-nav { display: none; position: absolute; top: 80px; left: 20px; right: 20px; max-height: calc(100vh - 100px); padding: 12px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .header-search { flex-basis: auto; width: 100%; margin-bottom: 6px; }
  .nav-list { display: block; }
  .nav-parent { justify-content: space-between; }
  .main-nav a { flex: 1; padding: 8px 12px; }
  .submenu-button { width: 40px; height: 40px; margin: 0; }
  .submenu { position: static; width: auto; min-width: 0; max-width: none; margin: 2px 0 8px 14px !important; padding: 5px !important; background: var(--surface); border: 0; box-shadow: none; }
  .submenu::before { display: none; }
  .hero { min-height: 580px; grid-template-columns: 1fr; }
  .hero-card { grid-template-columns: 1fr 1fr; }
  .intro-content, .detail-layout, .contact-layout, .calculator-layout { grid-template-columns: 1fr; gap: 35px; }
  .affordability-heading, .affordability-grid { grid-template-columns: 1fr; }
  .affordability-result { position: static; }
  .selected-property { grid-template-columns: 1fr 1fr; }
  .office-route { grid-template-columns: 1fr; }
  .office-route-marker { width: 140px; margin: 0 auto; }
  .office-route-copy { text-align: center; }
  .office-route-copy > p:not(.eyebrow) { margin-inline: auto; }
  .office-route-copy .actions { justify-content: center; }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .property-filter-fields { grid-template-columns: 1fr 1fr; }
  .facts-panel { position: static; }
}

@media (max-width: 620px) {
  :root { --content: min(100% - 24px, 1180px); }
  .home-promo { width: 100%; margin-top: 0; border-radius: 0; }
  .hero { width: 100%; min-height: 610px; margin-top: 0; padding: 36px 20px; border-radius: 0; }
  .hero-card { grid-template-columns: 1fr; }
  .actions .button { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .section-muted { padding-inline: 12px; }
  .property-grid { grid-template-columns: 1fr; }
  .property-filter-heading { align-items: start; flex-direction: column; gap: 8px; }
  .property-filter-fields { grid-template-columns: 1fr; }
  .property-filter .button { width: 100%; }
  .gallery { grid-template-columns: 1fr; }
  .page-gallery { grid-template-columns: 1fr; }
  .gallery img, .gallery img:first-child { height: 270px; grid-row: auto; }
  .property-gallery .gallery-item, .property-gallery .gallery-item:first-child { grid-row: auto; }
  .property-gallery .gallery-item img, .property-gallery .gallery-item:first-child img { height: min(72vw, 430px); }
  .property-lightbox { grid-template-columns: 52px minmax(0, 1fr) 52px; padding: 58px 8px 18px; }
  .lightbox-control { width: 44px; height: 56px; }
  .new-build-gallery img, .new-build-gallery img:first-child { height: min(72vw, 430px); }
  .calculator-field-grid, .financing-input-grid, .selected-property { grid-template-columns: 1fr; }
  .household-composition { grid-template-columns: 1fr; }
  .household-composition .field-label, .household-selects, .household-total, .household-composition small { grid-column: 1; }
  .household-selects { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panorama-sample-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .search-page-form > div, .search-result { grid-template-columns: 1fr; }
  .search-page-form > div { display: grid; }
  .search-result-image { min-height: 190px; }
  .withdrawal-receipt > div { grid-template-columns: 1fr; gap: 2px; }
  .launch-intro { padding: 12px; }
  .launch-intro-card { padding: 30px 20px; border-radius: 20px; }
  .launch-intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .launch-intro-copy { text-align: center; }
  .launch-intro-text { margin-inline: auto; }
  .landing-pdf-box { margin-inline: auto; text-align: left; }
  .launch-intro-card h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .launch-certificate { width: min(230px, 75%); margin: auto; }
  .launch-certificate img { height: min(31vh, 280px); }
}

@media print {
  @page { size: A4 portrait; margin: 14mm 13mm 16mm; }
  .site-header, .site-footer, .cookie-panel, .property-lightbox, .gallery-zoom, .print-expose-button, .pdf-expose-button, .pdf-expose-help, .facts-panel .button, .no-sale-note { display: none !important; }
  body { color: #111; background: #fff; font-size: 10.5pt; }
  main, .section { width: 100%; max-width: none; margin: 0; padding: 0; }
  .print-expose-header { display: flex; align-items: center; justify-content: space-between; gap: 10mm; margin-bottom: 7mm; padding-bottom: 4mm; border-bottom: 1px solid #d9d4d0; }
  .print-expose-header img { width: auto; max-width: 52mm; height: 18mm; object-fit: contain; object-position: left center; }
  .print-expose-header > div { display: grid; gap: 1mm; color: #444; font-size: 8.5pt; line-height: 1.3; text-align: right; }
  .print-expose-header strong { color: #111; font-size: 11pt; }
  .print-expose-header span { display: block; }
  .page-hero { min-height: 0; margin: 0 0 8mm; padding: 0 0 6mm; background: #fff; border-bottom: 2px solid var(--brand); }
  .page-hero h1 { font-size: 25pt; }
  .property-detail { break-inside: auto; }
  .property-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; margin-bottom: 8mm; }
  .property-gallery .gallery-item, .property-gallery .gallery-item:first-child { display: block; grid-row: auto; break-inside: avoid; }
  .property-gallery .gallery-item img, .property-gallery .gallery-item:first-child img { width: 100%; height: 48mm; object-fit: contain; background: #f5f5f5; }
  .detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 62mm; gap: 8mm; align-items: start; }
  .facts-panel { position: static; padding: 5mm; border: 1px solid #bbb; box-shadow: none; break-inside: avoid; }
  .rich-text img { max-width: 100%; height: auto; object-fit: contain; }
  .rich-text h2, .rich-text h3 { break-after: avoid; }
  .rich-text p, .rich-text li { orphans: 3; widows: 3; }
  a { color: #111; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

.dia-hero {
  width: var(--content);
  margin: 26px auto 0;
  padding: clamp(30px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
  overflow: hidden;
  border: 1px solid #efd1c2;
  border-radius: 28px;
  background: linear-gradient(135deg, #fffaf7 0%, var(--warm) 100%);
  box-shadow: var(--shadow);
}
.dia-hero h1 { max-width: 820px; margin: 8px 0 16px; font-size: clamp(2.35rem, 5vw, 4.7rem); line-height: .98; }
.dia-intro { max-width: 680px; color: var(--ink-soft); font-size: 1.08rem; }
.dia-intro p { margin: 0; }
.dia-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.dia-security-note { color: var(--ink-soft); font-size: .9rem; }
.dia-logo-panel {
  min-height: 270px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(239 100 31 / 16%);
  border-radius: 24px;
  background: rgb(255 255 255 / 68%);
}
.dia-logo-panel img { width: min(270px, 82%); aspect-ratio: 1; object-fit: contain; }
.dia-entry { width: var(--content); margin: 0 auto; padding: clamp(42px, 5vw, 70px) 0; }
.dia-section-heading { max-width: 720px; margin-bottom: 26px; }
.dia-section-heading h2 { margin: 6px 0 10px; font-size: clamp(2rem, 4vw, 3.35rem); }
.dia-section-heading > p:last-child { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.dia-entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dia-entry-card { min-height: 230px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 30px rgb(43 29 20 / 7%); }
.dia-entry-card h3 { margin: 20px 0 8px; font-size: 1.35rem; }
.dia-entry-card p { margin: 0; color: var(--ink-soft); }
.dia-entry-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--brand); }
.dia-entry-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .dia-hero { grid-template-columns: 1fr; }
  .dia-logo-panel { min-height: 190px; }
  .dia-logo-panel img { width: min(190px, 60%); }
}
@media (max-width: 620px) {
  .dia-hero { margin-top: 12px; padding: 28px 22px; border-radius: 20px; }
  .dia-hero h1 { font-size: clamp(2.15rem, 11vw, 3.2rem); }
  .dia-actions .button { width: 100%; text-align: center; }
  .dia-security-note { width: 100%; text-align: center; }
  .dia-entry-grid { grid-template-columns: 1fr; }
  .dia-entry-card { min-height: 0; }
}

.cookie-settings-link { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-decoration: underline; cursor: pointer; }
.cookie-panel[hidden] { display: none; }
.cookie-panel { position: fixed; inset: 0; z-index: 300; display: grid; place-items: end center; padding: 14px; background: rgb(28 20 17 / 52%); }
.cookie-card { position: relative; width: min(920px,100%); max-height: calc(100vh - 28px); overflow-y: auto; padding: clamp(22px,4vw,38px); border-radius: 24px; color: var(--ink); background: #fff; box-shadow: 0 28px 90px rgb(40 20 10 / 28%); }
.cookie-card h2 { margin: 4px 0 10px; }
.cookie-close { position: absolute; top: 14px; right: 16px; width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--ink); background: var(--paper); font: inherit; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.cookie-close:hover, .cookie-close:focus-visible { color: #fff; background: var(--accent); }
.cookie-details { display: grid; gap: 10px; margin: 18px 0; }
.cookie-option { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; font-weight: 800; }
.cookie-option input { width: auto; }
.cookie-option span { display: grid; gap: 3px; }
.cookie-option small, .cookie-storage-note { color: var(--muted); font-weight: 500; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 10px; }
@media (max-width: 600px) { .cookie-actions .button { width: 100%; text-align: center; } }

/* DIA – geschützter Eigentümerbereich */
.dia-app-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgb(239 100 31 / 10%), transparent 28rem),
    #f7f5f3;
}
.dia-app-header {
  width: 100%;
  min-height: 76px;
  padding: 10px max(20px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 4px solid var(--brand);
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 8px 26px rgb(42 31 24 / 5%);
}
.dia-app-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.dia-app-brand img { width: 54px; height: 54px; object-fit: contain; }
.dia-app-brand span { display: grid; line-height: 1.05; }
.dia-app-brand strong { color: var(--brand-dark); font-size: 1.45rem; letter-spacing: .08em; }
.dia-app-brand small { margin-top: 4px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.dia-app-nav { display: flex; align-items: center; gap: 8px; }
.dia-app-nav a,
.dia-app-nav button {
  min-height: 38px;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.dia-app-nav a:hover,
.dia-app-nav a:focus-visible,
.dia-app-nav button:hover,
.dia-app-nav button:focus-visible { color: var(--brand-dark); background: var(--warm); }
.dia-app-nav form { margin: 0; }
.dia-app-main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; flex: 1; }
.dia-app-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 18px 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}
.dia-app-footer a { color: var(--brand-dark); font-weight: 800; }
.dia-login-shell { min-height: calc(100vh - 190px); display: grid; place-items: center; padding: 38px 0; }
.dia-login-card {
  width: min(540px, 100%);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 25px;
  background: #fff;
  box-shadow: var(--shadow);
}
.dia-login-card h1 { margin: 8px 0 14px; font-size: clamp(2rem, 5vw, 3.15rem); line-height: 1; }
.dia-login-card > p:not(.eyebrow) { color: var(--ink-soft); }
.dia-login-form { display: grid; gap: 15px; margin-top: 24px; }
.dia-login-form label { display: grid; gap: 7px; font-weight: 800; }
.dia-login-form input {
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cfc8c3;
  border-radius: 12px;
  background: #fff;
  font: inherit;
}
.dia-login-form button { width: 100%; margin-top: 4px; }
.dia-message { margin-bottom: 18px; padding: 13px 15px; border: 1px solid; border-radius: 12px; font-weight: 700; }
.dia-message-success { color: #185c34; border-color: #a8d6b8; background: #edf9f1; }
.dia-message-error { color: #8b2c1b; border-color: #edb7aa; background: #fff1ed; }
.dia-message-info { color: #6f4d1e; border-color: #e7cf9a; background: #fff9e9; }
.dia-portal { padding: clamp(30px, 5vw, 58px) 0 0; }
.dia-property-head {
  padding: clamp(24px, 4vw, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #efd1c2;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, var(--warm) 100%);
  box-shadow: 0 14px 36px rgb(43 29 20 / 7%);
}
.dia-property-head h1 { margin: 5px 0 8px; font-size: clamp(2rem, 4.4vw, 3.7rem); line-height: 1; }
.dia-property-head p:last-child { margin: 0; color: var(--ink-soft); }
.dia-property-badge {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: var(--brand);
  font-size: 2.7rem;
  line-height: 1;
}
.dia-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 18px; }
.dia-action-card { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgb(43 29 20 / 6%); }
.dia-action-title { display: flex; align-items: center; gap: 13px; }
.dia-action-title > span {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--brand);
  font-size: 1.4rem;
  font-weight: 900;
}
.dia-action-title h2 { margin: 0; font-size: 1.3rem; }
.dia-action-title p { margin: 3px 0 0; color: var(--muted); font-size: .86rem; }
.dia-upload-form { display: grid; gap: 9px; margin-top: 18px; }
.dia-file-picker {
  min-height: 44px;
  padding: 10px 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #d5a88f;
  border-radius: 11px;
  color: var(--brand-dark);
  background: var(--warm);
  font-weight: 800;
  cursor: pointer;
}
.dia-file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dia-upload-form button {
  min-height: 42px;
  padding: 9px 13px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--brand);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.dia-upload-form button:hover,
.dia-upload-form button:focus-visible { background: var(--brand-dark); }
.dia-file-list { margin: 16px 0 0; padding: 0; display: grid; gap: 6px; list-style: none; }
.dia-file-list a {
  min-width: 0;
  padding: 9px 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-radius: 9px;
  color: var(--ink);
  background: #f7f5f3;
  font-size: .83rem;
  font-weight: 750;
  text-decoration: none;
}
.dia-file-list a:hover,
.dia-file-list a:focus-visible { background: var(--warm); }
.dia-file-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dia-file-list small { flex: 0 0 auto; color: var(--muted); }
.dia-empty { margin: 16px 0 0; color: var(--muted); font-size: .86rem; }
.dia-portal > .dia-security-note { margin: 18px 2px 0; text-align: center; }
@media (max-width: 850px) {
  .dia-action-grid { grid-template-columns: 1fr; }
  .dia-action-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, .65fr); gap: 12px 20px; }
  .dia-upload-form { margin-top: 0; }
  .dia-file-list, .dia-empty { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .dia-app-header { min-height: 66px; padding-inline: 14px; }
  .dia-app-brand img { width: 43px; height: 43px; }
  .dia-app-brand small { display: none; }
  .dia-app-nav a, .dia-app-nav button { min-height: 34px; padding: 6px 9px; font-size: .8rem; }
  .dia-app-main { width: min(100% - 22px, 1180px); }
  .dia-app-footer { width: calc(100% - 24px); flex-direction: column; align-items: center; text-align: center; }
  .dia-login-shell { align-items: start; padding-top: 20px; }
  .dia-login-card { padding: 25px 20px; border-radius: 18px; }
  .dia-property-head { align-items: flex-start; padding: 23px 20px; border-radius: 18px; }
  .dia-property-badge { width: 48px; height: 48px; flex-basis: 48px; border-radius: 14px; font-size: 1.9rem; }
  .dia-action-card { grid-template-columns: 1fr; padding: 19px 17px; border-radius: 16px; }
  .dia-file-list, .dia-empty { grid-column: auto; }
}

/* DIA24 Eigentümerportal – bewusst eigenständig in DIA-Blau, mit LIR-Orange als Akzent */
.dia-portal {
  --dia-blue: #174a70;
  --dia-blue-dark: #0d304b;
  --dia-blue-soft: #eaf3f8;
  --dia-line: #c9dbe6;
  padding-bottom: 34px;
}
.dia-property-head {
  position: relative;
  min-height: 255px;
  overflow: hidden;
  align-items: end;
  color: #fff;
  border-color: #245c80;
  background:
    radial-gradient(circle at 86% 15%, rgb(255 255 255 / 15%), transparent 28%),
    linear-gradient(135deg, var(--dia-blue-dark), var(--dia-blue));
}
.dia-property-head.has-image::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgb(7 32 50 / 90%) 0%, rgb(7 32 50 / 62%) 55%, rgb(7 32 50 / 28%) 100%);
}
.dia-property-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dia-property-overlay { position: relative; z-index: 2; width: min(760px, 100%); }
.dia-property-head .eyebrow { color: #ffd8c6; }
.dia-property-head h1 { color: #fff; text-wrap: balance; }
.dia-property-head p { margin-bottom: 8px; color: rgb(255 255 255 / 88%); }
.dia-property-head p:last-child { color: rgb(255 255 255 / 78%); }
.dia-owner-name { font-size: .9rem; font-weight: 750; }
.dia-area-nav {
  position: sticky;
  z-index: 15;
  top: 76px;
  margin: 15px 0;
  padding: 7px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid var(--dia-line);
  border-radius: 16px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 10px 26px rgb(13 48 75 / 9%);
  backdrop-filter: blur(12px);
}
.dia-area-nav a {
  min-height: 44px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--dia-blue-dark);
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.dia-area-nav a:hover,
.dia-area-nav a:focus-visible {
  color: #fff;
  background: var(--dia-blue);
  outline: none;
}
.dia-area-nav span {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  background: var(--brand);
  font-size: .78rem;
}
.dia-section {
  margin-top: 15px;
  padding: clamp(20px, 3vw, 32px);
  scroll-margin-top: 150px;
  border: 1px solid var(--dia-line);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(13 48 75 / 6%);
}
.dia-section-heading {
  margin-bottom: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dia-section-heading > div { position: relative; padding-left: 47px; }
.dia-section-heading .eyebrow { margin-bottom: 2px; color: var(--dia-blue); }
.dia-section-heading h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.2rem); }
.dia-section-heading > p {
  max-width: 450px;
  margin: 0;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.5;
}
.dia-step {
  position: absolute;
  left: 0;
  top: 2px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 11px;
  background: var(--brand);
  font-size: .9rem;
  font-weight: 900;
}
.dia-entry-form,
.dia-property-form { display: grid; gap: 15px; }
.dia-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.dia-form-grid-primary { grid-template-columns: .72fr 1fr 1fr; }
.dia-form-grid label {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
  color: var(--dia-blue-dark);
  font-size: .84rem;
  font-weight: 800;
}
.dia-form-grid input,
.dia-form-grid select,
.dia-form-grid textarea {
  width: 100%;
  min-height: 45px;
  padding: 9px 11px;
  color: var(--ink);
  border: 1px solid #bdcdd7;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 500;
}
.dia-form-grid textarea { min-height: 88px; resize: vertical; }
.dia-form-grid input:focus,
.dia-form-grid select:focus,
.dia-form-grid textarea:focus {
  border-color: var(--dia-blue);
  outline: 3px solid rgb(23 74 112 / 15%);
}
.dia-form-grid .dia-full { grid-column: 1 / -1; }
.dia-form-grid .dia-file-picker {
  min-height: 45px;
  align-content: center;
  border-color: #91b3c7;
  color: var(--dia-blue-dark);
  background: var(--dia-blue-soft);
}
.dia-form-grid .dia-file-picker:hover { border-color: var(--dia-blue); background: #ddebf3; }
.dia-file-picker-wide { width: 100%; }
.dia-form-grid .dia-check {
  min-height: 45px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #bdcdd7;
  border-radius: 10px;
}
.dia-check input { width: 18px; min-height: 18px; accent-color: var(--dia-blue); }
.dia-optional-fields {
  overflow: hidden;
  border: 1px solid var(--dia-line);
  border-radius: 12px;
  background: #f8fbfd;
}
.dia-optional-fields summary {
  padding: 11px 13px;
  color: var(--dia-blue-dark);
  font-size: .88rem;
  font-weight: 850;
  cursor: pointer;
}
.dia-optional-fields[open] summary { border-bottom: 1px solid var(--dia-line); }
.dia-optional-fields > .dia-form-grid { padding: 14px; }
.dia-primary-button,
.dia-secondary-button {
  min-height: 42px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: .88rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.dia-primary-button { color: #fff; background: var(--dia-blue); }
.dia-primary-button:hover,
.dia-primary-button:focus-visible { background: var(--dia-blue-dark); }
.dia-secondary-button { color: var(--dia-blue-dark); border-color: #91b3c7; background: var(--dia-blue-soft); }
.dia-secondary-button:hover,
.dia-secondary-button:focus-visible { color: #fff; background: var(--dia-blue); }
.dia-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: var(--ink-soft);
  font-size: .83rem;
}
.dia-empty-state {
  padding: 26px;
  display: grid;
  place-items: center;
  gap: 3px;
  color: var(--ink-soft);
  border: 1px dashed #91b3c7;
  border-radius: 13px;
  background: var(--dia-blue-soft);
  text-align: center;
}
.dia-empty-state strong { color: var(--dia-blue-dark); }
.dia-timeline { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.dia-timeline a {
  min-width: 0;
  padding: 11px 13px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  border: 1px solid #d8e3e9;
  border-radius: 12px;
  background: #fbfdfe;
  text-decoration: none;
}
.dia-timeline a:hover,
.dia-timeline a:focus-visible { border-color: #91b3c7; background: var(--dia-blue-soft); }
.dia-timeline-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 11px;
  background: var(--dia-blue);
  font-weight: 900;
}
.dia-timeline-copy { min-width: 0; display: grid; }
.dia-timeline-copy small { color: var(--ink-soft); font-size: .74rem; }
.dia-timeline-copy strong,
.dia-timeline-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dia-timeline-copy strong { color: var(--dia-blue-dark); }
.dia-timeline-copy span { color: var(--ink-soft); font-size: .83rem; }
.dia-timeline b { color: var(--dia-blue-dark); font-size: .88rem; }
.dia-release-preview {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--dia-line);
  border-radius: 13px;
  background: var(--dia-blue-soft);
}
.dia-release-preview > div { display: grid; }
.dia-release-preview span { color: var(--ink-soft); font-size: .84rem; }
.dia-release-preview button {
  min-height: 40px;
  padding: 8px 13px;
  color: #75818a;
  border: 1px solid #c9d4db;
  border-radius: 9px;
  background: #edf1f3;
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
}
.dia-ownership-note { margin: 12px 0 0; color: var(--dia-blue-dark); font-size: .85rem; font-weight: 750; }
.dia-install-note {
  margin-top: 15px;
  padding: 14px 17px;
  display: grid;
  gap: 2px;
  color: #fff;
  border-radius: 14px;
  background: var(--dia-blue);
}
.dia-install-note span { color: rgb(255 255 255 / 80%); font-size: .84rem; }

.dia-export {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid #c9dbe6;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgb(13 48 75 / 7%);
}
.dia-export-actions {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.dia-export-head {
  padding-bottom: 20px;
  border-bottom: 3px solid #174a70;
}
.dia-export-head h1 { margin: 5px 0 8px; color: #0d304b; }
.dia-export-head p { margin: 3px 0; color: var(--ink-soft); }
.dia-export-property {
  margin: 22px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 26px;
}
.dia-export-property p { margin: 0; }
.dia-export-chronicle { width: 100%; border-collapse: collapse; }
.dia-export-chronicle th,
.dia-export-chronicle td {
  padding: 10px 8px;
  border-bottom: 1px solid #d8e3e9;
  vertical-align: top;
  text-align: left;
}
.dia-export-chronicle th { color: #0d304b; background: #eaf3f8; }
.dia-export-help { margin-top: 18px; color: var(--ink-soft); font-size: .86rem; }

.dia-test-panel {
  margin: 12px 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #bcd6e6;
  border-radius: 16px;
  background: #eef7fb;
}
.dia-test-panel h2,
.dia-test-panel p { margin: 2px 0; }
.dia-test-panel h2 { color: #0d304b; font-size: clamp(1.15rem, 2vw, 1.55rem); }
.dia-test-panel > div:first-child > p:last-child { color: var(--ink-soft); font-size: .9rem; }
.dia-test-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.dia-test-actions a {
  padding: 8px 11px;
  border-radius: 999px;
  color: #fff;
  background: #174a70;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}
.dia-test-actions a:hover { background: #0d304b; }

.dia-admin-page { padding: 24px 0 36px; }
.dia-admin-heading { max-width: 760px; }
.dia-admin-heading h1 { margin: 4px 0 8px; color: #0d304b; }
.dia-admin-heading p { margin: 4px 0; color: var(--ink-soft); }
.dia-admin-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(360px, 1.28fr);
  gap: 14px;
}
.dia-admin-card {
  padding: 18px;
  border: 1px solid #c9dbe6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(13 48 75 / 6%);
}
.dia-admin-card h2 { margin: 0 0 14px; color: #0d304b; font-size: 1.18rem; }
.dia-compact-form { display: grid; gap: 10px; }
.dia-compact-form label { display: grid; gap: 4px; font-weight: 700; }
.dia-compact-form input,
.dia-user-row input {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #b8cad5;
  border-radius: 10px;
  font: inherit;
}
.dia-user-list { display: grid; gap: 8px; }
.dia-user-row {
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(250px, 1.5fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #d8e3e9;
  border-radius: 12px;
}
.dia-user-row > div { display: grid; gap: 2px; }
.dia-user-row small { color: var(--ink-soft); }
.dia-user-row form { display: flex; gap: 6px; }
.dia-user-row button {
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #174a70;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media print {
  @page { size: A4 portrait; margin: 14mm; }
  body.dia-app-body { display: block; color: #111; background: #fff; }
  .dia-app-header,
  .dia-app-footer,
  .dia-export-actions,
  .dia-export-help { display: none !important; }
  .dia-app-main { width: 100%; margin: 0; }
  .dia-export {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .dia-export-head { break-after: avoid; }
  .dia-export-head h1 { font-size: 24pt; }
  .dia-export-property { break-inside: avoid; }
  .dia-export-chronicle { font-size: 9pt; }
  .dia-export-chronicle tr { break-inside: avoid; }
  .dia-export a { color: #111; text-decoration: none; }
}

@media (max-width: 820px) {
  .dia-admin-grid { grid-template-columns: 1fr; }
  .dia-user-row { grid-template-columns: 1fr; }
  .dia-user-row form { flex-wrap: wrap; }
  .dia-area-nav { top: 70px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dia-form-grid-primary { grid-template-columns: 1fr 1fr; }
  .dia-form-grid-primary .dia-file-picker { grid-column: 1 / -1; }
  .dia-export-property { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .dia-test-panel { align-items: flex-start; flex-direction: column; }
  .dia-test-actions { width: 100%; }
  .dia-test-actions a { flex: 1 1 auto; text-align: center; }
  .dia-portal { padding-top: 18px; }
  .dia-property-head { min-height: 220px; }
  .dia-property-head.has-image::after { background: rgb(7 32 50 / 69%); }
  .dia-area-nav { position: static; margin-block: 10px; padding: 5px; }
  .dia-area-nav a { min-height: 40px; padding: 6px; font-size: .8rem; }
  .dia-area-nav span { width: 21px; height: 21px; flex-basis: 21px; border-radius: 7px; }
  .dia-section { margin-top: 10px; padding: 17px 14px; border-radius: 16px; }
  .dia-section-heading { margin-bottom: 14px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .dia-section-heading > div { padding-left: 42px; }
  .dia-section-heading > p { font-size: .84rem; }
  .dia-form-grid,
  .dia-form-grid-primary { grid-template-columns: 1fr; gap: 10px; }
  .dia-form-grid-primary .dia-file-picker,
  .dia-form-grid .dia-full { grid-column: auto; }
  .dia-form-footer,
  .dia-release-preview { align-items: stretch; flex-direction: column; }
  .dia-form-footer .dia-primary-button { justify-self: stretch; }
  .dia-timeline a { grid-template-columns: 34px minmax(0, 1fr); }
  .dia-timeline-icon { width: 34px; height: 34px; }
  .dia-timeline b { grid-column: 2; }
}
