/* === Module: AI-Assist (ID: 4) === */
:root {
  /* Brand / Website Look (Computer Expert) */
  --brand-blue: #0056b3;
  --brand-blue-dark: #004494;
  --brand-green: #00d64b;

  /* Surfaces */
  --surface: #ffffff;
  --surface-2: #fcfcfc;
  --surface-3: #f5f7fa;

  /* Text */
  --text: #1f2937;
  --text-muted: #6b7280;
  --text-on-brand: #ffffff;

  /* Borders / Shadow */
  --border: #dee2e6;
  --border-strong: #cfd6df;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.12);

  /* Inputs */
  --input-bg: #ffffff;
  --input-border: #d1d5db;
  --input-focus: rgba(0, 86, 179, 0.25);

  /* Messages */
  --user-msg-bg: #f0f2f5;
  --assistant-msg-bg: #eef5ff; /* sehr helles blau */
  --assistant-bubble-border: rgba(0, 86, 179, 0.18);

  --assistant-avatar-bg: var(--brand-blue);
  --user-avatar-bg: #9ca3af;

  /* Buttons */
  --button-bg: #ffffff;
  --button-border: var(--border-strong);
  --button-hover-bg: #f3f6fb;

  /* Error */
  --error-color: #e53e3e;
}

/* --- Popup wrapper (alt kompatibel) --- */
#aiAssist {
  position: fixed;
  top: 120px;
  right: 20px;
  width: 520px;
  max-width: 90vw;
  height: 80vh;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 30000;

  border-radius: 12px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

#aiAssist.visible {
  display: flex;
}

.ai-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px; 
  background: var(--brand-blue);
  color: var(--text-on-brand);
  border-bottom: 3px solid var(--brand-green);

  user-select: none;
}

.ai-popup-header-title {
  cursor: move;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.ai-popup-header-controls {
  display: flex;
  align-items: center;
  gap: 8px; /* Abstand zwischen den beiden Buttons */
}


.ai-popup-close {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-on-brand);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.ai-popup-close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.06);
}

.ai-popup-content {
  flex: 1;
  overflow: hidden;
  background: var(--surface);
}

/* --- Chat Container (Neue Version, aber Light) --- */
#ai-chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background-color: var(--surface);
  color: var(--text);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Header im Chat */
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;

  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.chat-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

/* Icon button */
.icon-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--brand-blue);
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.icon-btn:hover {
  background-color: var(--button-hover-bg);
  border-color: var(--border);
  transform: translateY(-1px);
}

.icon-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Chat history */
#chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface-2);
}

/* Scrollbar (optional, dezent) */
#chat-history::-webkit-scrollbar {
  width: 10px;
}
#chat-history::-webkit-scrollbar-thumb {
  background: rgba(31, 41, 55, 0.18);
  border-radius: 10px;
}
#chat-history::-webkit-scrollbar-track {
  background: transparent;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 92%;
}

.message .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  color: #fff;
}

.message .content {
  padding: 10px 14px;
  border-radius: 12px;
  line-height: 1.55;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.message .content p { margin: 0 0 0.5em 0; }
.message .content ul,
.message .content ol { margin-top: 0.5em; padding-left: 20px; }

/* Assistant */
.message.assistant {
  align-self: flex-start;
}

.message.assistant .avatar {
  background-color: var(--assistant-avatar-bg);
}

.message.assistant .content {
  background-color: var(--assistant-msg-bg);
  border-color: var(--assistant-bubble-border);
  border-bottom-left-radius: 4px;
}

/* User */
.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message.user .avatar {
  background-color: var(--user-avatar-bg);
}

.message.user .content {
  background-color: var(--user-msg-bg);
  border-color: var(--border);
  border-bottom-right-radius: 4px;
}

/* Input Area */
.chat-input-area {
  display: flex;
  padding: 12px;
  border-top: 1px solid var(--border);
  background-color: var(--surface);
  gap: 10px;
  min-height: 96px;
}

.input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

#prompt-input {
  width: 100%;
  background-color: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 10px 48px 10px 12px;
  resize: none;
  font-family: inherit;
  font-size: 1rem;
  max-height: 120px;
  overflow-y: auto;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

#prompt-input::placeholder {
  color: rgba(31, 41, 55, 0.45);
}

#prompt-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px var(--input-focus);
}

/* Disabled state für beendete Konversation */
#prompt-input:disabled {
  background-color: #f8f9fa;
  border-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.7;
}

#prompt-input:disabled::placeholder {
  color: #9ca3af;
  font-style: italic;
}

.chat-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-input-area button {
  background-color: var(--button-bg);
  border: 1px solid var(--button-border);
  color: var(--brand-blue);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.chat-input-area button:hover:not(:disabled) {
  background-color: var(--button-hover-bg);
  border-color: var(--border);
  transform: translateY(-1px);
}

.chat-input-area button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* "Neue Konversation" Button hervorheben wenn Konversation beendet ist */
.chat-header .icon-btn:not(:disabled) {
  animation: none;
}

.ai-header-actions {
  display: flex;
  align-items: center;
  gap: 8px; /* Hier steuerst du den Abstand zwischen den Buttons */
}

/* Spezifisches Styling für den New-Conversation Button im Header */
#btn-new-conversation {
  background-color: var(--brand-green) !important; /* Auffälliges Grün */
  color: white !important;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

#btn-new-conversation:hover {
  transform: scale(1.1);
  background-color: #00bf43 !important; /* Etwas dunkler beim Hover */
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}



#btn-new-conversation svg {
  width: 18px;
  height: 18px;
}

/* Voice button positioned inside textarea */
#btn-voice {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0;
  color: var(--text-muted);
  border-radius: 10px;
}

#btn-voice:hover:not(:disabled) {
  background: rgba(0, 86, 179, 0.06);
  border-color: rgba(0, 86, 179, 0.10);
  color: var(--brand-blue);
}

#btn-voice:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Recording indicator ring */
.recording-indicator {
  display: none;
  position: absolute;
  inset: -4px;
  border-radius: 12px; /* passt zum Button */
  border: 2px solid var(--error-color);
  animation: pulse 1.2s infinite;
  pointer-events: none;
}

#audio-level-indicator {
  display: none;
}

#btn-voice.recording #audio-level-indicator {
  display: block;
}

/* Audio level visualizer */
.audio-level-visualizer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(229, 62, 62, 0.20);
  border-radius: 999px;
  transition: width 0.1s, height 0.1s;
  width: 0px;
  height: 0px;
}

@keyframes pulse {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* Spinner for send */
.spinner {
  border: 3px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  border-top: 3px solid var(--brand-blue);
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* TTS states (alt-kompatible Klassen) */
#btn-tts-toggle.active {
  border-color: rgba(0, 86, 179, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.12);
}

#btn-tts-toggle.playing {
  border-color: rgba(0, 214, 75, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 214, 75, 0.14);
}

#btn-tts-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Error message (alt IDs) */
.error-message {
  padding: 8px 16px;
  color: var(--error-color);
  font-size: 0.9rem;
  text-align: center;
  min-height: 25px;
  background: #fff;
  border-top: 1px solid var(--border);
}

/* Screen-reader helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Module: Globale Styles (ID: 1) === */
:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --secondary-color: #00cc66;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --danger-color: #c82333;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --sidebar-width: 280px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #F5F5F5;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav>ul>li {
    position: relative;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav>ul>li>a {
    position: relative;
}

.main-nav>ul>li>a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* Submenu Styles */
.has-submenu {
    position: relative;
}

.has-submenu>a::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: var(--transition);
}

.has-submenu:hover>a::after {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 200px;
    box-shadow: var(--shadow-hover);
    border-radius: 5px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0px !important;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    list-style: none;
    display: block;
}

.submenu a {
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    white-space: nowrap;
    display: block;
}

.submenu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.breadcrumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: white;
    margin-bottom: 10px;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.activenav {
    font-weight: bold;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.25rem 0;
}

.footer-col a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact {
    margin-top: 1rem;
    line-height: 1.8;
}

.footer-contact p {
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    max-width: 450px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 2rem;
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input[type="email"],
.form-group input[type="password"] {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.form-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    text-align: center;
}

.form-link:hover {
    text-decoration: underline;
}


/* Checkout Actions */
.checkout-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}


.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #00b359;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 204, 102, 0.4);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-white);
    border-color: var(--primary-color);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmark {
    0% {
        stroke-dasharray: 0 100;
    }

    100% {
        stroke-dasharray: 100 0;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


@media (max-width: 1024px) {
  .header-content {
    display: flex;
    align-items: center;
  }

  .logo {
    order: 1;
  }

  /* rechter Block */
  .header-actions {
    order: 2;
    margin-left: auto;      /* 🔥 DAS ist der entscheidende Punkt */
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
  }
     

    .hero-text h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .repair-form .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mobile-nav-toggle {
        display: block !important;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: var(--bg-white);
        box-shadow: var(--shadow-hover);
        transition: left 0.3s ease;
        z-index: 999;
    }

    .main-nav.mobile-open {
        left: 0;
        display: block !important;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 2rem;
    }
}

/* === Module: Warenkorb Styles (ID: 2) === */
/* Für Chrome, Safari, Edge, Opera */
.noupdown::-webkit-inner-spin-button,
.noupdown::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Für Firefox */
.noupdown {
  -moz-appearance: textfield;
}


.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.btn-add-cart {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 9pt;
    transition: var(--transition);
    white-space: nowrap;
}

.list-view .btn-add-cart {
    flex: 1;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
}

.btn-add-cart:disabled {
    background: #cfa004;
    cursor: default;
}


.btn-wishlist {
    padding: 0.75rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-48px,-50px);
    font-size: 18px;
    width: 40px;
    height: 40px;
}

.btn-wishlist:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-wishlist.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}


.search-btn,
.cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    position: relative;
    padding: 0.5rem;
    transition: var(--transition);
}

.search-btn:hover,
.cart-btn:hover {
    color: var(--primary-color);
}

.cart-btn:disabled
{
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

/* Warenkorb Vorschau Styles */
.cart-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.cart-preview-overlay.active {
    display: flex;
}

.cart-preview-modal {
    background: var(--bg-white);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.cart-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.cart-preview-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.cart-preview-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 5px;
}

.cart-preview-close:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.cart-preview-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.cart-empty svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    color: var(--border-color);
}

.cart-empty h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.cart-item:hover {
    background: var(--bg-light);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg-light);
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.cart-item-category {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    border-radius: 5px;
    padding: 0.25rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bg-white);
    color: var(--text-primary);
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
}

.cart-item-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    border-radius: 5px;
}

.cart-item-remove:hover {
    background: #ffebee;
    color: #ff4444;
}

.cart-preview-footer {
    border-top: 2px solid var(--border-color);
    padding: 1.5rem;
    background: var(--bg-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.cart-total-price {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.btn-checkout {
    width: 100%;
    padding: 1rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-checkout:hover {
    background: #00b359;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}


@media (max-width: 768px) {
    .cart-item-image {
        width: 100%;
        height: 150px;
    }

    .cart-preview-modal {
        width: 95%;
        max-height: 90vh;
    }
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
}