
:root {
    /* Color styles */
    --primary: hsl(265, 38%, 13%);
    --secondary: hsl(283, 6%, 45%);
    --tertiary: hsl(257, 15%, 91%);
    --light: hsl(270, 100%, 99%);
    --accent: hsl(278, 100%, 92%);
    --accent--alt: hsl(279, 100%, 97%);
    --accent--ui: hsl(284, 55%, 66%);
    
}

*,
*::before,
*::after {
  box-sizing: border-box;
}


body { font-family: Arial, sans-serif; margin:0; padding:0; background:#f4f4f4; }
a {
    color: inherit;
    text-decoration: none;
}


header { background:#333; color:white; padding:1rem; text-align:center; position:relative; }
header button { position:absolute; right:1rem; top:1rem; background:#28a745; color:white; border:none; padding:0.5rem 1rem; border-radius:4px; cursor:pointer; }

main { padding:1rem; display:grid; grid-template-columns:repeat(auto-fit, minmax(200px,1fr)); gap:1rem; }
.product, .cart-item { background:white; padding:1rem; border-radius:8px; box-shadow:0 2px 5px rgba(0,0,0,0.1); text-align:center; cursor:pointer; }
.product img, .cart-item img { max-width:100%; height:auto; border-radius:4px; }
.detail, #cart { display:none; max-width:600px; margin:1rem auto; padding:1rem; background:white; border-radius:8px; box-shadow:0 2px 5px rgba(0,0,0,0.1); }
.detail img { max-width:100%; height:auto; border-radius:4px; }
.back, .buy, .remove { margin-top:1rem; background:#007bff; color:white; border:none; padding:0.5rem 1rem; cursor:pointer; border-radius:4px; }
.buy { background:#28a745; }
.remove { background:#dc3545; }
form { display:flex; flex-direction:column; gap:0.5rem; margin-top:1rem; }
form input, form select { padding:0.5rem; border-radius:4px; border:1px solid #ccc; }
footer {background:#333; color:white; padding:1rem; display:grid; grid-template-columns:repeat(auto-fit, minmax(200px,1fr)); gap:1rem;}
  


/* Drawer-Grundlayout */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background: #333;
  color: #fff;
  overflow-y: auto;
  transform: translateX(-100%); /* ausgeblendet */
  transition: transform 0.3s ease; /* sanftes Ein-/Ausfahren */
  z-index: 1000;
  padding-top: 60px; /* Platz für Header */
}

.drawer.open {
  transform: translateX(0); /* sichtbar */
}

/* Overlay für Hintergrund */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 999;
}

.drawer-overlay.show {
  display: block;
}

/* Menü-Button */
.menu-toggle {
  cursor: pointer;
  padding: 12px 16px;
  background: #333;
  color: #fff;
}

/* Kategorien */
.drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer li {
  border-bottom: 1px solid #444;
}

.drawer a {
  display: block;
  padding: 12px 16px;
  color: #fff;
  text-decoration: none;
}

.drawer a:hover {
  background: #444;
}

/* Dropdowns */
.drawer ul ul {
  display: none;
  flex-direction: column;
  background: #444;
}

.drawer ul ul.open {
  display: flex;
}
.submenu {
  display: none;
  flex-direction: column;
  background: #444;
}

.submenu.open {
  display: flex;
}


.fly-image {
  position: absolute;
  z-index: 1000;
  transition: all 0.7s ease-in-out;
  pointer-events: none;
}

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.pulse {
  animation: pulse 0.3s ease;
}
#submitBn {
  background:#28a745; color:white; border:none; padding:0.5rem 1rem; border-radius:4px;
}
#submitBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}



    
#usernotice {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    display: none;
    position: relative;
    opacity: 1;
    transition: opacity 0.5s ease; /* Fade-Effekt */
   }
#usernotice .close-btn {
    position: absolute;
    top: 5px;
    right: 8px;
    cursor: pointer;
    font-weight: bold;
  }  
  .notice-info {
    background-color: #e8f4fd;
    color: #3178c6;
    border: 1px solid #3178c6;
  }
  .notice-success {
    background-color: #e6f9ed;
    color: #2e7d32;
    border: 1px solid #2e7d32;
  }
  .notice-warning {
    background-color: #fff8e1;
    color: #f57c00;
    border: 1px solid #f57c00;
  }
  .notice-error {
    background-color: #fdecea;
    color: #c62828;
    border: 1px solid #c62828;
  }