/* FM Car Performance — Homepage v1
   Werkstatt zuerst, Performance als klar getrennter Nebenbereich. */

.home-workshop .rv,
.home-workshop .rv.in,
.home-workshop .rv.fx-ty-host{
  opacity:1;
  transform:none;
  transition:none;
}

.home-workshop .revbar,
.home-workshop .fx-launch,
.home-workshop .fx-vel-streaks,
.home-workshop .fx-vel-vig,
.home-workshop .fx-vel-revglow,
.home-workshop .fx-rl{
  display:none !important;
}

.home-workshop .sheet-img::before{
  clip-path:none;
  transition:none;
}

.home-workshop .perks::after,
.home-workshop .perk::after,
.home-workshop .perk .n{
  transition:none;
}

.home-workshop .about-img{
  background-image:var(--img-diagnose);
  background-position:42% center;
}

.home-workshop .about-img::after{
  background:linear-gradient(200deg,rgba(11,12,14,.04),rgba(11,12,14,.72));
  transition:none;
}

/* Hero: echtes Werkstattmotiv statt Tuning-Fahrzeug und Drehzahlmesser. */
.home-hero{
  min-height:min(850px,calc(100svh - 68px));
  padding:clamp(6rem,9vw,9rem) 0 clamp(5rem,8vw,7.5rem);
  isolation:isolate;
  align-items:center;
  background:#090b0e;
}

.home-hero__media{
  position:absolute;
  z-index:-3;
  inset:0;
  margin:0;
  overflow:hidden;
}

.home-hero__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:64% center;
  filter:saturate(.68) contrast(1.13) brightness(.74);
  transform:scale(1.015);
}

.home-hero__shade{
  position:absolute;
  z-index:-2;
  inset:0;
  background:
    linear-gradient(90deg,rgba(7,8,10,.99) 0%,rgba(7,8,10,.96) 29%,rgba(7,8,10,.7) 48%,rgba(7,8,10,.16) 76%),
    linear-gradient(0deg,rgba(7,8,10,.94) 0%,transparent 45%,rgba(7,8,10,.32) 100%);
}

.home-hero::after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(27,170,146,.11),transparent 31%);
}

.home-hero .hero-in{
  display:block;
}

.home-hero__copy{
  width:min(710px,62%);
  position:relative;
}

.home-hero h1{
  margin:.8rem 0 1.55rem;
  max-width:9ch;
  font-size:clamp(4.4rem,8.15vw,8rem);
  line-height:.79;
  letter-spacing:-.038em;
  hyphens:none;
  overflow-wrap:normal;
}

.home-hero h1 .ital{
  color:var(--chalk);
}

.home-hero .lede{
  max-width:58ch;
  font-size:clamp(1.04rem,1.32vw,1.24rem);
  line-height:1.66;
  color:rgba(238,241,244,.78);
}

.home-hero .hero-meta{
  max-width:700px;
  border-top-color:rgba(255,255,255,.2);
}

.home-hero__detail{
  position:absolute;
  z-index:4;
  right:clamp(2rem,5vw,5.2rem);
  bottom:clamp(2.5rem,5vw,4.8rem);
  width:clamp(285px,27vw,410px);
  margin:0;
  border:1px solid rgba(255,255,255,.24);
  background:#0c0e11;
  box-shadow:0 25px 70px rgba(0,0,0,.46);
}

.home-hero__detail img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  object-position:42% center;
  filter:saturate(.62) contrast(1.15) brightness(.7);
}

.home-hero__detail figcaption{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  padding:.9rem 1rem;
  border-top:1px solid rgba(255,255,255,.15);
  font-family:var(--f-mono);
  font-size:.57rem;
  line-height:1.45;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--smoke);
}

.home-hero__detail figcaption b{
  max-width:16ch;
  color:var(--chalk);
  text-align:right;
}

/* Sechs Werkstattbereiche direkt nach dem Hero, ohne bewegtes Laufband. */
.home-quick-nav{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  border-block:1px solid var(--line);
  background:var(--carbon);
}

.home-quick-nav a{
  min-width:0;
  padding:1.15rem clamp(.8rem,1.6vw,1.45rem);
  border-right:1px solid var(--line);
  transition:background .18s,color .18s;
}

.home-quick-nav a:last-child{border-right:0}
.home-quick-nav a:hover,.home-quick-nav a:focus-visible{background:var(--sector);color:#07100f}

.home-quick-nav small{
  display:block;
  margin-bottom:.35rem;
  font-family:var(--f-mono);
  font-size:.55rem;
  letter-spacing:.14em;
  color:var(--sector);
}

.home-quick-nav a:hover small,.home-quick-nav a:focus-visible small{color:inherit}

.home-quick-nav span{
  display:block;
  overflow:hidden;
  font-family:var(--f-disp);
  font-size:clamp(1.05rem,1.6vw,1.42rem);
  font-weight:800;
  line-height:1;
  text-overflow:ellipsis;
  text-transform:uppercase;
  white-space:nowrap;
}

/* Bildgetriebene Werkstattleistungen. */
.home-services{
  position:relative;
  z-index:1;
  padding:clamp(5.5rem,9vw,9rem) 0 clamp(6.5rem,10vw,10rem);
  background:#0b0c0e;
}

.home-services .section-head h2{max-width:12ch}

.home-services__grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:1rem;
}

.home-service-card{
  position:relative;
  isolation:isolate;
  grid-column:span 6;
  min-height:350px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.13);
  background:#15171a;
  color:#fff;
  transition:transform .2s ease,border-color .2s ease;
}

.home-service-card--wide{grid-column:span 7;min-height:410px}
.home-service-card--standard{grid-column:span 5;min-height:410px}
.home-service-card--half{grid-column:span 6;min-height:330px}

.home-service-card>img{
  position:absolute;
  z-index:-2;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:62% center;
  filter:saturate(.66) contrast(1.1) brightness(.72);
  transition:transform .3s ease,filter .2s ease;
}

.home-service-card--diagnose>img{object-position:39% center}
.home-service-card[href="/reifenwechsel/"]>img{object-position:72% center}

.home-service-card__shade{
  position:absolute;
  z-index:-1;
  inset:0;
  background:
    linear-gradient(0deg,rgba(4,5,7,.98) 0%,rgba(4,5,7,.72) 39%,rgba(4,5,7,.08) 77%),
    linear-gradient(90deg,rgba(4,5,7,.32),transparent 65%);
}

.home-service-card>small{
  position:absolute;
  top:1rem;
  left:1rem;
  padding:.45rem .55rem;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(6,7,9,.74);
  font-family:var(--f-mono);
  font-size:.56rem;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:rgba(255,255,255,.82);
}

.home-service-card>div{
  position:absolute;
  right:clamp(1.25rem,2.7vw,2.2rem);
  bottom:clamp(1.25rem,2.7vw,2.2rem);
  left:clamp(1.25rem,2.7vw,2.2rem);
}

.home-service-card h3{
  max-width:15ch;
  margin:0;
  font-size:clamp(2.05rem,3.6vw,3.75rem);
  line-height:.9;
  letter-spacing:-.025em;
  hyphens:none;
  overflow-wrap:normal;
}

.home-service-card p{
  max-width:48ch;
  margin:.7rem 0 0;
  font-size:.9rem;
  line-height:1.5;
  color:rgba(255,255,255,.7);
}

.home-service-card>b{
  position:absolute;
  top:1rem;
  right:1rem;
  display:grid;
  place-items:center;
  width:2.35rem;
  aspect-ratio:1;
  background:var(--sector);
  font-family:var(--f-mono);
  font-size:.85rem;
  color:#07100f;
  transition:transform .2s ease;
}

.home-service-card:hover,.home-service-card:focus-visible{
  transform:translateY(-3px);
  border-color:rgba(27,170,146,.72);
}

.home-service-card:hover>img,.home-service-card:focus-visible>img{
  transform:scale(1.025);
  filter:saturate(.78) contrast(1.08) brightness(.78);
}

.home-service-card:hover>b,.home-service-card:focus-visible>b{transform:rotate(8deg)}

.home-services__actions{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
  margin-top:2rem;
}

/* Performance bleibt erreichbar, aber ist klar nachgeordnet. */
.home-specialties{padding-top:clamp(5.5rem,8vw,8rem)}

.home-specialties__grid{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:1rem;
}

.home-specialty{
  position:relative;
  isolation:isolate;
  min-height:360px;
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--carbon);
}

.home-specialty--performance{display:block;color:#fff}

.home-specialty--performance::after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  background:linear-gradient(90deg,rgba(7,8,10,.96),rgba(7,8,10,.7) 52%,rgba(7,8,10,.2));
}

.home-specialty--performance>img{
  position:absolute;
  z-index:-2;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  filter:saturate(.55) contrast(1.12) brightness(.64);
}

.home-specialty>span{
  position:absolute;
  left:clamp(1.4rem,3vw,2.5rem);
  right:clamp(1.4rem,3vw,2.5rem);
  bottom:clamp(1.4rem,3vw,2.5rem);
}

.home-specialty small{
  display:block;
  margin-bottom:.75rem;
  font-family:var(--f-mono);
  font-size:.58rem;
  letter-spacing:.15em;
  text-transform:uppercase;
  color:var(--sector);
}

.home-specialty h3{max-width:15ch;font-size:clamp(2.3rem,4vw,4.2rem)}
.home-specialty p{margin:.7rem 0 0;color:var(--smoke)}

.home-specialty--performance>b{
  position:absolute;
  top:1rem;
  right:1rem;
  display:grid;
  place-items:center;
  width:2.4rem;
  aspect-ratio:1;
  background:var(--redline);
  font-family:var(--f-mono);
}

.home-specialty--links{
  display:grid;
  grid-template-rows:1fr auto;
  padding:2rem;
}

.home-specialty--links>span{position:static;align-self:start}

.home-specialty--links nav{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1px;
  align-self:end;
  background:var(--line);
  border:1px solid var(--line);
}

.home-specialty--links nav a{
  padding:.9rem;
  background:var(--asphalt);
  font-family:var(--f-mono);
  font-size:.62rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  transition:background .18s,color .18s;
}

.home-specialty--links nav a:hover,.home-specialty--links nav a:focus-visible{background:var(--sector);color:#07100f}

/* Die Mobile-Navigation darf kurz gleiten; alle übrigen Show-Effekte entfallen. */
.home-workshop .mnav a.ml,.home-workshop .mnav .mnav-foot{transition-duration:.18s,.18s,0s}
.home-workshop .mnav.open a.ml,.home-workshop .mnav.open .mnav-foot{transition-delay:0s}

@media(max-width:1080px){
  .home-hero{min-height:760px;padding:5.5rem 0 5rem;align-items:flex-end}
  .home-hero .hero-in{min-height:0;padding-bottom:0}
  .home-hero__copy{width:min(720px,74%)}
  .home-hero__detail{width:300px;right:1.5rem;bottom:1.5rem}
  .home-quick-nav{grid-template-columns:repeat(3,minmax(0,1fr))}
  .home-quick-nav a:nth-child(3){border-right:0}
  .home-quick-nav a:nth-child(-n+3){border-bottom:1px solid var(--line)}
}

@media(max-width:820px){
  .home-hero{
    min-height:760px;
    padding:4.5rem 0 4.25rem;
    align-items:flex-end;
  }
  .home-hero__media img{object-position:62% center;filter:saturate(.62) contrast(1.12) brightness(.64)}
  .home-hero__shade{
    background:
      linear-gradient(180deg,rgba(7,8,10,.32) 0%,rgba(7,8,10,.54) 34%,rgba(7,8,10,.96) 78%,#07080a 100%),
      linear-gradient(90deg,rgba(7,8,10,.86),rgba(7,8,10,.1));
  }
  .home-hero__copy{width:100%}
  .home-hero h1{max-width:8ch;font-size:clamp(4.2rem,14vw,6.8rem)}
  .home-hero .lede{max-width:54ch}
  .home-hero__detail{display:none}
  .home-services__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
  .home-service-card,.home-service-card--wide,.home-service-card--standard{grid-column:span 2;min-height:360px}
  .home-service-card--half{grid-column:span 1;min-height:285px}
  .home-service-card--half h3{font-size:clamp(1.7rem,6.7vw,2.55rem)}
  .home-specialties__grid{grid-template-columns:1fr}
  .home-specialty{min-height:330px}
}

@media(max-width:560px){
  .home-hero{min-height:calc(100svh - 64px);padding:3rem 0 3.6rem}
  .home-hero__media img{object-position:64% center}
  .home-hero h1{font-size:clamp(3.55rem,17vw,5.2rem);line-height:.8}
  .home-hero .lede{font-size:1rem;line-height:1.55}
  .home-hero .cta-row{margin-bottom:2rem}
  .home-hero .hero-meta{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
  .home-hero .hero-meta>div{margin:0;padding:0;border-right:0}
  .home-hero .hero-meta>div:last-child{grid-column:1/-1;padding-top:.9rem;border-top:1px solid rgba(255,255,255,.16)}
  .home-quick-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-quick-nav a{border-bottom:1px solid var(--line)}
  .home-quick-nav a:nth-child(2n){border-right:0}
  .home-quick-nav a:nth-last-child(-n+2){border-bottom:0}
  .home-quick-nav span{font-size:1.15rem}
  .home-services{padding-top:4.75rem;padding-bottom:5.5rem}
  .home-services .section-head h2{font-size:clamp(3.25rem,15vw,4.8rem)}
  .home-services__grid{display:block}
  .home-service-card,.home-service-card--wide,.home-service-card--standard,.home-service-card--half{
    display:block;
    min-height:310px;
    margin-top:.7rem;
  }
  .home-service-card:first-child{margin-top:0}
  .home-service-card h3,.home-service-card--half h3{font-size:clamp(2rem,10vw,3rem)}
  .home-service-card p{font-size:.84rem}
  .home-services__actions{display:grid}
  .home-services__actions .btn{justify-content:center}
  .home-specialty{min-height:310px}
  .home-specialty--links{min-height:420px;padding:1.25rem}
  .home-specialty--links nav{grid-template-columns:1fr}
  .home-specialty h3{font-size:clamp(2.3rem,12vw,3.5rem)}
}

@media(prefers-reduced-motion:reduce){
  .home-service-card,
  .home-service-card>img,
  .home-service-card>b,
  .home-quick-nav a,
  .home-specialty--links nav a{
    transition:none;
  }
}
