/* Motorentechnik Schneider
   Layout: steel-grey workshop bands, one orange accent, condensed industrial headings. */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --steel: #e4e8ed;
  --line: #d3d9e1;
  --fg: #1d232b;
  --muted: #56606d;
  --accent: #e2560b;
  --accent-ink: #b9430a;
  --on-accent: #ffffff;
  --header: #1d232b;
  --on-header: #eef1f5;
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 78rem;
  --radius: 4px;
  --img-blend: multiply;
  --img-filter: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14181d; --surface: #1b2027; --steel: #222831; --line: #323a45;
    --fg: #e8ebef; --muted: #a2abb7; --accent: #ff7a2f; --accent-ink: #ff9a5c;
    --on-accent: #1a0d04; --header: #0e1115; --on-header: #e8ebef;
    --img-blend: screen; --img-filter: invert(1) hue-rotate(180deg) brightness(.85);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14181d; --surface: #1b2027; --steel: #222831; --line: #323a45;
  --fg: #e8ebef; --muted: #a2abb7; --accent: #ff7a2f; --accent-ink: #ff9a5c;
  --on-accent: #1a0d04; --header: #0e1115; --on-header: #e8ebef;
  --img-blend: screen; --img-filter: invert(1) hue-rotate(180deg) brightness(.85);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 640px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 6vw, 4rem); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.25rem); text-transform: uppercase; letter-spacing: .02em; }
h3 { font-size: 1.375rem; letter-spacing: .02em; }
p { margin: 0; }
.eyebrow {
  font: 500 .8125rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent-ink);
}
.lead { font-size: 1.25rem; line-height: 1.5; color: var(--muted); max-width: 38rem; }

/* Header */
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--header);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: var(--header); color: var(--on-header);
  border-bottom: 3px solid var(--accent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; flex-direction: column; color: var(--on-header); text-decoration: none; line-height: 1; }
.brand:hover { color: var(--on-header); }
.brand strong { white-space: nowrap; font: 700 1.75rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.brand strong span { color: var(--accent); }
.brand small { font: 400 .6875rem/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin-top: .25rem; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .125rem; }
.nav a {
  display: block; padding: .5rem .5rem;
  font: 600 1rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .05em;
  color: var(--on-header); text-decoration: none; border-radius: var(--radius);
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.nav-toggle {
  display: none; background: none; border: 1px solid currentColor; color: var(--on-header);
  font: 600 1rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em;
  padding: .625rem .875rem; border-radius: var(--radius); cursor: pointer;
}
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; inset: 100% 0 auto; background: var(--header); border-bottom: 3px solid var(--accent); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: .5rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px)); }
  .nav a { padding: .75rem .5rem; font-size: 1.25rem; }
}

/* Page hero band */
.hero { background: var(--steel); border-bottom: 1px solid var(--line); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem;
  padding-block: 3rem 2.5rem;
}
.hero-text { display: grid; gap: 1rem; min-width: 0; }
.hero-art { width: 200px; mix-blend-mode: var(--img-blend); filter: var(--img-filter); border-radius: 8px; }
@media (max-width: 640px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 2rem; }
  .hero-art { width: 150px; order: -1; }
}

main { padding-block: 3rem 4rem; }
main > .wrap { display: grid; gap: 3rem; }
.section { display: grid; gap: 1.25rem; }
.prose { display: grid; gap: 1rem; max-width: 40rem; }

/* Services list */
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); max-width: 44rem; }
.spec-list li {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); align-items: baseline;
  padding: .875rem 0; border-bottom: 1px solid var(--line); font-size: 1.125rem;
}
.spec-list li::before { content: ""; width: .625rem; height: .625rem; background: var(--accent); transform: translateY(-.1em); }
.mono { font-family: var(--font-mono); font-size: .95em; }

/* Photos */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 52rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* Home: services grid */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.service {
  display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; color: var(--fg); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.service:hover { border-color: var(--accent); color: var(--fg); transform: translateY(-2px); }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service div { padding: 1rem 1.125rem 1.25rem; display: grid; gap: .375rem; align-content: start; }
.service p { color: var(--muted); font-size: 1rem; }
.service .more { font: 500 .8125rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); margin-top: .5rem; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2.5rem; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.chips li { font: 500 .875rem/1 var(--font-mono); padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }

/* Panels (contact, notices) */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .75rem; align-content: start; min-width: 0; }
.panel h3 { color: var(--fg); }
dl.facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .5rem 1.25rem; }
dl.facts dt { font: 500 .8125rem/1.9 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
dl.facts dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
address { font-style: normal; }
.cta {
  display: inline-block; justify-self: start; background: var(--accent); color: var(--on-accent);
  font: 600 1.125rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em;
  padding: .875rem 1.25rem; border-radius: var(--radius); text-decoration: none;
}
.cta:hover { color: var(--on-accent); filter: brightness(1.08); }

/* News / offers */
.articles { display: grid; gap: 1.25rem; max-width: 46rem; }
.article { border-left: 3px solid var(--accent); padding: .25rem 0 .25rem 1.25rem; display: grid; gap: .5rem; }
.article .meta { font: 400 .8125rem/1.4 var(--font-mono); color: var(--muted); letter-spacing: .04em; }
.article .sub { font-weight: 600; color: var(--muted); }

.map { max-width: 409px; border: 1px solid var(--line); border-radius: var(--radius); }

.legal { display: grid; gap: 2rem; max-width: 46rem; }
.legal section { display: grid; gap: .75rem; }
.legal p { color: var(--fg); }

/* Footer */
.site-footer { background: var(--header); color: var(--on-header); border-top: 3px solid var(--accent); }
.site-footer .wrap { display: grid; gap: 1.75rem; padding-block: 2.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem 2rem; }
.site-footer h3 { font-size: 1.125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: .5rem; }
.site-footer a { color: var(--on-header); }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.footer-banner { max-width: 100%; width: 404px; border-radius: var(--radius); opacity: .9; }
.footer-base { font: 400 .8125rem/1.5 var(--font-mono); opacity: .7; border-top: 1px solid rgba(127,127,127,.35); padding-top: 1.25rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
