/* Emicon marketing site. All values come from tokens.css (BRAND.md v1.0). */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--space-16); }
body { margin: 0; background: var(--bg-page); color: var(--text-primary); font-weight: var(--font-weight-regular); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.nl { white-space: pre-line; }
.wrap { max-width: var(--content-max-width); margin: 0 auto; padding-inline: var(--space-4); }
@media (min-width: 640px) { .wrap { padding-inline: var(--space-6); } }

/* Header */
.site-header { background: var(--bg-page); border-bottom: 1px solid var(--border-subtle); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--space-16); gap: var(--space-4); }
.brand img { height: var(--space-8); width: auto; }
@media (min-width: 768px) { .brand img { height: calc(var(--space-8) + var(--space-2)); } }
.nav { display: flex; align-items: center; gap: var(--space-8); }
.nav-links { display: none; gap: var(--space-8); }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a { font-size: var(--font-size-small); line-height: var(--line-height-small); font-weight: var(--font-weight-medium); color: var(--text-secondary); padding-block: var(--space-2); border-bottom: 2px solid transparent; transition: color var(--duration-base) var(--ease-out); }
.nav-links a:hover { color: var(--text-link-hover); }
.nav-links a[aria-current="true"] { color: var(--text-brand); border-bottom-color: var(--border-brand); }
.lang { display: flex; border: 1px solid var(--border-input); border-radius: var(--radius-md); overflow: hidden; }
.lang button { font: inherit; font-size: var(--font-size-small); font-weight: var(--font-weight-semibold); min-width: var(--touch-target-min); min-height: var(--control-height); padding-inline: var(--space-3); background: var(--bg-surface); color: var(--text-primary); border: 0; cursor: pointer; }
.lang button + button { border-left: 1px solid var(--border-input); }
.lang button[aria-pressed="true"] { background: var(--action-primary-bg); color: var(--action-primary-text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: var(--space-3); min-height: var(--touch-target-min); padding-inline: var(--space-6); border-radius: var(--radius-md); background: var(--action-primary-bg); color: var(--action-primary-text); font-size: var(--font-size-body); font-weight: var(--font-weight-semibold); transition: background var(--duration-base) var(--ease-out); }
.btn:hover { background: var(--action-primary-hover); }
.btn:active { background: var(--action-primary-active); }
.btn svg { width: var(--space-5); height: var(--space-5); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Section scaffolding */
.eyebrow { margin: 0 0 var(--space-3); font-size: var(--font-size-small); line-height: var(--line-height-small); font-weight: var(--font-weight-semibold); color: var(--text-brand); display: flex; align-items: center; gap: var(--space-4); }
.eyebrow::after { content: ""; width: var(--space-12); height: 1px; background: currentColor; }
h1, h2, h3 { margin: 0; font-weight: var(--font-weight-semibold); color: var(--text-primary); letter-spacing: -0.02em; }
h2 { font-size: calc(var(--font-size-display) * 1.25); line-height: 1.1; text-wrap: balance; }
@media (min-width: 768px) { h2 { font-size: calc(var(--font-size-display) * 1.6); } }
.section-intro { display: grid; gap: var(--space-4); align-items: end; }
@media (min-width: 768px) { .section-intro { grid-template-columns: 1fr 1fr; gap: var(--space-12); } }
.section-intro p { margin: 0; font-size: var(--font-size-lead); line-height: var(--line-height-lead); max-width: 28rem; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--bg-page); }
.hero .wrap { position: relative; padding-block: var(--space-12); }
@media (min-width: 1024px) { .hero .wrap { min-height: 36rem; padding-block: var(--space-16); } }
.hero-copy { position: relative; z-index: 1; max-width: 36rem; }
.hero h1 { font-size: calc(var(--font-size-display) * 1.6); line-height: 1.02; font-weight: var(--font-weight-bold); letter-spacing: -0.035em; }
@media (min-width: 768px) { .hero h1 { font-size: calc(var(--font-size-display) * 2.4); } }
.tagline { margin: var(--space-5) 0 0; font-size: var(--font-size-h3); line-height: var(--line-height-h3); color: var(--text-secondary); }
.hero-rule { width: var(--space-12); height: 1px; background: var(--border-brand); margin: var(--space-8) 0 var(--space-6); }
.hero .lead { margin: 0 0 var(--space-8); max-width: 26rem; font-size: var(--font-size-lead); line-height: var(--line-height-lead); }
.blueprint { position: absolute; inset: 0 -20% 0 auto; width: 100%; pointer-events: none; }
@media (min-width: 1024px) { .blueprint { inset: -4% -6% -4% auto; width: 64%; } }
.blueprint svg { width: 100%; height: 100%; }
.bp-wall { stroke: var(--neutral-700); fill: none; }
.bp-line { stroke: var(--neutral-500); fill: none; }
.bp-fine { stroke: var(--neutral-400); fill: none; }
.bp-guide { stroke: var(--monarch-300); fill: none; }
@media (max-width: 1023px) { .blueprint { display: none; } }

/* Interior */
#leistungen { background: var(--bg-surface); border-block: 1px solid var(--border-subtle); padding-block: var(--space-12); }
@media (min-width: 768px) { #leistungen { padding-block: var(--space-16); } }
.segments { margin: var(--space-12) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-page); }
.segments li { padding: var(--space-6); border-top: 1px solid var(--border-subtle); }
.segments li:first-child { border-top: 0; }
.segments h3 { font-size: var(--font-size-h4); line-height: var(--line-height-h4); margin-bottom: var(--space-2); }
.segments p { margin: 0; color: var(--text-secondary); font-size: var(--font-size-small); line-height: var(--line-height-small); }
@media (min-width: 768px) { .segments { grid-template-columns: repeat(3, 1fr); } .segments li { border-top: 0; border-left: 1px solid var(--border-subtle); } .segments li:nth-child(3n+1) { border-left: 0; } .segments li:nth-child(n+4) { border-top: 1px solid var(--border-subtle); } }
@media (min-width: 1280px) { .segments { grid-template-columns: repeat(5, 1fr); } .segments li:nth-child(n) { border-top: 0; border-left: 1px solid var(--border-subtle); } .segments li:first-child { border-left: 0; } }

/* Maintenance (brand surface) */
#instandhaltung { background: var(--bg-brand); color: var(--text-on-brand); padding-block: var(--space-12); }
@media (min-width: 768px) { #instandhaltung { padding-block: var(--space-16); } }
#instandhaltung h2, #instandhaltung .eyebrow { color: var(--text-on-brand); }
.trades { margin: var(--space-12) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--monarch-400); border-radius: var(--radius-lg); overflow: hidden; hyphens: auto; overflow-wrap: break-word; }
.trades li { padding: var(--space-5) var(--space-4); font-size: var(--font-size-body); font-weight: var(--font-weight-medium); border-top: 1px solid var(--monarch-400); border-left: 1px solid var(--monarch-400); }
.trades li:nth-child(-n+2) { border-top: 0; }
.trades li:nth-child(odd) { border-left: 0; }
@media (min-width: 768px) { .trades { grid-template-columns: repeat(3, 1fr); } .trades li:nth-child(n) { border-top: 1px solid var(--monarch-400); border-left: 1px solid var(--monarch-400); } .trades li:nth-child(-n+3) { border-top: 0; } .trades li:nth-child(3n+1) { border-left: 0; } }

/* About + contact */
#ueber-uns-kontakt { padding-block: var(--space-12); }
@media (min-width: 768px) { #ueber-uns-kontakt { padding-block: var(--space-16); } }
.about-contact { display: grid; gap: var(--space-12); }
@media (min-width: 1024px) { .about-contact { grid-template-columns: 1.1fr 1fr; gap: 0; } .about { padding-right: var(--space-16); border-right: 1px solid var(--border-default); } .contact { padding-left: var(--space-16); } }
.about h2, .contact h2 { font-size: calc(var(--font-size-display) * 1.25); margin-bottom: var(--space-6); }
.about p, .contact p { margin: 0 0 var(--space-8); font-size: var(--font-size-body); line-height: var(--line-height-body); max-width: 30rem; }
.about p { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border-default); padding-block: var(--space-6); font-size: var(--font-size-small); line-height: var(--line-height-small); color: var(--text-secondary); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); }
.site-footer nav { display: flex; gap: var(--space-6); }
.site-footer a:hover { color: var(--text-link-hover); text-decoration: underline; }
