/* Sachverständigenbüro Kühn – Stylesheet */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #eeebe3;
  --ink: #1a1e2b;
  --muted: #5a5f6e;
  --line: #ddd8cc;
  --brand: #2f3a8f;
  --brand-strong: #232c75;
  --brand-ink: #ffffff;
  --brand-soft: #e7e9f6;
  --accent: #8c6b36;
  --accent-soft: #c9ab78;
  --grid: rgba(47, 58, 143, 0.07);
  --shadow: 0 1px 2px rgba(20, 24, 40, 0.05), 0 10px 30px rgba(20, 24, 40, 0.07);
  --shadow-lg: 0 2px 4px rgba(20, 24, 40, 0.06), 0 24px 60px rgba(20, 24, 40, 0.12);
  --header-bg: rgba(246, 244, 239, 0.82);
  --cta-bg: #2f3a8f;
  --cta-ink: #ffffff;

  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d111c;
    --surface: #151a29;
    --surface-2: #1b2133;
    --ink: #ebe9e3;
    --muted: #a2a7b6;
    --line: #283047;
    --brand: #93a0f4;
    --brand-strong: #b3bdf8;
    --brand-ink: #0d111c;
    --brand-soft: #1e2546;
    --accent: #d4b47e;
    --accent-soft: #8f7548;
    --grid: rgba(147, 160, 244, 0.07);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.45);
    --header-bg: rgba(13, 17, 28, 0.8);
    --cta-bg: #1f2756;
    --cta-ink: #ebe9e3;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d111c;
  --surface: #151a29;
  --surface-2: #1b2133;
  --ink: #ebe9e3;
  --muted: #a2a7b6;
  --line: #283047;
  --brand: #93a0f4;
  --brand-strong: #b3bdf8;
  --brand-ink: #0d111c;
  --brand-soft: #1e2546;
  --accent: #d4b47e;
  --accent-soft: #8f7548;
  --grid: rgba(147, 160, 244, 0.07);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(13, 17, 28, 0.8);
  --cta-bg: #1f2756;
  --cta-ink: #ebe9e3;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: var(--brand-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-strong); color: var(--brand-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font: 600 1.12rem/1.15 var(--serif); }
.brand-sub { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: 999px; text-decoration: none;
  color: var(--muted); font-weight: 500; font-size: .96rem; white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.nav a:hover, .nav a.active { color: var(--ink); background: var(--surface-2); }
.nav .nav-cta { display: none; }

.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; flex: none;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; transition: border-color .2s ease, color .2s ease;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.menu-toggle { display: none; }
.header-phone { display: inline-flex; }

@media (max-width: 1240px) { .header-phone { display: none; } }
@media (max-width: 1020px) {
  .menu-toggle { display: inline-grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-header.open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 12px; border-radius: var(--radius-sm); font-size: 1.05rem; }
  .nav .nav-cta { display: flex; margin-top: 10px; color: var(--brand-ink); }
  .nav .nav-cta:hover { background: var(--brand-strong); color: var(--brand-ink); }
  .site-header.open .menu-toggle .bars { display: none; }
  .menu-toggle .close { display: none; }
  .site-header.open .menu-toggle .close { display: block; }
}
@media (max-width: 480px) {
  .header-inner { gap: 8px; }
  .brand { min-width: 0; gap: 10px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 1rem; }
  .brand-sub { display: none; }
}

/* ---------- Logo (PNG) on dark backgrounds ---------- */
.logo-tile { background: #fff; border-radius: 50%; padding: 3px; }
.cert-logo { background: #fff; border-radius: var(--radius-sm); padding: 14px 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--brand); }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; }
.blueprint {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: clamp(16px, 3vw, 28px); color: var(--brand);
}
.blueprint svg { width: 100%; height: auto; }
.blueprint .bp-grid { stroke: var(--grid); }
.blueprint .bp-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.blueprint .bp-thin { fill: none; stroke: currentColor; stroke-width: 1.2; opacity: .55; }
.blueprint .bp-dim { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.blueprint .bp-text { fill: var(--accent); font: 600 13px var(--sans); letter-spacing: .04em; }
.blueprint .bp-label { fill: var(--muted); font: 500 11px var(--sans); letter-spacing: .12em; }
.js .blueprint .draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.4s cubic-bezier(.6, .1, .2, 1) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.badge-card {
  position: absolute; left: clamp(-28px, -2vw, -12px); bottom: -68px;
  display: flex; align-items: center; gap: 14px; max-width: 320px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 14px 18px 14px 14px;
}
.badge-card img { width: 46px; height: 46px; flex: none; }
.badge-card strong { display: block; font-size: .95rem; line-height: 1.3; }
.badge-card span { display: block; font-size: .82rem; line-height: 1.45; color: var(--muted); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 8vw, 88px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 26px 20px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font: 600 clamp(1.8rem, 3vw, 2.4rem)/1 var(--serif); color: var(--ink); margin-bottom: 8px; }
.stat span { font-size: .92rem; color: var(--muted); }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin-bottom: 68px; }
  .badge-card { left: 12px; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.service .icon, .tile .icon {
  width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 20px;
  border-radius: 12px; background: var(--brand-soft); color: var(--brand);
}
.service .icon svg, .tile .icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin-bottom: 10px; }
.service p, .service li { color: var(--muted); font-size: .98rem; }
.service p:last-child { margin-bottom: 0; }
.service ul { margin: 0 0 1em; padding-left: 1.1em; }
.service li { margin-bottom: 4px; }
.service li::marker { color: var(--accent); }
.service .tag { font: 600 .74rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }

.note {
  display: flex; align-items: center; gap: 12px; margin-top: 28px;
  padding: 16px 20px; border-radius: var(--radius); border: 1px dashed var(--line); color: var(--muted); font-size: .96rem;
}
.note svg { width: 20px; height: 20px; flex: none; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

@media (max-width: 980px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } .service { padding: 24px; } }

/* Clients band */
.clients { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; }
.clients h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .95rem; font-weight: 500; }
@media (max-width: 820px) { .clients { grid-template-columns: 1fr; gap: 24px; } }

/* Qualification */
.qual-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: stretch; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.panel h3 { font-size: 1.5rem; }
.panel p { color: var(--muted); }
.oath {
  margin: 28px 0; padding: 22px 26px; border-left: 3px solid var(--accent);
  background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font: italic 400 clamp(1.15rem, 2vw, 1.4rem)/1.45 var(--serif); color: var(--ink);
}
.oath small { display: block; margin-top: 10px; font: 500 .82rem var(--sans); letter-spacing: .04em; color: var(--muted); font-style: normal; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; color: var(--muted); }
.checklist svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--brand); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.panel .cert-logo { margin: 8px 0 24px; display: inline-block; }
.panel .cert-logo img { width: 240px; height: auto; }
@media (max-width: 900px) { .qual-grid { grid-template-columns: 1fr; } }

/* Process + Facts */
.steps { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; padding-top: 56px; }
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font: 600 1.6rem/1 var(--serif); color: var(--accent);
}
.steps li::after { content: ""; position: absolute; top: 14px; left: 52px; right: 0; height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.15rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.fact .k { display: flex; align-items: center; gap: 10px; font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.fact .k svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fact h3 { margin-bottom: 10px; }
.fact p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps li:nth-child(2)::after { display: none; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps li::after { display: none; } }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-intro p { color: var(--muted); }
.about-intro blockquote {
  margin: 32px 0 0; padding: 0; font: italic 400 clamp(1.3rem, 2.4vw, 1.7rem)/1.4 var(--serif); color: var(--ink);
}
.about-intro blockquote::before { content: "„"; display: block; font-size: 3.5rem; line-height: .6; color: var(--accent); margin-bottom: 8px; }

.owner {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-top: 36px; box-shadow: var(--shadow);
}
.owner img { width: 150px; height: 190px; object-fit: cover; border-radius: var(--radius-sm); }
.owner .role { font: 600 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.owner h3 { margin-bottom: 6px; }
.owner p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 480px) {
  .owner { grid-template-columns: 1fr; }
  .owner img { width: 100%; height: 300px; object-position: center 25%; }
}

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 39px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 80px 1fr; gap: 22px; padding-bottom: 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline img {
  width: 80px; height: 104px; object-fit: cover; border-radius: var(--radius-sm);
  border: 3px solid var(--bg); box-shadow: var(--shadow); position: relative;
}
.timeline .hist img { filter: sepia(.25) saturate(.85); }
.timeline .year { font: 600 .82rem/1 var(--sans); letter-spacing: .1em; color: var(--accent); margin: 6px 0 8px; }
.timeline h3 { font-size: 1.2rem; margin-bottom: 4px; }
.timeline .gen { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.timeline p { color: var(--muted); font-size: .96rem; margin: 0; }
.timeline .now img { border-color: var(--brand); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-card {
  display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden;
  border-radius: 22px; background: var(--cta-bg); color: var(--cta-ink); box-shadow: var(--shadow-lg);
}
.contact-main { padding: clamp(28px, 5vw, 56px); }
.contact-main .eyebrow { color: inherit; opacity: .8; }
.contact-main h2 { color: inherit; }
.contact-main p { opacity: .85; max-width: 46ch; }
.contact-main .btn-light { background: var(--cta-ink); color: var(--cta-bg); margin-top: 12px; }
.contact-main .btn-light:hover { opacity: .92; color: var(--cta-bg); }
.contact-main .hint { font-size: .9rem; opacity: .75; margin-top: 18px; }
.contact-list { list-style: none; margin: 0; padding: clamp(28px, 5vw, 56px); display: grid; gap: 22px; align-content: center; background: rgba(0, 0, 0, 0.12); }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.contact-list .ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); }
.contact-list .ci svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-list small { display: block; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.contact-list a, .contact-list span { color: inherit; text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.contact-list a:hover { text-decoration: underline; color: inherit; }
@media (max-width: 860px) { .contact-card { grid-template-columns: 1fr; } }

/* Page hero (subpages) */
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 88px) 0 clamp(8px, 2vw, 16px); }
.page-hero .section-head { margin-bottom: 0; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero + .section { padding-top: clamp(40px, 5vw, 64px); }
.page-404 { padding-bottom: clamp(72px, 10vw, 120px); }
.page-404 .lead { margin-bottom: 28px; }

/* Start page teasers */
.section-head.split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.section-head.split h2 { margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tile:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.tile .icon { width: 44px; height: 44px; margin: 0; flex: none; }
.tile-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tile b { font: 600 1.08rem/1.25 var(--serif); }
.tile small { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.tile-arrow { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .2s ease, color .2s ease; }
.tile:hover .tile-arrow { color: var(--brand); transform: translateX(3px); }
@media (max-width: 980px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr; } }

.teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.teaser-grid .panel { display: flex; flex-direction: column; align-items: flex-start; }
.teaser-grid .link-arrow { margin-top: auto; padding-top: 24px; }
.teaser-grid .checklist { margin-bottom: 8px; }
.about-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-teaser .owner { margin-top: 0; }
@media (max-width: 900px) { .teaser-grid, .about-teaser { grid-template-columns: 1fr; } }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .callbar {
    display: flex; gap: 10px; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--header-bg); border-top: 1px solid var(--line);
    backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; border-radius: 999px; text-decoration: none; }
  .callbar svg { width: 20px; height: 20px; flex: none; }
  .callbar-call { flex: 1; background: var(--brand); color: var(--brand-ink); font: 600 1.15rem/1.1 var(--sans); }
  .callbar-call:hover { color: var(--brand-ink); background: var(--brand-strong); }
  .callbar-call span { display: flex; flex-direction: column; }
  .callbar-call small { font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; opacity: .8; margin-bottom: 2px; }
  .callbar-mail { width: 54px; flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
}

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 32px; border-top: 1px solid var(--line); }
.legal + .site-footer { margin-top: clamp(72px, 10vw, 120px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--brand); }
.footer-grid address { font-style: normal; color: var(--muted); }
.footer-grid .brand { margin-bottom: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-bottom:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(48px, 8vw, 88px) 0 0; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--muted); }
.legal address { font-style: normal; color: var(--ink); }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0 0 1em; }
.legal dt { color: var(--ink); font-weight: 500; }
.legal dd { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 8px; } }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; text-decoration: none; font-weight: 500; }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .blueprint .draw { animation: none; stroke-dashoffset: 0; }
  .service, .btn { transition: none; }
}

@media print {
  .site-header, .theme-toggle, .menu-toggle, .hero-visual, .callbar, .site-footer .footer-bottom { display: none; }
  body { background: #fff; color: #000; }
}
