.tl-seite { padding: 24px clamp(16px, 4vw, 48px) 40px; }
.tl-titel {
  font-family: var(--schrift-titel); font-style: var(--titel-stil); letter-spacing: var(--titel-abstand);
  font-size: clamp(28px, 5vw, 48px); line-height: 1; margin: 8px 0 16px; text-transform: uppercase;
}
.tl-filter { margin: 0 0 8px; }
.tl-filter select { font: inherit; font-size: 15px; padding: 10px 12px; border: 2px solid var(--tinte); border-radius: var(--radius); background: #fff; color: var(--tinte); }
.tl-jahr { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--grau); }

/* Jahresleiste */
.tl-jahre { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.tl-jahre button {
  font: inherit; font-size: 13px; padding: 4px 9px; cursor: pointer;
  border: 1px solid var(--linie); border-radius: var(--radius); background: var(--karton); color: var(--tinte);
}
.tl-jahre button:hover, .tl-jahre button.aktiv { background: var(--tinte); color: var(--wand); border-color: var(--tinte); }

/* Zeitleiste */
.tl-rahmen { position: relative; }
.tl-scroller {
  overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; cursor: grab;
  padding: 0 0 12px; outline: none; -webkit-overflow-scrolling: touch;
}
.tl-scroller.zieht { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.tl-spur {
  position: relative; display: grid; grid-auto-flow: column; grid-template-rows: 300px 64px 300px;
  grid-auto-columns: 132px; column-gap: 0; padding: 0 60px; width: max-content;
}
.tl-spur::before { /* die Linie */
  content: ""; position: absolute; left: 0; right: 0; top: calc(300px + 31px); height: 3px; background: var(--tinte);
}

/* Jahresmarke auf der Linie */
.tl-jahrmarke {
  grid-row: 2; align-self: center; justify-self: start; position: relative; z-index: 1;
  font-family: var(--schrift-titel); font-weight: 700; font-size: 18px; letter-spacing: var(--titel-abstand);
  background: var(--tinte); color: var(--wand); padding: 4px 10px; border-radius: var(--radius); white-space: nowrap;
  scroll-margin-left: 60px;
}
.tl-jahrmarke.upc { background: #e4572e; }

/* Karte */
.tl-eintrag { position: relative; display: flex; flex-direction: column; width: 250px; }
.tl-eintrag.oben { grid-row: 1; justify-content: flex-end; padding-bottom: 14px; }
.tl-eintrag.unten { grid-row: 3; justify-content: flex-start; padding-top: 14px; }
.tl-eintrag::after { /* Verbindung zur Linie */
  content: ""; position: absolute; left: 24px; width: 2px; height: 14px; background: var(--tinte);
}
.tl-eintrag.oben::after { bottom: 0; }
.tl-eintrag.unten::after { top: 0; }
.tl-eintrag::before { /* Punkt auf der Linie */
  content: ""; position: absolute; left: 19px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--karton); border: 3px solid var(--tinte); z-index: 2;
}
.tl-eintrag.oben::before { bottom: -38px; }
.tl-eintrag.unten::before { top: -38px; }
.tl-eintrag.upc::before { border-color: #e4572e; }

.tl-karte {
  font: inherit; text-align: left; color: inherit; cursor: pointer; padding: 0;
  display: block; width: 100%; background: var(--karton); border: 1px solid var(--linie);
  border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease;
}
.tl-karte:hover, .tl-karte:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.tl-eintrag.unten .tl-karte:hover { transform: translateY(2px); }
.tl-bild { aspect-ratio: 16 / 10; background: #fff; display: flex; align-items: center; justify-content: center; }
.tl-bild img { width: 100%; height: 100%; object-fit: contain; }
.tl-bild.leer span { font-size: 12px; color: var(--grau); }
.tl-text { padding: 8px 10px 10px; border-top: 1px solid var(--linie); }
.tl-datum { font-family: var(--schrift-titel); font-weight: 700; font-size: 15px; }
.tl-modell { font-size: 12px; color: var(--grau); text-transform: uppercase; letter-spacing: .03em; margin-top: 2px; }
.tl-name { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-sku { font-family: var(--mono); font-size: 12px; color: var(--grau); margin-top: 4px; }
.tl-text .badge { margin-top: 4px; display: inline-block; }

/* Pfeile */
.tl-pfeil {
  position: absolute; top: 309px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--tinte); background: var(--karton); color: var(--tinte); font-size: 26px; line-height: 1; cursor: pointer;
}
.tl-pfeil.links { left: -6px; }
.tl-pfeil.rechts { right: -6px; }
.tl-pfeil:disabled { opacity: .25; cursor: default; }
.tl-hinweis { font-size: 13px; color: var(--grau); margin-top: 6px; }
.tl-leer { padding: 60px 0; color: var(--grau); }

@media (max-width: 640px) {
  .tl-spur { grid-template-rows: 270px 56px 270px; grid-auto-columns: 118px; padding: 0 24px; }
  .tl-spur::before { top: calc(270px + 27px); }
  .tl-eintrag { width: 210px; }
  .tl-eintrag.oben::before { bottom: -34px; }
  .tl-eintrag.unten::before { top: -34px; }
  .tl-pfeil { display: none; }
}

/* Korrekturen v2 */
.tl-filter { position: static; margin: 0 0 8px; padding: 0; border: 0; }
.tl-jahrmarke { transform: translateX(calc(-100% - 4px)); margin-left: 19px; }
.tl-eintrag.oben::before { bottom: -41.5px; }
.tl-eintrag.unten::before { top: -40.5px; }
.tl-eintrag.oben::after { bottom: -32px; height: 46px; }
.tl-eintrag.unten::after { top: -32px; height: 46px; }
@media (max-width: 640px) {
  .tl-eintrag.oben::before { bottom: -37.5px; }
  .tl-eintrag.unten::before { top: -36.5px; }
  .tl-eintrag.oben::after { bottom: -28px; height: 42px; }
  .tl-eintrag.unten::after { top: -28px; height: 42px; }
}
/* v3/v4: einheitliche Kartenhöhe, Bild max. 150px, SKU immer sichtbar */
.tl-karte { height: 272px; display: flex; flex-direction: column; }
.tl-bild { aspect-ratio: auto; height: 150px; max-height: 150px; flex: 0 0 150px; }
.tl-bild img { max-height: 150px; }
.tl-text { flex: 1 1 auto; min-height: 0; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.tl-datum, .tl-modell { flex: 0 0 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-datum { padding-right: 70px; }
.tl-name { flex: 0 1 auto; min-height: 0; }
.tl-sku { flex: 0 0 auto; margin-top: auto; padding-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-text .badge { position: absolute; right: 8px; top: 8px; margin: 0; }
@media (max-width: 640px) { .tl-karte { height: 256px; } .tl-bild, .tl-bild img { height: 134px; max-height: 134px; flex-basis: 134px; } }

/* v5: Umschalter Ansicht */
.tl-ansicht { display: inline-flex; border: 2px solid var(--tinte); border-radius: var(--radius); overflow: hidden; margin-left: auto; }
.tl-ansicht button { font: inherit; font-size: 14px; padding: 9px 12px; border: 0; background: #fff; color: var(--tinte); cursor: pointer; }
.tl-ansicht button + button { border-left: 2px solid var(--tinte); }
.tl-ansicht button[aria-pressed="true"] { background: var(--tinte); color: var(--wand); }
.tl-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* v5: vertikale Timeline – Bild außen, Infos zur Mitte */
.tl-vertikal .tl-pfeil { display: none; }
.tl-vertikal .tl-scroller { overflow: visible; cursor: default; padding: 0; }
.tl-vertikal .tl-spur {
  grid-auto-flow: row; grid-template-rows: none; grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
  grid-auto-rows: 92px; grid-auto-columns: auto; width: auto; max-width: 1100px; margin: 0 auto; padding: 20px 0 40px;
}
.tl-vertikal .tl-spur::before { left: calc(50% - 1.5px); right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
.tl-vertikal .tl-eintrag { width: auto; display: flex; flex-direction: row; align-items: center; padding: 0; }
.tl-vertikal .tl-eintrag.links { justify-content: flex-end; padding-right: 22px; }
.tl-vertikal .tl-eintrag.rechts { justify-content: flex-start; padding-left: 22px; }
.tl-vertikal .tl-eintrag::after { top: calc(50% - 1px); width: 22px; height: 2px; left: auto; bottom: auto; }
.tl-vertikal .tl-eintrag.links::after { right: 0; }
.tl-vertikal .tl-eintrag.rechts::after { left: 0; }
.tl-vertikal .tl-eintrag::before { top: calc(50% - 9px); bottom: auto; }
.tl-vertikal .tl-eintrag.links::before { left: auto; right: -54px; }
.tl-vertikal .tl-eintrag.rechts::before { left: -54px; }
.tl-vertikal .tl-karte { height: 160px; width: 100%; max-width: 480px; flex-direction: row; }
.tl-vertikal .tl-eintrag.rechts .tl-karte { flex-direction: row-reverse; }
.tl-vertikal .tl-bild { flex: 0 0 46%; height: 100%; max-height: none; }
.tl-vertikal .tl-bild img { max-height: 150px; }
.tl-vertikal .tl-text { border-top: 0; border-left: 1px solid var(--linie); }
.tl-vertikal .tl-eintrag.links .tl-text { text-align: right; align-items: flex-end; }
.tl-vertikal .tl-eintrag.rechts .tl-text { border-left: 0; border-right: 1px solid var(--linie); }
.tl-vertikal .tl-eintrag.links .tl-datum { padding-right: 0; padding-left: 70px; }
.tl-vertikal .tl-eintrag.links .tl-text .badge { right: auto; left: 8px; }
.tl-vertikal .tl-eintrag.unten .tl-karte:hover, .tl-vertikal .tl-karte:hover { transform: translateY(-2px); }
.tl-vertikal .tl-jahrmarke { justify-self: center; align-self: start; transform: none; margin: 0; z-index: 3; }
@media (max-width: 760px) {
  .tl-vertikal .tl-spur { grid-template-columns: 0 40px minmax(0, 1fr); grid-auto-rows: auto; row-gap: 12px; }
  .tl-vertikal .tl-spur::before { left: 18px; }
  .tl-vertikal .tl-eintrag, .tl-vertikal .tl-eintrag.links, .tl-vertikal .tl-eintrag.rechts { grid-column: 3 !important; grid-row: auto !important; justify-content: flex-start; padding: 0 0 0 12px; }
  .tl-vertikal .tl-eintrag.links::after, .tl-vertikal .tl-eintrag.rechts::after { left: 0; right: auto; width: 12px; }
  .tl-vertikal .tl-eintrag.links::before, .tl-vertikal .tl-eintrag.rechts::before { left: -31px; right: auto; }
  .tl-vertikal .tl-eintrag.links .tl-karte { flex-direction: row-reverse; }
  .tl-vertikal .tl-eintrag.links .tl-text { text-align: left; align-items: stretch; border-right: 1px solid var(--linie); border-left: 0; }
  .tl-vertikal .tl-eintrag.links .tl-datum { padding-left: 0; padding-right: 70px; }
  .tl-vertikal .tl-eintrag.links .tl-text .badge { left: auto; right: 8px; }
  .tl-vertikal .tl-jahrmarke { grid-column: 3 !important; grid-row: auto !important; justify-self: start; margin-left: 12px; }
  .tl-vertikal .tl-karte { height: 130px; max-width: none; }
  .tl-vertikal .tl-bild { flex-basis: 42%; }
}

/* v6: Kopfbereich bleibt in beiden Ansichten oben stehen */
.tl-seite .tl-kopfbereich { position: sticky; top: var(--kopf, 56px); z-index: 6; background: var(--wand); padding: 10px 0 2px; margin: 0 -4px; padding-left: 4px; padding-right: 4px; border-bottom: 1px solid var(--linie); }
.tl-seite .tl-kopfbereich .treffer { margin: 6px 0; }
.tl-seite .tl-jahre { margin-bottom: 8px; }

/* v9: Kein Foto – wie im Archiv */
.tl-bild.leer { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #f6f4f0 0 10px, #eeece7 10px 20px); border: 2px dashed var(--linie); }
.tl-bild.leer span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grau); background: var(--karton); padding: 3px 8px; border-radius: 3px; }

/* Timeline: Filter auf dem Handy sichtbar lassen (das Archiv klappt sie dort ein) */
@media (max-width: 760px) { .toolbar.tl-filter > select { display: block; } }

/* Handy: Filter- und Jahresbereich nicht festkleben – er wäre höher als der halbe Bildschirm und verdeckt die Timeline */
@media (max-width: 760px) { .tl-seite .tl-kopfbereich { position: static; border-bottom: 0; } }
