/* ==========================================================================
   OFFROAD WERKSTATT — Redesign-Entwurf
   Palette: Teer, Stahl, Sand, Olive, Bergungs-Orange
   Typo: Big Shoulders Display (Display) · Barlow (Body) · IBM Plex Mono (Typenschild)
   ========================================================================== */

:root {
  --tar: #14110d;
  --panel: #1d1913;
  --panel-2: #262019;
  --line: rgba(237, 230, 214, 0.14);
  --line-strong: rgba(237, 230, 214, 0.28);
  --sand: #ede6d6;
  --muted: #bdb49e;
  --olive: #a9ab7e;
  --signal: #f4692a;
  --signal-bright: #ff8a4d;
  --ink-on-signal: #1a1208;
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --header-h: 76px;
  --radius: 6px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--tar);
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--signal-bright); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--signal-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--signal); color: var(--ink-on-signal); }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 60;
  background: var(--signal);
  color: var(--ink-on-signal);
  padding: 10px 18px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Typografie
   -------------------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.4em;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 9vw, 6.8rem); }
h2 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: 0.03em; }

p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--olive);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--signal);
  flex: none;
}

.accent { color: var(--signal-bright); }

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(20, 17, 13, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color 200ms ease;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--sand);
  margin-right: auto;
  min-width: 0;
}
.brand img { width: 44px; height: 41px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.brand-name small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.42em;
  color: var(--olive);
  margin-top: 4px;
}

.main-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--sand);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: color 180ms ease, background-color 180ms ease;
}
.main-nav a:hover { background: rgba(237, 230, 214, 0.08); color: #fff; }
.main-nav a[aria-current="page"] {
  color: var(--signal-bright);
  box-shadow: inset 0 -3px 0 var(--signal);
  border-radius: var(--radius) var(--radius) 0 0;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--sand);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}
.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); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn-primary {
  background: var(--signal);
  color: var(--ink-on-signal);
}
.btn-primary:hover { background: var(--signal-bright); }
.btn-ghost {
  background: transparent;
  color: var(--sand);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--sand); background: rgba(237, 230, 214, 0.06); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 0.88rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 90px;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 17, 13, 0.55) 0%, rgba(20, 17, 13, 0.25) 40%, rgba(20, 17, 13, 0.92) 88%),
    linear-gradient(100deg, rgba(20, 17, 13, 0.75) 0%, rgba(20, 17, 13, 0.1) 60%);
}

.hero-plate {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  display: inline-flex;
  gap: 18px;
  padding: 10px 18px;
  margin-bottom: 30px;
  background: rgba(20, 17, 13, 0.55);
}
.hero-plate b { color: var(--signal-bright); font-weight: 500; }

.hero h1 span { display: block; }
.hero h1 .line-2 { color: var(--signal-bright); }

.hero .lead { color: #d8d0bd; max-width: 56ch; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-phone {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--sand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 6px;
  border-bottom: 2px solid var(--signal);
}
.hero-phone:hover { color: var(--signal-bright); }

.hero-adventure {
  margin-top: 60px;
  width: min(420px, 70%);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Reifenspur-Trenner (Original-Grafik)
   -------------------------------------------------------------------------- */

.track-divider {
  height: 90px;
  background-image: url("../img/reifenspur-1.png");
  background-repeat: repeat-x;
  background-size: auto 100%;
  opacity: 0.35;
  margin: -10px 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Sektionen
   -------------------------------------------------------------------------- */

.section { padding: 110px 0; position: relative; }
.section-panel { background: var(--panel); border-block: 1px solid var(--line); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}
.section-head p { margin: 0; }

/* --------------------------------------------------------------------------
   Leistungen — Icon-Kacheln (Original-SVGs via mask eingefärbt)
   -------------------------------------------------------------------------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.service-card {
  position: relative;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 22px 26px;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.service-card:hover { border-color: var(--signal); background: #2c251c; }
.service-card h3 {
  font-size: 1.15rem;
  margin: 18px 0 4px;
  letter-spacing: 0.06em;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.service-icon {
  width: 52px;
  height: 52px;
  background-color: var(--signal);
  -webkit-mask: var(--icon) no-repeat center / contain;
  mask: var(--icon) no-repeat center / contain;
}
.icon-kolben { --icon: url("../img/icons/icon-kolben.svg"); }
.icon-getriebe { --icon: url("../img/icons/icon-getriebe.svg"); }
.icon-differential { --icon: url("../img/icons/icon-differential.svg"); }
.icon-kurbelwelle { --icon: url("../img/icons/icon-kurbelwelle.svg"); }
.icon-bremsen { --icon: url("../img/icons/icon-bremsen-alt.svg"); }
.icon-auspuff { --icon: url("../img/icons/icon-auspuff.svg"); }
.icon-federung { --icon: url("../img/icons/icon-federung.svg"); }
.icon-lenkung { --icon: url("../img/icons/icon-lenkung.svg"); }
.icon-seilwinde { --icon: url("../img/icons/icon-seilwinde.svg"); }
.icon-reifen { --icon: url("../img/icons/icon-reifen.svg"); }
.icon-fahrwerk { --icon: url("../img/icons/icon-fahrwerk.svg"); }
.icon-olive { background-color: var(--olive); }

.service-note {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}
.service-note strong { color: var(--olive); font-weight: 500; }

/* --------------------------------------------------------------------------
   Typenschild (Signature-Element)
   -------------------------------------------------------------------------- */

.spec-plate {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  background: linear-gradient(160deg, #3a342a, #241f18);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 8px 14px;
  display: inline-block;
  box-shadow: inset 0 1px 0 rgba(237, 230, 214, 0.12);
}
.spec-plate::before,
.spec-plate::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #cfc5b0, #55503f 70%);
  transform: translateY(-50%);
}
.spec-plate::before { left: 4px; }
.spec-plate::after { right: 4px; }
.spec-plate b { color: var(--signal-bright); font-weight: 500; }

/* --------------------------------------------------------------------------
   Buffy-Teaser / Porträt
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split.reverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }

.portrait-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.portrait-frame img { width: 100%; height: auto; }
.portrait-frame .spec-plate {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(20, 17, 13, 0.85);
}

blockquote.buffy-quote {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--sand);
}
blockquote.buffy-quote .accent { display: block; }
.buffy-quote-source {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  display: block;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Projekt-Karten
   -------------------------------------------------------------------------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.project-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--sand);
  background: var(--panel-2);
  border: 1px solid var(--line);
  transition: border-color 180ms ease;
}
.project-card:hover { border-color: var(--signal); }

.project-card .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease, opacity 400ms ease;
}
.project-card:hover .thumb img { transform: scale(1.05); }

.project-card .card-body { padding: 20px 20px 22px; }
.project-card h3 { margin: 0 0 10px; }
.project-card .spec-plate { margin-top: 4px; }
.project-card .card-cta {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal-bright);
}
.project-card .count-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  background: rgba(20, 17, 13, 0.82);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 5px 10px;
  color: var(--sand);
}

/* --------------------------------------------------------------------------
   Motul-Partner
   -------------------------------------------------------------------------- */

.motul {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.motul-img { height: 100%; }
.motul-img img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.motul-body { padding: clamp(28px, 4vw, 56px); }
.motul-body img { width: 180px; margin-bottom: 22px; }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.testimonial {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--sand);
  flex: 1;
}
.testimonial p::before { content: "\201E"; color: var(--signal-bright); }
.testimonial p::after { content: "\201C"; color: var(--signal-bright); }
.testimonial footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial footer img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--signal);
}
.testimonial cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
}
.testimonial cite small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   Werkstatt-Galerie
   -------------------------------------------------------------------------- */

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.workshop-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.workshop-grid figure img { width: 100%; height: 100%; object-fit: cover; }
.workshop-grid figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
}
.ws-a { grid-column: span 7; aspect-ratio: 16 / 10; }
.ws-b { grid-column: span 5; aspect-ratio: 4 / 3.57; }
.ws-c { grid-column: span 12; aspect-ratio: 21 / 8; }

/* --------------------------------------------------------------------------
   CTA-Band
   -------------------------------------------------------------------------- */

.cta-band {
  text-align: center;
  padding: 120px 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.cta-band .hero-bg img { object-position: center 70%; }
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(20, 17, 13, 0.85);
}
.cta-band h2 { margin-bottom: 18px; }
.cta-band .lead { margin-inline: auto; }
.cta-band .hero-ctas { justify-content: center; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: #0e0c09;
  border-top: 1px solid var(--line);
  padding: 70px 0 34px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
.site-footer h3 {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--olive);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--sand); text-decoration: none; }
.site-footer a:hover { color: var(--signal-bright); text-decoration: underline; }
.footer-brand img { width: 220px; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; }
.footer-mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-bottom .footer-note { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; }

/* --------------------------------------------------------------------------
   Unterseiten: Page-Hero
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 70px;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.page-hero.has-img { min-height: 62svh; display: flex; align-items: flex-end; }
.page-hero .hero-bg img { object-position: center 45%; }
.page-hero.has-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 17, 13, 0.72), rgba(20, 17, 13, 0.58) 45%, rgba(20, 17, 13, 0.96)),
    linear-gradient(100deg, rgba(20, 17, 13, 0.55) 0%, rgba(20, 17, 13, 0.05) 70%);
}
.page-hero.has-img h1,
.page-hero.has-img .lead { text-shadow: 0 2px 18px rgba(10, 8, 6, 0.65); }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--signal-bright); }
.breadcrumb span[aria-current] { color: var(--sand); }

/* --------------------------------------------------------------------------
   Projekt-Detail: Galerie + Lightbox
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.gallery button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--panel-2);
  aspect-ratio: 4 / 3;
  transition: border-color 180ms ease;
}
.gallery button:hover { border-color: var(--signal); }
.gallery button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}
.gallery button:hover img { transform: scale(1.04); }

.gallery-label {
  grid-column: 1 / -1;
  margin: 18px 0 2px;
}

.lightbox {
  border: none;
  padding: 0;
  background: rgba(10, 8, 6, 0.94);
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
}
.lightbox::backdrop { background: rgba(10, 8, 6, 0.94); }
.lightbox-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.lightbox-inner img {
  max-width: min(1400px, 92vw);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox .lb-btn {
  position: absolute;
  min-width: 52px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 25, 19, 0.85);
  color: var(--sand);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox .lb-btn:hover { border-color: var(--signal); color: var(--signal-bright); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--sand);
  background: rgba(29, 25, 19, 0.85);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 6px 14px;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.project-nav a {
  text-decoration: none;
  color: var(--sand);
  font-weight: 600;
  max-width: 44%;
}
.project-nav a:hover .pn-title { color: var(--signal-bright); }
.project-nav .pn-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
  display: block;
  margin-bottom: 6px;
}
.project-nav .pn-next { text-align: right; margin-left: auto; }

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: start;
}

.contact-list { list-style: none; margin: 0 0 34px; padding: 0; }
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list .cl-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  width: 110px;
  flex: none;
  padding-top: 4px;
}
.contact-list a { color: var(--sand); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--signal-bright); }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.hours-table caption { text-align: left; }
.hours-table td, .hours-table th {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.hours-table td:last-child { text-align: right; color: var(--sand); }
.hours-table .closed td:last-child { color: var(--muted); }

.form-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 44px);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--tar);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 14px;
  min-height: 50px;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover { border-color: var(--sand); }
.form-hint { font-size: 0.85rem; color: var(--muted); margin: 6px 0 0; }

.map-frame {
  margin-top: 60px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  filter: grayscale(0.5) contrast(1.05);
}

/* --------------------------------------------------------------------------
   Jobs
   -------------------------------------------------------------------------- */

.check-list { list-style: none; margin: 0 0 28px; padding: 0; }
.check-list li {
  position: relative;
  padding: 8px 0 8px 34px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: var(--signal);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') no-repeat center / contain;
}

/* --------------------------------------------------------------------------
   Scroll-Reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 550ms ease, transform 550ms ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .project-card .thumb img,
  .gallery button img { transition: none; }
  *,
  *::before,
  *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ws-a, .ws-b { grid-column: span 6; }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(14, 12, 9, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 22px;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { display: block; padding: 14px 12px; font-size: 1.05rem; }
  .main-nav a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--signal);
    border-radius: 0 var(--radius) var(--radius) 0;
  }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .split,
  .split.reverse,
  .contact-grid,
  .motul { grid-template-columns: 1fr; }
  .motul-img img { min-height: 240px; }
  .section { padding: 80px 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .hero { padding-bottom: 64px; }
  .hero-plate { flex-wrap: wrap; gap: 8px 18px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .ws-a, .ws-b, .ws-c { grid-column: span 12; aspect-ratio: 4 / 3; }
  .form-grid { grid-template-columns: 1fr; }
  .project-nav { flex-direction: column; }
  .project-nav a { max-width: none; }
  .project-nav .pn-next { text-align: left; margin-left: 0; }
  .track-divider { height: 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
