/* NetzWerkPlan website – shared design system. Tokens derived from lp/cde-v2. */
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-bold.woff2") format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; }

:root {
  --royal: #18429c;
  --royal-dark: #13357d;
  --navy: #0f2a64;
  --sky: #039be5;
  --sky-light: #e8f4fc;
  --amber: #ffd84d;
  --heading: #16223b;
  --text: #475066;
  --muted: #5b647a;
  --line: #e4e8f0;
  --surface: #f5f7fb;
  --white: #fff;
  --success: #11633c;
  --danger: #b42318;
  --shadow: 0 24px 60px rgba(15, 42, 100, .16);
  --shadow-sm: 0 12px 32px rgba(15, 42, 100, .08);
  --container: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; color: var(--text); background: var(--white); font-family: "Roboto", Arial, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: var(--amber); color: var(--navy); }
a { color: var(--royal); }
img, svg { max-width: 100%; }
img { display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 999; left: 16px; top: -60px; padding: 10px 16px; color: var(--white); background: var(--navy); border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin-top: 0; color: var(--heading); line-height: 1.16; letter-spacing: -.025em; }
h1 { margin-bottom: 22px; font-size: clamp(2.2rem, 3.6vw, 3.6rem); font-weight: 900; }
h2 { margin-bottom: 18px; font-size: clamp(1.8rem, 2.9vw, 2.75rem); font-weight: 800; }
h3 { margin-bottom: 10px; font-size: 1.22rem; font-weight: 700; }
h4 { margin-bottom: 8px; font-size: 1.04rem; font-weight: 700; }
p { margin-top: 0; }
h1, h2, h3, .cta-inner p { text-wrap: balance; }
p, li { text-wrap: pretty; }
.nobr { white-space: nowrap; }
.eyebrow { margin: 0 0 14px; color: var(--amber); font-size: .77rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow-blue, .section .eyebrow, .section-heading .eyebrow { color: #0a67b0; }
.lead { font-size: 1.14rem; line-height: 1.65; }

/* ---------- Buttons ---------- */
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 50px; padding: 12px 24px; border: 0; border-radius: 10px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--royal); box-shadow: 0 10px 24px rgba(24,66,156,.2); }
.button-primary:hover { background: var(--royal-dark); }
.button-light { color: var(--royal-dark); background: var(--white); box-shadow: 0 10px 28px rgba(0,0,0,.16); }
.button-light:hover { background: #f6f9ff; }
.button-ghost { color: var(--royal); background: transparent; box-shadow: inset 0 0 0 2px var(--royal); }
.button-ghost:hover { background: var(--sky-light); }
.page-hero .button-ghost, .section--dark .button-ghost, .cta-band .button-ghost { color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.page-hero .button-ghost:hover, .section--dark .button-ghost:hover, .cta-band .button-ghost:hover { background: rgba(255,255,255,.1); }
.button-sm { min-height: 42px; padding: 9px 18px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link::after { content: " →"; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 90; height: var(--header-h); background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo-link img { width: 190px; height: 44px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 4px; height: 100%; }
.nav-item { position: static; height: 100%; display: flex; align-items: center; }
.nav-link, .nav-trigger { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; color: var(--heading); background: none; border: 0; border-radius: 8px; font-size: .96rem; font-weight: 500; text-decoration: none; cursor: pointer; }
.nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"], .nav-link[aria-current] { color: var(--royal); background: var(--sky-light); }
.nav-trigger::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.nav-trigger[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(-135deg); }
.mega { position: absolute; left: 0; right: 0; top: var(--header-h); display: none; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(15,42,100,.14); }
.nav-item.is-open > .mega { display: block; }
.mega-inner { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 36px; padding-block: 32px 36px; }
.mega h3 { margin-bottom: 12px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mega ul { margin: 0; padding: 0; list-style: none; }
.mega li a { display: block; padding: 7px 0; color: var(--heading); font-weight: 500; text-decoration: none; }
.mega li a small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.mega li a:hover { color: var(--royal); }
.mega-note { align-self: start; padding: 22px; background: var(--surface); border-radius: 12px; font-size: .9rem; }
.mega-note strong { display: block; margin-bottom: 6px; color: var(--heading); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { color: var(--royal-dark); font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; width: 46px; height: 46px; padding: 0; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; margin: auto; background: var(--heading); border-radius: 2px; transition: transform .2s; }
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- Page hero & breadcrumb ---------- */
.breadcrumb { padding: 14px 0; color: var(--muted); font-size: .84rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #a0a8ba; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--royal); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--heading); font-weight: 500; }

.page-hero { position: relative; overflow: hidden; color: rgba(255,255,255,.88); background: linear-gradient(125deg, var(--navy), var(--royal) 72%, #2056bd); }
.page-hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -250px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.02); pointer-events: none; }
.page-hero h1 { color: var(--white); }
.page-hero h1 span { display: block; color: var(--amber); }
.page-hero a:not(.button) { color: var(--white); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; padding-block: 72px; }
.hero-single { position: relative; padding-block: 72px; }
.hero-single > * { max-width: 820px; }
.page-hero--light .hero-single { padding-block: 56px 32px; }
.hero-lead { max-width: 680px; margin-bottom: 28px; font-size: 1.15rem; line-height: 1.65; }
.hero-note { margin: 12px 0 0; font-size: .86rem; opacity: .8; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 9px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: .9rem; }
.hero-trust li::before { content: "✓"; margin-right: 7px; color: var(--amber); font-weight: 900; }
.page-hero--light { color: var(--text); background: linear-gradient(180deg, var(--sky-light), var(--white)); }
.page-hero--light::before { display: none; }
.page-hero--light h1 { color: var(--heading); }
.page-hero--light h1 span { color: var(--royal); }
.page-hero--light .eyebrow { color: #0a67b0; }
.page-hero--light .hero-trust { color: var(--text); }
.page-hero--light .hero-trust li::before { color: var(--sky); }
.page-hero--light a:not(.button) { color: var(--royal); }
.page-hero--light .button-ghost { color: var(--royal); box-shadow: inset 0 0 0 2px var(--royal); }
.page-hero--light .button-ghost:hover { background: var(--sky-light); }
h1 { overflow-wrap: break-word; hyphens: auto; }

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section--alt { background: var(--surface); }
.section--dark { color: rgba(255,255,255,.86); background: var(--navy); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark .eyebrow { color: var(--amber); }
.section--dark a:not(.button) { color: var(--white); }
.section--tight { padding-block: 56px; }
.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-heading > p:last-child { margin-bottom: 0; font-size: 1.06rem; }
.centered { margin-inline: auto; text-align: center; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr .85fr; }
.split--wide-right { grid-template-columns: .85fr 1.15fr; }
.split--top { align-items: start; }
.split-copy > p:not(.eyebrow) { font-size: 1.05rem; }
/* short column next to a tall one stays in view while scrolling (desktop) */
@media (min-width: 961px) {
  .split--top > .split-copy, .split--top > figure { position: sticky; top: calc(var(--header-h) + 24px); }
  .split--top:has(> .screenshot) { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (max-width: 960px) { .split--top > figure { order: -1; } }

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.card > :last-child { margin-bottom: 0; }
.card p { margin-bottom: 14px; font-size: .96rem; }
.card .text-link { margin-top: auto; padding-top: 6px; }
a.card { color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.card:hover { transform: translateY(-3px); border-color: #c5d3ec; box-shadow: 0 18px 44px rgba(15,42,100,.14); }
a.card h3 { color: var(--heading); }
a.card .card-more { margin-top: auto; padding-top: 6px; color: var(--royal); font-weight: 700; font-size: .94rem; }
a.card .card-more::after { content: " →"; }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; color: var(--royal); background: var(--sky-light); border-radius: 12px; }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-number { display: inline-block; margin-bottom: 18px; color: var(--sky); font-size: .82rem; font-weight: 900; letter-spacing: .08em; }
.card-tag { align-self: flex-start; margin-bottom: 14px; padding: 4px 10px; color: #0a67b0; background: var(--sky-light); border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.section--dark .card { color: var(--text); }
.section--dark .card h3 { color: var(--heading); }

/* ---------- Lists, steps, stats ---------- */
.check-list { margin: 0 0 24px; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 7px 0 7px 31px; color: var(--heading); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 9px; display: grid; place-items: center; width: 21px; height: 21px; color: var(--white); background: var(--sky); border-radius: 50%; font-size: .72rem; font-weight: 900; }
.section--dark .check-list li { color: rgba(255,255,255,.92); }
.cross-list { margin: 0 0 24px; padding: 0; list-style: none; }
.cross-list li { position: relative; padding: 7px 0 7px 31px; }
.cross-list li::before { content: "×"; position: absolute; left: 0; top: 9px; display: grid; place-items: center; width: 21px; height: 21px; color: var(--white); background: #98a2b8; border-radius: 50%; font-size: .9rem; font-weight: 700; line-height: 1; }
.steps { display: grid; grid-template-columns: repeat(var(--steps, 3), 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 26px 24px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; color: var(--white); background: var(--royal); border-radius: 50%; font-weight: 700; }
.steps strong { display: block; margin-bottom: 4px; color: var(--heading); }
.steps p { margin: 0; font-size: .92rem; }
.stat-row { display: grid; grid-template-columns: repeat(var(--stats, 4), 1fr); gap: 24px; }
.stat { padding: 8px 0 8px 20px; border-left: 3px solid var(--sky); }
.stat strong { display: block; color: var(--heading); font-size: 2.1rem; font-weight: 900; line-height: 1.1; letter-spacing: -.02em; }
.section--dark .stat strong { color: var(--white); }
.stat span { font-size: .9rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pill-list li { padding: 9px 15px; color: var(--heading); background: var(--white); border: 1px solid var(--line); border-radius: 20px; font-size: .9rem; }
.pill-list a { color: inherit; text-decoration: none; }
.pill-list a:hover { color: var(--royal); text-decoration: underline; }
.section--dark .pill-list li { color: rgba(255,255,255,.92); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 20px 42px 20px 0; color: var(--heading); font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 8px; top: 13px; color: var(--royal); font-size: 1.7rem; font-weight: 300; }
details[open] summary::after { content: "−"; }
details p { margin: -4px 42px 20px 0; }

/* ---------- Tables, callouts, quotes ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; background: var(--white); }
th, td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: var(--heading); background: var(--surface); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--success); font-weight: 700; }
@media (min-width: 641px) {
  .table-wrap table { table-layout: fixed; }
  .table-wrap thead th:first-child { width: 34%; }
}
.callout { padding: 24px 28px; background: var(--sky-light); border-left: 4px solid var(--sky); border-radius: 0 10px 10px 0; }
.callout > :last-child { margin-bottom: 0; }
.callout strong { color: var(--heading); }
.callout--note { background: #fff8dc; border-color: var(--amber); }
.quote { margin: 0; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.quote::before { content: "“"; display: block; height: 35px; color: var(--sky); font-size: 4rem; font-weight: 900; line-height: .9; }
.quote p { color: var(--heading); font-size: 1.1rem; font-weight: 500; }
.quote footer { color: var(--muted); font-size: .86rem; }
.related > a:only-child { grid-column: 1 / -1; max-width: 560px; }
.placeholder-note { margin-top: 16px; padding: 10px 14px; color: #7a5600; background: #fff8dc; border: 1px dashed #e0b84a; border-radius: 8px; font-size: .84rem; }

/* ---------- Long-form (Themen pages) ---------- */
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 20px 22px; background: var(--surface); border-radius: 12px; font-size: .9rem; }
.toc strong { display: block; margin-bottom: 8px; color: var(--heading); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { padding: 3px 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--royal); text-decoration: underline; }
.article-layout > *, .split > *, .hero-grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.prose { max-width: 740px; overflow-wrap: break-word; }
.prose p, .prose li { hyphens: auto; }
.prose strong, .prose a, .prose h2, .prose h3, .table-wrap th, .table-wrap td { hyphens: manual; }
.toc { overflow-wrap: anywhere; }
.prose h2 { margin-top: 48px; font-size: clamp(1.5rem, 2.3vw, 2.1rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 30px; }
.prose p, .prose li { font-size: 1.04rem; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .callout, .prose .table-wrap { margin-block: 28px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related a { display: block; padding: 20px 22px; color: var(--heading); background: var(--white); border: 1px solid var(--line); border-radius: 10px; font-weight: 700; text-decoration: none; }
.related a small { display: block; margin-top: 4px; color: var(--muted); font-size: .84rem; font-weight: 400; }
.related a:hover { border-color: var(--royal); }
.related-label { display: block; margin-bottom: 4px; color: #0a67b0; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Product mockups (schematic, data-free) ---------- */
.browser-frame { overflow: hidden; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 42px; padding-inline: 15px; color: var(--muted); background: #f1f3f7; border-bottom: 1px solid var(--line); font-size: .74rem; }
.browser-bar span { width: 9px; height: 9px; background: #c8ced9; border-radius: 50%; }
.browser-bar strong { margin-left: 9px; font-weight: 500; }
.browser-frame figcaption { padding: 9px 14px; color: var(--muted); font-size: .76rem; border-top: 1px solid var(--line); }
.demo-ui { display: grid; grid-template-columns: 132px 1fr; min-height: 300px; color: #34405a; background: #f4f6fa; font-size: .72rem; }
.demo-ui aside { display: flex; flex-direction: column; gap: 5px; padding: 18px 10px; color: rgba(255,255,255,.78); background: var(--navy); }
.demo-ui aside strong { margin: 0 5px 18px; color: var(--white); font-size: 1rem; }
.demo-ui aside em { color: var(--amber); font-style: normal; }
.demo-ui aside span { padding: 8px 9px; border-radius: 5px; }
.demo-ui aside .active { color: var(--white); background: rgba(255,255,255,.16); font-weight: 700; }
.demo-main { padding: 20px; overflow: hidden; }
.demo-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; color: var(--heading); font-size: .86rem; }
.demo-toolbar button { padding: 7px 10px; color: var(--white); background: var(--royal); border: 0; border-radius: 5px; font-size: .65rem; }
.demo-head, .demo-row { display: grid; grid-template-columns: minmax(150px, 1.8fr) .45fr .55fr 1fr; gap: 9px; align-items: center; padding: 10px 11px; }
.demo-head { color: var(--muted); background: #e8ebf2; font-size: .61rem; font-weight: 700; text-transform: uppercase; }
.demo-row { background: var(--white); border-bottom: 1px solid var(--line); }
.demo-row b { justify-self: start; padding: 3px 7px; border-radius: 99px; font-size: .6rem; font-weight: 700; }
.demo-row .approved { color: #11633c; background: #dcf6e8; }
.demo-row .review { color: #8a5a00; background: #fff1c7; }
.demo-row .shared { color: #0a67b0; background: #e4f2fb; }
.demo-row .open { color: #b42318; background: #fde7e4; }
.mini-screen { min-height: 205px; padding: 13px; color: #38445e; background: #f2f5fa; font-size: .68rem; border-radius: 10px; border: 1px solid var(--line); }
.mini-top { margin: -13px -13px 13px; padding: 9px 12px; color: var(--white); background: var(--royal); font-weight: 700; border-radius: 9px 9px 0 0; }
.timeline { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 9px 4px; padding: 6px 8px; }
.timeline::before { content: ""; position: absolute; left: 18px; top: 12px; bottom: 18px; width: 2px; background: #b8c9e7; }
.timeline i { position: relative; z-index: 1; align-self: start; width: 11px; height: 11px; margin: 5px; background: var(--sky); border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 1px #9db5df; }
.timeline p { display: grid; margin: 0; padding: 5px 8px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
.timeline small { color: var(--muted); }
.floorplan { position: relative; height: 150px; overflow: hidden; background: repeating-linear-gradient(0deg, transparent 0 19px, rgba(24,66,156,.06) 20px), repeating-linear-gradient(90deg, transparent 0 19px, rgba(24,66,156,.06) 20px), var(--white); border: 2px solid #8ba2c8; }
.floorplan::before, .floorplan::after, .floorplan .room { content: ""; position: absolute; display: block; border: 2px solid #8ba2c8; }
.floorplan::before { left: 41%; top: 0; bottom: 35%; }
.floorplan::after { left: 65%; right: 0; top: 52%; }
.floorplan .one { left: 0; right: 58%; top: 46%; }
.floorplan .two { left: 65%; top: 0; bottom: 48%; }
.floorplan .three { left: 40%; right: 34%; top: 64%; }
.floorplan b { position: absolute; z-index: 2; left: 58%; top: 35%; display: grid; place-items: center; width: 25px; height: 25px; color: var(--white); background: #d94841; border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 3px 9px rgba(0,0,0,.2); }
.floorplan em { position: absolute; z-index: 2; left: 46%; top: 60%; padding: 4px 6px; color: var(--heading); background: var(--white); border: 1px solid var(--line); border-radius: 4px; font-style: normal; box-shadow: 0 3px 9px rgba(0,0,0,.1); }
.rights-grid { display: grid; grid-template-columns: 1.5fr repeat(3, .7fr); overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
.rights-grid > * { display: grid; place-items: center; min-height: 34px; padding: 5px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-style: normal; }
.rights-grid > *:nth-child(4n) { border-right: 0; }
.rights-grid b { color: var(--heading); background: #e9eef7; font-size: .6rem; }
.rights-grid span { justify-content: start; color: var(--heading); font-weight: 500; }
.rights-grid i { color: var(--royal); font-weight: 700; }
/* side-by-side figures: equal height so captions line up */
.grid-2 > figure, .grid-3 > figure, .grid-4 > figure { display: flex; flex-direction: column; margin: 0; }
.grid-2 > figure > .mini-screen, .grid-3 > figure > .mini-screen, .grid-4 > figure > .mini-screen { flex: 1; }
.screenshot { margin: 0; }
.screenshot img { width: 100%; height: auto; border-radius: 12px; }
.screenshot--frame img { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.screenshot figcaption { margin-top: 10px; color: var(--muted); font-size: .8rem; }
.page-hero .screenshot figcaption { color: rgba(255,255,255,.75); }
.mock-caption { margin: 12px 0 0; color: var(--muted); font-size: .76rem; }
.mock-list { display: grid; gap: 6px; }
.mock-list p { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; padding: 8px 10px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
.mock-list b { padding: 2px 7px; border-radius: 99px; font-size: .6rem; }
.mock-list .approved { color: #11633c; background: #dcf6e8; }
.mock-list .review { color: #8a5a00; background: #fff1c7; }
.mock-list .open { color: #b42318; background: #fde7e4; }
.mock-list .shared { color: #0a67b0; background: #e4f2fb; }

/* ---------- Forms (Tally embed + fallback) ---------- */
.form-card { padding: 30px; color: var(--text); background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 80px rgba(5,17,50,.2); }
.page-hero .form-card { border-color: rgba(255,255,255,.4); box-shadow: 0 30px 80px rgba(5,17,50,.35); }
.page-hero .form-card a:not(.button), .section--dark .card a:not(.button) { color: var(--royal); }
.page-hero .form-card h2 { color: var(--heading); }
.form-card h2 { margin-bottom: 8px; font-size: 1.55rem; }
.form-card > p { color: var(--muted); font-size: .94rem; }
.form-kicker { margin-bottom: 5px; color: var(--royal); font-size: .77rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tally-embed { min-height: 120px; }
.tally-embed iframe { display: block; width: 100%; min-height: 420px; border: 0; }
.tally-loading { margin: 0; padding: 18px; color: var(--muted); background: var(--surface); border-radius: 10px; font-size: .9rem; }
.contact-fallback[hidden] { display: none; }
.tally-embed .contact-fallback { margin-top: 12px; }
.tally-load { display: grid; gap: 12px; padding: 18px; background: var(--surface); border-radius: 10px; font-size: .86rem; }
.tally-load p { margin: 0; }
.video-note { max-width: 760px; margin: 0 0 24px; color: var(--muted); font-size: .86rem; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.video { margin: 0; }
.video iframe, .video-load { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
.video-load { position: relative; padding: 0; background: linear-gradient(125deg, var(--navy), var(--royal)); cursor: pointer; }
.video-load:hover .video-play { background: var(--white); }
.video-play { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; background: var(--amber); border-radius: 50%; transform: translate(-50%, -50%); transition: background .2s; }
.video-play::after { content: ""; position: absolute; top: 50%; left: 54%; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--navy); transform: translate(-50%, -50%); }
.video figcaption { margin-top: 10px; color: var(--heading); font-size: .92rem; font-weight: 500; }
.contact-fallback { display: grid; gap: 10px; padding: 18px; background: var(--surface); border-radius: 10px; }
.contact-fallback a { font-weight: 700; }
.risk-note { margin: 12px 0 0; color: var(--heading); font-size: .76rem; font-weight: 500; text-align: center; }
.contact-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.contact-list strong { display: block; color: var(--heading); }

/* ---------- CTA band & footer ---------- */
.cta-band { color: rgba(255,255,255,.82); background: linear-gradient(115deg, var(--navy), var(--royal)); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding-block: 60px; }
.cta-inner h2 { margin-bottom: 8px; color: var(--white); font-size: clamp(1.7rem, 2.6vw, 2.35rem); }
.cta-inner p { margin: 0; }
.cta-inner .actions { flex: 0 0 auto; }
.site-footer { padding: 56px 0 24px; color: #687187; background: #f9fafc; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.footer-brand img { width: 180px; height: 42px; object-fit: contain; object-position: left; margin-bottom: 14px; }
.footer-brand p { margin: 0 0 6px; font-size: .84rem; }
.footer-brand a { color: var(--heading); text-decoration: none; font-weight: 500; }
.site-footer h3 { margin-bottom: 12px; color: var(--heading); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { padding: 3px 0; }
.site-footer li a { color: #475066; font-size: .88rem; text-decoration: none; }
.site-footer li a:hover { color: var(--royal); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; }
.footer-bottom a { color: #475066; }
.sticky-cta { display: none; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin-inline: auto; padding: 22px 24px; color: var(--text); background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 70px rgba(15,42,100,.3); font-size: .88rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { margin-bottom: 6px; font-size: 1.1rem; }
.cookie-banner p { margin-bottom: 12px; }
.cookie-options { display: grid; gap: 6px; margin-bottom: 14px; }
.cookie-options label { display: flex; gap: 8px; align-items: start; }
.cookie-options input { margin-top: 4px; accent-color: var(--royal); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-link { padding: 0; color: var(--royal); background: none; border: 0; font-size: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .header-phone { display: none; }
  .nav-link, .nav-trigger { padding-inline: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; z-index: 80; left: 0; right: 0; top: var(--header-h); bottom: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; height: auto; padding: 12px 24px 100px; overflow-y: auto; background: var(--white); }
  body.nav-open .main-nav { display: flex; }
  body.nav-open { overflow: hidden; }
  .nav-item { display: block; height: auto; border-bottom: 1px solid var(--line); }
  .nav-link, .nav-trigger { width: 100%; height: 54px; justify-content: space-between; padding-inline: 4px; font-size: 1.05rem; }
  .mega { position: static; box-shadow: none; border: 0; }
  .mega-inner { grid-template-columns: 1fr; gap: 20px; padding: 4px 4px 20px; }
  .mega-note { display: none; }
  .header-cta .button { display: none; }
  .hero-grid, .split, .split--wide-left, .split--wide-right, .article-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-grid, .hero-single { padding-block: 52px; }
  .grid-3, .related { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .toc { position: static; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
}
@media (max-width: 640px) {
  .site-footer { padding-bottom: 92px; }
  /* tables become stacked cards; labels come from the header row (set in main.js) */
  .table-wrap { overflow: visible; border: 0; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td, .table-wrap tbody th { display: block; width: 100%; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap tr { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .table-wrap tbody th { background: var(--surface); }
  .table-wrap td { padding: 10px 16px; border-bottom: 1px solid var(--line); }
  .table-wrap td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .table-wrap tr > :last-child { border-bottom: 0; }
  .mini-screen { font-size: .76rem; }
  .rights-grid b, .mock-list b { font-size: .68rem; }
  .demo-ui aside { padding: 14px 6px; }
  .demo-ui aside strong { margin: 0 4px 12px; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .demo-ui aside span { padding: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .demo-row > *, .demo-head > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  :root { --header-h: 64px; }
  .logo-link img { width: 160px; height: 40px; }
  .section { padding-block: 60px; }
  .grid-2, .grid-3, .grid-4, .related, .stat-row { grid-template-columns: 1fr; }
  .demo-ui { grid-template-columns: 88px 1fr; font-size: .6rem; }
  .demo-main { padding: 13px 9px; }
  .demo-toolbar button { display: none; }
  .demo-head, .demo-row { grid-template-columns: minmax(95px, 1.7fr) .4fr .45fr 1fr; gap: 4px; padding: 8px 5px; }
  .demo-row b { padding: 2px 4px; font-size: .5rem; }
  .form-card { padding: 22px 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta-inner .actions, .cta-inner .button { width: 100%; }
  /* floating demo button: only after the hero has scrolled away (main.js sets .is-visible) */
  .sticky-cta { position: fixed; z-index: 100; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; min-height: 50px; color: var(--white); background: var(--royal); border: 2px solid var(--white); border-radius: 10px; box-shadow: 0 12px 34px rgba(15,42,100,.32); font-weight: 700; text-decoration: none; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .2s, transform .2s; }
  .sticky-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  body.has-cookie-banner .sticky-cta, body.nav-open .sticky-cta { display: none; }
}
@media print { .site-header, .site-footer, .sticky-cta, .cookie-banner, .cta-band { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
