* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    overflow-x: hidden;
}


body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0a001f, #1a0f3a, #2a1b4d, #000);
    color: #e0d0ff;
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #0d0a1e;
    padding: 20px 16px 100px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-right: 1px solid #1a1440;
    z-index: 1200;
    pointer-events: auto;
}

@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        left: -280px;
        width: 280px;
        max-width: 85vw;
        transition: left 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        box-shadow: 4px 0 25px rgba(0,0,0,0.5);
        border-right: none;
        padding-bottom: 20px;
    }
    .sidebar.active {
        left: 0;
    }
    .sidebar:not(.active) {
        left: -280px;
        display: block;
    }
}

@media (min-width: 1025px) {
    .sidebar {
        position: relative;
        flex-shrink: 0;
    }
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: bold;
    color: #c4a0ff;
    text-align: center;
    width: 100%;
}

.logo img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.search {
    position: relative;
}

.search input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: none;
    border-radius: 30px;
    background: #1a1440;
    color: #e0d0ff;
    font-size: 15px;
}

.search i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a78bfa;
}

nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #d0c0ff;
    text-decoration: none;
    font-size: 16px;
    border-radius: 12px;
    transition: all 0.2s;
}

nav a:hover,
nav a.active {
    background: #2a1b4d;
    color: #fff;
}

.footer-info {
    margin-top: auto;
    font-size: 13px;
    opacity: 0.7;
    line-height: 1.5;
margin-bottom: 6px;
}

/* Hamburger & Overlay */
.hamburger {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1300;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    pointer-events: auto;
}

@media (max-width: 1024px) {
    .hamburger {
        display: block;
    }
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #e0d0ff;
    margin: 5px auto;
    transition: all 0.3s;
    border-radius: 3px;
}

.sidebar.active + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.sidebar.active + .hamburger span:nth-child(2) {
    opacity: 0;
}

.sidebar.active + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1190;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Video-Bereich & Feed – zentriert */
.video-main {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #FFCC66 0%, #FFC000 30%, #CC9900 100%);
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

@media (min-width: 1025px) {
    .video-main {
        padding: 20px;
    }

    .feed-container,
    .video-slide {
        width: 100%;
        max-width: 600px;
        height: 100vh;
        max-height: 90vh;
        margin: 0 auto;
        background: linear-gradient(135deg, #4396DD 0%, #7C7CD6 50%, #8A65C7 100%);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 0 40px rgba(0,0,0,0.6);
    }
  .video-slide .bottom-user {
      bottom: 0;          /* ganz unten */
      left: 0;            /* bündig */
      right: 0;           /* bündig */
      width: 100%;        /* volle Breite der Slide */
      border-radius: 0;   /* keine Rundung unten */
  }
}

@media (max-width: 1024px) {
    .video-main {
        margin-left: 0;
        padding: 0;
        position: fixed;
        inset: 0;
        height: 100dvh;
        width: 100dvw;
    }

    .feed-container,
    .video-slide {
        width: 100dvw;
        height: 100dvh;
    }
}

.feed-container {
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    pointer-events: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.feed-container::-webkit-scrollbar {
    display: none;
}

.video-slide {
    scroll-snap-align: start;
    position: relative;
    background: #000;
}

.videoEl {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Progress-Bar */
.progress-bar {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.25);
    z-index: 50;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #ffffff;
    transition: width 0.18s linear;
}

/* Rechte Action-Bar */
.right-bar {
    position: absolute;
    right: 16px;
    bottom: 180px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 40;
    text-align: center;
    pointer-events: auto;
}

.action {
    color: white;
    text-shadow: 0 2px 6px black;
}

.action i {
    font-size: 36px;
    margin-bottom: 6px;
    display: block;
}

/* Action-Bar bei Promo ausblenden */
.video-slide[data-promo="true"] .right-bar {
    display: none !important;
}

/* Bottom User-Info */
.bottom-user {
    position: absolute;
    bottom: 80px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 40;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 16px;
    border-radius: 16px 16px 0 0;
    backdrop-filter: blur(6px);
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #444 center/cover;
    
}

/* Promo-Videos: Logo statt Avatar */
.video-slide.video-only .bottom-user .avatar {
    background: url('/pics/icons/er_links.jpg') center/cover no-repeat !important;
    border-color: #cc9900;
    background-color: transparent !important;
}

/* Sound-Toggle pro Video */
.video-slide .sound-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 20px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 60;
    backdrop-filter: blur(8px);
}

.video-slide .sound-toggle.muted i {
    color: #ff4444;
}

/* Globaler Sound-Toggle (oben rechts) */
.sound-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(26,20,64,0.7);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    z-index: 1400;
    transition: all 0.2s ease;
}

.sound-toggle:hover {
    background: rgba(26,20,64,0.9);
    transform: scale(1.1);
}

.sound-toggle.muted i {
    color: #ff4444;
}

/* Bottom Navigation – nur Mobile */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1100;
    padding: 0 8px;
    pointer-events: auto;
}

@media (min-width: 1025px) {
    .bottom-nav {
        display: none !important;
    }
}

/* Footer-Buttons in Sidebar (Desktop) */
@media (min-width: 1025px) {
    .nav-desktop-only {
        display: block;
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .nav-desktop-only a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        color: #d0c0ff;
        text-decoration: none;
        font-size: 16px;
        border-radius: 12px;
        transition: all 0.2s;
    }

    .nav-desktop-only a:hover,
    .nav-desktop-only a.active {
        background: #2a1b4d;
        color: #fff;
    }

    .nav-desktop-only .plus {
        padding: 12px 16px;
    }
}

@media (max-width: 1024px) {
    .nav-desktop-only {
        display: none !important;
    }
}

/* Klickbarkeit sichern */
.nav-item,
.nav-desktop-only a,
.nav-item * {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Cart-Button in Footer Mitte (Mobile) */
.plus-circle {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ffffff 0%, #A9C9F3 50%, #486EC4 100%);
    border-radius: 50%;
    margin-top: -28px;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.plus-circle::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/pics/icons/cart.png') center/contain no-repeat;
    opacity: 1;
    z-index: 1;
}

/* FORCIERTE Active-State für Footer- und Sidebar-Buttons */
.nav-item.active,
.nav-desktop-only a.active {
    color: #fe2c55 !important;
    
}


/* Eltern-Button relativ machen – damit die Linie richtig sitzt */
.bottom-nav .nav-item {
    position: relative;
}

/* Sicherstellen, dass die Linie sichtbar ist */
.bottom-nav .nav-item.active::after {
    display: block !important;
}
/* Sicherstellen, dass Klicks durchkommen */
.nav-item,
.nav-desktop-only a,
.nav-item *,
.nav-desktop-only a * {
    pointer-events: auto !important;
    cursor: pointer !important;
    user-select: none !important;
}


/* Eltern-Button relativ machen – damit Linie richtig positioniert ist */
.bottom-nav .nav-item {
    position: relative;
    text-align: center;
    padding-bottom: 15px;             /* Extra-Padding unten – Linie hat Platz */
}

/* Sicherstellen, dass die Linie sichtbar ist und nicht durchstreicht */
.bottom-nav .nav-item.active::after {
    display: block !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}
/*NEU*/
/* Footer-Buttons: Icons + Text, KEINE Linie */
.bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    font-weight: 100;
    height: 100%;
    pointer-events: auto;
    cursor: pointer;
    transition: color 0.2s;
}

/* Active-State: nur Farbe ändern, KEINE Linie */
.bottom-nav .nav-item.active {
    color: #4396DD !important;
}

/* Cart mittig + größer */
.bottom-nav .plus-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FFCC66 0%, #FFC000 50%, #CC9900 100%);
    border-radius: 50%;
    margin-top: -28px;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bottom-nav .plus-circle::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/pics/icons/cart.png') center/contain no-repeat;
    opacity: 1;
    z-index: 1;
}

/* Klickbarkeit sichern */
.bottom-nav .nav-item,
.bottom-nav .nav-item * {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Footer-Icons größer machen – NUR Icons, Text bleibt klein */
.bottom-nav .nav-item i {
    font-size: 32px !important;    /* Icons größer (z. B. 32px – passe bei Bedarf an) */
    margin-bottom: 2px !important; /* weniger Abstand zum Text */
}

.bottom-nav .nav-item span {
    font-size: 11px !important;    /* Text bleibt klein */
    line-height: 1;                /* enger Zeilenabstand */
}

/* Pfoten-Button im Footer noch etwas größer (optional) */
.bottom-nav .plus-circle {
    width: 64px !important;        /* Pfote-Kreis größer */
    height: 64px !important;
    margin-top: -32px !important;  /* Zentrierung anpassen */
}

.bottom-nav .plus-circle::before {
    background-size: 65% !important; /* Pfote etwas größer im Kreis */
}
/* Rechte Action-Bar – neue Icons stylen */
/*.right-bar .action:nth-child(5) i { color: #1da1f2; } /* Kommentare – Twitter-Blau */
/*.right-bar .action:nth-child(6) i { color: #00c853; } /* Teilen – Grün (Share) */

/* Modal Overlay */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Modal Box */
.auth-modal {
    background: rgba(26,20,64,0.85);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 32px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(167,139,250,0.2);
z-index: 1200;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

.modal-logo {
    text-align: center;
    margin-bottom: -40px;
}

.modal-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 8px;
}

.modal-logo h2 {
    font-size: 28px;
    color: #c4a0ff;
    margin: 0;
}

.auth-modal h3 {
    text-align: center;
    margin-bottom: 16px;
    font-size: 20px;
}

.modal-text {
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-text a {
    color: #a78bfa;
    text-decoration: underline;
}

.modal-tabs {
    display: flex;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}

.modal-tabs button {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: #d0c0ff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-tabs button.active {
    background: rgba(167,139,250,0.3);
    color: #fff;
    font-weight: bold;
}

.modal-form {
    display: none;
}

.modal-form.active {
    display: block;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(167,139,250,0.3);
    border-radius: 12px;
    background: rgba(26,20,64,0.5);
    color: #fff;
    font-size: 16px;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #a78bfa, #c084fc);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(167,139,250,0.4);
}

.modal-or {
    text-align: center;
    margin: 16px 0;
    opacity: 0.6;
    font-size: 14px;
}

.btn-social {
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-social.google {
    background: #4285f4;
}

.btn-social.apple {
    background: #000;
}
.auth-modal-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
}
/* Logout-Button in Sidebar (Desktop) */
.logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #ff4444; /* rot für Abmelden */
    text-decoration: none;
    font-size: 16px;
    border-radius: 12px;
    transition: all 0.2s;
    margin-top: 16px;
}

.logout-btn:hover {
    background: rgba(255,68,68,0.15);
    color: #fff;
}

.logout-btn i {
    font-size: 24px;
}

.auth-modal-overlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.auth-modal-overlay.show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.error-msg {
    color: #ff4444;
    font-size: 14px;
    text-align: center;
    margin-top: 16px;
    padding: 8px;
    background: rgba(255,68,68,0.15);
    border-radius: 8px;
}
/* Produktbild soll wie Video covern */
.productImg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Nur Videos sollen Progressbar + Sound bekommen */
.video-slide.product-slide .progress-bar,
.video-slide.product-slide .sound-toggle{
  display: none !important;
}
.video-slide[data-promo="true"] .right-bar {
    display: none !important;
}

/* Sidebar Icons – Grundzustand */
.sidebar nav a i {
    font-size: 18px;
    transition: all 0.25s ease;
}

/* Hover Glow Effekt */
.sidebar nav a:hover i {
    color: #ffcc66; /* helles gold*/
    text-shadow:
        0 0 6px rgba(192,132,252,0.7),
        0 0 12px rgba(168,85,247,0.6),
        0 0 20px rgba(139,92,246,0.5);
    transform: scale(1.15);
}

/* Active Zustand */
.sidebar nav a.active i {
    color: #cc9900; /* GOLD */
    text-shadow:
        0 0 8px rgba(67,150,221,0.7),
        0 0 18px rgba(124,124,214,0.6);
}
/* Desktop: eine fixe Action-Bar rechts am Browserrand */
@media (min-width: 1025px) {

  /* Die eingebauten right-bars in den Slides auf Desktop ausblenden */
  .video-slide .right-bar {
    display: none !important;
  }

  /* Globale Desktop-Action-Bar (wird per JS eingefügt) */
  #desktopActionBar {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2000;

    width: 92px;
    padding: 18px 0;

    display: none; /* wird nur gezeigt, wenn aktueller Slide ein Produkt ist */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;

    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    box-shadow: 0 0 25px rgba(0,0,0,0.35);
    pointer-events: auto;
  }

  #desktopActionBar .action i {
    font-size: 36px;
    margin-bottom: 6px;
    display: block;
  }
  #desktopActionBar .action {
    color: #fff;
    text-shadow: 0 2px 6px #000;
    text-align: center;
    cursor: pointer;
    user-select: none;
  }
}

