/* z. B. in style.css */
html, body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;  /* dehnt den Content aus, schiebt den Footer ans Ende */
}

main.container {
  flex: 1 0 auto;
}

/* Tab-System Styling */
.tabs-container {
  border-bottom: 2px solid #dee2e6;
  margin-bottom: 0;
  background: #f8f9fa;
}

.tabs {
  margin: 0;
  padding: 0;
  border-bottom: none;
}

.tabs .tab {
  background: none;
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  border-radius: 0;
  color: #6c757d;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tabs .tab:hover {
  background: #e9ecef;
  color: #495057;
}

.tabs .tab.active {
  background: #fff;
  color: #0d6efd;
  border-bottom: 3px solid #0d6efd;
  font-weight: 600;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Baugruppen Grid */
.baugruppen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.baugruppen-grid .btn {
  text-align: left;
  padding: 1rem;
  height: auto;
  white-space: normal;
}

/* Filter Sidebar */
.shop-container {
  display: flex;
  gap: 2rem;
}

.filter-sidebar {
  flex: 0 0 250px;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
  height: fit-content;
}

.article-table-container {
  flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .tabs .tab {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .shop-container {
    flex-direction: column;
  }

  .filter-sidebar {
    flex: none;
  }
}

/* In style.css oder inline */
.marken-card {
  transition: transform 0.2s, box-shadow 0.2s;
}


/* Quadratisches Feld für Markenlogos */
.marken-box {
  width: 100%;
  aspect-ratio: 1 / 1;           /* Macht es quadratisch */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;              /* optional Hintergrund */
}

.marken-logo {
  max-width: 50%;                    /* nimmt 75% der Box-Breite */
  height: 75%;                   /* nimmt 75% der Box-Höhe */
  object-fit: contain;            /* Logo bleibt proportional */
  transition: transform 0.2s ease-in-out;
  filter: grayscale(100%);
}

.marken-card:hover .marken-logo {
  transform: scale(1.05);         /* leichter Hover-Zoom */
  filter: grayscale(0%) contrast(105%);
}

/* Mengen-Stepper (Plus/Minus rechts im Input) */
.qty-stepper-wrap {
  position: relative;
  display: inline-block;
  width: 78px;
  overflow: hidden;
  border-radius: 0.375rem;
}

.qty-stepper-input {
  width: 100%;
  padding-right: 24px !important;
  text-align: center;
}

.qty-stepper-input::-webkit-outer-spin-button,
.qty-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-stepper-input[type="number"] {
  -moz-appearance: textfield;
}

.qty-stepper-controls {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 20px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #dee2e6;
  background: #f8f9fa;
  z-index: 3;
}

.qty-step-btn {
  flex: 1;
  border: 0;
  background: #f8f9fa;
  color: #495057;
  font-size: 11px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.qty-step-btn + .qty-step-btn {
  border-top: 1px solid #dee2e6;
}

.qty-step-btn:hover {
  background: #e9ecef;
}

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

@keyframes cartRowAddedFlash {
  0% {
    background-color: #ffe066;
  }
  100% {
    background-color: transparent;
  }
}

tr.cart-row-added > td {
  animation: cartRowAddedFlash 0.9s ease-out;
}

tr.cart-row-in-active > td {
  background-color: #fff7bf;
}

.artikel-button-card.cart-row-added {
  animation: cartRowAddedFlash 0.9s ease-out;
}

.artikel-button-card.cart-row-in-active {
  background-color: #fff7bf;
}
