/* Entwurf 2 – Werkstattlicht. System: design/2.md. Every value is a :root token. */
@font-face {
  font-family: "Mona Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/mona-sans-normal-400-800.woff2") format("woff2");
}

:root {
  --c-night: #1d2226;
  --c-mist: #e9ecee;
  --c-white: #ffffff;
  --c-dim: #b8c0c6;
  --c-steel: #4f5a62;
  --c-red: #c70204;
  --scrim: rgb(from var(--c-night) r g b / .82);
  --scrim-soft: rgb(from var(--c-night) r g b / .3);
  --scrim-mid: rgb(from var(--c-night) r g b / .6);
  --c-rule: rgb(from var(--c-night) r g b / .16);
  --c-rule-dark: rgb(from var(--c-white) r g b / .18);
  color-scheme: light;

  --font: "Mona Sans", system-ui, sans-serif;

  --fs--1: .8rem;
  --fs-0: 1rem;
  --fs-1: 1.25rem;
  --fs-2: 1.563rem;
  --fs-3: 1.953rem;
  --fs-4: clamp(1.953rem, 3.4vw, 2.441rem);

  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2rem;
  --s-6: 3rem;
  --s-7: 4rem;
  --s-8: 6rem;
  --s-9: 8rem;

  --gutter: 2rem;
  --margin: clamp(1.25rem, 5vw, 6rem);
  --max: 80rem;
  --radius: 999px;
  --track-head: -.015em;
  --focus: 3px;
  --hero-photo-sm: 62%;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-0);
  line-height: 1.6;
  color: var(--c-night);
  background: var(--c-mist);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: var(--focus) solid var(--c-night); outline-offset: var(--focus); }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; letter-spacing: var(--track-head); line-height: 1.15; }

.wrap { width: min(var(--max), 100% - 2 * var(--margin)); margin-inline: auto; }
.skip {
  position: absolute; z-index: 2; left: var(--s-3); top: calc(var(--s-9) * -1);
  padding: var(--s-2) var(--s-3); background: var(--c-white); color: var(--c-night);
}
.skip:focus { top: var(--s-3); }

/* Shared: dark surfaces */
.hero, .chapter, .about, .foot { color: var(--c-white); }
.hero a:focus-visible, .chapter a:focus-visible, .about a:focus-visible, .foot a:focus-visible { outline-color: var(--c-white); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; background: var(--c-night); isolation: isolate; }
.hero { grid-template-rows: 1fr; grid-auto-rows: 0; }
.hero picture { display: contents; }
.hero__inner { grid-area: 1 / 1; }
.hero__img, .chapter__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::before, .chapter::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--scrim) 0%, var(--scrim-mid) 45%, var(--scrim-soft) 75%),
    linear-gradient(180deg, var(--scrim-mid) 0%, transparent 30%, transparent 60%, var(--scrim) 100%);
}
.hero__inner {
  display: grid; grid-template-rows: auto 1fr auto auto;
  width: min(var(--max), 100% - 2 * var(--margin)); margin-inline: auto;
  padding-block: var(--s-4) var(--s-4);
}
.bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); }
.bar__mark { font-weight: 750; font-size: var(--fs-1); letter-spacing: var(--track-head); text-decoration: none; }
.bar ul { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); }
.bar ul a { text-decoration: none; display: inline-block; padding-block: var(--s-2); }
.bar ul a:hover { text-decoration: underline; }
@media (max-width: 48rem) { .bar ul { display: none; } }

.hero__head { padding-top: var(--s-7); }
@media (max-width: 48rem) {
  /* Mobile: portrait crop keeps the mechanic and the tyres; the headline moves below the subject. */
  .hero__head { align-self: end; padding-top: var(--s-6); }
  .hero__img { height: var(--hero-photo-sm); }
  .hero::before { background: linear-gradient(180deg, var(--scrim-mid) 0%, transparent 16%, transparent 34%, var(--c-night) 60%); }
}
.hero h1 { max-width: 22ch; font-size: var(--fs-4); }
.hero__pre { display: block; color: var(--c-dim); }
.hero__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-5); padding-top: var(--s-6); }
.hero__more { text-decoration: none; padding-bottom: var(--s-2); border-bottom: 1px solid currentColor; }
.hero__more:hover { color: var(--c-dim); }

.status { display: flex; align-items: baseline; gap: var(--s-2); font-weight: 600; }
.status__dot { flex: none; width: .6em; height: .6em; border-radius: 50%; background: var(--c-dim); }
[data-state="open"] .status__dot { background: var(--c-red); box-shadow: 0 0 0 .2em var(--c-white); }
.btns { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
.pill {
  display: inline-flex; align-items: center;
  padding: var(--s-3) var(--s-5);
  border: 2px solid transparent; border-radius: var(--radius);
  font-weight: 600; line-height: 1.2; text-decoration: none;
}
.pill--red { background: var(--c-red); color: var(--c-white); }
.pill--red:hover { background: var(--c-white); color: var(--c-night); }
.pill--line { border-color: var(--c-white); }
.pill--line:hover { background: var(--c-white); color: var(--c-night); }
.pill--dark { border-color: var(--c-night); }
.pill--dark:hover { background: var(--c-night); color: var(--c-white); }
.credit { justify-self: end; font-size: var(--fs--1); margin-top: var(--s-3); }

/* Services */
.services { padding-block: var(--s-9) var(--s-8); }
.services__intro { display: grid; gap: var(--s-3); margin-bottom: var(--s-7); }
.services__intro h2 { font-size: var(--fs-3); max-width: 18ch; }
.services__intro p { max-width: 46ch; color: var(--c-steel); font-size: var(--fs-1); line-height: 1.5; }
.list { display: grid; column-gap: var(--gutter); }
.list li { padding-block: var(--s-4) var(--s-5); border-top: 1px solid var(--c-rule); }
.list h3 { font-size: var(--fs-1); font-weight: 600; margin-bottom: var(--s-2); }
.list p { color: var(--c-steel); max-width: 52ch; }
@media (min-width: 48rem) {
  .services__intro { grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: end; }
  .list { grid-template-columns: 1fr 1fr; }
}

/* Photo chapter */
.chapter { position: relative; min-height: 80svh; display: grid; align-content: end; background: var(--c-night); isolation: isolate; padding: var(--s-8) var(--margin) var(--s-4); }
.chapter__text { max-width: 34ch; }
.chapter h2 { font-size: var(--fs-4); margin-bottom: var(--s-3); }
.chapter__text p { color: var(--c-white); font-size: var(--fs-1); line-height: 1.5; }

/* About */
.about { background: var(--c-night); padding-block: var(--s-9); }
.about__grid { display: grid; gap: var(--s-6) var(--gutter); align-items: center; }
.about__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__fig figcaption { margin-top: var(--s-2); font-size: var(--fs--1); }
.about__text { display: grid; gap: var(--s-3); max-width: 38rem; }
.about h2 { font-size: var(--fs-3); }
.about .lead { font-size: var(--fs-1); line-height: 1.5; }
.about__text p:not(.lead) { color: var(--c-dim); }
.about__text p.ph { color: var(--c-night); }
@media (min-width: 48rem) {
  .about__grid { grid-template-columns: 5fr 1fr 6fr; }
  .about__text { grid-column: 3; }
}

/* Visit */
.visit { padding-block: var(--s-9); }
.visit__grid { display: grid; gap: var(--s-6) var(--gutter); }
.visit h2 { font-size: var(--fs-3); margin-bottom: var(--s-3); }
.visit__intro { color: var(--c-steel); max-width: 40ch; margin-bottom: var(--s-4); }
.visit address { display: grid; gap: var(--s-1); font-style: normal; }
.visit__tel { font-size: var(--fs-3); font-weight: 600; letter-spacing: var(--track-head); text-decoration: none; }
.visit__tel:hover { text-decoration: underline; }
.visit__note { margin-top: var(--s-3); font-size: var(--fs--1); }
.card { background: var(--c-white); padding: var(--s-5); align-self: start; }
.card h3 { font-size: var(--fs-2); margin-bottom: var(--s-3); }
.status--card { margin-bottom: var(--s-4); }
.card dl { font-variant-numeric: tabular-nums; }
.card dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-1) var(--s-4); padding-block: var(--s-2); border-top: 1px solid var(--c-rule); }
.card dt { font-weight: 600; }
.card dd { color: var(--c-steel); }
@media (min-width: 48rem) {
  .visit__grid { grid-template-columns: 1fr 1fr; }
}

/* Footer */
.foot { background: var(--c-night); padding-block: var(--s-7) var(--s-6); border-top: 1px solid var(--c-rule-dark); }
.foot__mark { font-size: var(--fs-2); font-weight: 750; letter-spacing: var(--track-head); margin-bottom: var(--s-5); }
.foot h2 { font-size: var(--fs-1); margin-bottom: var(--s-3); }
.imp { display: grid; gap: var(--s-3) var(--gutter); font-size: var(--fs--1); }
.imp dt { color: var(--c-dim); }
.imp dd { overflow-wrap: anywhere; }
@media (min-width: 48rem) { .imp { grid-template-columns: repeat(3, 1fr); } }
.foot__note { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--c-rule-dark); font-size: var(--fs--1); color: var(--c-dim); max-width: 80ch; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
