/**
 * banner.css
 * Styling für das Logo der GearBase-Anwendung.
 * @version 0.7.1
 * @date 2025-04-06
 * @author GearBase
 * @description Definiert das Aussehen des Logos mit animiertem SVG-Stern.
 */

 .banner {
     width: 100%;
     position: relative;
     top: -15px;
     left: 40px;
     z-index: 5;
     padding: 0px 0 0px 0; /* Kein Padding, Bild definiert Größe */
     height: 35px; /* Feste Höhe für Desktop */
     display: flex;
 }

 /* Utility-Bar */
.util-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 4px 20px;
    background-color: rgba(28, 28, 26, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 12px;
}
.util-link {
    color: #a3a3a3;
    text-decoration: none;
    transition: color 0.2s;
}
.util-link:hover   { color: #ccc; }
.util-logout       { color: #ff3333; }
.util-logout:hover { color: #ff5252; }
.util-sep  { color: #333; }
.util-user { color: #aaa; display: flex; align-items: center; gap: 6px; }

.util-role-badge {
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 99px;
}
.util-role-administrator { background: rgba(47,89,39,0.5);  color: #8bc98a; }
.util-role-moderator     { background: rgba(90,120,160,0.5); color: #90b0d0; }
.util-role-member        { background: rgba(150,110,200,0.5); color: #c4a8ec; }
.util-role-user          { background: rgba(80,80,80,0.5);   color: #aaa; }

/* Hauptleiste */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    gap: 0;
}
.top-bar-container {
  /* Semi-transparent background to reveal the blur */
  background-color: rgba(255, 255, 255, 0.2);
  /* Apply blur to the background behind this element */
  backdrop-filter: blur(5px) saturate(1.5);
  -webkit-backdrop-filter: blur(5px); /* Safari support */
}

/* Icon-Aktionsleiste */
/* Icon-Leiste: fixiert, gesamte Höhe */
.action-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 56px;
    height: 100vh;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    padding: 12px 6px;
    background: rgba(0, 0, 0, 0.6);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    overflow-y: auto;
}

/* Spacer schiebt Util-Info an den unteren Rand */
.action-nav__spacer {
    flex: 1;
    min-height: 12px;
}

/* Util-Info unten in der Action-Nav */
.action-nav__util {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
    width: 100%;
}
.action-nav__username {
    font-size: 8px;
    color: rgba(255,255,255,0.4);
    text-align: center;
    word-break: break-all;
    line-height: 1.2;
    max-width: 44px;
}
.action-nav__logout {
    color: rgba(255,80,80,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.action-nav__logout:hover {
    color: #ff5252;
    background: rgba(255,80,80,0.1);
}

/* Logo-Animation oben in der Leiste — als erstes Icon */
.action-nav-logo {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    display: flex;
    justify-content: center;
}
.action-nav-logo img {
    width: 32px;
    height: 32px;
    opacity: 0.7;
}
.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 5px 8px;
    border-radius: 5px;
    text-decoration: none;
    color: #888;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.action-btn:hover         { background: rgba(255,255,255,0.08); color: #ccc; }
.action-btn--admin        { color: #5a8a54; }
.action-btn--admin:hover  { color: #8bc98a; background: rgba(47,89,39,0.2); }
.action-btn--active       { background: rgba(255,255,255,0.1); color: #c8a87a; border-left: 2px solid #c8a87a; }
.action-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.action-label {
    font-size: 9px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.action-divider {
    width: 70%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 2px 0;
}

/* Logo — bleibt zentriert */
.banner {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: static;
    top: auto;
    left: auto;
    height: 55px;
    padding: 0;
}

/* Suchleiste */
.banner-search {
    display: flex;
    align-items: center;
    padding: 0 20px;
}
.sbx {
    position: relative;
    width: 240px;
    height: 28px;
    white-space: nowrap;
    box-sizing: border-box;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
}

 .banner-image {
     width: 100%;
     height: 30px;
     display: block;
     object-fit: contain; /* Schneidet das Bild, um es anzupassen */
     padding-top: 10px;
     image-rendering: crisp-edges; /* Verhindert Weichzeichnen */
     image-rendering: -webkit-optimize-contrast; /* Für Chrome */
 }

 .banner-text {
    font-family: 'Cinzel', serif;
    font-size: 30px;
    color: #ccc; /* Metallisch-grau */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), /* 3D-Effekt */
                 -1px -1px 2px rgba(255, 255, 255, 0.3); /* Highlight */
    letter-spacing: 20px;
    position: relative;
    margin: 0;
    display: inline-flex; /* Flex, aber inline, um die Positionierung stabiler zu machen */
}

.banner-text a {
    font-family: 'Cinzel', serif;
    font-size: 30px;
    color: #ccc; /* Metallisch-grau */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), /* 3D-Effekt */
                 -1px -1px 2px rgba(255, 255, 255, 0.3); /* Highlight */
    letter-spacing: 20px;
    text-decoration: none; /* Unterstreichung entfernt */
    transition: all 0.5s ease-out; /* Sanfte Animation für Farbe und Schatten */
    display: flex;
    align-items: center;
}

.banner-text a:hover {
    color: #ccc; /* Heller bei Hover */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); /* Leuchtspur-Effekt */
}

.logo-text {
    display: inline-block;
    text-decoration: underline;
}

.star-container {
    display: inline-block;
    margin: 0 0px 0 -10px; /* Abstand zwischen GEAR und BASE */
    line-height: 0; /* Verhindert zusätzlichen vertikalen Raum */
    position: relative; /* Für Überlagerung */
    width: 40px; /* Feste Breite */
    height: 40px; /* Feste Höhe */
    z-index: 10; /* Über der Schrift */
}

.logo-compass {
    width: 40px; /* Passt zum Container */
    height: 40px;
    display: block;
    position: absolute;
    top: -5px;
    left: 5px;
}

.logo-compass.loaded {
    animation: spinCompass 4s ease-out forwards; /* Drehung, langsamer zum Ende */
}

.logo-polarstern {
    width: 100px; /* Groß genug, um über die Schrift zu gehen */
    height: 100px;
    display: block;
    position: absolute;
    top: -35px; /* Deine perfekte Anpassung */
    left: -25px;
    opacity: 0; /* Start unsichtbar */
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)); /* Starker Lichteffekt */
}

.logo-polarstern.loaded {
    animation: glowPolarstern 4s ease-in-out forwards; /* Intensiver Effekt */
}

@keyframes spinCompass {
    0% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(300deg); /* Schneller Drehen */
    }
    100% {
        transform: rotate(360deg); /* Langsamer zum Ende */
    }
}

@keyframes glowPolarstern {
    0% {
        opacity: 0;
        transform: scale(0.5); /* Start klein */
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    }
    25% {
        opacity: 0.8; /* Einblenden */
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 1));
    }
    50% {
        opacity: 1; /* Peak */
        transform: scale(1.3); /* Stärkeres Pulsieren */
        filter: drop-shadow(0 0 50px rgba(255, 255, 255, 1)) brightness(1.5); /* Intensiver Glanz */
    }
    75% {
        opacity: 0.8;
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
    }
    100% {
        opacity: 0; /* Ausblenden */
        transform: scale(0.5);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
    }
}

 picture {
    top: 0px;
    position: relative; /* Oder absolute, je nach Layout */
    height: 230px; /* Beispiel: Feste Höhe für das Banner */
    overflow: hidden; /* Verhindert, dass Inhalte überlaufen */
}

@media (max-width: 1160px) {
    .banner {
        position: static; /* Mitscrollen in Mobile-Version */
        font-size: 34px; /* Kleinere Schrift für Mobile */
    }
}

@media (max-width: 768px) {
    .banner {
        position: static; /* Mitscrollen in Mobile-Version */
        font-size: 24px; /* Kleinere Schrift für Mobile */width: 100%;
    }

    .banner-image {
        height: 60px; /* Anpassung der Bildhöhe */
    }
}

.global-search {
    display: flex;
    align-items: center;
    justify-content: center; /* Alles mittig */
    max-width: 1200px; /* Gleiche Breite wie Kacheln */
    margin: 10px auto 0 250px;
}

#globalsearchInput {
    background-color: #fff; /* Standard-Weiß */
    border: 1px solid #ccc; /* Neutraler Rahmen */
    color: #000; /* Schwarzer Text */
    padding: 5px 10px;
    border-radius: 3px;
    outline: none;
    width: 300px; /* Feste Breite, anpassbar */
    font-size: 0.9rem;
    margin: 5px var(--spacing-md);
}

#globalsearchInput::placeholder {
    color: #999; /* Neutrales Grau für Platzhalter */
    opacity: 0.7;
}

#globalsearchInput:focus {
    border-color: #6CB4F3; /* Leichter Fokus-Effekt */
    box-shadow: 0 0 3px rgba(108, 180, 243, 0.5);
}

.sbx {
  position: relative;
  width: 200px;
  height: 25px;
  white-space: nowrap;
  box-sizing: border-box;
  font-size: 0.9em;
  display: inline-flex;
  align-items: center;
  justify-content: center; /* Alles mittig */
}

.sbx__wrapper {
  width: 100%;
  height: 100%;
}

.sbx__input {
  display: inline-block;
  -webkit-transition: box-shadow .4s ease, background .4s ease;
  transition: box-shadow .4s ease, background .4s ease;
  border: 0;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  background: rgba(204, 204, 204, 0.7);/*#F5F8FA;*/
  padding: 0;
  padding-right: 52px;
  padding-left: 16px;
  width: 100%;
  height: 100%;
  vertical-align: middle;
  white-space: normal;
  font-size: inherit;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.sbx__input::-webkit-search-decoration, .sbx__input::-webkit-search-cancel-button, .sbx__input::-webkit-search-results-button, .sbx__input::-webkit-search-results-decoration {
  display: none;
}

.sbx__input:hover {
  box-shadow: inset 0 0 0 1px #c1d0da;
}

.sbx__input:focus, .sbx__input:active {
  outline: 0;
  box-shadow: inset 0 0 0 1px #D6DEE3;
  background: #FFFFFF;
}

.sbx__input::-webkit-input-placeholder {
  color: #444;
}

.sbx__input::-moz-placeholder {
  color: #444;
}

.sbx__input:-ms-input-placeholder {
  color: #444;
}

.sbx__input::placeholder {
  color: #444;
  font-size: 0.8em;
}

.sbx__submit {
  position: absolute;
  top: 0;
  right: 0;
  left: inherit;
  margin: 0;
  border: 0;
  border-radius: 0 16px 16px 0;
  background-color: rgba(62, 130, 247, 0);
  padding: 0;
  width: 33px;
  height: 100%;
  vertical-align: middle;
  text-align: center;
  font-size: inherit;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.sbx__submit::before {
  display: inline-block;
  margin-right: -4px;
  height: 100%;
  vertical-align: middle;
  content: '';
}

.sbx__submit:hover, .sbx__submit:active {
  cursor: pointer;
}

.sbx__submit:focus {
  outline: 0;
}

.sbx__submit svg {
  width: 13px;
  height: 13px;
  vertical-align: middle;
  fill: #657580;
}

.sbx__reset {
  display: none;
  position: absolute;
  top: 4px;
  right: 33px;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  fill: rgba(0, 0, 0, 0.5);
}

.sbx__reset:focus {
  outline: 0;
}

.sbx__reset svg {
  display: block;
  margin: 4px;
  width: 11px;
  height: 11px;
}

.sbx__input:valid ~ .sbx__reset {
  display: block;
  -webkit-animation-name: sbx-reset-in;
          animation-name: sbx-reset-in;
  -webkit-animation-duration: .15s;
          animation-duration: .15s;
}

@-webkit-keyframes sbx-reset-in {
  0% {
    -webkit-transform: translate3d(-20%, 0, 0);
            transform: translate3d(-20%, 0, 0);
    opacity: 0;
  }
  100% {
    -webkit-transform: none;
            transform: none;
    opacity: 1;
  }
}

@keyframes sbx-reset-in {
  0% {
    -webkit-transform: translate3d(-20%, 0, 0);
            transform: translate3d(-20%, 0, 0);
    opacity: 0;
  }
  100% {
    -webkit-transform: none;
            transform: none;
    opacity: 1;
  }
}
