:root {
  --ink: #11151b;
  --ink-2: #1b222b;
  --muted: #657180;
  --paper: #f6f7f8;
  --white: #ffffff;
  --red: #d71f26;
  --red-dark: #a7151c;
  --gold: #f2b441;
  --line: #dfe4ea;
  --shadow: 0 18px 48px rgba(17, 21, 27, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: Barlow, Inter, sans-serif;
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.55rem, 7vw, 5.8rem); max-width: 880px; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 18px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 58px);
  color: var(--white);
  background: rgba(15, 20, 27, .96);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  padding: 5px;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}
.brand small { color: #aeb8c4; font-size: .78rem; margin-top: 1px; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: .94rem;
}
.primary-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  color: #e9eef4;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { background: rgba(255,255,255,.1); }
.primary-nav .nav-emergency {
  background: var(--red);
  color: var(--white);
  margin-left: 6px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9,12,17,.92) 0%, rgba(9,12,17,.68) 46%, rgba(9,12,17,.2) 100%),
    linear-gradient(0deg, rgba(9,12,17,.78) 0%, rgba(9,12,17,0) 56%);
}
.hero-content {
  position: relative;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 clamp(46px, 9vh, 96px);
  color: var(--white);
}
.hero-content p { max-width: 650px; font-size: clamp(1.05rem, 2vw, 1.35rem); color: #d6dde6; }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
}
.eyebrow.red { color: var(--red); }

.hero-actions,
.section-head,
.site-footer,
.contact-box {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid transparent;
}
.button.primary { background: var(--red); color: var(--white); box-shadow: 0 10px 26px rgba(215,31,38,.28); }
.button.secondary { background: var(--ink); color: var(--white); }
.button.ghost { border-color: rgba(255,255,255,.32); color: var(--white); }

.quick-grid {
  width: min(1160px, calc(100% - 36px));
  margin: -42px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card,
.vehicle-tile,
.join-panel,
.info-card,
.contact-box {
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.feature-card {
  min-height: 230px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 5px solid var(--red);
}
.feature-card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--red);
  font: 800 1.6rem Barlow, sans-serif;
}
.emergency-card { background: var(--red); color: var(--white); }
.emergency-card p { color: #ffe4e4; }
.emergency-card .card-icon { background: var(--white); color: var(--red); }

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 96px auto;
}
.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 7vw, 86px);
}
.split p,
.page-hero p { color: var(--muted); font-size: 1.07rem; }
.section-head {
  justify-content: space-between;
  margin-bottom: 22px;
}
.section-head a { color: var(--red); font-weight: 800; }

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.vehicle-tile {
  overflow: hidden;
  padding-bottom: 24px;
}
.vehicle-tile h3,
.vehicle-tile p { padding: 0 22px; }
.vehicle-tile p { color: var(--muted); margin: 0; }
.vehicle-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  max-height: 210px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 22px;
  background: #dfe4ea;
}
.vehicle-photo.large {
  max-height: none;
  border-radius: 8px;
  margin: 0;
  box-shadow: 0 12px 32px rgba(17, 21, 27, .12);
}

.image-band {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
  width: min(1160px, calc(100% - 36px));
  margin: 96px auto;
}
.image-card {
  min-height: 250px;
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  color: var(--white);
  font: 800 1.35rem Barlow, sans-serif;
  background:
    linear-gradient(180deg, rgba(17,21,27,.08), rgba(17,21,27,.74)),
    url("assets/gallery-ausbildung.png") center/cover;
}
.image-card:nth-child(2) {
  background-image:
    linear-gradient(180deg, rgba(17,21,27,.08), rgba(17,21,27,.74)),
    url("assets/gallery-technik.png");
  background-position: center;
}
.image-card:nth-child(3) {
  background-image:
    linear-gradient(180deg, rgba(17,21,27,.08), rgba(17,21,27,.74)),
    url("assets/gallery-gemeinschaft.png");
  background-position: center;
}
.image-card.tall { min-height: 420px; }

.instagram-section {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 28px;
  align-items: stretch;
}
.instagram-section p {
  color: var(--muted);
}
.instagram-copy {
  align-self: center;
}
.instagram-visual {
  min-height: 320px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--ink);
}
.instagram-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.instagram-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,21,27,0) 45%, rgba(17,21,27,.82) 100%);
}
.instagram-visual span {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  color: var(--white);
  font-family: Barlow, Inter, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}
.instagram-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.instagram-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 24px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(17, 21, 27, .96), rgba(52, 21, 28, .94)),
    radial-gradient(circle at 85% 15%, rgba(215, 31, 38, .45), transparent 38%);
  box-shadow: var(--shadow);
  border-bottom: 5px solid var(--red);
}
.instagram-card strong {
  font-family: Barlow, Inter, sans-serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.instagram-card span:last-child {
  color: #cbd3dc;
  font-weight: 700;
}
.instagram-label {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--red);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 28px;
  align-items: start;
}
.contact-box {
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
}
.contact-box a:not(.button) { color: var(--red); font-weight: 800; }

.page-hero {
  width: min(980px, calc(100% - 36px));
  margin: 74px auto 40px;
}
.page-hero h1 { color: var(--ink); font-size: clamp(2.35rem, 6vw, 4.8rem); }

.vehicle-list { display: grid; gap: 24px; }
.vehicle-detail {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) 1.15fr;
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.check-list {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}
.check-list li {
  padding: 10px 0 10px 30px;
  border-top: 1px solid var(--line);
  position: relative;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
}

.join-layout,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.join-panel,
.info-card {
  padding: 28px;
}
.join-panel.dark {
  background: var(--ink);
  color: var(--white);
}
.join-panel p,
.info-card p { color: var(--muted); }
.join-panel.dark p { color: #c6ced8; }
.service-time {
  padding: 12px 14px;
  border-left: 4px solid var(--red);
  border-radius: 0 8px 8px 0;
  background: #fff4f4;
  font-weight: 800;
  color: var(--ink);
}
.steps { margin: 0; padding-left: 20px; }
.steps li { margin: 10px 0; }
.info-grid { grid-template-columns: repeat(4, 1fr); }
.info-card.emergency {
  background: var(--red);
  color: var(--white);
}
.info-card.emergency p { color: #ffe4e4; }

.site-footer {
  justify-content: space-between;
  padding: 28px clamp(18px, 4vw, 58px);
  color: #c9d1db;
  background: var(--ink);
  font-weight: 700;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--ink-2);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { justify-content: center; }
  .primary-nav .nav-emergency { margin-left: 0; }
  .quick-grid,
  .vehicle-grid,
  .join-layout,
  .info-grid,
  .instagram-section,
  .instagram-grid,
  .contact-section,
  .split,
  .vehicle-detail,
  .image-band {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 720px; }
  .quick-grid { margin-top: 22px; }
  .vehicle-detail { padding: 20px; }
  .image-card.tall,
  .image-card { min-height: 260px; }
}

@media (max-width: 560px) {
  .site-header { padding-inline: 14px; }
  .brand small { display: none; }
  .brand strong { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
  .hero-content { width: min(100% - 28px, 1160px); }
  .section,
  .quick-grid,
  .image-band,
  .page-hero { width: min(100% - 28px, 1160px); }
  .feature-card { min-height: 210px; }
  .vehicle-photo.large { aspect-ratio: 3 / 2; }
  .button { width: 100%; }
}
