/* ========================================
   Portfolio Standalone
   Sticky Header + Scrollspy + ED Brand
   ======================================== */

html {
  scroll-behavior: smooth;
}

/* Platz für Sticky-Navigation beim Anspringen */
#ueber-mich,
#skills,
#qualifikationen,
#projekte {
  scroll-margin-top: 110px;
}

/* Persönliches Portfolio-Logo */
.portfolio-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;

  border: 1px solid rgba(91, 203, 255, .75);
  border-radius: 11px;

  background:
    linear-gradient(
      145deg,
      rgba(72, 193, 255, .16),
      rgba(72, 193, 255, .035)
    );

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.03),
    0 0 22px rgba(68, 190, 255, .08);
}

.brand-monogram {
  color: #6bd3ff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}

/* Sticky Header */
.portfolio-page .site-nav {
  position: sticky;
  top: 12px;
  z-index: 1000;

  transition:
    padding .22s ease,
    background-color .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    backdrop-filter .22s ease,
    transform .22s ease;
}

/* Wenn bereits gescrollt wurde */
.portfolio-page .site-nav.is-scrolled {
  background: rgba(7, 12, 18, .84);
  border-color: rgba(255,255,255,.09);

  box-shadow:
    0 12px 35px rgba(0,0,0,.28),
    inset 0 0 0 1px rgba(255,255,255,.015);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Navigation */
.portfolio-page .top-tabs a {
  position: relative;
  transition:
    color .18s ease,
    background-color .18s ease;
}

/* Aktiver Abschnitt */
.portfolio-page .top-tabs a.active {
  color: #f4f7fb;
}

/* Unterstrich des aktiven Bereichs */
.portfolio-page .top-tabs a::after {
  content: "";
  position: absolute;

  left: 14px;
  right: 14px;
  bottom: 5px;

  height: 2px;
  border-radius: 999px;

  background: #63cdfa;

  transform: scaleX(0);
  transform-origin: center;

  opacity: 0;

  transition:
    transform .2s ease,
    opacity .2s ease;
}

.portfolio-page .top-tabs a.active::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Aktiver Tab leicht hervorgehoben */
.portfolio-page .top-tabs a.active {
  background: rgba(99, 205, 250, .055);
}

/* Header beim Scrollen etwas kompakter */
.portfolio-page .site-nav.is-scrolled .nav-row {
  min-height: 58px;
}

.portfolio-page .site-nav.is-scrolled .portfolio-brand-mark {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

.portfolio-page .site-nav.is-scrolled .brand-monogram {
  font-size: 16px;
}

/* Mobile */
@media (max-width: 760px) {
  .portfolio-page .site-nav {
    top: 8px;
  }

  #ueber-mich,
  #skills,
  #qualifikationen,
  #projekte {
    scroll-margin-top: 90px;
  }

  .portfolio-page .top-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .portfolio-page .top-tabs::-webkit-scrollbar {
    display: none;
  }

  .portfolio-page .top-tabs a {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .portfolio-page .site-nav,
  .portfolio-page .top-tabs a,
  .portfolio-page .top-tabs a::after {
    transition: none;
  }
}

/* V5: Sticky-Header ohne obere Lücke */
.portfolio-page .site-nav {
  top: 0 !important;
}


/* ========================================
   V6 – kompakteres ED-Logo
   ======================================== */

.portfolio-page .portfolio-brand-mark {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  border-radius: 9px;
}

.portfolio-page .brand-monogram {
  font-size: 14px !important;
}

.portfolio-page .site-nav.is-scrolled .portfolio-brand-mark {
  width: 32px !important;
  height: 32px !important;
  flex-basis: 32px !important;
}

.portfolio-page .site-nav.is-scrolled .brand-monogram {
  font-size: 13px !important;
}


/* ========================================
   V7 – Minimal Brand
   ======================================== */

/* Altes ED-Logo vollständig ausblenden,
   falls noch Rest-Markup vorhanden ist */
.portfolio-page .portfolio-brand-mark,
.portfolio-page .brand-monogram {
  display: none !important;
}

/* Name ohne Logo */
.portfolio-page .site-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Dezenter technischer Akzent */
.portfolio-page .site-nav .brand::before {
  content: "";
  width: 2px;
  height: 22px;
  flex: 0 0 2px;

  border-radius: 999px;
  background: #63cdfa;

  opacity: .8;
}

/* Name etwas klarer wirken lassen */
.portfolio-page .site-nav .brand-copy strong {
  letter-spacing: -.015em;
}

/* Beim Scrollen Akzent leicht kompakter */
.portfolio-page .site-nav.is-scrolled .brand::before {
  height: 19px;
}

