/*!
 * nav.css v4.2.0 (https://michael-debler.de/media/css/style.css)
 * Copyright 2026 Michael Debler
 */

/* ============================================================
   GLOBAL: RESET & BASE
   ============================================================ */

html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}


/* Body-Fix bei geöffnetem Menü */
body.menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
}

/* ============================================================
   HEADER
   ============================================================ */

.header-white {
    background-color: #ffffff;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1400px;
    height: 70px;
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.6s ease;
    overflow: hidden;
}

body.menu-open .header-white {
    background-color: #010101;
}

.logo-container img {
    width: 38%;
    height: 38%;
    object-fit: cover;
    transition: filter 0.6s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

body.menu-open .logo-container img {
    filter: brightness(0) invert(1);
}

/* ============================================================
   USER-PILLE (NAME & LOGOUT)
   ============================================================ */

.user-menu-row {
    position: fixed;
    top: 105px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 10px 30px;
    border-radius: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    z-index: 4500;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

body.menu-open .user-menu-row {
    opacity: 1;
    pointer-events: auto;
}

.user-info-left {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.nav-avatar-icon {
    width: 40px; /* Etwas kleiner passt meist besser in die Nav */
    height: 40px;
    margin-right: 10px;
    display: inline-flex; /* Wichtig für die Ausrichtung im Text */
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    /* Keine background-color hier, die kommt vom PHP! */
}

.main-nav a .nav-avatar-icon {
    background-image: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

.user-name-text {
    font-weight: 800;
    font-size: 1rem;
    color: #111 !important;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.user-info-left:hover .user-name-text {
    color: #69C9D0 !important;
}

.user-actions-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-actions-right a {
    font-size: 0.85rem;
    color: #888 !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.user-actions-right a:hover {
    color: #111 !important;
}

.user-actions-right a.logout {
    color: #e74c3c !important;
    border: 1.5px solid rgba(231, 76, 60, 0.2);
    padding: 6px 15px;
    border-radius: 30px;
    margin-left: 10px;
}

.user-actions-right a.logout:hover {
    background: #e74c3c;
    color: #fff !important;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */

.breadcrumbs {
position: absolute;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1500px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    transition: all 0.7s cubic-bezier(0.85, 0, 0.15, 1);
}

body.menu-open .breadcrumbs {
    opacity: 0 !important;
    pointer-events: none !important;
}

.breadcrumbs-container {
    background: #ffffff;
    width: 100%;
    padding: 12px 40px;
    border-radius: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}

.breadcrumbs-left ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.prefix-text {
    font-size: 0.7rem;
    color: #bbb;
    text-transform: uppercase;
    font-weight: 700;
    margin-right: 15px;
}

.breadcrumbs-left li {
    font-size: 0.8rem;
    color: #111;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.breadcrumbs-left li:not(:last-child)::after {
    content: '/';
    margin: 0 15px;
    color: #eee;
}

.breadcrumb-link {
    color: var(--text-color-medium, #69C9D0); /* Standard-Linkfarbe: Dezentes Grau */
    text-decoration: none; /* Standardmäßig kein Unterstrich */
    position: relative; /* Für die Unterstrich-Animation */
    transition: color 0.3s ease; /* Übergang für Farbänderung */
}

/* Unterstrich-Animation beim Hover */
.breadcrumb-link::after { /* Korrigiert */
    content: '';
    position: absolute;
    width: 0%; /* Startbreite: 0 */
    height: 1px; /* Dicke des Unterstrichs */
    display: block;
    margin-top: 2px; /* Abstand zum Text */
    left: 0;
    bottom: -2px; /* Position des Unterstrichs unter dem Text */
    background: var(--primary-color, #333); /* Farbe des Unterstrichs, kann deine Primärfarbe sein */
    transition: width 0.3s ease; /* Animation der Breite */
}

.breadcrumb-link:hover { /* Korrigiert */
    color: var(--primary-color, #010101); /* Linkfarbe beim Hover: Deine Primärfarbe */
    text-decoration: none; /* Immer noch kein Standard-Unterstrich */
}

.breadcrumb-link:hover::after { /* Korrigiert */
    width: 100%; /* Breite beim Hover: 100% */
}

.breadcrumbs-right {
    font-size: 1rem;
    color: #111;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.breadcrumbs-separator {
    font-size: 0.7rem;
    color: #bbb;
    text-transform: uppercase;
    font-weight: 700;
    margin-right: 15px;
}


.breadcrumbs-extra-text {

}


.breadcrumb-avatar {

}



/* ============================================================
   MENÜ-OVERLAY
   ============================================================ */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    z-index: 4000;
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    -ms-overflow-style: none;
    scrollbar-width: none;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.main-nav.open {
    transform: translateY(0);
}

.nav-content-wrapper {
    width: 100%;
    padding-top: 190px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
    width: 100%;
}

.main-nav li {
    margin: 20px 0;
    width: 100%;
}

.main-nav a.menu-item {
    color: #111;
    font-size: 2.5rem;
    text-decoration: none !important;
    font-weight: 200;
    letter-spacing: -1px;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
}

.main-nav a.menu-item:hover {
    letter-spacing: 5px;
    color: #69C9D0;
}

.has-submenu > a::after {
    content: '+';
    font-size: 1.8rem;
    margin-left: 15px;
    color: #69C9D0;
    transition: transform 0.4s ease;
}

.has-submenu.active > a::after {
    transform: rotate(45deg);
}

/* ============================================================
   SUBMENÜ
   ============================================================ */

.submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 30px;
    width: 85%;
    max-width: 500px;
    margin: 15px auto;
    box-sizing: border-box;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.submenu.active {
    max-height: 800px;
    opacity: 1;
    padding-top: 20px;
    padding: 25px;
}

.submenu a {
    font-size: 1.6rem;
    color: #555 !important;
    text-decoration: none !important;
    display: block;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.submenu a:hover {
    color: #000 !important;
    letter-spacing: 2px;
}

/* ============================================================
   MENÜ-BUTTON & HINWEIS
   ============================================================ */

.menu-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: #010101;
    z-index: 6000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-button:hover {
    transform: scale(1.1) rotate(90deg);
    background-color: #69C9D0;
}

body.menu-open .menu-button {
    transform: rotate(180deg);
}

.hamburger div {
    width: 24px;
    height: 2px;
    background-color: #fff;
    margin: 6px 0;
    transition: 0.4s;
}

body.menu-open .hamburger div:nth-child(2) {
    opacity: 0;
}

body.menu-open .hamburger div:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

body.menu-open .hamburger div:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-info {
    position: fixed;
    bottom: 48px;
    right: 110px;
    background: #010101;
    color: #fff;
    padding: 10px 20px;
    border-radius: 15px 15px 0 15px;
    font-size: 0.85rem;
    z-index: 5900;
    transition: opacity 0.4s ease;
}

body.menu-open .menu-info {
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   RESPONSIVE DESIGN: MOBILE & TABLET
   ============================================================ */

/* ------------------------------------------------------------
   TABLET (max-width: 1024px)
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .user-menu-row { width: 92%; top: 95px; }
    .breadcrumbs { width: 92%; top: 100px; }
}

/* ------------------------------------------------------------
   MOBILE (max-width: 768px)
   ------------------------------------------------------------ */
@media (max-width: 768px) {

    /* Breadcrumbs vereinfachen */
    .breadcrumbs-right,
    .breadcrumbs-separator,
    .breadcrumbs-extra-text {
        display: none !important;
    }

    .breadcrumbs-container {
        justify-content: center;
        padding: 10px 20px;
    }

    /* User-Pille optimieren */
    .user-menu-row {
        width: 88%;              /* Einheitlich & harmonisch */
        top: 111px;
        padding: 8px 15px;
        max-width: none;
        left: 50%;
        transform: translateX(-50%);
        box-sizing: border-box;
    }

    .nav-avatar-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 11px !important;
    }

    .user-name-text {
        font-size: 0.85rem;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Menü */
    .main-nav a.menu-item {
        font-size: 1.8rem;
    }

    .submenu {
        width: 90%;
        margin: 0 auto;
        max-width: 300px;
    }

    .submenu a {
        font-size: 1.2rem;
    }

}

/* ------------------------------------------------------------
   SMALL MOBILE (max-width: 480px)
   ------------------------------------------------------------ */
@media (max-width: 480px) {
.logo-container img {
    width: 100%;
    height: 100%;
}

    .user-menu-row {
        width: 92%;
        gap: 5px;
    }

    .user-actions-right a {
        font-size: 0.65rem;
    }

    .main-nav a.menu-item {
        font-size: 1.6rem;
    }
}