

/* Header Grundstruktur */
#header {
    width: 100vw;
    z-index: 20;
    top: 0;
    left: 0;
    position: fixed;
    background: #17171a;
    font-family: 'Poppins', sans-serif;
    color: #e4e4e4;
    box-shadow: 0 0.31vw 1.25vw rgba(0,0,0,0.14);
    border-bottom: 1px solid #ffe97a22;

}

/* Innenraum */
.header-inner {
    width: 96vw;
    max-width: 90vw;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 3.65vw;
    position: relative;
    justify-content: space-between;
}

/* Navigation */
#textbar {
    list-style: none;
    display: flex;
    gap: 1.7vw;
    align-items: center;
    margin: 0;
    padding: 0;
    z-index: 21;
}

.barpoint {
    position: relative;
    font-size: 0.98vw;
    font-weight: 500;

}

/* Hauptlinks */
.linkno {
    color: #e4e4e4;
    text-decoration: none;
    padding: 0.42vw 0.83vw;
    border-radius: 0.36vw;
    transition: background 0.18s, color 0.18s;
    display: inline-block;
    font-size: 0.98vw;

}

.linkno.active, .barpoint:hover > .linkno {
    background: #232328;
    color: #fff685;
    font-weight: 700;
}

/* SUBMENÜ — nur EINMAL im CSS!! */
.barpoint:hover .submenue {
    display: flex;
}

.submenue {
    display: none;
    position: fixed;
    left: 0;
    width: 100vw;
    top: 3.65vw;   /* exakt wie deine Headerhöhe! */
    background: #232328;
    box-shadow: 0 0.42vw 1.87vw rgba(0,0,0,0.18);
    padding: 2vw 4vw;
    gap: 3vw;
    flex-direction: row;
    z-index: 999;
    animation: fadein 0.18s;
    align-items: flex-start;
    justify-content: flex-start;    font-size: 1.07vw;
}

/* Items nebeneinander und mittig */
.submenue li {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 9vw;
    margin: 0 1.8vw;
    /* kein float mehr! */
}

.submenue a {
    color: #fffbe7;
    font-weight: 500;
    background: none;
    border-radius: 0.42vw;
    padding: 0.52vw 0.62vw;
    transition: color 0.14s, background 0.13s;
    text-decoration: none;
    display: block;
    text-align: center;
    font-size: 1.02vw;
}

.submenue a:hover {
    color: #fff685;
    background: #19191c;
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(0.42vw);}
    to { opacity: 1; transform: translateY(0);}
}

/* ZENTRIERTES LOGO */
.logo-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    top: 0.5vw; /* Abstand nach oben */
}

#app_logo {
    height: 2.8vw;
    filter: invert(1) brightness(2) contrast(1.1);
    opacity: 1;
    transition: filter 0.2s;
}

/* Social Media ICONS */
.iconseite {
    display: flex;
    gap: 0.6vw;
    margin-left: auto;
    align-items: center;
}

.icons-bg {
    background: #222227;
    border-radius: 50%;
    width: 2.3vw;
    height: 2.3vw;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.4vw;
    box-shadow: 0 0.1vw 0.62vw rgba(0,0,0,0.22);
    transition: box-shadow 0.18s, background 0.18s;
}

.icons-bg:hover {
    box-shadow: 0 0.2vw 1.46vw #fff68555;
    background: #1a1a1c;
}

.icons {
    height: 1.1vw;
    width: 1.1vw;
    object-fit: contain;
    padding: 0.21vw;
    display: block;
    box-sizing: content-box;
    filter: brightness(9) grayscale(1); /* Weiß machen */
    transition: filter 0.16s;
}

.barpoint {
    position: relative;
}

/* Erweiterung des Hoverbereichs nach unten */
.barpoint::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    height: 2vw;         /* Höhe = Abstand vom Menü zum Submenü, ggf. anpassen */
    top: 100%;           /* Direkt UNTER dem Menu-Punkt */
    z-index: 5;
    /* background: rgba(255,0,0,0.1);  // Für Debug: sieht man, wie groß das Feld ist! */
    pointer-events: auto;
}

/* Damit das Submenü bleibt, wenn man über das Feld fährt */
.barpoint:hover .submenue,
.barpoint:hover::after,
.submenue:hover {
    display: flex !important;
}


.submenue {
    display: flex;
    position: fixed;
    left: 0;
    width: 100vw;
    top: 3.65vw;
    background: #232328;
    box-shadow: 0 0.42vw 1.87vw rgba(0,0,0,0.18);
    padding: 2vw 4vw;
    gap: 3vw;
    flex-direction: row;
    z-index: 999;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 1.07vw;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-2vw);
    transition: opacity 0.28s cubic-bezier(.52,.01,.32,1), transform 0.28s cubic-bezier(.52,.01,.32,1);
}

.barpoint:hover .submenue,
.barpoint:focus-within .submenue,
.submenue:hover {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
