:root {
  --bg: #f5f7f9;
  --surface: #ffffff;
  --ink: #101418;
  --muted: #5b6672;
  --line: #d9e1e8;
  --red: #d7342a;
  --red-dark: #aa251d;
  --blue: #096fae;
  --blue-dark: #084d79;
  --yellow: #f5c84b;
  --dark: #0c1720;
  --shadow: 0 18px 60px rgba(12, 23, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--dark);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #ffffff;
  background: var(--red);
  border-radius: 8px;
  font-weight: 850;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1.06rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav a {
  padding: 9px 10px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: #eef3f7;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  background: var(--dark);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 23, 32, 0.92), rgba(12, 23, 32, 0.55) 48%, rgba(12, 23, 32, 0.12)),
    url("images/Werkstatt-Panorama.jpg") center / cover no-repeat;
}

.hero-content {
  position: relative;
  padding-block: 112px 96px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero .eyebrow,
.contact-band .eyebrow {
  color: var(--yellow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: 3.75rem;
}

.hero-lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.22rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  background: var(--red);
}

.button.primary:hover {
  background: var(--red-dark);
}

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary.light {
  color: var(--ink);
  border-color: var(--line);
  background: #ffffff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}

.text-link:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.section {
  padding-block: 76px;
}

.compact-section {
  padding-top: 56px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metrics div,
.service-card,
.detail-card,
.contact-card,
.location-panel,
.partner-card,
.fact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metrics div {
  padding: 22px;
}

.metrics strong,
.fact-panel strong {
  display: block;
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1.05;
}

.metrics span,
.fact-panel span {
  color: var(--muted);
  font-weight: 700;
}

.split-section {
  background: #ffffff;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 48px;
  align-items: center;
}

.split h2,
.section-heading h2,
.contact-band h2 {
  margin-bottom: 16px;
  font-size: 2.35rem;
}

.workshop-photo {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 720px;
}

.service-preview,
.partner-grid,
.contact-grid,
.location-grid {
  display: grid;
  gap: 18px;
}

.service-preview {
  grid-template-columns: repeat(3, 1fr);
}

.service-card,
.partner-card,
.contact-card,
.location-panel {
  padding: 26px;
}

.service-card h3,
.partner-card h2,
.contact-card h2,
.location-panel h2 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.service-card p,
.partner-card p,
.contact-card p,
.location-panel p {
  color: var(--muted);
}

.page-hero {
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(12, 23, 32, 0.92), rgba(12, 23, 32, 0.78)),
    url("images/Werkstatt-Panorama.jpg") center / cover no-repeat;
}

.page-hero-inner {
  padding-block: 88px 80px;
}

.page-hero h1 {
  margin-bottom: 14px;
  font-size: 3rem;
}

.page-hero p:last-child {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
}

.service-list {
  display: grid;
  gap: 18px;
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  padding: 30px;
}

.detail-head h2 {
  margin-bottom: 10px;
  font-size: 1.7rem;
}

.detail-head p {
  color: var(--muted);
}

.rich-text p {
  margin-bottom: 14px;
}

.rich-text ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.rich-text li + li {
  margin-top: 4px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}

.about-copy {
  max-width: 780px;
  font-size: 1.06rem;
}

.fact-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.fact-panel div {
  padding: 22px;
  background: #ffffff;
}

.location-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}

.notice {
  display: inline-flex;
  margin-top: 8px;
  padding: 8px 10px;
  color: var(--dark);
  background: var(--yellow);
  border-radius: 8px;
  font-weight: 850;
}

.map-section {
  margin-top: 18px;
}

.map-shell {
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dfe8ef;
}

.map-shell iframe {
  width: 100%;
  height: 430px;
  border: 0;
}

.map-placeholder {
  min-height: 430px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 32px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(9, 111, 174, 0.18), rgba(215, 52, 42, 0.10)),
    #eef3f7;
}

.contact-grid {
  grid-template-columns: repeat(3, 1fr);
}

.contact-card a {
  color: var(--blue);
  font-weight: 800;
}

.partner-grid {
  grid-template-columns: repeat(2, 1fr);
}

.legal-copy {
  max-width: 880px;
}

.legal-copy h1 {
  margin-bottom: 18px;
  font-size: 2.4rem;
}

.legal-copy h2 {
  margin: 38px 0 12px;
  font-size: 1.55rem;
}

.legal-copy h3 {
  margin: 28px 0 10px;
  font-size: 1.18rem;
}

.legal-copy h4 {
  margin: 22px 0 8px;
  font-size: 1rem;
}

.legal-copy p {
  color: #2d3741;
}

.legal-copy a {
  color: var(--blue);
  overflow-wrap: anywhere;
}

.contact-band {
  padding-block: 52px;
  color: #ffffff;
  background: var(--dark);
}

.contact-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.contact-band p {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  padding-block: 44px;
  color: rgba(255, 255, 255, 0.78);
  background: #071018;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.75fr 2fr;
  gap: 32px;
  align-items: start;
}

.footer-title {
  color: #ffffff;
  font-weight: 850;
}

.footer-contact a,
.footer-nav a {
  color: #ffffff;
  text-decoration: none;
}

.footer-nav {
  display: grid;
  gap: 8px;
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-logos img {
  width: auto;
  max-width: 150px;
  height: 48px;
  padding: 6px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    right: 16px;
    left: 16px;
    display: none;
    grid-template-columns: 1fr;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="true"] {
    display: grid;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .hero {
    min-height: 560px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .metrics,
  .service-preview,
  .contact-grid,
  .partner-grid,
  .location-grid,
  .split,
  .detail-card,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-logos {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 0.92rem;
  }

  .brand-copy strong {
    font-size: 0.98rem;
  }

  .brand-copy span {
    font-size: 0.78rem;
  }

  .site-nav {
    top: 70px;
    right: 12px;
    left: 12px;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    padding-block: 86px 64px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.1rem;
  }

  .hero-lead,
  .page-hero p:last-child {
    font-size: 1rem;
  }

  .section {
    padding-block: 54px;
  }

  .page-hero-inner {
    padding-block: 64px 58px;
  }

  .split h2,
  .section-heading h2,
  .contact-band h2 {
    font-size: 1.8rem;
  }

  .service-card,
  .partner-card,
  .contact-card,
  .location-panel,
  .detail-card,
  .metrics div {
    padding: 20px;
  }

  .contact-band-inner {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .footer-logos img {
    height: 46px;
  }
}
