/* Zeitstrahl-Block (site/plugins/timeline-block)
   Senkrechter Zeitstrahl: links die Jahreszahl, in der Mitte Linie mit Punkt, rechts die Karte.
   Ist der Block schmal (Spalte im Layout oder Telefon), rückt die Jahreszahl über die Karte.

   Alle Selektoren beginnen mit ".tl " und sind damit spezifischer als die globalen
   ".text …"-Regeln aus index.css (Listen, Überschriften, Absätze). */

.tl {
  --tl-green: var(--color-green, #A2C62C);
  --tl-accent: var(--color-turq, #0a9d87);
  --tl-accent-ink: var(--tl-accent);          /* dunkler, für kleinen Text auf Weiß */
  --tl-soft: #e4f5f1;
  --tl-line: #cfe3df;
  --tl-muted: #55676a;
  --tl-surface: #fff;
  --tl-dot-top: .85rem;
  container-type: inline-size;
  margin: 0;
}

/* Kopfbereich */
.tl .tl-intro { display: grid; gap: .75rem; margin: 0 0 2.5rem; }
.tl .tl-eyebrow {
  margin: 0;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tl-accent-ink);
}
.tl .tl-heading {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.15;
  font-weight: 600;
  text-wrap: balance;
}
.tl .tl-lead { margin: 0; max-width: 60ch; color: var(--tl-muted); }
.tl .tl-toggle-all {
  justify-self: start;
  min-height: 44px;
  margin-top: .5rem;
  padding: .5rem 1rem;
  background: var(--tl-green);
  color: #fff;
  font-weight: 600;
  font-size: .9375rem;
}
.tl .tl-toggle-all[hidden] { display: none; }
.tl .tl-toggle-all:hover { border-color: var(--tl-accent); }

/* Zeitstrahl */
.tl .tl-list { list-style: none; margin: 0; padding: 0; }
.tl .tl-entry {
  display: grid;
  grid-template-columns: 11rem 2.5rem minmax(0, 1fr);
  grid-template-areas: "year rail card";
  align-items: start;
  margin: 0;
  list-style: none;
}
.tl .tl-entry:last-child { padding-bottom: 0; }

.tl .tl-year { grid-area: year; text-align: right; padding: .2rem .25rem 0 0; }
.tl .tl-y {
  display: block;
  font-family: var(--font-family-headlines, Georgia, serif);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--tl-accent-ink);
  font-variant-numeric: lining-nums tabular-nums;
}
.tl .tl-what {
  display: block;
  margin-top: .35rem;
  font-size: .875rem;
  line-height: 1.35;
  color: var(--tl-muted);
  text-wrap: balance;
}

.tl .tl-rail { grid-area: rail; align-self: stretch; position: relative; }
.tl .tl-rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--tl-line);
}
.tl .tl-rail::after {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--tl-dot-top);
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--tl-accent);
  box-shadow: 0 0 0 4px var(--color-background, #fff);
}
.tl .tl-entry:first-child .tl-rail::before { top: calc(var(--tl-dot-top) + 7px); }
.tl .tl-entry:last-child .tl-rail::before { bottom: auto; height: calc(var(--tl-dot-top) + 7px); }
.tl .tl-entry:only-child .tl-rail::before { display: none; }

/* Projektkarte */
.tl .tl-card {
  grid-area: card;
  min-width: 0;
  padding: 0 1.25rem;
  background: var(--tl-surface);
  /* border: 1px solid var(--tl-line); */
  border-radius: 6px;
  margin-bottom: 2rem;
}
.tl .tl-topic {
  margin: 0;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--tl-green);
}
.tl .tl-title {
  margin: .25rem 0 0;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}
.tl .tl-teaser { margin: .6rem 0 0; max-width: 65ch; }

.tl .tl-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  margin: 1rem 0 0;
  padding: .85rem 1rem;
  list-style: none;
  background: var(--tl-soft);
}
.tl .tl-facts > li { min-width: 0; margin: 0; list-style: none; }
.tl .tl-v {
  display: block;
  font-family: var(--font-family-headlines, Georgia, serif);
  font-weight: 600;
  font-size: 1.3125rem;
  line-height: 1.2;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--tl-accent);
}
.tl .tl-l {
  display: block;
  max-width: 24ch;
  font-size: .8125rem;
  line-height: 1.35;
  color: var(--tl-muted);
}

/* Details */
.tl .tl-details { margin-top: 1.1rem; }
.tl .tl-details summary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding-block: .5rem;
  list-style: none;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  font-size: .9375rem;
  background-color: var(--tl-accent);
  line-height: 44px;
  padding: 0 1rem;
}
.tl .tl-details summary::-webkit-details-marker { display: none; }
.tl .tl-details summary::after {
  content: "";
  width: .5rem;
  height: .5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .15s;
}
.tl .tl-details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.tl .tl-details summary:focus-visible { outline: 2px solid var(--tl-accent); outline-offset: 2px; }
.tl .tl-close-t { display: none; }
.tl .tl-details[open] .tl-close-t { display: inline; }
.tl .tl-details[open] .tl-open-t { display: none; }

.tl .tl-more { display: grid; gap: .75rem; padding-bottom: 1.25rem; }
.tl .tl-more > * { margin: 0; max-width: 65ch; }
.tl .tl-more ul,
.tl .tl-more ol { padding-left: 1.15rem; margin: 0; display: grid; gap: .35rem; }
.tl .tl-more li { margin: 0; }
.tl .tl-more a { color: var(--tl-accent-ink); text-decoration: underline; text-underline-offset: .2em; }

/* h4 = große Zwischenüberschrift (z. B. „Studie 1: …“), mit Trennlinie nach oben */
.tl .tl-more h4 {
  margin: .75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--tl-line);
  font-family: var(--font-family-headlines, Georgia, serif);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: inherit;
}
.tl .tl-more > h4:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* h5/h6 und Publikationsangaben als kleine Versalien-Labels */
.tl .tl-more h5,
.tl .tl-more h6,
.tl .tl-label {
  margin: .5rem 0 0;
  font-family: var(--font-family-sans, system-ui, sans-serif);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--tl-muted);
}
.tl .tl-more > :first-child { margin-top: 0; }
.tl .tl-cite { font-size: .875rem; color: var(--tl-muted); overflow-wrap: anywhere; }

/* Schmal: Jahreszahl über der Karte */
@container (max-width: 43.75rem) {
  .tl .tl-entry {
    grid-template-columns: 1.75rem minmax(0, 1fr);
    grid-template-areas: "rail year" "rail card";
  }
  .tl .tl-year { text-align: left; padding: 0 0 .6rem; }
  .tl .tl-y { font-size: 1.75rem; }
  .tl .tl-card { padding: 1rem 1rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tl .tl-details summary::after { transition: none; }
}
