﻿/* =========================================================
   CleanDation – öffentliche Navigation
   ========================================================= */

.home-public-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


.home-public-header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1320px;
    min-height: 78px;
    margin: 0 auto;
    padding: 0 2.5rem;
}


/* =========================================================
   Logo
   ========================================================= */

.home-public-logo-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}


.home-public-logo {
    display: block;
    width: auto;
    height: 24px;
    object-fit: contain;
}


/* =========================================================
   Desktop-Navigation
   ========================================================= */

.home-public-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-left: 4rem;
}


    .home-public-nav a {
        color: #172033;
        font-size: 1rem;
        font-weight: 650;
        text-decoration: none;
        transition: color 0.15s ease, opacity 0.15s ease;
    }


        .home-public-nav a:hover {
            color: #1976d2;
        }


/* =========================================================
   Aktionen rechts
   ========================================================= */

.home-public-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
}


.home-header-login {
    color: #172033;
    font-size: 1rem;
    font-weight: 650;
    text-decoration: none;
}


    .home-header-login:hover {
        color: #1976d2;
    }


.home-header-register {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
}


/* =========================================================
   Account-Dropdown
   ========================================================= */

.home-account-menu-wrapper {
    position: relative;
    flex: 0 0 auto;
}


.home-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 48px;
    height: 44px;
    padding: 0 0.7rem;
    color: #172033;
    background: #ffffff;
    border: 1px solid #d6deea;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}


    .home-account-button:hover {
        color: #1976d2;
        border-color: #b9c8da;
        background-color: #f8fafc;
    }


    .home-account-button:focus-visible {
        outline: 3px solid rgba(25, 118, 210, 0.2);
        outline-offset: 2px;
    }


.home-account-icon {
    font-size: 1rem;
    line-height: 1;
}


.home-account-chevron {
    font-size: 0.85rem;
    line-height: 1;
}


/* =========================================================
   Account-Dropdown Inhalt
   ========================================================= */

.home-account-dropdown {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    z-index: 300;
    width: 250px;
    padding: 0.55rem;
    background: #ffffff;
    border: 1px solid #dfe5ed;
    border-radius: 10px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.16);
}


.home-account-dropdown-user {
    padding: 0.65rem 0.7rem;
}


.home-account-dropdown-label {
    margin-bottom: 0.2rem;
    color: #8a94a6;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


.home-account-dropdown-email {
    overflow: hidden;
    color: #172033;
    font-size: 0.9rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.home-account-dropdown-divider {
    height: 1px;
    margin: 0.4rem 0;
    background: #e8ecf1;
}


.home-account-dropdown-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.7rem;
    color: #172033;
    border-radius: 7px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}


    .home-account-dropdown-link:hover {
        color: #1976d2;
        background: #f4f8fd;
        text-decoration: none;
    }


/* =========================================================
   Logout Desktop
   ========================================================= */

.home-account-logout-form {
    margin: 0;
}


.home-account-logout-button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.7rem;
    color: #c62828;
    background: transparent;
    border: 0;
    border-radius: 7px;
    font-size: 0.92rem;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}


    .home-account-logout-button:hover {
        color: #b71c1c;
        background: #fff3f3;
    }


/* =========================================================
   Mobile Menü Button
   ========================================================= */

.home-mobile-menu-button {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 1px solid #d6deea;
    border-radius: 9px;
    cursor: pointer;
}


    .home-mobile-menu-button span {
        display: block;
        width: 20px;
        height: 2px;
        background-color: #172033;
        border-radius: 999px;
    }


/* =========================================================
   Mobiles Dropdown-Menü
   ========================================================= */

.home-mobile-menu {
    display: none;
    padding: 0.75rem 1.25rem 1.25rem;
    background-color: #ffffff;
    border-top: 1px solid #edf0f5;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}


    .home-mobile-menu a {
        display: block;
        width: 100%;
        padding: 0.85rem 0;
        color: #172033;
        font-size: 1rem;
        font-weight: 650;
        text-decoration: none;
    }


        .home-mobile-menu a:hover {
            color: #1976d2;
        }


.home-mobile-menu-divider {
    height: 1px;
    margin: 0.5rem 0;
    background-color: #e6eaf0;
}


.home-mobile-menu .home-mobile-register {
    margin-top: 0.35rem;
    padding: 0.85rem 1rem;
    color: #ffffff;
    text-align: center;
    background-color: #1976d2;
    border-radius: 8px;
}


    .home-mobile-menu .home-mobile-register:hover {
        color: #ffffff;
        background-color: #1565c0;
    }


/* =========================================================
   Angemeldeter Benutzer – Mobile
   ========================================================= */

.home-mobile-account {
    padding: 0.65rem 0 0.45rem;
}


.home-mobile-account-label {
    margin-bottom: 0.2rem;
    color: #8a94a6;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


.home-mobile-account-email {
    overflow: hidden;
    color: #172033;
    font-size: 0.95rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.home-mobile-logout-form {
    margin: 0.4rem 0 0;
}


.home-mobile-logout-button {
    display: block;
    width: 100%;
    padding: 0.85rem 0;
    color: #c62828;
    background: transparent;
    border: 0;
    font-size: 1rem;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}


    .home-mobile-logout-button:hover {
        color: #b71c1c;
    }


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 991.98px) {

    .home-public-header-inner {
        min-height: 70px;
        padding: 0 1.5rem;
    }


    .home-public-nav {
        gap: 1.5rem;
        margin-left: 2rem;
    }


        .home-public-nav a {
            font-size: 0.94rem;
        }


    .home-public-actions {
        gap: 0.8rem;
    }


    .home-account-dropdown {
        width: 235px;
    }
}


/* =========================================================
   Smartphone
   ========================================================= */

@media (max-width: 767.98px) {

    .home-public-header {
        position: sticky;
        top: 0;
    }


    .home-public-header-inner {
        min-height: 66px;
        padding: 0 1rem;
    }


    .home-public-logo {
        height: 29px;
    }


    .home-public-nav,
    .home-public-actions {
        display: none;
    }


    .home-mobile-menu-button {
        display: flex;
    }


    .home-mobile-menu {
        display: block;
    }


    .home-mobile-logout-button {
        min-height: 48px;
    }
}
