/* Unternehmensfarben */
:root {
    --primary-color: #b10736;       /* Dunkelrot */
    --secondary-color: #fdefda;     /* Creme */
    --accent-color: #008c3a;        /* Grün */
    --hover-color-1: #bd4360;       /* Mittelrot */
    --hover-color-2: #d17386;       /* Hellrot/Rosa */
}

/* Grundlegendes Styling */
body {
    font-family: Arial, sans-serif;
    background-color: white;
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--hover-color-1);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--hover-color-1);
    border-color: var(--hover-color-1);
}

/* Header Styling */
.navbar {
    background-color: var(--primary-color);
}

.navbar a, .navbar-brand {
    color: var(--secondary-color);
}

.navbar a:hover, .navbar-brand:hover {
    color: var(--hover-color-2);
}

/* Dropdown-Menü */
.dropdown-menu {
    background-color: var(--hover-color-1) !important;
}

.dropdown-menu .dropdown-item {
    color: var(--secondary-color) !important;
    font-weight: 200;
    font-size: 1.1rem;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: var(--hover-color-2) !important;
    color: black !important;
}

.dropdown-divider {
    border-top: 1px solid var(--secondary-color);
}

/* Artikel Styling */
.item-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    align-items: start;
}

.item-top {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.thumb {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

/* Badge hinter Artikeltext, nicht über Thumbnail */
.artikel-title-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-discount {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('/images/logo.png') center/contain no-repeat;
}

/* Info-Bereich */
.item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.artikel-title {
    font-size: 1rem;
    line-height: 1.2;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-line {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.save-price {
    color: #b10736;
    font-weight: bold;
    font-size: 1rem;
}

.item-actions {
    margin-top: 0.25rem;
}

/* Collapse für „Weitere Informationen“ */
.collapse {
    font-size: 0.85rem;
    background-color: #f1f1f1;
    padding: 8px;
    border-radius: 3px;
    margin-top: 5px;
}

.collapse p.mhd {
    color: var(--accent-color);
    font-weight: bold;
}

.collapse p.preis-je-stueck {
    font-weight: bold;
}

/* Collapse Button */
.item-info button.btn-link {
    padding: 0;
    font-size: 0.9rem;
}

/* Mobile Ansicht */
@media (max-width: 576px) {
    .item-top {
        flex-direction: row;
        align-items: center;
    }
    .badge-discount {
        margin-top: 0;
    }
}

.text-offer {
    font-weight: bold;
    color: var(--primary-color);
}

/* SPINNER-ARROWS AUSBLENDEN */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield; /* Firefox */
}

/* EINHEITLICHE STYLES F�R ALLE BILDSCHIRMGR�SSEN */
.quantity-decrease,
.quantity-increase {
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  min-height: 35px;
  padding: 0;
  transition: all 0.2s ease;
  border: 2px solid #dee2e6;
}

.quantity-decrease:hover,
.quantity-increase:hover {
  background-color: #f8f9fa;
  border-color: #6c757d;
  transform: scale(1.05);
}

.quantity-decrease:active,
.quantity-increase:active {
  transform: scale(0.95);
  background-color: #e9ecef;
}

.quantity-input,
.quantity-input-mobile {
  border: 2px solid #dee2e6 !important;
  border-radius: 8px !important;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
}

.quantity-input:focus,
.quantity-input-mobile:focus {
  border-color: #28a745 !important;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

/* Plus/Minus Button Icons */
.bi-dash, .bi-plus {
  font-size: 16px;
  font-weight: bold;
}

/* Mobile optimiert */
@media (max-width: 991.98px) {
  .cart-item-mobile {
    border: 1px solid #dee2e6;
    transition: box-shadow 0.15s ease-in-out;
  }
  
  .cart-item-mobile:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .card-title {
    font-size: 1rem;
    line-height: 1.3;
  }
}

.update-status {
  font-size: 0.75rem;
  animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

.remove-item:disabled {
  opacity: 0.6;
}

/* Style für den Favoriten-Button */
.favorite-toggle-button {
    background-color: rgba(255, 255, 255, 0.7); /* Leichter weißer Hintergrund */
    border-color: #dc3545; /* Rot */
    color: #dc3545; /* Rot */
}
.favorite-toggle-button:hover,
.favorite-toggle-button.active {
    background-color: #dc3545; /* Rot */
    color: white; /* Weiß */
}
.favorite-toggle-button .bi-heart-fill { /* Gefülltes Herz, wenn aktiv */
   /* Standardmäßig angezeigt, wenn .active */
}
.favorite-toggle-button:not(.active) .bi-heart-fill {
     display: none; /* Verstecke gefülltes Herz, wenn nicht aktiv */
}
 .favorite-toggle-button.active .bi-heart {
     display: none; /* Verstecke leeres Herz, wenn aktiv */
}