/* ==========================================================
  StoryPort Navigation
  Zentrale Navigation für alle Seiten
  ========================================================== */


/* ==========================================================
  1. Navigationsleiste
  Sticky Header, dunkler Hintergrund, dezente Trennung
  ========================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;

  min-height: 72px;

  background: rgba(8, 11, 15, .94);
  border-bottom: 1px solid var(--line, var(--sp-line, rgba(255,255,255,.12)));
  backdrop-filter: blur(10px);
}

.navbar .container,
.navbar .container-fluid {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}


/* ==========================================================
  2. Logo
  Zweizeiliges Logo links, Unterzeile beginnt unter dem Symbol
  ========================================================== */

.storyport-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  flex: 0 0 auto;
  gap: .14rem;

  margin-right: 1.5rem;
  padding: .32rem 0;

  color: var(--text, var(--sp-text, #f3f4f6));
  text-decoration: none;
  line-height: 1;
}

.storyport-logo-line {
  display: flex;
  align-items: center;
  gap: .38rem;

  font-family: Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}

.storyport-logo-line i {
  color: var(--gold, var(--sp-accent, #c89b5c));
  font-size: 1.55rem;
  line-height: 1;
  transform: translateY(.03rem);
}

.storyport-logo-line span {
  color: var(--text, var(--sp-text, #f3f4f6));
}

.storyport-logo-subline {
  padding-left: 0;

  color: var(--muted, var(--sp-muted, #a7b0ba));
  font-family: system-ui, sans-serif;
  font-size: .78rem;
  font-weight: 400;
  line-height: 1;
}

.storyport-logo:hover,
.storyport-logo:focus {
  color: var(--text, var(--sp-text, #f3f4f6));
  text-decoration: none;
}

.storyport-logo:hover .storyport-logo-line i,
.storyport-logo:focus .storyport-logo-line i {
  color: var(--gold, var(--sp-accent, #c89b5c));
}


/* ==========================================================
  3. Menüpunkte
  Ruhige Links mit dezenter Hover Fläche
  ========================================================== */

.navbar-collapse {
  flex-grow: 1;
}

.navbar-nav {
  align-items: center;
  gap: .15rem;
}

.nav-link {
  color: var(--muted, var(--sp-muted, #a7b0ba));
  font-size: .96rem;
  font-weight: 500;
  padding: .55rem .75rem;
  border-radius: .65rem;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--text, var(--sp-text, #f3f4f6));
  background: rgba(255,255,255,.055);
}


/* ==========================================================
  4. Mobile Navigation
  Burger Button sichtbar und stabil rechts
  ========================================================== */

.storyport-toggler,
.navbar-toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 44px;
  width: 44px;
  height: 40px;
  margin-left: auto;

  border: 1px solid rgba(214,168,91,.58);
  border-radius: .65rem;
  background: rgba(214,168,91,.13);
  box-shadow: none;
}

.storyport-toggler:hover,
.navbar-toggler:hover,
.storyport-toggler:focus,
.navbar-toggler:focus {
  background: rgba(214,168,91,.22);
  border-color: rgba(214,168,91,.85);
  box-shadow: none;
}

.storyport-toggler .navbar-toggler-icon,
.navbar-toggler-icon {
  width: 1.35rem;
  height: 1.35rem;
  filter: invert(1) brightness(1.25);
}


/* ==========================================================
  5. Dropdown Genre
  Dunkles Menü passend zur Navigation
  ========================================================== */

.dropdown-menu {
  min-width: 240px;
  padding: .5rem;

  background: rgba(17, 24, 32, .98);
  border: 1px solid var(--line, var(--sp-line, rgba(255,255,255,.12)));
  border-radius: .9rem;
  box-shadow: 0 1rem 2.5rem rgba(0,0,0,.35);
}

.dropdown-item {
  color: var(--muted, var(--sp-muted, #a7b0ba));
  border-radius: .55rem;
  padding: .55rem .75rem;
  font-size: .94rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--text, var(--sp-text, #f3f4f6));
  background: rgba(255,255,255,.08);
}

.dropdown-item .text-muted {
  color: rgba(243,244,246,.48) !important;
}


/* ==========================================================
  6. Sprungmarken
  Abstand beim Anspringen der Genre Bereiche
  ========================================================== */

.genre-section {
  scroll-margin-top: 92px;
}

/* ==========================================================
  Rechte Nutzerbox
  Mailadresse und Abmeldung rechts
  ========================================================== */

.storyport-main-nav {
  justify-content: center;
}

.storyport-user-nav {
  align-items: center;
}

.storyport-user-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  line-height: 1.1;
}

.storyport-user-email {
  color: var(--muted, var(--sp-muted, #a7b0ba));
  font-size: .78rem;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storyport-logout-link {
  color: var(--text, var(--sp-text, #f3f4f6));
  font-size: .9rem;
  text-decoration: none;
}

.storyport-logout-link:hover,
.storyport-logout-link:focus {
  color: var(--gold, var(--sp-accent, #c89b5c));
}

@media (max-width: 991.98px) {
  .storyport-main-nav {
    justify-content: flex-start;
  }

  .storyport-user-nav {
    align-items: stretch;
    border-top: 1px solid var(--line, var(--sp-line, rgba(255,255,255,.12)));
    margin-top: .5rem;
    padding-top: .5rem;
  }

  .storyport-user-box {
    align-items: flex-start;
    padding: .7rem .8rem;
  }

  .storyport-user-email {
    max-width: 100%;
  }
}

/* ==========================================================
  Auth Buttons
  Anmelden, Registrieren, Abmelden mit weißem Rand
  ========================================================== */

.storyport-auth-link,
.storyport-logout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: .45rem .8rem;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: .65rem;

  color: var(--text, var(--sp-text, #f3f4f6));
  background: rgba(255,255,255,.035);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.1;
}

.storyport-auth-link:hover,
.storyport-auth-link:focus,
.storyport-logout-link:hover,
.storyport-logout-link:focus {
  color: #fff;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.85);
}

/* ==========================================================
  7. Smartphone und Tablet
  Kompaktes Logo, Button bleibt sichtbar, Menü klappt sauber darunter
  ========================================================== */

@media (max-width: 991.98px) {
  .navbar {
    min-height: 68px;
  }

  .navbar .container,
  .navbar .container-fluid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .storyport-logo {
    flex: 1 1 auto;
    max-width: calc(100% - 58px);
    margin-right: 0;
  }

  .storyport-logo-line {
    font-size: 1.5rem;
  }

  .storyport-logo-line i {
    font-size: 1.35rem;
  }

  .storyport-logo-subline {
    font-size: .72rem;
  }

  .storyport-toggler,
  .navbar-toggler {
    display: inline-flex !important;
    flex: 0 0 44px;
    margin-left: auto;
  }

  .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
    padding-top: .75rem;
    padding-bottom: .75rem;
  }

  .navbar-nav {
    align-items: stretch;
    gap: .25rem;
  }

  .nav-link {
    padding: .7rem .8rem;
  }

  .dropdown-menu {
    margin-top: .25rem;
  }
}
/* ==========================================================
  Logo inknook
  Kompaktes Logo, Button bleibt sichtbar, Menü klappt sauber darunter
  ========================================================== */
.inknook-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    text-decoration: none;
}

.inknook-nav-logo {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 13px;
    background: #f3eadc;
}

.inknook-brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.inknook-brand-word {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.inknook-ink {
    color: #f2eadc;
}

.inknook-nook {
    color: #c58a4a;
}

.inknook-brand-subline {
    margin-top: 4px;
    color: #d8c7ad;
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 420px) {
    .inknook-brand-subline {
        display: none;
    }

    .inknook-brand-word {
        font-size: 1.35rem;
    }
}