/* ══════════════════════════════════════════════════════════════════
   Changelog – öffentliche Seite
   ════════════════════════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────────────────────────────── */
.cl-hero {
  position: relative;
  padding: 7rem 0 3.5rem;
  text-align: center;
  overflow: hidden;
}
.cl-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, .16) 0%, transparent 68%);
  pointer-events: none;
}
.cl-hero > .container { position: relative; z-index: 1; }

.cl-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem 1rem;
  border-radius: 30px;
  background: rgba(14, 165, 233, .1);
  border: 1px solid var(--border-accent);
  color: var(--accent-1);
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.cl-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: .85rem;
}
.cl-hero p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.6;
}
.cl-hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.75rem;
  font-size: .86rem;
  color: var(--text-muted);
}
.cl-hero-meta strong { color: var(--text-primary); }

/* ── Section ────────────────────────────────────────────────────── */
.cl-section { padding: 1rem 0 6rem; }

/* ── Timeline ───────────────────────────────────────────────────── */
.cl-timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 2.25rem;
}
/* durchgehende Linie */
.cl-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: .75rem;
  bottom: .75rem;
  width: 2px;
  background: linear-gradient(180deg,
    var(--accent-1) 0%,
    rgba(14, 165, 233, .35) 35%,
    rgba(14, 165, 233, .08) 100%);
}

.cl-item { position: relative; margin-bottom: 1.5rem; }
.cl-item:last-child { margin-bottom: 0; }

.cl-dot {
  position: absolute;
  left: -2.25rem;
  top: 1.4rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--accent-1);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .12);
}
.cl-item:first-child .cl-dot {
  background: var(--accent-1);
  box-shadow: 0 0 0 5px rgba(14, 165, 233, .2);
}

/* ── Karte ──────────────────────────────────────────────────────── */
.cl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cl-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 8px 32px rgba(14, 165, 233, .12);
  transform: translateY(-2px);
}

.cl-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .6rem;
}
.cl-card-head-main {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
  min-width: 0;
}
.cl-card-head h2 {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}
.cl-version {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-1);
  background: rgba(14, 165, 233, .12);
  border: 1px solid rgba(14, 165, 233, .25);
  padding: .18rem .6rem;
  border-radius: 6px;
  white-space: nowrap;
}
.cl-date {
  font-size: .82rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.cl-desc {
  color: var(--text-secondary);
  font-size: .93rem;
  line-height: 1.65;
  margin: 0 0 1.1rem;
}

/* ── Typ-Ebene (Neu / Geändert / Behoben / Entfernt) ────────────── */
.cl-type { margin-top: 1.5rem; }
.cl-type:first-of-type { margin-top: 0; }

.cl-type-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .6rem;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--t-color, var(--accent-1));
}
.cl-type-emoji { font-size: .95rem; line-height: 1; }

/* Abschnitte liegen eine Ebene unter dem Typ */
.cl-type > .cl-group { margin-left: .25rem; }

/* ── Abschnitt ──────────────────────────────────────────────────── */
.cl-group { margin-top: 1rem; }
.cl-group:first-of-type { margin-top: .25rem; }

.cl-group-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .45rem;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
}
.cl-group-emoji { font-size: 1.05rem; line-height: 1; flex-shrink: 0; }
.cl-group-title { min-width: 0; }

.cl-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.1rem;
  border-left: 2px solid color-mix(in srgb, var(--t-color, #0ea5e9) 30%, transparent);
}
.cl-list li {
  position: relative;
  font-size: .91rem;
  line-height: 1.65;
  color: var(--text-secondary);
  padding: .2rem 0 .2rem .9rem;
}
.cl-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .82rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--t-color, var(--accent-1));
  opacity: .75;
}
.cl-list li strong { color: var(--text-primary); font-weight: 700; }
.cl-list li code,
.cl-desc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85em;
  background: rgba(14, 165, 233, .12);
  border: 1px solid rgba(14, 165, 233, .2);
  border-radius: 4px;
  padding: .05em .35em;
  color: var(--accent-3);
}

.cl-card-foot {
  margin-top: 1.25rem;
  padding-top: .85rem;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-muted);
}

/* ── Leerzustand ────────────────────────────────────────────────── */
.cl-empty {
  text-align: center;
  max-width: 460px;
  margin: 2rem auto 0;
  padding: 3.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.cl-empty-icon { font-size: 3.2rem; margin-bottom: 1rem; opacity: .5; }
.cl-empty h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: .5rem; }
.cl-empty p { color: var(--text-secondary); margin-bottom: 1.75rem; line-height: 1.6; }

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .cl-hero { padding: 5.5rem 0 2.5rem; }
  .cl-timeline { padding-left: 1.6rem; }
  .cl-timeline::before { left: 5px; }
  .cl-dot { left: -1.6rem; width: 12px; height: 12px; border-width: 2px; }
  .cl-card { padding: 1.2rem 1.15rem; border-radius: 14px; }
  .cl-card-head h2 { font-size: 1.05rem; }
  .cl-hero-meta { gap: 1rem; }
}
