/* ==========================================================================
   ABE-Autoteile — Basis-Stylesheet
   ========================================================================== */

:root {
  --bg: oklch(18% 0.02 55);
  --bg-elevated: oklch(23% 0.025 55);
  --ink: oklch(96% 0.01 70);
  --muted: oklch(65% 0.02 60);
  --accent: oklch(68% 0.19 45);

  --accent-ink: oklch(14% 0.02 55);
  --line: oklch(32% 0.02 55);
  --bg-deep: oklch(14% 0.015 55);

  --font-display: "Fraunces", "Bricolage Grotesque", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1240px;
  --radius: 2px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  scroll-behavior: auto;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 48px);
  background: linear-gradient(to bottom, oklch(18% 0.02 55 / 0.92), oklch(18% 0.02 55 / 0));
  transition: background 0.4s ease, padding 0.35s ease, backdrop-filter 0.4s ease;
}

.site-header.is-scrolled {
  background: oklch(18% 0.02 55 / 0.94);
  backdrop-filter: blur(10px);
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.logo span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.main-nav a:not(.btn) {
  font-size: 0.92rem;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.main-nav a:not(.btn):hover,
.main-nav a:not(.btn).is-active {
  color: var(--ink);
}

.main-nav a:not(.btn).is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  z-index: 210;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn-solid {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-solid:hover {
  transform: translateY(-2px);
  background: oklch(72% 0.19 45);
}

.btn-outline {
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  will-change: transform;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, oklch(14% 0.015 55 / 0.92) 0%, oklch(14% 0.015 55 / 0.35) 46%, oklch(18% 0.03 50 / 0.25) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(20px, 5vw, 48px) clamp(64px, 9vw, 120px);
}

.hero-thesis {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 6.2vw, 5.4rem);
  font-weight: 600;
  max-width: 14ch;
  letter-spacing: -0.015em;
}

.hero-sub {
  margin-top: 26px;
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--muted);
}

.hero-claim {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-meta {
  position: absolute;
  right: clamp(20px, 5vw, 48px);
  bottom: clamp(64px, 9vw, 120px);
  z-index: 2;
  text-align: right;
  color: var(--muted);
  font-size: 0.86rem;
  display: none;
}

.scroll-cue {
  position: absolute;
  left: clamp(20px, 5vw, 48px);
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue::before {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */

.page-hero {
  padding: clamp(150px, 20vw, 210px) 0 clamp(60px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 15% 0%, oklch(23% 0.03 50 / 0.7), transparent 60%),
    var(--bg);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 18ch;
}

.page-hero .lede {
  margin-top: 22px;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ==========================================================================
   Zielgruppen-Kacheln
   ========================================================================== */

.audience {
  padding: clamp(70px, 9vw, 120px) 0;
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.audience-tile {
  position: relative;
  background: var(--bg-elevated);
  padding: clamp(36px, 5vw, 60px);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: background 0.4s ease;
}

.audience-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.audience-tile:hover::before {
  opacity: 0.06;
}

.audience-num {
  position: absolute;
  top: clamp(28px, 4vw, 48px);
  right: clamp(28px, 4vw, 48px);
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.audience-tile h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 14px;
}

.audience-tile p {
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 26px;
}

.audience-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.audience-link .arrow {
  transition: transform 0.3s ease;
}

.audience-tile:hover .audience-link .arrow {
  transform: translateX(6px);
}

/* ==========================================================================
   Section basics
   ========================================================================== */

section {
  position: relative;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(40px, 6vw, 70px);
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 16ch;
}

.section-head .lede {
  max-width: 40ch;
  color: var(--muted);
}

/* ==========================================================================
   Sortiment
   ========================================================================== */

.range {
  padding: clamp(70px, 9vw, 120px) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.range-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.range-card {
  background: var(--bg-elevated);
  padding: 34px 30px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.range-card .idx {
  font-family: var(--font-display);
  color: var(--muted);
  font-size: 0.85rem;
}

.range-card h3 {
  font-size: 1.3rem;
  margin-top: 40px;
}

.range-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 10px;
}

.range-photo {
  background: var(--bg-elevated);
  min-height: 220px;
  overflow: hidden;
}

.range-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

/* ==========================================================================
   Bild + Text Split (Tuning-Teaser, Standort, B2B usw.)
   ========================================================================== */

.split {
  padding: clamp(70px, 9vw, 120px) 0;
}

.split .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}

.split.reverse .wrap {
  direction: rtl;
}

.split.reverse .wrap > * {
  direction: ltr;
}

.split-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-elevated);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-text h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin-bottom: 22px;
}

.split-text p {
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 16px;
}

.split-text .btn {
  margin-top: 20px;
}

.check-list {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 0.95rem;
}

.check-list .mark {
  flex: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 2px;
}

/* ==========================================================================
   Kategorien (Sortiment-Seite)
   ========================================================================== */

.categories {
  padding: clamp(70px, 9vw, 120px) 0;
}

.category-row {
  display: grid;
  grid-template-columns: 0.6fr 1fr 1fr;
  gap: 40px;
  padding: clamp(30px, 5vw, 48px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.category-row:last-child {
  border-bottom: 1px solid var(--line);
}

.category-row .num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
}

.category-row h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.category-row p {
  color: var(--muted);
}

.category-row .tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-row .tags span {
  font-size: 0.76rem;
  padding: 6px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Prozess / Konditionen (Handel-Seite)
   ========================================================================== */

.process {
  padding: clamp(70px, 9vw, 120px) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.process-step {
  border-top: 2px solid var(--accent);
  padding-top: 22px;
}

.process-step .step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--muted);
  display: block;
  margin-bottom: 14px;
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.process-step p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ==========================================================================
   Kontakt / CTA-Strip
   ========================================================================== */

.cta-strip {
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--line);
}

.cta-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-strip h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  max-width: 18ch;
}

.cta-strip .addr {
  color: var(--muted);
  margin-top: 12px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Formulare
   ========================================================================== */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
}

.form-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: clamp(30px, 4vw, 48px);
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  border-radius: var(--radius);
  transition: border-color 0.25s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-note {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.info-item {
  display: flex;
  gap: 18px;
}

.info-item .icon {
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.info-item h4 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.info-item p {
  color: var(--muted);
  font-size: 0.94rem;
}

.map-block {
  margin-top: 34px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(45deg, var(--bg-elevated), var(--bg-elevated) 12px, var(--bg) 12px, var(--bg) 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 20px;
}

.map-block strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* ==========================================================================
   Rechtstexte
   ========================================================================== */

.legal {
  padding: clamp(150px, 20vw, 200px) 0 clamp(80px, 10vw, 120px);
}

.legal .wrap {
  max-width: 820px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 44px;
  margin-bottom: 14px;
}

.legal p, .legal li {
  color: var(--muted);
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 20px;
  list-style: disc;
}

.legal .placeholder {
  color: var(--accent);
  font-style: italic;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: clamp(60px, 8vw, 90px) 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--muted);
  max-width: 34ch;
  font-size: 0.92rem;
}

.footer-col h4 {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--ink);
  font-size: 0.92rem;
  transition: color 0.25s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   Reveal-Animation Basis (GSAP setzt Start-Zustand, JS toggelt is-visible als Fallback)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.no-js .reveal,
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Mobile Nav Overlay
   ========================================================================== */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(24px, 8vw, 60px);
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(.65,0,.35,1);
}

.mobile-nav.is-open {
  transform: translateY(0);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: block;
}

.mobile-nav .mobile-meta {
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

body.nav-open {
  overflow: hidden;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .nav-links { display: none; }
  .burger { display: flex; }

  .audience-grid { grid-template-columns: 1fr; }
  .range-grid { grid-template-columns: 1fr 1fr; }
  .split .wrap { grid-template-columns: 1fr; }
  .split.reverse .wrap { direction: ltr; }
  .split-media { order: -1; aspect-ratio: 16/10; }
  .form-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .category-row { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 640px) {
  .range-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .field-row { grid-template-columns: 1fr; }
  .cta-strip .wrap { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-thesis { max-width: 100%; }
}
