/* ====================================================================
   VERSIONSVERLAUF — im Stil einer Dokumentationsseite:
   schlanke, sticky Versions-Navigation links + ruhiger, textgeführter
   Inhaltsbereich rechts. Gleiche Tokens wie home.css ("Confident
   Product Showcase"): großzügiger Weißraum, Nunito, ein Akzentton,
   keine bunten Badge-Wolken, keine Karten-Schatten.
   ==================================================================== */


.changelog-page {
  --paper: #ffffff;
  --faint: #f5f5f7;
  --ink: #111113;
  --ink-2: #636366;
  --line: rgba(0,0,0,.09);
  --accent: #0096ff;
  --accent-dark: #0072c2;

  --font-display: 'Nunito', 'Nunito Sans', sans-serif;
  --font-body: 'Nunito Sans', 'Nunito', sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);

  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  padding: clamp(56px,7vw,88px) 0 clamp(96px,10vw,140px);
}
.changelog-page * { box-sizing: border-box; }
.changelog-page h1, .changelog-page h2, .changelog-page h3 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; margin: 0;
}
.changelog-page p { margin: 0; }
.changelog-page a { color: var(--accent-text, #005fa3); text-decoration: none; }
.changelog-page a:hover { text-decoration: underline; }

.changelog-head { max-width: 680px; margin-bottom: clamp(2rem,4vw,2.75rem); }
.changelog-head h1 { font-size: clamp(2.4rem,4.5vw,3.4rem); line-height: 1.08; margin-bottom: 1rem; }
.changelog-head p { color: var(--ink-2); font-size: 1.125rem; line-height: 1.55; }

/* ===== Kategorie-Filter ===== */
.changelog-filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-bottom: clamp(3rem,6vw,4.5rem); padding-bottom: clamp(1.75rem,3vw,2.25rem);
  border-bottom: 1px solid var(--line);
}
.changelog-filters__label { font-size: 0.875rem; font-weight: 700; color: var(--ink-2); margin-right: .25rem; }
.changelog-filter-pill {
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; color: var(--ink-2);
  background: transparent; border: 1px solid var(--line); border-radius: 980px; padding: .4rem .85rem;
  cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.changelog-filter-pill:hover { border-color: var(--ink-2); color: var(--ink); }
.changelog-filter-pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.changelog-filter-pill--security.is-active { background: #ef4444; border-color: #ef4444; color: #fff; }

/* ===== Bereichs-Umschalter (Website/Plattform vs. Software) ===== */
.changelog-switch {
  display: inline-flex; gap: .25rem; padding: .3rem; background: var(--faint);
  border-radius: 980px; margin-bottom: clamp(2.5rem,5vw,3.5rem);
}
.changelog-switch__btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 700; color: var(--ink-2);
  background: transparent; border: none; border-radius: 980px; padding: .65rem 1.25rem;
  cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.changelog-switch__btn i { font-size: 0.875rem; }
.changelog-switch__btn:hover { color: var(--ink); }
.changelog-switch__btn.is-active { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(17,17,19,.12); }
@media (max-width: 575.98px) {
  .changelog-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .changelog-switch__btn { justify-content: center; text-align: center; white-space: normal; padding: .6rem .35rem; font-size: 0.875rem; line-height: 1.25; min-width: 0; }
  .changelog-switch__btn i { display: none; }
}

.changelog-panel__intro { color: var(--ink-2); font-size: 1rem; line-height: 1.55; max-width: 640px; margin-bottom: 1.75rem; }

/* ===== Suche (in allen drei Bereichen identisch) ===== */
.changelog-search {
  position: relative; display: flex; align-items: center; flex: 1 1 100%; max-width: 420px; margin: 0 0 .5rem;
}
.changelog-search i { position: absolute; left: .95rem; color: var(--ink-2); font-size: 0.875rem; pointer-events: none; }
.changelog-search input {
  width: 100%; font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: 980px; padding: .45rem .95rem .45rem 2.3rem;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.changelog-search input::placeholder { color: var(--ink-2); font-weight: 600; }
.changelog-search input:hover { border-color: var(--ink-2); }
.changelog-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,150,255,.12); }
.changelog-filters__break { flex-basis: 100%; height: 0; }
.changelog-search { margin-bottom: .25rem; }
.changelog-empty { color: var(--ink-2); padding: 2rem 0; font-size: 1rem; }
.changelog-empty[hidden], .changelog-entry[hidden], .changelog-entry__list li[hidden] { display: none !important; }

/* ===== Software-Changelog: Kategorie-Gruppen ===== */
.changelog-cat-group { margin-bottom: clamp(1.75rem,3vw,2.25rem); }
.changelog-cat-group:last-child { margin-bottom: 0; }
.changelog-cat-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: 0.875rem; font-weight: 700; padding: .35rem .8rem; border-radius: 980px; margin-bottom: 1rem;
}
.changelog-cat-chip i { font-size: 0.75rem; }
.changelog-cat-chip--sicherheit { background: rgba(239,68,68,.1); color: #b91c1c; }
.changelog-cat-chip--bugfix     { background: rgba(245,158,11,.12); color: #92400e; }
.changelog-cat-chip--feature    { background: rgba(34,197,94,.12); color: #166534; }
.changelog-cat-chip--wartung    { background: var(--faint); color: var(--ink-2); }
.changelog-cat-chip--struktur   { background: rgba(0,150,255,.12); color: var(--accent-text, #005fa3); }
.changelog-cat-chip--design     { background: rgba(168,85,247,.12); color: #7e22ce; }

.changelog-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(2.5rem,5vw,5rem); align-items: start; }

/* ===== Sidebar — sticky Versions-Sprungliste ===== */
.changelog-nav { position: sticky; top: 100px; max-height: calc(100vh - 140px); overflow-y: auto; }
.changelog-nav__label { font-size: 0.875rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1rem; display: block; }
.changelog-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.changelog-nav a {
  display: block; padding: .4rem 0; font-size: 0.875rem; color: var(--ink-2); font-weight: 600;
  border-left: 2px solid transparent; padding-left: .85rem; margin-left: -.9rem;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.changelog-nav a:hover { color: var(--ink); text-decoration: none; }
.changelog-nav li:first-child a { color: var(--ink); border-color: var(--accent); }
@media (max-width: 860px) { .changelog-layout { grid-template-columns: 1fr; } .changelog-nav { position: static; max-height: none; display: none; } }

/* ===== Content ===== */
.changelog-entries { display: grid; gap: 0; max-width: 720px; }
.changelog-entry { padding: clamp(2.5rem,4vw,3.25rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.changelog-entry:first-child { padding-top: 0; }

.changelog-entry__head { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; margin-bottom: .4rem; }
.changelog-entry__version { font-size: clamp(1.5rem,2.6vw,1.9rem); font-weight: 800; }
.changelog-entry__badge {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--accent-text, #005fa3); background: rgba(0,150,255,.09); padding: .25rem .6rem; border-radius: 6px;
}
.changelog-entry__date { color: var(--ink-2); font-size: 1rem; margin-bottom: 1.5rem; display: block; }

.changelog-entry__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.changelog-entry__tags span {
  font-size: 0.875rem; color: var(--ink-2); border: 1px solid var(--line); padding: .25rem .7rem; border-radius: 980px;
}
.changelog-entry__tags span.is-security {
  color: #b91c1c; border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.08); font-weight: 600;
}

.changelog-entry__head + .changelog-entry__tags, .changelog-page .changelog-entry__head + .changelog-entry__note { margin-top: 1.1rem; }
.changelog-page .changelog-entry__note { color: var(--ink-2); font-size: 1rem; line-height: 1.6; margin: 0 0 1.5rem; }
.changelog-entry__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.changelog-entry__list li {
  position: relative; padding-left: 1.3rem; font-size: 1rem; line-height: 1.6; color: var(--ink);
}
.changelog-entry__list li::before {
  content: ''; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-2);
}

@media (max-width: 640px) {
  .changelog-entry__version { font-size: 1.5rem; }
}
