@charset "utf-8";

/* ----------------------------------------------------------
   DESKTOP LAYOUT
   ---------------------------------------------------------- */

.masterContainer{
    display:flex;
    flex-direction:row;
}

.topBar{
    flex: 1 250;
    border-radius:0 5px 5px 0;
    border:solid #feffcb 2px;
    border-left:0;
    background:#a7916a;
    margin:1em 1em 0 0;
    padding:15px;
    box-shadow:0 6px 20px rgba(0,0,0,0.12);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

/* links: Logo */
.topLeft{
    flex:0 0 auto;
    display:flex;
    align-items:center;
}

/* Mitte: Suche */
.topCenter{
    flex:1 1 auto;
    min-width:0;
    text-align:center;
}

/* rechts: Sprache + User */
.topRight{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:10px;
}

.navigation{
    flex:0 0 200px;
    border-radius:5px;
    border:solid #feffcb 2px;
    border-left:0;
    background:#a7916a;
    margin:1em 0;
    padding:10px;
    vertical-align:top;
    height:100%;
    position:sticky;
    box-shadow:0 6px 20px rgba(0,0,0,0.12);
}

.mainWindow{
    flex:1 250;
    border-radius:5px;
    border:solid #feffcb 2px;
    background:#a7916a;
    margin:1em 1em;
    padding:15px;
    box-shadow:0 6px 20px rgba(0,0,0,0.12);
}

/* ----------------------------------------------------------
   SEARCH (DESKTOP WIDTH)
   ---------------------------------------------------------- */

.search_field{
    width: 337px;
    left: 252px;
}

/* ----------------------------------------------------------
   NAVIGATION LINK STYLE (Sidebar)
   ---------------------------------------------------------- */

/* Link als Button */
.navigation a{
    display:flex;
    align-items:center;
    gap:10px;

    padding:10px 12px;
    margin:6px 0;

    text-decoration:none;
    color:#111;
    font-weight:600;

    border-radius:10px;
    border:1px solid rgba(255,255,255,0.35);

    background: rgba(255,255,255,0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);

    transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.navigation a:hover{
    background: rgba(255,255,255,0.14);
    transform: translateY(-1px);
}

@media (max-width: 900px){

    .userNameBtn,
    .logoutBtn{
        display:none !important;
    }
    .userIconBtn{
        display:inline-block !important;
    }
    /* optional: Suche etwas schmaler, damit rechts genug Luft bleibt */
    .topCenter .searchInput{
        width: 262px !important;
    }

    .logo {
        width: 42px;
        position: relative;
        left: 3px;
    }

    /* Sidebar kleiner, Content bekommt mehr Platz */
    .navigation{
        flex:0 0 150px;
    }

    /* Topbar kompakter */
    .topBar{
        padding:10px;
    }

    .mainWindow{
        margin:1em 0.5em;
        padding:12px;
    }

    /* Search/Suggest etwas breiter wenn Platz da ist */
    .search_field{
        width:260px;
        left: 196px;
    }
}

@media (max-width: 800px){

    .logo {
        width: 42px;
        position: relative;
        left: 3px;
    }

    /* Desktop-Layout bleibt Desktop, aber stacked (ohne bottomNav/drawer) */
    .masterContainer{
        flex-direction:column;
    }

    .navigation{
        position:static;
        flex:0 0 auto;
        margin:0;
        border-radius:0;
        border-left:0;
        border-right:0;
    }

    .topBar{
        margin:0;
        border-radius:0;
        border-left:0;
        border-right:0;
    }

    .mainWindow{
        margin:0;
        border-radius:0;
        border:0;
    }
}