/* Shared finishing layer: a quiet navigation and consistent content rhythm. */
:root {
  --sidebar: 264px;
  --gutter: clamp(24px, 4vw, 64px);
  --tidy-surface: #111511;
  --tidy-border: #343d32;
  --tidy-radius: 8px;
  --tidy-padding: clamp(22px, 2.6vw, 32px);
  --soot-texture: linear-gradient(#00000075, #00000075), url("soot-surface.webp");
}

.site-header {
  padding: 24px 16px 20px;
  gap: 28px;
  background: #0b0e0b;
  border-right-color: var(--tidy-border);
}
.site-header .brand {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  min-width: 0;
}
.site-header .brand-mark { width: 52px; height: 60px; flex: 0 0 52px; }
.site-header .brand > span:last-child { min-width: 0; }
.site-header .brand strong { font-size: 1.125rem; line-height: 1.35; }
.site-header .brand small { font-size: .75rem; line-height: 1.5; letter-spacing: 0; white-space: normal; margin-top: 4px; }
.site-header nav { gap: 12px; }
.nav-group {
  --nav-accent: #b0d957;
  --nav-surface: #17240f;
  --nav-active: #2c401b;
  padding: 10px 6px 6px;
  border: 1px solid color-mix(in srgb, var(--nav-accent) 30%, #192219);
  border-left: 3px solid var(--nav-accent);
  border-radius: 9px;
  background: var(--nav-surface);
}
.nav-group[aria-labelledby="nav-service"] { --nav-accent: #82d3f5; --nav-surface: #0b2632; --nav-active: #194253; }
.nav-group[aria-labelledby="nav-wissen"] { --nav-accent: #ffbb79; --nav-surface: #2a1d12; --nav-active: #49301b; }
.nav-group-title { margin: 0 10px 7px; font-size: .875rem; line-height: 1.5; font-weight: 700; letter-spacing: .01em; text-transform: none; color: var(--nav-accent); }
.nav-group ul { display: grid; gap: 2px; list-style: none; padding: 0; margin: 0; }
.site-header nav a { min-height: 44px; padding: 9px 12px; border: 1px solid transparent; border-radius: 6px; font-size: .9375rem; line-height: 1.5; font-weight: 500; color: #d9e0d4; text-decoration: none; }
.site-header nav a:hover:not([aria-current="page"]) { background: var(--nav-active); color: #fff; }
.site-header nav a[aria-current="page"] { background: var(--nav-active); color: var(--nav-accent); border-color: var(--nav-accent); font-weight: 700; box-shadow: inset 3px 0 0 var(--nav-accent); }
.sidebar-contact { margin-top: auto; padding: 24px 12px 0; }
.sidebar-contact > span { border-top: 1px solid var(--tidy-border); padding-top: 18px; font-size: .8125rem; }
.sidebar-contact > a { margin: 0; display: flex; align-items: center; min-height: 44px; font-size: 1rem; }
.sidebar-contact > .sidebar-whatsapp { margin: 0; font-size: .875rem; }
.sidebar-contact p { border: 0; padding: 8px 0 0; margin: 0; font-size: .8125rem; line-height: 1.6; }

/* One spacing system; the continuous page background remains untouched. */
.section { padding-block: clamp(36px, 4.5vw, 64px); padding-inline: max(var(--gutter), calc((100% - 1280px) / 2)); }
.section-kicker { padding: 0; border: 0; border-radius: 0; background: none; font-size: .8125rem; line-height: 1.5; letter-spacing: .08em; }
.section h2 { font-size: clamp(1.65rem, 2.5vw, 2.6rem); line-height: 1.2; }
.inner-page h1, .legal-hero h1 { font-size: clamp(2rem, 3.5vw, 3.5rem); line-height: 1.12; }
.inner-page :is(h1, h2, h3), .news-page :is(h1, h2, h3), .legal-page :is(h1, h2, h3) { text-wrap: balance; }
.button { min-height: 44px; border-radius: 6px; }
.hero-content { padding-block: clamp(36px, 5vw, 64px); }
.hero h1 { font-size: clamp(2.25rem, 3.5vw, 3.8rem); }
.hero .eyebrow { font-size: .8125rem; line-height: 1.7; margin-bottom: 20px; }
.hero-image { min-height: 420px; }
.hero-copy { max-width: 40rem; }
.hero-actions { gap: 12px; }
.home-section-head { gap: 20px; margin-bottom: 24px; }
.home-section-head h2, .home-contact h2 { font-size: clamp(1.5rem, 2.3vw, 2.25rem); }
.home-check-steps li { box-shadow: none; }
.overview-grid, .service-grid, .news-grid { gap: 20px; }
.overview-card { border-radius: var(--tidy-radius); border-top-width: 3px; box-shadow: none; }
.overview-card:hover { transform: none; }
.overview-number { font-size: .8125rem; }
.overview-card p, .service-card li { font-size: 1rem; }
.instagram-profile { border: 1px solid var(--tidy-border); border-radius: 6px; background: #131513; }
.home-contact { gap: 20px; }

/* Page introductions are headings, not another box surrounding the content. */
.intro-grid, .process-head, .check-intro, .career-intro {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.intro-grid { gap: 28px; margin-bottom: 32px; align-items: start; }
.intro-grid > p { padding: 0; border: 0; }
.intro-grid h1 { margin-block: 0; }
.process-head { gap: 28px; }
.service-card { padding: var(--tidy-padding); border-color: var(--tidy-border); border-top: 3px solid var(--service-accent); border-radius: var(--tidy-radius); box-shadow: none; }
#leistungen :is(#brandschutz, #schornsteinfeger, #energieberatung, #lueftungsreinigung) { background: color-mix(in srgb, var(--service-surface) 55%, #101310); }
.service-card .service-number { font-size: .8125rem; }
.service-card h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.3; }
.service-card ul { display: block; list-style: disc; padding-left: 20px; }
.service-card li { padding: 7px 0 7px 3px; border: 0; border-radius: 0; background: none; }
.service-card li::marker { color: var(--service-accent); }
.steps { margin-top: 24px; gap: 20px; }
.steps li { padding: 24px 20px; border: 1px solid var(--tidy-border); border-radius: var(--tidy-radius); background: var(--tidy-surface); grid-template-columns: 30px minmax(0, 1fr); }
.steps li:nth-child(n) { border-top-color: var(--tidy-border); }

/* Clear sections, with quieter secondary information inside them. */
.about-copy, .career-timeline li, .law-update, .law-history li, .law-list details,
.contact-panel > div:first-child, .contact-card, .check-card, .check-advisor,
.finder-intro-copy, .finder-search-card, .finder-map-card,
.news-card, #handwerk .news-card, .legal-content > section, .legal-toc {
  background: var(--tidy-surface);
  border-radius: var(--tidy-radius);
  box-shadow: none;
}
.about-copy, .contact-panel > div:first-child, .contact-card, .check-card { padding: var(--tidy-padding); }
.about-copy, .about-visual { border: 1px solid var(--tidy-border); border-top: 3px solid var(--accent-inspection); }
.about-copy .lead { padding-left: 0; border: 0; }
.principles { gap: 0; }
.principles div { padding: 16px 0; border: 0; border-top: 1px solid var(--tidy-border); border-radius: 0; background: none; }
.principles div:nth-child(n) { border-left: 0; }
.career-timeline li { border: 1px solid var(--tidy-border); border-left: 3px solid var(--accent-inspection); }
.career-timeline li:nth-child(even) { border-left-color: var(--accent-inspection); }
.law-update { border-color: var(--tidy-border); border-top-width: 3px; }
.law-history li { border: 1px solid var(--tidy-border); }
.law-history li:nth-child(n) { border-top-color: var(--tidy-border); }
.law-list details { border: 1px solid var(--tidy-border); }
.law-list details:nth-child(n) { border-left-color: var(--tidy-border); }
.law-list details[open] { border-color: #596a4d; background: #151c12; }
.review-date { padding: 0; border: 0; background: none; border-radius: 0; font-size: .875rem; }
.law-note { border-left-width: 3px; }
.contact-panel { padding: 0; gap: 24px; }
.contact-panel > div:first-child, .contact-card { border-color: var(--tidy-border); border-top-width: 3px; }
.contact-card a { overflow-wrap: anywhere; }
.check-page { padding: clamp(32px, 4vw, 56px) max(var(--gutter), calc((100% - 1280px) / 2)); }
.check-intro { margin-bottom: 32px; }
.check-card, .check-advisor { border-color: var(--tidy-border); border-top-width: 3px; }
.check-layout { gap: 24px; }
.finder-intro, .finder-workspace { gap: 28px; }
.finder-intro-copy { padding: 22px 24px; border: 1px solid var(--tidy-border); }
.finder-search-card, .finder-map-card { border-color: var(--tidy-border); border-top-width: 3px; }
/* Map geometry, boundary colours and selected-district styling live in kehrbezirk.css. */
.news-intro { padding-bottom: 28px; }
.news-card, #handwerk .news-card { border-color: var(--tidy-border); border-top: 3px solid var(--news-accent); padding: var(--tidy-padding); }
.news-card h3 { margin-block: 20px 16px; }
.news-topics { gap: 10px; }
.news-section { padding-top: 24px; }
.legal-hero { min-height: 0; }
.legal-layout { gap: clamp(24px, 4vw, 56px); }
.legal-content > section { border: 1px solid var(--tidy-border); padding: var(--tidy-padding); }
.legal-content > section:nth-child(n) { border-left-color: var(--tidy-border); background: var(--tidy-surface); }
.legal-toc { border-color: var(--tidy-border); border-top-width: 3px; padding: 20px; }
.privacy-summary { gap: 32px; }
body > footer { padding-block: 28px; gap: 24px; border-top: 1px solid var(--tidy-border); }
.footer-links { gap: 12px 24px; }

@media (max-width: 1000px) {
  :root { --sidebar: 0px; --gutter: 24px; }
  .site-header { padding: 10px 24px; gap: 8px 16px; border-bottom: 1px solid var(--tidy-border); }
  .site-header .brand { padding: 0; }
  .site-header .brand-mark { width: 42px; height: 48px; flex-basis: 42px; }
  .site-header .brand strong { font-size: 1.0625rem; }
  .site-header .brand small { font-size: .75rem; margin-top: 2px; }
  .header-check-link { min-height: 44px; padding: 8px 12px; border: 1px solid var(--tidy-border); background: #172012; color: #c8eb86; }
  .header-check-link strong { font-size: .875rem; }
  .header-check-link small { display: none; }
  .js .nav-panel { width: min(340px, 90vw); padding: 16px; background: #0b0e0b; }
  .js .nav-close { margin-bottom: 18px; font-size: .875rem; }
  .sidebar-contact { margin-top: 8px; padding-top: 18px; }
  .nav-panel:not(.open) .nav-group { min-width: 0; }
  .hero-image { min-height: 360px; }
}
@media (max-width: 700px) {
  .section { padding-block: 32px; }
  .hero-content { padding-block: 32px; }
  .hero-image { min-height: 0; }
  .hero h1 { font-size: clamp(2.15rem, 7vw, 2.8rem); }
  .intro-grid, .process-head { gap: 20px; }
  .intro-grid > p { padding: 0; border: 0; }
  .service-grid, .overview-grid, .news-grid { gap: 16px; }
  .service-card li { padding: 7px 0 7px 3px; }
  .principles div { grid-template-columns: 28px minmax(0, 1fr); }
  .check-page { padding-block: 32px; }
  .contact-panel { gap: 20px; }
  .home-contact { align-items: stretch; }
  .home-contact .button { justify-content: center; }
}
@media (max-width: 480px) {
  :root { --gutter: 20px; }
  .site-header { padding-inline: 16px; gap: 8px; }
  .site-header .brand { gap: 6px; }
  .site-header .brand strong { font-size: 1rem; }
  .site-header .brand small { max-width: 160px; }
  .nav-toggle { padding-inline: 10px; }
}
