/* ── Was ist neu 77 v2 – Premium Release Notes ── */

/* Hero */
.wn77-hero {
  padding-bottom: 12px;
  text-align: center;
  background: linear-gradient(180deg, rgba(237,243,249,0.6) 0%, rgba(245,248,252,0) 100%);
}
.wn77-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(13,78,136,0.12);
  background: rgba(13,78,136,0.06);
  color: var(--brand-main-darker, #083A66);
  border-radius: var(--radius-full, 999px);
  font-size: var(--type-xs); font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 28px;
}
.wn77-hero h1 {
  color: var(--text-primary, #122033);
  margin: 0 0 20px;
}
.wn77-hero .hero-sub {
  font-size: var(--type-md); color: var(--text-secondary, #42566E);
  max-width: 560px; margin: 0 auto; line-height: var(--lh-relaxed);
}
@media (max-width: 575.98px) {
  .wn77-hero { padding-bottom: 10px; }
  .wn77-hero .hero-sub { font-size: var(--type-base); }
}

/* ── Edition Nav – Premium Pill Segment Control ── */
.edition-nav-container {
  background: var(--bg-surface, #fff);
  border-top: 1px solid var(--border-subtle, #DCE4EC);
  border-bottom: 1px solid var(--border-subtle, #DCE4EC);
  padding: 16px 0;
  margin-bottom: 0;
  position: sticky;
  top: var(--nav-height, 80px);
  z-index: 100;
  box-shadow: 0 4px 16px rgba(10,36,67,0.04);
}
.edition-nav-container .d-flex {
  gap: 8px !important;
}
.edition-nav-container .fw-bold {
  font-size: var(--type-sm);
  font-weight: 700;
  color: var(--text-muted, #6A7C93);
  letter-spacing: 0.02em;
  margin-right: 12px !important;
}
.edition-btn {
  border: 1px solid var(--border-subtle, #DCE4EC);
  background: var(--bg-surface, #fff);
  font-weight: 600;
  color: var(--text-secondary, #42566E);
  padding: 10px 20px;
  margin-right: 0;
  border-radius: var(--radius-full, 999px);
  transition: all 180ms ease;
  cursor: pointer;
  font-size: var(--type-sm);
  white-space: nowrap;
  line-height: var(--lh-dense);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.edition-btn:hover {
  background: var(--bg-subtle, #EDF3F9);
  color: var(--brand-main-color, #0D4E88);
  border-color: var(--brand-main-lighter, #3B7BB9);
}
.edition-btn.active {
  background: var(--brand-main-color, #0D4E88);
  color: #fff;
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(13,78,136,0.2);
}

/* ── Sidebar ── */
.sticky-sidebar {
  position: sticky;
  top: calc(var(--nav-height, 80px) + 73px);
  height: calc(100vh - var(--nav-height, 80px) - 100px);
  overflow-y: auto;
  padding-right: 24px;
  border-right: 1px solid var(--border-subtle, #DCE4EC);
  scrollbar-width: thin;
  scrollbar-color: rgba(13,78,136,0.15) transparent;
}
.sidebar-header {
  font-size: var(--type-xs);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted, #6A7C93);
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 28px;
  padding-left: 14px;
}
.sidebar-header:first-child { margin-top: 4px; }
.version-link {
  display: block;
  padding: 9px 14px;
  color: var(--text-secondary, #42566E);
  text-decoration: none;
  border-radius: var(--radius-md, 12px);
  font-size: var(--type-sm);
  margin-bottom: 2px;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
  border-left: 3px solid transparent;
  line-height: var(--lh-normal);
}
.version-link:hover {
  background: rgba(13,78,136,0.04);
  color: var(--text-primary, #122033);
  text-decoration: none;
}
.version-link.active {
  background: rgba(13,78,136,0.06);
  color: var(--brand-main-color, #0D4E88);
  font-weight: 700;
  border-left-color: var(--brand-main-color, #0D4E88);
}

/* ── Content Wrapper ── */
.content-wrapper {
  padding-left: 36px;
  background: transparent;
}

/* ── Main content area spacing ── */
.container.pb-5 {
  padding-top: 36px !important;
  padding-bottom: var(--space-system-120, 120px) !important;
}

/* ── Version Section Card ── */
.version-section {
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border-subtle, #DCE4EC);
  border-radius: var(--radius-xl, 22px);
  padding: 40px 40px;
  margin-bottom: 28px;
  scroll-margin-top: calc(var(--nav-height, 80px) + 90px);
  box-shadow: var(--shadow-soft, 0 16px 40px rgba(10,36,67,0.08));
}
.version-section-title {
  font-size: var(--type-lg);
  font-weight: 800;
  color: var(--brand-main-color, #0D4E88);
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 2px solid rgba(13,78,136,0.12);
  letter-spacing: -0.02em;
}

/* ── Release Notes Content ── */
.release-notes-content h3 {
  font-size: var(--type-base);
  font-weight: 700;
  color: var(--text-primary, #122033);
  margin-top: 36px;
  margin-bottom: 16px;
  padding-top: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(196,208,220,0.3);
  scroll-margin-top: calc(var(--nav-height, 80px) + 90px);
  letter-spacing: -0.01em;
  line-height: var(--lh-normal);
}
.release-notes-content h3:first-child {
  margin-top: 0;
  padding-top: 0;
}
.release-notes-content h3 span {
  color: var(--text-primary, #122033);
}

/* ── Release Lists ── */
.release-notes-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.release-notes-content ul li {
  position: relative;
  padding: 10px 0 10px 20px;
  font-size: var(--type-sm);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary, #42566E);
  border-bottom: 1px solid rgba(196,208,220,0.12);
}
.release-notes-content ul li:last-child { border-bottom: none; }
.release-notes-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-main-color, #0D4E88);
  opacity: 0.25;
}
.release-notes-content ul li strong {
  color: var(--text-primary, #122033);
  font-weight: 700;
}

/* ── Tablet ── */
@media (max-width: 991.98px) {
  .sticky-sidebar {
    position: relative;
    top: 0;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle, #DCE4EC);
    padding-bottom: 16px;
    margin-bottom: 28px;
    padding-right: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
  }
  .sidebar-header {
    width: 100%;
    margin-top: 12px;
    margin-bottom: 6px;
    padding-left: 0;
  }
  .sidebar-header:first-child { margin-top: 0; }
  .version-link {
    display: inline-flex;
    padding: 7px 14px;
    font-size: var(--type-sm);
    border-radius: var(--radius-full, 999px);
    border: 1px solid var(--border-subtle, #DCE4EC);
    border-left: none;
    margin-bottom: 0;
  }
  .version-link.active {
    background: rgba(13,78,136,0.08);
    border-color: rgba(13,78,136,0.2);
    border-left: none;
  }
  .content-wrapper { padding-left: 0; }
  .edition-nav-container {
    position: sticky;
    top: var(--nav-height-mobile, 60px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .edition-nav-container .d-flex {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    padding: 0 12px;
    min-width: max-content;
  }
  .version-section { padding: 28px 24px; border-radius: var(--radius-lg, 16px); }
}

/* ── Mobile ── */
@media (max-width: 575.98px) {
  .edition-btn { padding: 8px 14px; font-size: var(--type-sm); min-height: 36px; }
  .edition-nav-container { padding: 12px 0; }
  .edition-nav-container .fw-bold { display: none; }
  .version-section { padding: 20px 16px; margin-bottom: 20px; }
  .version-section-title { font-size: var(--type-md); margin-bottom: 24px; padding-bottom: 14px; }
  .release-notes-content h3 { font-size: var(--type-base); margin-top: 28px; padding-top: 20px; }
  .release-notes-content ul li { font-size: var(--type-sm); padding: 8px 0 8px 18px; line-height: var(--lh-relaxed); }
  .release-notes-content ul li::before { top: 17px; }
  .container.pb-5 { padding-top: 24px !important; padding-bottom: var(--space-system-72, 72px) !important; }
  .sticky-sidebar { gap: 3px; }
  .version-link { padding: 6px 10px; font-size: var(--type-sm); }
}

.d-none-custom { display: none !important; }