/* Zeitstrahl eines Inserats (Website und Admin). Eine Zeile, gleich breite Schritte, keine Scrollleiste. Farben mit Rückfallwerten (der Admin hat eigene Variablen). */
@property --pp { syntax: '<number>'; inherits: true; initial-value: 0; }
.zs { --pp: 0; --ink: var(--zs-ink, #1D2622); background: var(--surface, #fff); border: 1px solid var(--line, #DCE0D5); border-radius: 18px; padding: 22px 24px 18px; margin: 18px 0; transition: --pp 1.2s cubic-bezier(.2, .7, .2, 1) .1s; }
.zs.is-in { --pp: var(--p, 0); }
.zs-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; }
.zs-title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.zs-title b { color: var(--red, #C4122F); font-weight: 700; font-variant-numeric: tabular-nums; }
.zs-sub { margin: 2px 0 0; color: var(--muted, #5B665F); font-size: 14px; }
.zs-next { font-size: 13px; color: var(--muted, #5B665F); background: var(--paper, #EEF0E9); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.zs-next b { color: var(--ink); font-weight: 650; }

.zs-rail { position: relative; margin: 30px 0 2px; }
.zs-line { position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 10px; height: 2px; background: var(--stone-deep, #CBD0C1); border-radius: 2px; }
.zs-line i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--pp) * 100%); background: var(--ink); border-radius: 2px; }
.zs-today { position: absolute; top: -22px; left: calc(50% / var(--n) + var(--pp) * (100% - 100% / var(--n))); transform: translateX(-50%); font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--red, #C4122F); line-height: 1; white-space: nowrap; }
.zs-today::after { content: ''; display: block; width: 0; height: 0; margin: 4px auto 0; border: 4px solid transparent; border-top-color: var(--red, #C4122F); border-bottom: 0; }
.zs:not(.is-in) .zs-today { opacity: 0; }
.zs-today { transition: opacity .4s ease .9s; }

.zs-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.zs-step { text-align: center; min-width: 0; }
.zs-b { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%; background: none; border: 0; padding: 0 2px 8px; border-radius: 10px; color: inherit; }
.zs-dot { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: var(--surface, #fff); border: 2px solid var(--stone-deep, #CBD0C1); display: grid; place-items: center; font-size: 11px; line-height: 1; color: #fff; transition: transform .2s ease, box-shadow .2s ease, opacity .5s ease, background .2s; }
.zs-lab { font-size: 13px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.zs-date { font-size: 12.5px; color: var(--muted, #5B665F); line-height: 1.25; font-variant-numeric: tabular-nums; }
.zs-date small { display: block; font-size: 11.5px; opacity: .85; }
.zs-un { opacity: .7; }
.zs-b:hover .zs-dot { transform: scale(1.14); }
.zs-b:hover .zs-lab { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.is-done .zs-dot { background: var(--ink); border-color: var(--ink); }
.is-done .zs-lab { color: var(--muted, #5B665F); font-weight: 550; }
.is-next .zs-dot { background: var(--red, #C4122F); border-color: var(--red, #C4122F); }
.is-next .zs-lab { color: var(--red, #C4122F); }
.is-upcoming .zs-dot { border-color: var(--ink); }
.is-open .zs-dot { border-style: dashed; }
.is-open .zs-lab { color: var(--muted, #5B665F); font-weight: 550; }
.is-sel .zs-dot { box-shadow: 0 0 0 5px rgba(29, 38, 34, .12); }
.is-sel.is-next .zs-dot { box-shadow: 0 0 0 5px var(--red-soft, #FBE6E9); }
.is-next .zs-dot::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--red, #C4122F); opacity: 0; }
.zs.is-in:not(.is-used) .is-next .zs-dot::after { animation: zs-ping 2.2s ease-out 1.4s 2; }
@keyframes zs-ping { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(2); } }

/* Schon gesehen (Seite hat sich neu gezeichnet): ohne Animation */
.zs.is-still, .zs.is-still * { transition: none !important; animation: none !important; }

/* Einblenden beim ersten Sehen */
@media (prefers-reduced-motion: no-preference) {
  .zs:not(.is-in) .zs-dot { opacity: 0; transform: scale(.5); }
  .zs:not(.is-in) .zs-lab, .zs:not(.is-in) .zs-date { opacity: 0; transform: translateY(5px); }
  .zs .zs-lab, .zs .zs-date { transition: opacity .45s ease, transform .45s ease; }
  .zs.is-in .zs-dot, .zs.is-in .zs-lab, .zs.is-in .zs-date { transition-delay: calc(var(--i) * 85ms); }
  .zs.is-in .zs-b:hover .zs-dot { transition-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) { .zs { transition: none; } .zs-today { transition: none; } }

.zs-hint { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--muted, #5B665F); transition: opacity .4s; }
.zs.is-used .zs-hint { opacity: 0; height: 0; margin: 0; overflow: hidden; }

.zs-panel { margin-top: 14px; padding: 16px 18px 14px; background: var(--paper, #EEF0E9); border-radius: 14px; animation: zs-in .22s ease; }
@keyframes zs-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .zs-panel { animation: none; } }
.zs-ph { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; }
.zs-ph h4 { margin: 0; font-size: 16px; }
.zs-when { font-size: 13px; color: var(--muted, #5B665F); }
.zs-panel p { margin: 6px 0 0; }
.zs-note { font-size: 14px; color: var(--muted, #5B665F); }
.zs-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 4px 28px; margin-top: 4px; }
.zs-panel h5 { margin: 10px 0 4px; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted, #5B665F); }
.zs-panel ul { margin: 0; padding-left: 18px; }
.zs-panel li { margin: 2px 0; font-size: 15px; }
.zs-links { list-style: none; padding-left: 0 !important; }
.zs-links a { text-underline-offset: 3px; }
.zs-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 0 !important; }
.zs-foot:empty { display: none; }
.zs-src { font-size: 13px; color: var(--muted, #5B665F); text-underline-offset: 3px; }
.zs-ics { border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: 4px 13px; font-weight: 600; font-size: 13px; margin-left: auto; }
.zs-ics:hover { background: var(--ink); color: #fff; }
.zs-lock { margin: 12px 0 0; font-size: 13px; color: var(--muted, #5B665F); text-align: center; }
.zs.is-abgesagt .zs-rail, .zs.is-vorbei .zs-rail { opacity: .75; }
.zs.is-abgesagt .zs-title { color: var(--red, #C4122F); }

/* Handy: senkrecht, ohne Leiste */
@media (max-width: 640px) {
  .zs { padding: 18px 16px 14px; }
  .zs-rail { margin-top: 12px; }
  .zs-line, .zs-today { display: none; }
  .zs-track { display: block; }
  .zs-step { text-align: left; }
  .zs-b { flex-direction: row; align-items: center; gap: 12px; padding: 9px 0; position: relative; }
  .zs-lab { flex: 1; font-size: 15px; text-align: left; }
  .zs-date { font-size: 14px; text-align: right; }
  .zs-date small { display: inline; margin-left: 6px; }
  .zs-step:not(:last-child) .zs-b::after { content: ''; position: absolute; left: 10px; top: 31px; bottom: -9px; width: 2px; background: var(--stone-deep, #CBD0C1); }
  .zs-step.is-done:not(:last-child) .zs-b::after { background: var(--ink); }
  .zs-hint { text-align: left; }
  .zs-next { white-space: normal; }
}
