/* Shop (shop.kfz-teile-lindemann.de) – Kopfzeile mit Reitern, Startseite.
   Baut auf style.css (Tokens) und portal.css (Formulare, Listen, Warenkorb) auf. */

/* --- Kopfzeile ---------------------------------------------------------------- */
.shop-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--petrol-950);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .45);
}
.shop-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 72px;
}
.shop-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.shop-brand img { height: 46px; width: auto; }
.shop-brand__tag {
  padding: .15rem .6rem; border-radius: 6px;
  background: var(--yellow-500); color: var(--petrol-950);
  font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
}
.shop-actions { display: flex; align-items: center; gap: 1.2rem; }
.shop-action {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--white); font-weight: 700; text-decoration: none; line-height: 1.15;
}
.shop-action small { display: block; font-size: .72rem; font-weight: 600; color: var(--petrol-200); }
.shop-action:hover { color: var(--yellow-500); }
.shop-action--quiet { color: var(--petrol-200); font-weight: 600; font-size: .9rem; }
.shop-cart {
  position: relative; display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  color: var(--petrol-950); background: var(--yellow-500);
  transition: background .15s ease, transform .15s ease;
}
.shop-cart:hover { background: var(--yellow-600); transform: translateY(-1px); }
.shop-cart__badge {
  position: absolute; top: -4px; right: -6px;
  min-width: 22px; height: 22px; padding: 0 .35rem; border-radius: 99px;
  display: grid; place-items: center;
  background: var(--white); color: var(--petrol-950);
  border: 2px solid var(--petrol-950);
  font-size: .75rem; font-weight: 800;
}
.shop-cart__badge[hidden] { display: none; }
.shop-cart--puls { animation: shop-puls .6s ease; }
@keyframes shop-puls { 40% { transform: scale(1.15); } }

/* Reiter */
.shop-tabs { background: var(--petrol-900); border-top: 1px solid var(--line-dark); }
.shop-tabs ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none;
}
.shop-tabs ul::-webkit-scrollbar { display: none; }
.shop-tabs a {
  display: block; padding: .85rem 1.1rem; white-space: nowrap;
  color: var(--petrol-100); font-weight: 700; text-decoration: none;
  border-bottom: 3px solid transparent;
}
.shop-tabs a:hover { color: var(--white); background: rgba(255, 255, 255, .05); }
.shop-tabs a.is-active { color: var(--white); border-bottom-color: var(--yellow-500); }

.shop-main { padding-top: clamp(1.6rem, 4vw, 2.6rem); }

/* --- Startseite ---------------------------------------------------------------- */
.shop-hero { max-width: 760px; margin-bottom: 2rem; }
.shop-hero h1 { font-size: clamp(1.8rem, 4.2vw, 2.8rem); line-height: 1.1; }
.shop-hero h1 span { color: var(--petrol-600); }
.shop-hero p { color: var(--slate); margin-top: .8rem; }
.shop-hero__actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.3rem; }

.shop-kats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem;
}
.shop-kat {
  height: 100%; display: flex; flex-direction: column; gap: .5rem;
  padding: 1.4rem 1.3rem; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--ink); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.shop-kat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--petrol-200); }
.shop-kat__icon {
  width: 64px; height: 64px; border-radius: 16px; margin-bottom: .4rem;
  display: grid; place-items: center;
  background: var(--yellow-050); color: var(--petrol-700);
}
.shop-kat__titel { font-size: 1.2rem; font-weight: 800; }
.shop-kat__text { color: var(--slate); font-size: .92rem; flex: 1; }
.shop-kat__status { font-weight: 800; color: var(--petrol-700); font-size: .9rem; margin-top: .4rem; }
.shop-kat--bald .shop-kat__icon { background: var(--petrol-050); color: var(--slate); }
.shop-kat--bald .shop-kat__status { color: var(--slate); font-weight: 700; }

/* --- Platzhalter "Demnaechst" --------------------------------------------------- */
.shop-bald {
  max-width: 640px; margin: 1rem auto; text-align: center;
  padding: clamp(1.6rem, 5vw, 3rem) 1.4rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.shop-bald__icon {
  width: 96px; height: 96px; margin: 0 auto 1rem; border-radius: 24px;
  display: grid; place-items: center; background: var(--petrol-050); color: var(--petrol-700);
}
.shop-bald .eyebrow { justify-content: center; }
.shop-bald h1 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
.shop-bald p { color: var(--slate); margin: .8rem auto 0; }

/* --- Schmal / Handy ------------------------------------------------------------ */
@media (max-width: 680px) {
  .shop-top { min-height: 62px; }
  .shop-brand img { height: 38px; }
  .shop-brand__tag { display: none; }
  .shop-action span { display: none; }      /* nur Symbol */
  .shop-action--quiet { display: none; }
  .shop-actions { gap: .9rem; }
  .shop-cart { width: 44px; height: 44px; }
  .shop-tabs a { padding: .75rem .85rem; font-size: .95rem; }
}

/* --- PKW-Teile ------------------------------------------------------------------ */
.tl-verbinden { max-width: 520px; }
.tl-verbinden h2 { font-size: 1.35rem; }
.tl-datenschutz { margin-top: 1rem; font-size: .82rem; color: var(--slate); }
.tl-status {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin: -.4rem 0 1rem; font-size: .92rem; color: var(--slate);
}
.tl-status form { margin: 0; }
.tl-such { flex: 1 1 280px; }
.tl-such input { width: 100%; font-weight: 700; }
.tl-merkmale { display: block; margin-top: .3rem; font-size: .8rem; color: var(--slate); }
.tl-tag--treffer { background: var(--yellow-050); color: #7A5B00; }
.tl-angebot { grid-template-columns: 7.5rem minmax(9rem, auto); }
.tl-lagerbox { display: flex; flex-wrap: wrap; gap: .3rem; }
.tl-lager {
  font-size: .78rem; padding: .2rem .5rem; border-radius: 6px;
  background: #E7F7EC; color: #14622F; white-space: nowrap;
}
.tl-lager b { font-weight: 800; }
.tl-lager--leer { background: #FDEBE8; color: #92251B; }
.tl-item--aus { opacity: .7; }
.tl-ohnepreis { color: var(--slate); }
.tl-angebot .tl-kaufen { grid-column: 1 / -1; justify-self: start; }

/* --- Aktiver Warenkorb in der Kopfzeile + Auswahl beim Ueberfahren ---------- */
.shop-korb { position: relative; display: flex; align-items: center; }
.shop-korb__link { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.shop-korb__name {
  max-width: 14rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  padding: .3rem .7rem; border-radius: 99px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line-dark);
  color: var(--white); font-weight: 700; font-size: .85rem;
}
.shop-korb__link:hover .shop-korb__name { border-color: var(--yellow-500); }
.shop-korb__menue {
  position: absolute; top: calc(100% + 18px); right: 0; z-index: 120;
  min-width: 270px; max-width: 340px; padding: .6rem;
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
/* unsichtbare Bruecke zwischen Symbol und Menue, damit es beim Herunterfahren offen bleibt */
.shop-korb__menue::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.shop-korb--mehr:hover .shop-korb__menue,
.shop-korb--mehr:focus-within .shop-korb__menue {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.shop-korb__titel {
  margin: .2rem .5rem .4rem; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; color: var(--slate);
}
.shop-korb__menue ul { list-style: none; margin: 0; padding: 0; }
.shop-korb__eintrag {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: .8rem;
  padding: .55rem .6rem; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font: 600 .95rem var(--font); color: var(--ink); text-align: left;
}
.shop-korb__eintrag span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.shop-korb__eintrag b {
  flex-shrink: 0; min-width: 1.6rem; padding: 0 .4rem; border-radius: 99px;
  background: var(--petrol-050); color: var(--petrol-700); font-size: .8rem; text-align: center;
}
.shop-korb__eintrag:hover { background: var(--petrol-050); }
.shop-korb__eintrag.is-aktiv { background: var(--yellow-050); cursor: default; }
.shop-korb__eintrag.is-aktiv b { background: var(--yellow-500); color: var(--ink); }
.shop-korb__neu {
  display: block; margin-top: .3rem; padding: .55rem .6rem; border-top: 1px solid var(--line);
  color: var(--petrol-700); font-weight: 700; font-size: .9rem; text-decoration: none;
}
.shop-korb__neu:hover { text-decoration: underline; }
@media (max-width: 680px) {
  .shop-korb__name { max-width: 7rem; font-size: .75rem; padding: .2rem .5rem; }
  .shop-korb__menue { right: -.5rem; min-width: 240px; }
}
/* Warengruppe als gerahmtes Etikett – etwas groesser als die kleinen Tags */
.tl-warengruppe {
  display: inline-block; margin-top: .45rem; padding: .22rem .7rem;
  border: 1.5px solid var(--petrol-200); border-radius: 8px;
  background: var(--petrol-050); color: var(--petrol-800);
  font-size: .95rem; font-weight: 700; line-height: 1.3;
}

/* --- PKW-Teile: Suchart + Fahrzeugsuche ----------------------------------- */
.tl-modus { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 1rem; background: var(--petrol-050);
  border: 1px solid var(--petrol-100); border-radius: 12px; }
.tl-modus-btn { border: 0; background: transparent; padding: .55rem 1.1rem; border-radius: 9px; cursor: pointer;
  font: 600 .95rem var(--font); color: var(--petrol-700); min-height: 40px; }
.tl-modus-btn.is-aktiv { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 55, 71, .15); }
.tl-modus-btn:focus-visible { outline: 2px solid var(--petrol-700); outline-offset: 2px; }
.fz-tipp { color: var(--slate); font-size: .88rem; margin: -.4rem 0 1rem; }
.fz-typen { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 8px; }
.fz-typ { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: .7rem 1rem;
  background: #fff; border: 1.5px solid var(--petrol-100); border-radius: 10px; cursor: pointer; font: 400 .95rem var(--font); color: var(--ink); }
.fz-typ:hover, .fz-typ:focus-visible { border-color: var(--petrol-700); background: var(--petrol-050); outline: none; }
.fz-typ span { color: var(--slate); font-size: .85rem; }
.fz-auswahl { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem;
  padding: .8rem 1rem; margin: 0 0 1rem; background: #fff; border: 1.5px solid var(--petrol-700); border-radius: 12px; }
.fz-auswahl > div { display: flex; flex-direction: column; min-width: 0; }
.fz-auswahl-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); font-weight: 600; }
.fz-daten { color: var(--slate); font-size: .88rem; }
.fz-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1rem; }
.fz-chip { border: 1.5px solid var(--petrol-100); background: #fff; color: var(--petrol-700); border-radius: 999px;
  padding: .4rem .85rem; font: 600 .88rem var(--font); cursor: pointer; min-height: 36px; }
.fz-chip:hover { border-color: var(--petrol-700); }
.fz-chip.is-aktiv { background: var(--petrol-700); border-color: var(--petrol-700); color: #fff; }
.fz-chips--klein .fz-chip { font-size: .82rem; padding: .3rem .7rem; min-height: 32px; }
.fz-chips--klein .fz-chip.is-aktiv { background: var(--yellow-500); border-color: var(--yellow-500); color: var(--ink); }
.fz-mehr-wrap { text-align: center; margin: 1rem 0; }
.tl-tag--eigen { background: #E7F7EC; color: #14622F; font-weight: 700; }
/* hidden muss gegen display:flex/grid der Bausteine gewinnen */
#tl-form[hidden], #fz-bereich[hidden], #fz-form[hidden], .fz-auswahl[hidden], .fz-chips[hidden], .fz-tipp[hidden],
#fz-mehr[hidden], #tl-filter[hidden] { display: none !important; }
.tl-lager--eigen { background: #E7F7EC; color: #14622F; }

/* Fahrzeugsuche: drei Suchfelder + Auswahl per Dropdown */
.fz-suche { margin: 0 0 1rem; }
.fz-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .fz-raster { grid-template-columns: 1fr; } }
.fz-feld { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: #fff;
  border: 1px solid var(--petrol-100); border-radius: 12px; margin: 0; }
.fz-feld label { font: 700 .78rem var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--petrol-700); }
.fz-feld input { font: 500 1rem var(--font); padding: .6rem .75rem; min-height: 44px; border: 1.5px solid #C3D3DA;
  border-radius: 8px; width: 100%; background: #fff; color: var(--ink); }
.fz-feld input:focus { outline: 2px solid var(--petrol-700); outline-offset: 0; border-color: var(--petrol-700); }
.fz-feld small { color: var(--slate); font-size: .8rem; }
.fz-feld .btn { margin-top: auto; min-height: 42px; }
.fz-kba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fz-kba input { text-transform: uppercase; letter-spacing: .08em; }
#fz-vin { text-transform: uppercase; letter-spacing: .04em; }
.fz-dropdowns { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 10px 12px; align-items: end;
  margin-top: 12px; padding: 14px 16px; background: var(--petrol-050); border: 1px solid var(--petrol-100); border-radius: 12px; }
@media (max-width: 860px) { .fz-dropdowns { grid-template-columns: 1fr; } }
.fz-oder { font-weight: 700; color: var(--petrol-700); padding-bottom: .7rem; white-space: nowrap; }
.fz-dropdowns label { display: flex; flex-direction: column; gap: 4px; font: 700 .78rem var(--font); text-transform: uppercase;
  letter-spacing: .06em; color: var(--petrol-700); min-width: 0; }
.fz-dropdowns select { font: 500 .95rem var(--font); min-height: 44px; padding: .5rem .6rem; border: 1.5px solid #C3D3DA;
  border-radius: 8px; background: #fff; color: var(--ink); width: 100%; text-transform: none; letter-spacing: 0; }
.fz-dropdowns select:disabled { opacity: .55; }

/* --- Teileliste: Abschnitte je Warengruppe ---------------------------------- */
.fz-abschnitt { list-style: none; margin: 1.4rem 0 .4rem; padding: 0 0 .4rem; border-bottom: 2px solid var(--petrol-100); scroll-margin-top: 140px; }
.fz-abschnitt h3 { margin: 0; font-size: 1.15rem; color: var(--petrol-700); }
.fz-abschnitt h3 small { font: 500 .85rem var(--font); color: var(--slate); margin-left: .4rem; }
.fz-hinweis { color: var(--slate); margin: .4rem 0 0; font-size: .9rem; }
.fz-abschnitt-fuss { list-style: none; text-align: center; margin: .6rem 0 1rem; }
.fz-skelett { display: grid; gap: 8px; margin-top: 10px; }
.fz-skelett span { display: block; height: 84px; border-radius: 12px;
  background: linear-gradient(90deg, var(--petrol-050) 0%, #fff 50%, var(--petrol-050) 100%); background-size: 200% 100%;
  animation: fz-schimmer 1.2s linear infinite; }
@keyframes fz-schimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .fz-skelett span { animation: none; } }

/* Artikelkarte: Bild und Nummer oeffnen die Details */
.tl-bildknopf { position: relative; border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 10px; align-self: start; }
.tl-bildknopf--leer { cursor: pointer; }
.tl-bildknopf:focus-visible, .tl-titel:focus-visible { outline: 2px solid var(--petrol-700); outline-offset: 2px; }
.tl-lupe { position: absolute; right: 4px; bottom: 4px; width: 22px; height: 22px; border-radius: 6px; background: rgba(16, 40, 51, .7);
  color: #fff; font-size: 13px; line-height: 22px; text-align: center; opacity: 0; transition: opacity .15s; }
.tl-bildknopf:hover .tl-lupe, .tl-bildknopf:focus-visible .tl-lupe { opacity: 1; }
.tl-titel { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.tl-titel:hover { text-decoration: underline; color: var(--petrol-700); }

/* Detailansicht mit Galerie */
.tl-detail-dlg { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(16, 40, 51, .35); }
.tl-detail-dlg::backdrop { background: rgba(11, 40, 51, .55); }
.tl-det-x { position: absolute; right: 10px; top: 8px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: #fff; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
.tl-det-raster { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
@media (max-width: 760px) { .tl-det-raster { grid-template-columns: 1fr; } }
.tl-galerie { background: #F6F8F9; padding: 20px; }
.tl-gal-buehne { position: relative; display: flex; align-items: center; justify-content: center; min-height: 340px; background: #fff;
  border-radius: 12px; }
.tl-gal-buehne img { max-width: 100%; max-height: 60vh; object-fit: contain; }
.tl-gal-pfeil { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--petrol-100); background: #fff; font-size: 28px; line-height: 1; cursor: pointer; color: var(--petrol-700); }
.tl-gal-pfeil--l { left: 8px; } .tl-gal-pfeil--r { right: 8px; }
.tl-gal-pfeil:hover { background: var(--petrol-050); }
.tl-gal-zaehler { text-align: center; color: var(--slate); font-size: .85rem; margin: .5rem 0; min-height: 1.2em; }
.tl-gal-daumen { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.tl-gal-daumen button { width: 58px; height: 58px; padding: 3px; border: 2px solid transparent; border-radius: 8px; background: #fff; cursor: pointer; }
.tl-gal-daumen button.is-aktiv { border-color: var(--petrol-700); }
.tl-gal-daumen img { width: 100%; height: 100%; object-fit: contain; }
.tl-det-info { padding: 24px 22px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.tl-det-info h2 { margin: 0; font-size: 1.4rem; }
.tl-det-merkmale { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .9rem; }
.tl-det-merkmale li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--petrol-050); }
.tl-det-merkmale span { color: var(--slate); }
.tl-det-preis { font: 800 1.5rem var(--font); color: var(--ink); }
.tl-det-preis small { font-size: .8rem; font-weight: 500; color: var(--slate); }

/* --- Grafische Fahrzeugauswahl (Kacheln) ------------------------------------- */
.fz-marken { margin-top: 12px; padding: 14px 16px; background: var(--petrol-050); border: 1px solid var(--petrol-100); border-radius: 12px; }
.fz-marken-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.fz-marken-kopf strong { color: var(--petrol-700); margin-right: auto; }
.fz-marken-kopf input { min-height: 40px; padding: .4rem .7rem; border: 1.5px solid #C3D3DA; border-radius: 8px; font: 500 .95rem var(--font); width: 220px; max-width: 100%; }
.fz-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.fz-kachel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px; padding: 10px 6px;
  background: #fff; border: 1.5px solid var(--petrol-100); border-radius: 10px; cursor: pointer; font: 600 .85rem var(--font);
  color: var(--ink); text-align: center; }
.fz-kachel:hover, .fz-kachel:focus-visible { border-color: var(--petrol-700); box-shadow: 0 2px 8px rgba(16, 55, 71, .12); outline: none; }
.fz-kachel img { max-width: 78px; max-height: 46px; object-fit: contain; }
.fz-kachel small { color: var(--slate); font-weight: 500; font-size: .75rem; }
.fz-kacheln--modelle { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.fz-kachel--modell img { max-width: 130px; max-height: 70px; }
.fz-wahl-dlg { width: min(1000px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(16, 40, 51, .35); }
.fz-wahl-dlg::backdrop { background: rgba(11, 40, 51, .55); }
.fz-wahl-kopf { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 60px 14px 18px;
  background: #fff; border-bottom: 1px solid var(--petrol-100); }
.fz-wahl-kopf h2 { margin: 0; font-size: 1.2rem; flex: 1 1 240px; }
.fz-wahl-kopf input { min-height: 40px; padding: .4rem .7rem; border: 1.5px solid #C3D3DA; border-radius: 8px; font: 500 .95rem var(--font); width: 220px; }
.fz-wahl-kopf .tl-det-x { top: 10px; }
.fz-wahl-inhalt { padding: 16px 18px 22px; }
.fz-wahl-gruppe { margin-bottom: 16px; }
.fz-wahl-gruppe h3 { margin: 0 0 8px; font-size: .95rem; color: var(--petrol-700); }
.fz-typen--wahl { margin: 0; }

/* --- Einbauposition: Fahrzeug von oben ---------------------------------------- */
.fz-einbau { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; grid-column: 1 / -1; padding: 10px 12px;
  background: #fff; border: 1px solid var(--petrol-100); border-radius: 12px; }
.fz-einbau[hidden] { display: none !important; }
.fz-einbau-titel { font: 700 .78rem var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--petrol-700); }
.fz-einbau-info { display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.fz-einbau-info .bv-dialog-cancel { margin-left: 6px; }

/* Kachel: Alternativen */
.tl-alt { border: 0; background: none; padding: 4px 0; margin-top: 4px; font: 600 .85rem var(--font); color: var(--petrol-700);
  text-decoration: underline; cursor: pointer; }
.tl-alt:hover { color: var(--ink); }

/* --- Artikelfenster (Detail/Suche mit Verlauf) -------------------------------- */
.tl-detail-dlg { display: none; flex-direction: column; }
.tl-detail-dlg[open] { display: flex; }
.tl-fenster-kopf { display: flex; align-items: center; gap: 10px; padding: 10px 56px 10px 12px; border-bottom: 1px solid var(--petrol-100);
  background: #fff; min-height: 58px; position: relative; flex: none; }
.tl-fenster-kopf .tl-det-x { top: 9px; }
.tl-fenster-zurueck { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--petrol-100); background: #fff; font-size: 26px;
  line-height: 1; cursor: pointer; color: var(--petrol-700); flex: none; }
.tl-fenster-zurueck:hover { background: var(--petrol-050); }
.tl-fenster-titel { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-fenster-inhalt { overflow-y: auto; flex: 1; }
.tl-det-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-det-oe h3 { margin: .6rem 0 .2rem; font-size: 1rem; color: var(--petrol-700); }
.tl-oe-marke { display: grid; grid-template-columns: 90px 1fr; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--petrol-050); font-size: .88rem; }
.tl-oe-marke > span { color: var(--slate); font-weight: 600; }
.tl-oe-marke > div { display: flex; flex-wrap: wrap; gap: 4px; }
.tl-oe-nr { border: 1px solid var(--petrol-100); background: #fff; border-radius: 6px; padding: 2px 8px; font: 600 .85rem var(--font);
  color: var(--petrol-700); cursor: pointer; }
.tl-oe-nr:hover { border-color: var(--petrol-700); background: var(--petrol-050); }
.tl-fenster-suche { padding: 14px 18px 20px; }
.tl-fenster-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tl-fk { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 8px 10px;
  border: 1px solid var(--petrol-100); border-radius: 10px; background: #fff; }
.tl-fk-detail { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; flex: 1 1 260px; min-width: 0; }
.tl-fk-detail img, .tl-fk-detail > span:first-child { width: 64px; height: 64px; object-fit: contain; flex: none; }
.tl-fk-text { display: flex; flex-direction: column; min-width: 0; }
.tl-fk-detail:hover strong { text-decoration: underline; }
.tl-fk-rechts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.tl-fk-preis { font-weight: 800; }
/* Einbauort: Grafik aus allrad_svg.zip (grau #A1A1A1), Hover dunkler, Auswahl gelb */
.fz-auto { width: 68px; height: 98px; flex: none; overflow: visible; }
.fz-auto-achse, .fz-auto-rad { cursor: pointer; outline: none; }
.fz-auto-achse rect, .fz-auto-rad { fill: #A1A1A1; transition: fill .12s; }
.fz-auto-achse path { fill: none; stroke: #A1A1A1; stroke-width: 4; stroke-linecap: round; transition: stroke .12s; }
.fz-auto-achse rect.fz-auto-treffer { fill: transparent; }
.fz-auto-achse:hover rect:not(.fz-auto-treffer), .fz-auto-rad:hover { fill: #6F6F6F; }
.fz-auto-achse:hover path { stroke: #6F6F6F; }
.fz-auto-achse.is-aktiv rect:not(.fz-auto-treffer), .fz-auto-rad.is-aktiv { fill: var(--yellow-500); }
.fz-auto-achse.is-aktiv path { stroke: var(--yellow-500); }
.fz-auto-achse:focus-visible rect:not(.fz-auto-treffer), .fz-auto-rad:focus-visible { stroke: var(--petrol-700); stroke-width: 1.2; }
.fz-auto-label { font: 600 5.5px var(--font); fill: #8A8A8A; letter-spacing: .04em; }

/* PKW-Teile: Filter als Seitenleiste links (wie im AP-Katalog), Ergebnisse rechts */
.tl-layout { display: flex; gap: 24px; align-items: flex-start; }
.tl-haupt { flex: 1 1 auto; min-width: 0; }
.tl-filter { flex: 0 0 250px; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px; padding: 14px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); }
.tl-filter[hidden] { display: none; }
.tl-filter-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tl-filter-kopf strong { font: 700 1rem var(--font); color: var(--ink); }
.tl-filter-reset { border: 0; border-radius: 999px; padding: 5px 11px; cursor: pointer;
  background: var(--petrol-050); color: var(--petrol-700); font: 600 .8rem var(--font); }
.tl-filter-reset:hover { background: var(--petrol-100); }
.tl-filter-reset::before { content: "× "; font-weight: 700; }
.tl-fgruppe { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line);
  font: 700 .74rem var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--slate); }
.tl-fgruppe select { min-height: 40px; padding: .4em .6em; border: 1.5px solid #C3D3DA; border-radius: var(--radius);
  font: 400 .95rem/1.4 var(--font); color: var(--ink); background: var(--white); text-transform: none; letter-spacing: 0; }
.tl-fgruppe-kopf { display: flex; align-items: baseline; justify-content: space-between; }
.tl-fgruppe-kopf h4 { margin: 0; font: inherit; color: inherit; }
.tl-link { border: 0; background: none; padding: 0; cursor: pointer; color: var(--petrol-600);
  font: 600 .8rem var(--font); text-transform: none; letter-spacing: 0; text-decoration: underline; text-underline-offset: 2px; }
.tl-link[hidden] { display: none; }
.tl-herst-suche { min-height: 36px; padding: .35em .6em; border: 1.5px solid #C3D3DA; border-radius: var(--radius);
  font: 400 .9rem var(--font); text-transform: none; letter-spacing: 0; }
.tl-herst-suche[hidden] { display: none; }
.tl-herst-liste { display: flex; flex-direction: column; text-transform: none; letter-spacing: 0; }
.tl-herst { display: flex; align-items: center; gap: 8px; padding: 4px 6px; margin: 0 -6px; border-radius: 6px;
  cursor: pointer; font: 400 .93rem var(--font); color: var(--ink); }
.tl-herst[hidden] { display: none; }
.tl-herst:hover { background: var(--petrol-050); }
.tl-herst input { width: 17px; height: 17px; margin: 0; flex: none; accent-color: var(--petrol-700); cursor: pointer; }
.tl-herst-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-herst-zahl { font-size: .8rem; color: var(--slate); font-variant-numeric: tabular-nums; }
.tl-herst input:checked ~ .tl-herst-name { font-weight: 700; }
.tl-herst.is-leer { color: #9AAEB7; }
.tl-herst-mehr { align-self: flex-start; margin-top: 2px; }
.tl-filter .fz-einbau { padding: 0; border: 0; background: none; flex-direction: column; align-items: flex-start; gap: 8px; }
.tl-filter > .bv-check { padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .tl-layout { flex-direction: column; }
  .tl-filter { position: static; max-height: none; width: 100%; flex-basis: auto; }
}
.tl-filter .bv-check[hidden] { display: none; }
.tl-fgruppe[hidden] { display: none; }

/* ===== PKW-Teile: linke Spalte (Fahrzeug, Meine Fahrzeuge, Filter) + Teile rechts ===== */
.container:has(.tl-seite) { max-width: 1720px; }
.tl-seite { display: flex; gap: 22px; align-items: flex-start; }
.tl-haupt { flex: 1 1 auto; min-width: 0; }
.tl-links { flex: 0 0 clamp(250px, 18%, 320px); display: flex; flex-direction: column; gap: 12px;
  position: sticky; top: calc(var(--kopf-h, 0px) + 12px); max-height: calc(100vh - var(--kopf-h, 0px) - 24px);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.tl-links:not(:has(> :not([hidden]))) { display: none; }
.tl-links > .tl-filter { position: static; max-height: none; overflow: visible; flex: none; }
.wf-box[hidden], .fz-extra[hidden], .fz-kennz[hidden], .fz-nav[hidden], .tl-vorgabe[hidden] { display: none !important; }

/* Gewaehltes Fahrzeug als Karte */
.tl-links .fz-auswahl { flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 12px 14px; }
.tl-links .fz-auswahl strong { font-size: 1rem; line-height: 1.3; }
.fz-auswahl-knoepfe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.fz-auswahl-knoepfe .bv-dialog-cancel { padding: .35rem .8rem; min-height: 34px; font-size: .85rem; }
.fz-kennz { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; padding: 1px 8px 1px 0;
  border: 1.5px solid #1b1b1b; border-radius: 4px; background: #fff; color: #111;
  font: 700 .86rem/1.5 var(--font); letter-spacing: .04em; white-space: nowrap; }
.fz-kennz::before { content: ""; width: 7px; align-self: stretch; background: #1F4FA8; border-radius: 2px 0 0 2px; }
.fz-extra { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 6px 0 0; font-size: .84rem; }
.fz-extra dt { color: var(--slate); font-weight: 600; }
.fz-extra dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); }

/* Meine Fahrzeuge */
.wf-box { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); }
.wf-box h4 { margin: 0; font: 700 .74rem var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--slate); }
.wf-anzahl { font-size: .78rem; color: var(--slate); }
.wf-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; scrollbar-width: thin; }
.wf-liste .fz-hinweis { font-size: .84rem; margin: 2px 0; }
.wf-eintrag { display: flex; align-items: center; gap: 4px; border-radius: 6px; }
.wf-eintrag:hover { background: var(--petrol-050); }
.wf-eintrag.is-aktiv { background: #FFF6CC; }
.wf-waehlen { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px;
  border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.wf-bez { font-size: .8rem; color: var(--slate); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-bearb { flex: none; width: 30px; height: 30px; border: 0; border-radius: 6px; background: none; cursor: pointer; color: var(--slate); font-size: 1rem; }
.wf-bearb:hover { background: var(--petrol-100); color: var(--petrol-700); }
.wf-dlg { border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); padding: clamp(1.2rem, 4vw, 2rem);
  width: min(520px, calc(100vw - 2rem)); }
.wf-dlg::backdrop { background: rgba(11, 40, 51, .55); }
.wf-dlg textarea { width: 100%; padding: .6em .8em; border: 1.5px solid #C3D3DA; border-radius: var(--radius); font: 400 1rem/1.4 var(--font); resize: vertical; }
.wf-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.wf-zwei > div { display: flex; flex-direction: column; }
.wf-loeschen { margin-right: auto; color: #B42318; }

/* Fahrzeugfilter (PR-Nummer, Motorcode, Ausstattung …) */
.tl-fzfilter { display: contents; }
.tl-vorgabe { margin: -2px 0 0; font: 600 .74rem var(--font); color: #8A6D00; text-transform: none; letter-spacing: 0; }
.tl-herst--ohne .tl-herst-name { font-style: italic; color: var(--slate); }
.tl-fzinfo { display: inline-block; align-self: flex-start; margin: 3px 0 1px; padding: 2px 8px; border-radius: 5px;
  background: #FFF6CC; color: #5C4700; font: 600 .8rem/1.45 var(--font); }

/* Teilegruppen flacher, Warengruppen-Leiste bleibt beim Scrollen oben stehen */
.fz-chips--gruppen { gap: 4px; margin-bottom: .6rem; }
.fz-chips--gruppen .fz-chip { font-size: .8rem; padding: .22rem .65rem; min-height: 28px; border-width: 1px; }
.fz-nav { position: sticky; top: var(--kopf-h, 0px); z-index: 60; margin: 0 0 .8rem; padding: 6px 0;
  background: var(--paper); border-bottom: 1px solid var(--line); }
.fz-nav .fz-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0; padding-bottom: 2px; scrollbar-width: thin; }
.fz-nav .fz-chip { flex: none; font-size: .78rem; padding: .18rem .6rem; min-height: 26px; border-width: 1px; }
.fz-abschnitt { scroll-margin-top: calc(var(--kopf-h, 0px) + 52px); }

@media (max-width: 860px) {
  .tl-seite { flex-direction: column; }
  .tl-links { position: static; max-height: none; overflow: visible; flex-basis: auto; width: 100%; }
  .wf-zwei { grid-template-columns: 1fr; }
}

/* Teileliste nach Hersteller gruppiert: Zwischenueberschrift je Hersteller */
.tl-hgruppe { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 -2px; padding: 0 2px 4px;
  border-bottom: 2px solid var(--petrol-100); font: 700 .86rem var(--font); letter-spacing: .04em;
  text-transform: uppercase; color: var(--petrol-800); }
.tl-hgruppe small { font-weight: 600; color: var(--slate); letter-spacing: 0; }
.fz-abschnitt + .tl-hgruppe { margin-top: 4px; }
/* Kopfzeile ueber der Liste: Trefferzahl links, Sortieren rechts */
.tl-listenkopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tl-listenkopf .bv-status { margin: 0; }
.tl-sortieren { display: flex; align-items: center; gap: 8px; font: 600 .82rem var(--font); color: var(--slate); }
.tl-sortieren[hidden] { display: none; }
.tl-sortieren select { min-height: 34px; padding: .25em .5em; border: 1.5px solid #C3D3DA; border-radius: var(--radius);
  font: 400 .9rem var(--font); color: var(--ink); background: #fff; }
/* Filterleiste: "Nur verfuegbare" oben, Einbauort als eigener Abschnitt */
.tl-filter > .bv-check.tl-verf { padding-top: 0; border-top: 0; }
.tl-filter .fz-einbau { padding-top: 14px; border-top: 1px solid var(--line); border-radius: 0; }

/* Warenkorb: Filterwerte am gespeicherten Fahrzeug merken */
.tl-merken { align-items: flex-start; margin: .6rem 0 0; padding: 8px 10px; border-radius: 8px; background: #FFF6CC;
  font-size: .88rem; line-height: 1.4; color: #5C4700; }
.tl-merken[hidden] { display: none; }
.tl-merken input { margin-top: 2px; }
/* Bearbeiten-Dialog: gemerkte Filterwerte */
.wf-attr { margin: .8rem 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--petrol-050); }
.wf-attr[hidden] { display: none; }
.wf-attr-titel { font: 700 .74rem var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--slate); }
.wf-attr ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wf-attr li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .9rem; }
.wf-attr-x { border: 0; background: none; cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--slate); padding: 2px 6px; border-radius: 4px; }
.wf-attr-x:hover { background: var(--petrol-100); color: #B42318; }
.wf-attr .hint { margin: 6px 0 0; font-size: .8rem; }
/* 48h-Lager: Warnfarbe, Lieferung nicht am naechsten Tag */
.tl-lager--48h { background: #FFE2B8; color: #8A3D00; box-shadow: inset 0 0 0 1.5px #F59E0B; }

/* Warenkorb: Abholung oder Lieferung */
.wk-uebergabe { border: 1px solid var(--line, #D5E1E6); border-radius: 10px; padding: 10px 14px 12px; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.wk-uebergabe legend { font-weight: 600; padding: 0 6px; }
.wk-uebergabe__wahl { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.wk-uebergabe__wahl input { width: 18px; height: 18px; accent-color: #18536A; }
