/* ---------------------------------------------------------
   GLOBAL
--------------------------------------------------------- */
* {
    box-sizing: border-box;
}

/* Max-Breite für den Inhalt */
.container-1600 {
    max-width: 1250px;
    margin: 0 auto;      /* zentriert */
    padding: 0 20px;     /* etwas Innenabstand */
}

/* ---------------------------------------------------------
   TOPBAR
--------------------------------------------------------- */
/* TOPBAR */
.topbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    padding: 8px 20px;
}

.topbar-profile img {
    width: 40px;
    height: 40px;
}

.topbar-cart {
    display: flex;
    align-items: center;
}

.cart-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 18px;
}

.admin-icon svg {
    width: 18px;
    height: 18px;
    fill: #003366;
    opacity: 0.9;
}

/* NAVBAR */
.nav-user-email {
    font-weight: 500;
    opacity: 0.9;
}
.admin-icon svg {
    width: 18px;
    height: 18px;
    display: block;        /* verhindert "oben kleben" */
}


/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */
.ski-header {
    background-color: #fff;
    width: 100%;
    height: 140px;
    position: relative;
    overflow: visible;
}

.header-overlay {
    position: absolute;
    inset: 0;
}

.header-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start; /* Hamburger links */
    align-items: self-end;
    gap: 20px;
    color: #333;
}

.header-logo {
    margin-bottom: 5px;
    height: 130px;
}

.header-logo-main {
    margin-bottom: 5px;
    height: 130px;
}

.header-title h1 {
    margin: 10px;
    font-size: 35px;
    text-shadow: 0 3px 8px rgba(0,0,0,0.5);
}

.restzeit {
    font-size: 14px;
}

/* ---------------------------------------------------------
   NAVIGATION
--------------------------------------------------------- */


.main-nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    padding: 5px 20px;
    display: flex;
    gap: 10px;
    align-items: center;
box-shadow: 0 12px 18px rgba(0,0,0,0.15);

}

.main-nav a {
 text-align: center;
    color: white;
    text-decoration: none;
    padding: 5px 5px;
}

.main-nav a:hover {
    background: #ddd;
    color: black;
}




.disabled-link {
    background: #555 !important;
    color: #ccc !important;
    pointer-events: none !important;
    opacity: 0.6;
}
.nav-inner {
    width:100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* Das div mit dem Warenkorb wird nach rechts geschoben */
.nav-right {
    gap: 5px;
    padding-right: 20px;
    color: white;
    display: flex;
    margin-left: auto;
    flex-direction: row;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}


/* ---------------------------------------------------------
   CART BADGE
--------------------------------------------------------- */
.header-cart {
    margin-left: auto;
    padding-right: 30px;
    text-decoration: none;
}

.cart-badge {
    display: flex;
    align-items: right;
    gap: 6px;
    padding: 10px 25px;
    background: #4D4D4D;
    color: #fff;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
justify-content:center;
}

.cart-count {
    background: #fff;
    color: #003366;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
}

/* ---------------------------------------------------------
   HAMBURGER
--------------------------------------------------------- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #333;
}

/* ---------------------------------------------------------
   Desktop (bis 1150px) Nav Bar Schriftgröße kleiner
--------------------------------------------------------- */
@media (max-width: 1150px) {

  .main-nav a {
   font-size:smaller;
  }
  .nav-right {
    font-size:smaller;
  }

}


/* ---------------------------------------------------------
   📱 MOBILE (bis 1024px)
--------------------------------------------------------- */
@media (max-width: 1024px) {

    /* Hamburger sichtbar */
    .hamburger {
        display: flex;
    }


 .topbar {

    font-size: 12px;
    padding: 0px !important;
    flex-wrap: nowrap;
}


    .topbar-profile img {
  
        flex-shrink: 0; /* verhindert Zusammendrücken */
    }



    /* Header flacher */
    .ski-header {
        height: 100px !important;
box-shadow: 0 12px 18px rgba(0,0,0,0.15);

    }

    /* Header-Inhalt links */
    .header-inner {
        justify-content: flex-start !important;
        gap: 10px;
        align-items: center !important;
    }

    /* Logos skalieren */
    .header-logo {
        width: 90px !important;
        height: auto !important;
        padding-left:0px !important;
        margin-bottom: 0px !important;
    }

    .header-logo-main {
       
        height: auto !important;
        max-width: 250px !important;
        margin-bottom: 0px !important;
    }

    /* Navigation mobil */
    .main-nav {
        display: block;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.3s ease;
    }

    .main-nav.open {
        max-height: 400px;
        padding: 12px 0;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
        display: block;
    }
.nav-inner {
    display: block;
    
}
.nav-right {
       margin-top: 20px;
   }
.cart-badge {
    padding: 12px 18px;
    border-radius: 24px;
    font-size: 16px;
    }
}

/* ---------------------------------------------------------
   📱 MOBILE – Header-Titel kleiner
--------------------------------------------------------- */
@media (max-width: 768px) {
    .header-title h1 {
        font-size: 26px !important;
    }

    /* Logos skalieren */
    .header-logo {
        width: 60px !important;
        height: auto !important;
padding-left:0px !important;
    }

    .header-logo-main {
        width: 100px !important;
        height: auto !important;
        max-width: 150px !important;
    }

.cart-badge {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 16px;
    }
.topbar {

    font-size: 12px;
    padding: 0px !important;
    gap: 5px;
    flex-wrap: nowrap;
}
}