﻿/* ==========================================================
   Seiten-Navigation: Themen-Leiste mit Scroll-Anzeige (Über uns, Info)
   ========================================================== */

/* ---------- Themen-Leiste (Scroll-Anzeige) ---------- */
.page-bar {
  position: sticky;
  top: var(--hdr, 110px);
  z-index: 20;
  padding: 12px 0;
  background: transparent;
  pointer-events: none;
}

.page-bar .container {
  pointer-events: auto;
}

.page-nav {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 12px 26px rgba(9, 41, 69, 0.07);
  overflow: hidden;
}

.page-track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 6px 6px 9px;
}

.page-indicator {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 10px 20px rgba(0, 92, 161, 0.28);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.page-tab {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  align-content: center;
  min-height: 54px;
  padding: 7px 14px;
  border-radius: 18px;
  color: var(--ink);
  transition: color 0.3s ease, background-color 0.25s ease;
}

.page-tab:hover {
  background: var(--brand-soft);
}

.page-tab:focus-visible {
  outline: 3px solid rgba(0, 92, 161, 0.45);
  outline-offset: 1px;
}

.tab-no {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 800;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tab-label {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.tab-label:last-child {
  grid-row: 1 / 3; /* ohne Zusatzzeile mittig stehen */
}

.tab-sub {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.page-tab.is-active,
.page-tab.is-active:hover {
  background: transparent;
  color: #fff;
}

.page-tab.is-active .tab-no {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.page-tab.is-active .tab-sub {
  color: rgba(255, 255, 255, 0.8);
}

.page-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--brand-soft);
}

.page-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #3b9be0);
  transform: scaleX(0);
  transform-origin: left;
}




/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .tab-sub {
    display: none;
  }
}

@media (max-width: 560px) {
  .page-tab {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 6px 4px;
    min-height: 46px;
  }

  .tab-no {
    display: none;
  }

  .tab-label {
    font-size: 0.7rem;
    letter-spacing: -0.01em;
  }

  .page-track {
    gap: 2px;
    padding: 4px 4px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-indicator {
    transition: none;
  }
}
