/* ---------------------------------------------------------
   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 {
    display: block;
    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;
    z-index:1000;
}

.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;
}

/* ---------------------------------------------------------
   Profile Dropdown & Badge Styles
--------------------------------------------------------- */


.profile-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.topbar-profile {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Status-Badge am Icon */
.profile-badge {
    position: absolute;
    top: -3px;
    right: -5px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
    line-height: 1;
}

.profile-badge.warning {
    background-color: #f59e0b; /* Bernstein / Orange */
    animation: pulseWarning 2s infinite;
}

.profile-badge.success {
    background-color: #10b981; /* Smaragdgrün */
}

@keyframes pulseWarning {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Dropdown-Container */
.profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 270px;
    background: #ffffff;
    color: #1f2937;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid #e5e7eb;
    padding: 14px;
    z-index: 1100;
    font-family: inherit;
    text-align: left;
}

.profile-dropdown.open {
    display: block;
}

/* Pfeil oben am Dropdown */
.profile-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    transform: rotate(45deg);
    border-left: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
}

.profile-dropdown-header {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-dropdown-header.warning { color: #d97706; }
.profile-dropdown-header.success { color: #059669; }

.profile-missing-list {
    margin: 8px 0 14px 0;
    padding-left: 18px;
    font-size: 13px;
    color: #4b5563;
}

.profile-missing-list li {
    margin-bottom: 3px;
}

.profile-desc-text {
    font-size: 13px;
    color: #4b5563;
    margin: 4px 0 14px 0;
    line-height: 1.4;
}

.profile-dropdown-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s ease;
}

.btn-warning-action {
    background: #f59e0b;
    color: #ffffff;
}
.btn-warning-action:hover {
    background: #d97706;
}

.btn-success-action {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    color: #ffffff;
}
.btn-success-action:hover {
   transform: translateY(-2px);
    background: linear-gradient(135deg, #5a657d, #374151);
    box-shadow: 0 6px 18px rgba(45, 55, 72, 0.35);
}



/* ---------------------------------------------------------
   NAVIGATION
--------------------------------------------------------- */


.main-nav {
    font-size: smaller;
    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-icon {
    display: block;
    width: 20px;
    height: 20px;
}

.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 1180px) Nav Bar Schriftgröße kleiner
--------------------------------------------------------- */
@media (max-width: 1180px) {

  .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 {
        font-size: medium;
        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;
    }

.topbar-profile img {
    width: 30px;
    height: 30px;
}

.cart-badge {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 16px;
    }
.topbar {

    font-size: 12px;
    padding: 0px !important;
    gap: 5px;
    flex-wrap: nowrap;
}
}