/* ===========================================
   Design Tokens
   =========================================== */
:root {
  /* Colors — Brand Book palette */
  --bg:           #0a0b0c;
  --bg-alt:       #111316;
  --bg-card:      #14161a;
  --bg-light:     #f2efe9;
  --bg-light-alt: #e5e2db;

  --text:         #f2efe9;
  --text-muted:   #8b9299;
  --text-dim:     #4e555d;
  --text-dark:    #1c1e21;
  --text-dark-sub:#555;

  --accent:       #ff6a13;
  --accent-dark:  #e05a08;
  --accent-dim:   rgba(255, 106, 19, 0.10);

  --border:       rgba(255, 255, 255, 0.07);
  --border-s:     #1f2227;
  --border-light: rgba(28, 30, 33, 0.14);

  /* Typography */
  --font-display: 'Arial Narrow', Arial, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'Courier New', Courier, monospace;

  /* Spacing scale */
  --s1:  0.25rem;
  --s2:  0.5rem;
  --s3:  0.75rem;
  --s4:  1rem;
  --s5:  1.25rem;
  --s6:  1.5rem;
  --s8:  2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --s20: 5rem;
  --s24: 6rem;

  /* Layout */
  --container: 1100px;
  --radius:    2px;
  --radius-md: 5px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --t:         160ms;
}

/* ===========================================
   Reset & Base
   =========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

/* ===========================================
   Layout
   =========================================== */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s6);
}
.section { padding-block: var(--s20); }
.section--flush-top { padding-top: 0; }

@media (max-width: 768px) { .section { padding-block: var(--s12); } }

/* ===========================================
   Buttons
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
  text-decoration: none;
  background: none;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-full { width: 100%; }

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-s);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text-muted); background: rgba(255,255,255,0.04); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--text-dark);
  color: var(--text-dark);
}
.btn-outline-dark:hover { background: var(--text-dark); color: var(--bg-light); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: gap var(--t) var(--ease);
}
.link-arrow:hover { gap: var(--s3); }

/* ===========================================
   Image Placeholders
   (swap the <figure class="img-ph"> for a real <img> when photos arrive)
   =========================================== */
.img-ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  width: 100%;
  background: repeating-linear-gradient(135deg, var(--bg-card) 0 14px, var(--bg-alt) 14px 28px);
  border: 1px dashed var(--border-s);
  color: var(--text-dim);
  overflow: hidden;
}
.img-ph-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border: 2px solid var(--text-dim);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.img-ph-icon::before {
  content: '';
  position: absolute;
  left: 5px; bottom: 5px;
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 10px solid var(--text-dim);
}
.img-ph-icon::after {
  content: '';
  position: absolute;
  top: 5px; right: 6px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-dim);
}
.img-ph figcaption {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 var(--s4);
  line-height: 1.5;
}

.img-ph--16x9 { aspect-ratio: 16 / 9; }
.img-ph--4x3  { aspect-ratio: 4 / 3; }
.img-ph--1x1  { aspect-ratio: 1 / 1; }
.img-ph--4x5  { aspect-ratio: 4 / 5; }
.img-ph--2x3  { aspect-ratio: 2 / 3; }

/* ===========================================
   Navigation
   =========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 12, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  height: 64px;
  gap: var(--s8);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-right: auto;
  white-space: nowrap;
}
.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s8);
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t);
}
.nav-links a:hover { color: var(--text); }

.nav-cta { flex-shrink: 0; padding: 0.55rem 1.1rem; font-size: 0.875rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s2);
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all var(--t);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links, .nav-cta { display: none; }
  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-s);
    padding: var(--s6);
    gap: var(--s6);
  }
  .site-header.nav-open .nav-cta {
    display: inline-flex;
    position: fixed;
    top: 64px; left: 0; right: 0;
    margin: calc(var(--s6) * 2 + 5 * var(--s6) + var(--s2)) var(--s6) 0;
  }
}

/* ===========================================
   Hero
   =========================================== */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding-block: var(--s24) var(--s20);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 75% 50%, rgba(255,106,19,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 35% 35% at 20% 75%, rgba(255,106,19,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s16);
  align-items: stretch;
}
.hero-media { width: 100%; }
.hero-media .img-ph { min-height: 320px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s10); }
  .hero-media { order: -1; max-width: 420px; margin-inline: auto; }
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s6);
}

.hero h1 {
  font-size: clamp(1.5rem, 2.75vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--s8);
  max-width: 820px;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: var(--s10);
}

.hero-cta {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s12);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--s4);
  font-size: 0.8125rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.hero-meta .dot { opacity: 0.35; }

@media (max-width: 480px) {
  .hero-cta .btn { width: 100%; }
}

/* ===========================================
   Section Header
   =========================================== */
.section-head { margin-bottom: var(--s12); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--s4); }
.section-head p { color: var(--text-muted); font-size: 1.0625rem; max-width: 500px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s4);
}

/* ===========================================
   Leistungscluster (Leistungen-Sektion)
   =========================================== */
.leistungscluster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
  align-items: stretch;
}
@media (max-width: 900px) { .leistungscluster-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .leistungscluster-grid { grid-template-columns: 1fr; } }

.leistungscluster-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-s);
  overflow: hidden;
}

/* Bildbereich: nutzt .img-ph als Platzhalter-Basis (Raster, Icon, Beschriftung).
   Sobald images/leistung-<slug>.webp existiert, deckt das <img> den Platzhalter ab;
   bis dahin lässt onerror="this.remove()" im Markup den Platzhalter sichtbar. */
.leistung-photo { margin: 0; }
.leistung-photo-img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms var(--ease);
}
.leistungscluster-card:hover .leistung-photo-img { transform: scale(1.05); }

.leistungscluster-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--s8);
}
.leistungscluster-card h3 {
  font-size: 1.375rem;
  margin-bottom: var(--s3);
}
.leistungscluster-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ===========================================
   Einsatzgebiete-Sektion
   =========================================== */
.gebiete-text { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.7; max-width: 760px; }
.gebiete-text + .gebiete-text { margin-top: var(--s4); }

/* ===========================================
   Service badges (used on sicherheit.html)
   =========================================== */
.svc-badge {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  z-index: 4;
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.svc-badge--inline {
  position: static;
  display: inline-block;
  flex-shrink: 0;
}

/* ===========================================
   Certificates (in Über mich)
   =========================================== */
.about-certs { margin-top: var(--s12); }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 1px;
  background: var(--border-s);
  border: 1px solid var(--border-s);
}
.cert-item { display: flex; flex-direction: column; background: var(--bg); padding: var(--s6); }
.cert-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s2);
}
.cert-val {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--s1);
}
.cert-note { font-size: 0.8125rem; color: var(--text-dim); }
.cert-disclaimer { font-size: 0.8125rem; color: var(--text-dim); margin-top: var(--s6); }

@media (max-width: 700px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===========================================
   Gallery
   =========================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s3);
}

/* Only the hovered/focused photo scales up; siblings stay put */
.gallery-grid figure.img-ph {
  cursor: pointer;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.gallery-grid figure.img-ph:hover,
.gallery-grid figure.img-ph:focus-visible {
  position: relative;
  z-index: 2;
  transform: scale(1.06);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
  outline: none;
}

/* ===========================================
   Lightbox
   =========================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s8);
  background: rgba(6, 7, 8, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms var(--ease), visibility 220ms;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-inner { width: min(880px, 92vw); }
.lightbox-inner figure.img-ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-style: dashed;
}
.lightbox-inner figcaption { font-size: 0.875rem; }

.lightbox-close {
  position: fixed;
  top: var(--s6);
  right: var(--s6);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-s);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t), background var(--t);
}
.lightbox-close:hover { border-color: var(--accent); }

/* ===========================================
   About
   =========================================== */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s16);
  align-items: stretch;
}
.about-portrait { margin-bottom: var(--s6); max-width: 380px; }
.about-text h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--s6); }
.about-text p { color: var(--text-muted); line-height: 1.7; margin-bottom: var(--s5); font-size: 0.9375rem; }

@media (max-width: 768px) { .about-inner { grid-template-columns: 1fr; gap: var(--s10); } }

/* ===========================================
   FAQ
   =========================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-s);
}
.faq-item {
  border-bottom: 1px solid var(--border-s);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  padding: var(--s6) 0;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform var(--t) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 640px;
  padding-bottom: var(--s6);
}

/* ===========================================
   CTA Banner (light bg)
   =========================================== */
.cta-band {
  background: var(--bg-light);
  color: var(--text-dark);
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s10);
}
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--text-dark); margin-bottom: var(--s2); }
.cta-band p { color: var(--text-dark-sub); font-size: 0.9375rem; }
.cta-band-btns { display: flex; gap: var(--s4); flex-shrink: 0; flex-wrap: wrap; }

@media (max-width: 768px) {
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .cta-band-btns { width: 100%; }
  .cta-band-btns .btn { flex: 1; }
}

/* ===========================================
   Contact
   =========================================== */
.contact { background: var(--bg-alt); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s16);
  align-items: start;
}
.contact-info h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--s6); }
.contact-info > p { color: var(--text-muted); line-height: 1.7; margin-bottom: var(--s8); font-size: 0.9375rem; }
.contact-ways { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s6); }
.contact-way {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: 0.875rem var(--s5);
  border: 1px solid var(--border-s);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: border-color var(--t), background var(--t);
}
.contact-way:hover { border-color: var(--accent); background: var(--accent-dim); }
.cway-icon { font-size: 1.1rem; flex-shrink: 0; width: 24px; text-align: center; }
.contact-note { font-size: 0.8125rem; color: var(--text-dim); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: var(--s5); }
.fld { display: flex; flex-direction: column; gap: var(--s2); }
.fld label { font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.fld input,
.fld select,
.fld textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-s);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border-radius: var(--radius);
  transition: border-color var(--t);
  -webkit-appearance: none;
  appearance: none;
}
.fld input::placeholder, .fld textarea::placeholder { color: var(--text-dim); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); }
.fld textarea { resize: vertical; min-height: 110px; }

.fld input.is-invalid, .fld textarea.is-invalid { border-color: var(--accent); }
.fld-error { font-size: 0.8125rem; color: var(--accent); }
.fld-consent.is-invalid label { color: var(--accent); }

.fld select {
  cursor: pointer;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%238b9299' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.fld select option { background: var(--bg); color: var(--text); }

.fld-consent label {
  display: flex;
  gap: var(--s3);
  font-size: 0.8125rem;
  color: var(--text-dim);
  font-weight: 400;
  cursor: pointer;
  align-items: flex-start;
  text-transform: none;
  letter-spacing: 0;
}
.fld-consent input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent);
}
.fld-consent a { color: var(--accent); }

.form-success {
  display: none;
  padding: var(--s6);
  border: 1px solid var(--accent);
  background: var(--accent-dim);
  color: var(--text);
  font-size: 0.9375rem;
}

@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: var(--s10); } }

/* ===========================================
   Footer
   =========================================== */
.footer {
  border-top: 1px solid var(--border-s);
  padding-block: var(--s16);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s10);
  margin-bottom: var(--s10);
  padding-bottom: var(--s10);
  border-bottom: 1px solid var(--border-s);
}
.footer-brand .logo { font-family: var(--font-display); font-size: 1.1rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--s4); display: block; }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }
.footer-brand-tel { color: inherit; }
.footer-col h3, .footer-col h4 { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); margin-bottom: var(--s4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--s3); }
.footer-col a { font-size: 0.875rem; color: var(--text-muted); transition: color var(--t); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.8125rem; color: var(--text-dim); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: var(--s2); text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ===========================================
   Page Hero (inner pages)
   =========================================== */
.page-hero {
  padding-top: var(--s20);
  padding-bottom: var(--s12);
  border-bottom: 1px solid var(--border-s);
}
.page-hero h1 { font-size: clamp(1.75rem, 3.5vw, 3rem); letter-spacing: -0.02em; line-height: 1.1; max-width: 700px; margin-bottom: var(--s5); }
.page-hero p { color: var(--text-muted); font-size: 1.0625rem; max-width: 560px; line-height: 1.7; }

/* ===========================================
   Legal Content (Impressum, Datenschutz)
   =========================================== */
.legal-content h2 { font-size: 1.5rem; margin-top: var(--s12); margin-bottom: var(--s4); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.125rem; margin-top: var(--s8); margin-bottom: var(--s3); }
.legal-content p { color: var(--text-muted); line-height: 1.7; margin-bottom: var(--s5); }
.legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ===========================================
   Calculator
   =========================================== */
.calc-section { padding-block: var(--s16) var(--s24); }
.calc-wrap { max-width: 720px; }

/* Progress bar */
.calc-progress {
  display: flex;
  gap: var(--s2);
  margin-bottom: var(--s12);
}
.calc-progress-step {
  flex: 1;
  height: 3px;
  background: var(--border-s);
  border-radius: 2px;
  transition: background 300ms var(--ease);
}
.calc-progress-step.active { background: var(--accent); }

/* Steps */
.calc-step { display: none; }
.calc-step.visible { display: block; }

.step-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s4);
}
.calc-step h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: var(--s8); }

/* Detail questions */
.detail-qs { display: flex; flex-direction: column; gap: var(--s6); margin-bottom: var(--s8); }

.dq-hint { font-size: 0.8125rem; color: var(--text-dim); margin-top: var(--s2); line-height: 1.5; }

/* Number input */
.num-wrap { position: relative; }
.num-wrap input[type="number"] {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-s);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border-radius: var(--radius);
  -webkit-appearance: none;
  appearance: none;
}
.num-wrap input:focus { outline: none; border-color: var(--accent); }
.num-unit {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8125rem;
  color: var(--text-dim);
  pointer-events: none;
}

/* Location step */
.loc-hint { font-size: 0.8125rem; color: var(--text-dim); margin-bottom: var(--s6); }

/* Result */
.calc-result { display: none; }
.calc-result.visible { display: block; }

.result-inner { display: flex; flex-direction: column; gap: var(--s5); }

.result-box { border: 1px solid var(--border-s); padding: var(--s8); }
.result-box-accent { border-color: var(--accent); background: var(--accent-dim); }

.res-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--s3);
}
.res-price {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--s4);
}
.res-note { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

.res-extras { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s5); }
.res-extra {
  display: flex;
  gap: var(--s3);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.res-extra::before { content: '—'; color: var(--accent); flex-shrink: 0; }

.res-disclaimer a { color: var(--accent); text-decoration: underline; }

.res-disclaimer {
  padding: var(--s5) var(--s6);
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.res-contact h3 { font-size: 1.25rem; margin-bottom: var(--s3); }
.res-contact p { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: var(--s5); line-height: 1.6; }

/* Calc navigation */
.calc-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  padding-top: var(--s8);
  border-top: 1px solid var(--border-s);
  margin-top: var(--s6);
}

@media (max-width: 600px) {
  .svc-options { grid-template-columns: 1fr; }
  .contact-opts { grid-template-columns: 1fr; }
}

/* ===========================================
   Utility
   =========================================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
