/* Layout - Grid für optimale Raumnutzung */
#pb-builder {
  display: grid;
  grid-template-columns: 240px 1fr 450px;
  gap: 1.5rem;
  min-height: 80vh;
  max-width: 1800px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Steps Sidebar */
.pb-steps-sidebar {
  width: 100%;
  border-right: 1px solid #ddd;
  overflow-y: auto;
  padding-right: 1rem;
  position: sticky;
  top: 40px;
  max-height: calc(100vh - 60px);
  align-self: flex-start;
  box-sizing: border-box;
  margin: 0;
  grid-column: 1;
}

/* Step Content */
.pb-step-content {
  grid-column: 2;
}

/* Selection Summary */
.pb-selection-summary {
  grid-column: 3;
}

.pb-step-item {
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
  border: 2px solid #e5e7eb;
  margin-bottom: 10px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pb-step-item:hover {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-color: #2271b1;
  box-shadow: 0 4px 12px rgba(34, 113, 177, 0.15);
  transform: translateY(-2px);
}

.pb-step-item.active {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 2px solid #2271b1;
  box-shadow: 0 4px 16px rgba(34, 113, 177, 0.25);
  font-weight: 600;
}

.pb-step-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #2271b1 0%, #135e96 100%);
  border-radius: 10px 0 0 10px;
}

.pb-step-item.completed {
  background: #f0fdf4;
  border-color: #86efac;
}

.pb-step-item.completed .pb-step-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 50%;
  color: white;
  font-size: 14px;
  font-weight: bold;
  margin-left: auto;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.pb-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  flex-shrink: 0;
}

.pb-step-item.active .pb-step-number {
  background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(34, 113, 177, 0.4);
}

.pb-step-item.completed .pb-step-number {
  background: linear-gradient(135deg, #86efac 0%, #4ade80 100%);
  color: #166534;
}

.pb-step-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 6px;
}

.pb-step-item span {
  flex: 1;
  font-size: 14px;
}

/* Progress Bar */
.pb-progress-container {
  margin-bottom: 24px;
  padding: 16px;
  background: linear-gradient(135deg, #f0f6fc 0%, #e8f2ff 100%);
  border: 2px solid #2271b1;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(34, 113, 177, 0.1);
}

.pb-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.pb-progress-label {
  font-size: 14px;
  font-weight: 600;
  color: #2271b1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pb-progress-percentage {
  font-size: 18px;
  font-weight: 700;
  color: #135e96;
}

.pb-progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pb-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2271b1 0%, #135e96 100%);
  border-radius: 10px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(34, 113, 177, 0.4);
}

/* Content Area */
.pb-step-content {
  padding: 20px;
  overflow-y: auto;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  min-width: 0 !important; /* Prevent grid blowout */
}

.pb-step-content h2 {
  margin: 0 0 24px 0;
  padding: 0 0 16px 0;
  font-size: 1.75em;
  font-weight: 700;
  color: #1e293b;
  border-bottom: 3px solid #e2e8f0;
  background: linear-gradient(to right, #1e3a5f, #2271b1, #5fa8d3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Selection Summary */
.pb-selection-summary {
  width: 100% !important;
  background: #f4f8fd;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 6px;
  overflow-y: auto;
  max-height: calc(100vh - 60px); /* ← Angepasst für top-Abstand */
  position: sticky;
  top: 40px; /* ← Erhöht: 40px Abstand von oben */
  align-self: flex-start;
  box-sizing: border-box !important;
  margin: 0 !important;
  min-width: 0 !important; /* Prevent grid blowout */
}

.pb-selection-summary h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

/* Ausklappbare Komponenten-Liste */
.pb-components-header {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  padding: 8px 0;
  margin-bottom: 12px;
  border-bottom: 2px solid #e5e5e5;
  transition: border-color 0.2s;
}

.pb-components-header:hover {
  border-bottom-color: #2271b1;
}

.pb-header-title {
  flex-shrink: 0;
}

.pb-header-total {
  flex: 1;
  text-align: right;
  font-weight: 700;
  font-size: 1.1em;
  color: #2271b1;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
  transition: all 0.2s ease;
}

.pb-header-total:hover {
  background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
  border-color: #60a5fa;
}

.pb-components-toggle {
  width: 28px;
  height: 28px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.pb-components-toggle:hover {
  background: #2271b1;
  color: white;
  border-color: #2271b1;
}

.pb-components-header.collapsed .pb-components-toggle {
  transform: rotate(-90deg);
}

.pb-components-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 800px;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 1;
}

.pb-components-list.collapsed {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
}

/* Warenkorb Button */
.pb-cart-button {
  width: 100%;
  margin-top: 16px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
}

.pb-cart-button:hover {
  background: linear-gradient(135deg, #135e96 0%, #0d4a6f 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(34, 113, 177, 0.4);
}

.pb-cart-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
}

.pb-cart-button i {
  font-size: 1.1em;
}

.pb-selection-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pb-selection-summary li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.pb-selection-summary .summary-img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 0.5rem;
}

/* ✅ NEU: Icons für Komponenten in der Summary */
.summary-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  font-size: 16px;
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
  border-radius: 8px;
  border: 2px solid #cbd5e0;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.pb-selection-summary li:hover .summary-step-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Farbige Icon-Varianten */
.summary-step-icon .icon-case {
  color: #64748b;
}

.summary-step-icon .icon-cpu {
  color: #ef4444;
}

.summary-step-icon .icon-mainboard {
  color: #3b82f6;
}

.summary-step-icon .icon-ram {
  color: #8b5cf6;
}

.summary-step-icon .icon-ssd {
  color: #10b981;
}

.summary-step-icon .icon-hdd {
  color: #059669;
}

.summary-step-icon .icon-gpu {
  color: #a855f7;
}

.summary-step-icon .icon-psu {
  color: #f59e0b;
}

.summary-step-icon .icon-cooler {
  color: #06b6d4;
}

.summary-step-icon .icon-fan {
  color: #14b8a6;
}

.summary-step-icon .icon-extra {
  color: #6366f1;
}

.summary-step-icon .icon-default {
  color: #94a3b8;
}

/* Hover-Effekte für farbige Icons */
.pb-selection-summary li:hover .summary-step-icon .icon-case {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-color: #64748b;
}

.pb-selection-summary li:hover .summary-step-icon .icon-cpu {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-color: #ef4444;
}

.pb-selection-summary li:hover .summary-step-icon .icon-mainboard {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #3b82f6;
}

.pb-selection-summary li:hover .summary-step-icon .icon-ram {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  border-color: #8b5cf6;
}

.pb-selection-summary li:hover .summary-step-icon .icon-ssd {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #10b981;
}

.pb-selection-summary li:hover .summary-step-icon .icon-hdd {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #059669;
}

.pb-selection-summary li:hover .summary-step-icon .icon-gpu {
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  border-color: #a855f7;
}

.pb-selection-summary li:hover .summary-step-icon .icon-psu {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
}

.pb-selection-summary li:hover .summary-step-icon .icon-cooler {
  background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
  border-color: #06b6d4;
}

.pb-selection-summary li:hover .summary-step-icon .icon-fan {
  background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
  border-color: #14b8a6;
}

.pb-selection-summary li:hover .summary-step-icon .icon-extra {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  border-color: #6366f1;
}

/* ✅ NEU: Loading-Text Styling */
.pb-loading-text {
  font-size: 1.1em;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pb-loading-text i {
  color: #3b82f6;
  font-size: 1.2em;
}

/* ✅ NEU: GPU Loading Styling */
.pb-gpu-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  font-size: 1.1em;
  color: #64748b;
}

.pb-gpu-loading i {
  color: #a855f7;
  font-size: 1.3em;
}

/* ✅ NEU: Modal Close Button */
.pb-modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.pb-modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
  transform: scale(1.1);
}

/* ✅ NEU: Reverse Hint Icon */
.reverse-hint {
  color: #f59e0b;
  margin-left: 4px;
}

.reverse-hint i {
  animation: rotate-hint 2s linear infinite;
}

@keyframes rotate-hint {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ✅ NEU: Virtual Badge Icon */
.summary-virtual-badge {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 600;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.summary-virtual-badge i {
  font-size: 1em;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Ultra-Wide / 2K+ Screens (2560px+) */
@media (min-width: 2560px) {
  #pb-builder,
  body #pb-builder,
  .et-db #pb-builder,
  .et_pb_section #pb-builder,
  .et_pb_row #pb-builder,
  .et_pb_column #pb-builder {
    max-width: 1920px !important;
    grid-template-columns: 300px 1fr 550px !important;
    gap: 2rem !important;
  }
}

/* Full HD+ Screens (1920px+) */
@media (min-width: 1920px) and (max-width: 2559px) {
  #pb-builder,
  body #pb-builder,
  .et-db #pb-builder,
  .et_pb_section #pb-builder,
  .et_pb_row #pb-builder,
  .et_pb_column #pb-builder {
    max-width: 1850px !important;
    grid-template-columns: 280px 1fr 520px !important;
    gap: 1.75rem !important;
  }
}

/* Large Desktop (1600px - 1919px) */
@media (min-width: 1600px) and (max-width: 1919px) {
  #pb-builder,
  body #pb-builder,
  .et-db #pb-builder,
  .et_pb_section #pb-builder,
  .et_pb_row #pb-builder,
  .et_pb_column #pb-builder {
    max-width: 1650px !important;
    grid-template-columns: 260px 1fr 480px !important;
    gap: 1.5rem !important;
  }
}

/* Medium Desktop (1400px - 1599px) */
@media (min-width: 1400px) and (max-width: 1599px) {
  #pb-builder,
  body #pb-builder,
  .et-db #pb-builder,
  .et_pb_section #pb-builder,
  .et_pb_row #pb-builder,
  .et_pb_column #pb-builder {
    max-width: 1450px !important;
    grid-template-columns: 240px 1fr 420px !important;
    gap: 1.5rem !important;
  }
}

/* Desktop (1024px - 1399px) */
@media (min-width: 1024px) and (max-width: 1399px) {
  #pb-builder,
  body #pb-builder,
  .et-db #pb-builder,
  .et_pb_section #pb-builder,
  .et_pb_row #pb-builder,
  .et_pb_column #pb-builder {
    max-width: 1300px !important;
    grid-template-columns: 220px 1fr 380px !important;
    gap: 1.25rem !important;
  }
}

/* Tablet Portrait & Small Laptop (768px - 1023px) */
@media (max-width: 1023px) {
  #pb-builder {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /* Sidebar wird zu horizontaler Tab-Bar */
  .pb-steps-sidebar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: none;
    border-bottom: 2px solid #ddd;
    padding: 0;
    max-height: none;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .pb-step-item {
    flex: 0 0 auto;
    min-width: 120px;
    padding: 12px 16px;
    border-left: none;
    border-bottom: 3px solid transparent;
    text-align: center;
    flex-direction: column;
    gap: 6px;
  }

  .pb-step-item.active {
    border-left: none;
    border-bottom: 3px solid #2271b1;
    background: #f0f6fc;
  }

  .pb-step-icon {
    width: 28px;
    height: 28px;
  }

  /* Content Area */
  .pb-step-content {
    padding: 16px;
    order: 2;
  }

  /* Summary wird unter Content */
  .pb-selection-summary {
    position: relative;
    max-height: none;
    order: 3;
    margin-top: 1rem;
  }
}

/* Mobile Landscape & Tablet (600px - 767px) */
@media (max-width: 767px) {
  #pb-builder {
    gap: 0.75rem;
  }

  .pb-step-content {
    padding: 12px;
  }

  .pb-steps-sidebar {
    gap: 0;
  }

  .pb-step-item {
    min-width: 100px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .pb-step-icon {
    width: 24px;
    height: 24px;
  }

  /* Grid für Produkte */
  .pb-category-grid,
  .pb-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Filter */
  .pb-attr-filters {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }

  .pb-attr-filter {
    width: 100%;
    min-width: 100%;
  }

  /* Kompakter Header auf Tablets */
  .pb-header-total {
    font-size: 1em;
    padding: 5px 10px;
  }

  .pb-cart-button {
    padding: 12px 16px;
    font-size: 0.95em;
  }
}

/* Mobile Portrait (< 600px) */
@media (max-width: 599px) {
  #pb-builder {
    gap: 0.5rem;
  }

  /* Noch kompakter auf Mobile */
  .pb-components-header {
    gap: 8px;
    font-size: 0.95em;
  }

  .pb-header-total {
    font-size: 0.9em;
    padding: 4px 8px;
  }

  .pb-cart-button {
    padding: 10px 14px;
    font-size: 0.9em;
  }

  .pb-step-content {
    padding: 10px;
  }

  /* Sidebar - noch kompakter */
  .pb-steps-sidebar {
    padding: 0;
  }

  .pb-step-item {
    min-width: 80px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .pb-step-item span {
    font-size: 11px;
    white-space: nowrap;
  }

  .pb-step-icon {
    width: 20px;
    height: 20px;
  }

  /* Kategorien als Liste auf Mobile */
  .pb-category-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .pb-cat-card {
    display: flex !important;
    align-items: center !important;
    text-align: left !important;
    padding: 14px 16px !important;
    gap: 12px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    background: white;
  }

  .pb-cat-card img {
    width: 48px !important;
    height: 48px !important;
    flex-shrink: 0;
    border-radius: 8px;
  }

  .pb-cat-card h3 {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin: 0;
    flex: 1;
  }

  /* Produkte - 2 Spalten auf Mobile */
  .pb-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  /* Produkt-Cards kompakter */
  .pb-prod-card {
    font-size: 12px;
  }

  .pb-prod-card h4 {
    font-size: 13px;
    line-height: 1.3;
  }

  .pb-card-img {
    padding-top: 100%; /* Quadratisch für kompaktes Layout */
  }

  /* Filter */
  .pb-attr-filters {
    padding: 12px;
    gap: 8px;
  }

  /* Summary kompakter */
  .pb-selection-summary {
    padding: 12px;
  }

  .pb-selection-summary h3 {
    font-size: 1rem;
  }

  /* Gehäuse-Übersicht für Mobile */
  .pb-case-overview {
    margin-top: 1rem;
    padding-top: 0;
    border-top: none;
  }

  /* Toggle Button für Case Overview auf Mobile */
  .pb-case-toggle-btn {
    display: block !important;
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5f7f 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .pb-case-toggle-btn:hover {
    background: linear-gradient(135deg, #5fa8d3 0%, #7fc4e8 100%);
  }

  .pb-case-toggle-btn::after {
    content: "▼";
    transition: transform 0.3s ease;
  }

  .pb-case-toggle-btn.active::after {
    transform: rotate(180deg);
  }

  /* Case Overview standardmäßig versteckt auf Mobile */
  .pb-case-overview.mobile-hidden {
    display: none;
  }

  /* Case Visual kompakter auf Mobile */
  .case-visual {
    min-height: 300px;
    grid-template-rows: 120px 120px 120px; /* ✅ Alle Zeilen gleich hoch auf Mobile */
    gap: 8px;
    padding: 8px;
  }

  .case-slot {
    padding: 0.5rem;
    min-height: 60px;
  }

  .slot-label {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.15rem;
  }

  .slot-info {
    font-size: 0.75rem;
  }
}

/* Products Grid - Container für Sektionen */
.pb-step-content .pb-products-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
}

/* WICHTIG: Überschreibe für die spezifischen inneren Grids */
/* Basis: Desktop 1024px+ - Minimum 3 Spalten */
.pb-recommended-products-grid,
.pb-normal-products-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
}

.pb-recommended-products-grid {
  background: rgba(255, 0, 0, 0.05) !important; /* TEST: Roter Hintergrund */
}

.pb-normal-products-grid {
  background: rgba(0, 0, 255, 0.05) !important; /* TEST: Blauer Hintergrund */
}

.pb-prod-card {
  position: relative;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 1.25em;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pb-prod-card:hover {
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
  border-color: #5fa8d3;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(95, 168, 211, 0.2);
}

.pb-card-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.pb-prod-card:hover .pb-card-img img {
  transform: scale(1.05);
}

.pb-prod-card h4 {
  margin: 12px 0 8px 0;
  font-size: 1em;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

/* Hover overlay */
.pb-card-hover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(34, 113, 177, 0.95) 0%, rgba(19, 94, 150, 0.95) 100%);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

.pb-card-hover * {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Inkompatibel */
.pb-prod-card.incompatible {
  filter: grayscale(1);
  opacity: 0.6;
}

.pb-prod-card.incompatible .pb-card-hover {
  background: rgba(220, 38, 38, 0.85);
  opacity: 1;
}

/* Inkompatibilitäts-Nachricht */
.pb-incompat-note {
  padding: 12px;
  margin: 8px 0;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-left: 4px solid #dc2626;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #7f1d1d;
  font-weight: 500;
}

.pb-incompat-note::before {
  content: "⚠️ Nicht kompatibel";
  display: block;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  color: #991b1b;
}

/* ========================================
   Empfohlene Produkte - Neue Sektion
   ======================================== */

/* Empfohlene Produkte Sektion */
.pb-recommended-section {
  background: linear-gradient(135deg, #fffbeb 0%, #fef9e7 100%);
  border: 3px solid #f59e0b;
  border-radius: 16px;
  padding: 20px 16px;
  margin-bottom: 40px;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
  width: 100%;
}

/* Header der empfohlenen Sektion */
.pb-recommended-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(245, 158, 11, 0.3);
}

.pb-recommended-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 8px;
  animation: pulse 2s ease-in-out infinite;
}

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

.pb-recommended-title {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 700;
  color: #92400e;
  letter-spacing: -0.5px;
}

.pb-recommended-subtitle {
  margin: 0;
  font-size: 14px;
  color: #78350f;
  font-weight: 500;
}

/* Grid für empfohlene Produkte - bereits oben definiert mit !important */

/* Empfohlene Produkt-Karte */
.pb-prod-card.pb-recommended {
  border: 3px solid #f59e0b;
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
  position: relative;
}

.pb-prod-card.pb-recommended:hover {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
  transform: translateY(-4px);
  border-color: #d97706;
}

/* Empfohlenes Badge */
.pb-recommended-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
  text-transform: uppercase;
}

/* Trennlinie zwischen Sektionen */
.pb-products-divider {
  margin: 40px 0;
  text-align: center;
  position: relative;
}

.pb-products-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #e5e7eb, transparent);
}

.pb-divider-text {
  position: relative;
  display: inline-block;
  padding: 8px 24px;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Grid für normale Produkte - bereits oben definiert mit !important */

/* ========================================
   Filter Section - Modern Design
   ======================================== */

/* Suchfeld Container */
.pb-search-wrapper {
  margin: 20px 0 10px 0;
  padding: 0;
  display: flex;
  gap: 12px;
  align-items: stretch; /* Gleiche Höhe für beide Elemente */
}

/* Suchfeld Input */
.pb-product-search,
.pb-global-search {
  flex: 1;
  padding: 14px 20px 14px 60px !important; /* Force padding für Icon-Platz */
  font-size: 15px;
  font-weight: 500;
  color: #333;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat left 20px center; /* Icon noch weiter links */
  background-size: 20px 20px;
  border: 2px solid #ced4da;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  min-height: 50px;
  box-sizing: border-box !important; /* Stelle sicher dass Padding beachtet wird */
  text-indent: 0 !important; /* Überschreibe mögliches text-indent */
}

/* Globale Suche nimmt volle Breite */
.pb-global-search {
  width: 100%;
}

/* Sortier-Dropdown */
.pb-product-sort {
  min-width: 200px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  background: white;
  border: 2px solid #ced4da;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  min-height: 50px; /* Gleiche Mindesthöhe wie Suchfeld */
  display: flex;
  align-items: center;
}

.pb-product-sort:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pb-product-sort:hover {
  border-color: #2271b1;
  box-shadow: 0 2px 10px rgba(34, 113, 177, 0.15);
}

.pb-product-search:focus,
.pb-global-search:focus {
  outline: none;
  border-color: #2271b1;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232271b1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat left 20px center; /* Konsistent mit normalem Zustand */
  background-size: 20px 20px;
  box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pb-product-search:hover,
.pb-global-search:hover {
  border-color: #2271b1;
  box-shadow: 0 2px 10px rgba(34, 113, 177, 0.15);
}

.pb-product-search::placeholder,
.pb-global-search::placeholder {
  color: #999;
  font-weight: 400;
}

.pb-attr-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 20px 0;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 2px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pb-attr-filter {
  flex: 1 1 200px;
  min-width: 180px;
  padding: 12px 45px 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
  background-size: 16px 16px;
  border: 2px solid #ced4da;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

  /* Browser-Default-Pfeil entfernen */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Focus-State */
.pb-attr-filter:focus {
  outline: none;
  border-color: #2271b1;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232271b1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
  background-size: 16px 16px;
  box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Hover-State */
.pb-attr-filter:hover {
  border-color: #2271b1;
  background: #f8f9fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232271b1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
  background-size: 16px 16px;
  box-shadow: 0 2px 8px rgba(34, 113, 177, 0.15);
  transform: translateY(-1px);
}

/* Active-State (Wert ausgewählt) */
.pb-attr-filter:not([value=""]) {
  border-color: #2271b1;
  background: #eef5fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23135e96' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
  background-size: 16px 16px;
  font-weight: 600;
  color: #135e96;
}

@media (max-width: 600px) {
  .pb-attr-filter {
    padding: 10px 40px 10px 12px;
    font-size: 13px;
  }

  .pb-attr-filter,
  .pb-attr-filter:focus,
  .pb-attr-filter:hover,
  .pb-attr-filter:not([value=""]) {
    background-size: 14px 14px;
    background-position: right 10px center;
  }
}

/* ═══════════════════════════════════════
   IE11 Fallback - Pfeil komplett verstecken
   ═══════════════════════════════════════ */
.pb-attr-filter::-ms-expand {
  display: none; /* ← IE11 Standard-Pfeil verstecken */
}

/* Firefox-spezifisch */
.pb-attr-filter:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #333;
}

/* Safari iOS Fix */
@supports (-webkit-overflow-scrolling: touch) {
  .pb-attr-filter {
    -webkit-appearance: none;
    border-radius: 8px; /* ← Wichtig für iOS */
  }
}

/* Placeholder-Option Styling */
.pb-attr-filter option {
  padding: 10px;
  font-size: 14px;
  background: white;
  color: #333;
}

.pb-attr-filter option:first-child {
  color: #999;
  font-style: italic;
}

/* Wenn Filter aktiv ist (Wert ausgewählt) */
.pb-attr-filter:not([value=""]) {
  border-color: #2271b1;
  background-color: #eef5fb;
  font-weight: 600;
  color: #135e96;
}

/* Responsive */
@media (max-width: 1024px) {
  .pb-product-search,
  .pb-global-search {
    padding: 12px 18px 12px 54px !important; /* Mehr Platz für Icon */
    font-size: 14px;
    background-size: 18px 18px;
    background-position: left 18px center;
    min-height: 46px;
  }

  .pb-product-sort {
    padding: 12px 14px;
    font-size: 14px;
    min-height: 46px;
  }

  .pb-attr-filters {
    gap: 10px;
    padding: 16px;
  }

  .pb-attr-filter {
    flex: 1 1 calc(50% - 10px);
    min-width: 150px;
  }
}

/* ========================================
   PRODUKT-GRID: Responsive Spalten
   ======================================== */

/* Ultra-Wide (2560px+) - 6-8 Spalten */
@media (min-width: 2560px) {
  .pb-recommended-products-grid,
  .pb-normal-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 20px !important;
  }
}

/* Full HD+ (1920px - 2559px) - 5-6 Spalten */
@media (min-width: 1920px) and (max-width: 2559px) {
  .pb-recommended-products-grid,
  .pb-normal-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
    gap: 18px !important;
  }
}

/* Large Desktop (1600px - 1919px) - 4-5 Spalten */
@media (min-width: 1600px) and (max-width: 1919px) {
  .pb-recommended-products-grid,
  .pb-normal-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)) !important;
    gap: 16px !important;
  }
}

/* Medium Desktop (1400px - 1599px) - 4 Spalten */
@media (min-width: 1400px) and (max-width: 1599px) {
  .pb-recommended-products-grid,
  .pb-normal-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (max-width: 600px) {
  .pb-product-search,
  .pb-global-search {
    padding: 10px 16px 10px 48px !important; /* Mehr Platz für Icon */
    font-size: 13px;
    background-size: 16px 16px;
    background-position: left 16px center;
    min-height: 42px;
  }

  .pb-product-sort {
    min-width: 160px;
    padding: 10px 12px;
    font-size: 13px;
    min-height: 42px;
  }

  .pb-search-wrapper {
    gap: 8px;
  }

  .pb-attr-filters {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .pb-attr-filter {
    width: 100%;
    min-width: 100%;
  }

  /* Empfohlene Produkte - Mobile */
  .pb-recommended-section {
    padding: 16px;
    margin-bottom: 24px;
    border-width: 2px;
  }

  .pb-recommended-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .pb-recommended-icon {
    font-size: 36px;
  }

  .pb-recommended-title {
    font-size: 18px;
  }

  .pb-recommended-subtitle {
    font-size: 12px;
  }

  .pb-recommended-products-grid,
  .pb-normal-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 10px !important;
  }

  .pb-recommended-badge {
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 10px;
  }

  .pb-prod-card.pb-recommended {
    border-width: 2px;
  }

  .pb-products-divider {
    margin: 24px 0;
  }

  .pb-divider-text {
    font-size: 12px;
    padding: 6px 16px;
  }
}

/* ========================================
   FLOATING NAVIGATION BUTTONS
   ======================================== */

.pb-floating-nav {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.pb-floating-nav.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.pb-float-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
  color: white;
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(34, 113, 177, 0.4);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.pb-float-btn:hover {
  background: linear-gradient(135deg, #135e96 0%, #0d4a6f 100%);
  box-shadow: 0 6px 24px rgba(34, 113, 177, 0.6);
  transform: translateY(-2px);
}

.pb-float-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(34, 113, 177, 0.4);
}

.pb-float-btn svg {
  flex-shrink: 0;
}

/* Mobile: Kleinere Buttons */
@media (max-width: 768px) {
  .pb-floating-nav {
    bottom: 20px;
    right: 20px;
    gap: 10px;
  }

  .pb-float-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .pb-float-btn span {
    display: none;
  }

  .pb-float-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
  .pb-attr-filters {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-color: #4a5568;
  }

  .pb-attr-filter {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  }

  .pb-attr-filter:hover {
    background-color: #4a5568;
    border-color: #63b3ed;
  }

  .pb-attr-filter:not([value=""]) {
    background-color: #2c5282;
    border-color: #63b3ed;
    color: #90cdf4;
  }
}

/* Categories */
.pb-cat-grid,
.pb-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.pb-cat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  padding: 1.5em;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pb-cat-card:hover {
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
  border-color: #5fa8d3;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(95, 168, 211, 0.2);
}

.pb-cat-card h3,
.pb-cat-card h4 {
  margin: 0;
  font-size: 1.05em;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

.pb-hover-info {
  display: none;
  font-size: 0.9em;
  margin-top: 0.5em;
  color: #444;
}

.pb-prod-card:hover .pb-hover-info {
  display: block;
}

.pb-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5f7f 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.2);
  text-decoration: none;
}

.pb-back-btn:hover {
  background: linear-gradient(135deg, #5fa8d3 0%, #7fc4e8 100%);
  border-color: #5fa8d3;
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(95, 168, 211, 0.3);
}

.pb-back-btn:active {
  transform: translateX(-2px);
  box-shadow: 0 2px 6px rgba(30, 58, 95, 0.3);
}

.pb-back-btn::before {
  content: "←";
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.pb-back-btn:hover::before {
  transform: translateX(-3px);
}

.pb-cat-rating {
  margin-top: 0.75em;
  padding: 0.5em 0.75em;
  border-radius: 8px;
  font-size: 0.85em;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.pb-cat-rating:hover {
  transform: scale(1.05);
}

.pb-cat-rating.rating-1 {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
  border: 2px solid #f87171;
}

.pb-cat-rating.rating-2 {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #d97706;
  border: 2px solid #fbbf24;
}

.pb-cat-rating.rating-3 {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #059669;
  border: 2px solid #34d399;
}

.pb-cat-rating.rating-4 {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
  border: 2px solid #60a5fa;
}

/* Chipset Rating - Lade-Indikator */
.pb-cat-rating-loading {
  margin-top: 0.75em;
  padding: 0.5em 0.75em;
  border-radius: 8px;
  font-size: 0.85em;
  font-weight: 600;
  text-align: center;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #6b7280;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pb-cat-rating-loading i {
  font-size: 0.9em;
}

/* Case Overview */
/* Toggle Button (nur auf Mobile sichtbar) */
.pb-case-toggle-btn {
  display: none;
}

.pb-case-overview {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #ddd;
}

.pb-case-overview h3,
.pb-case-overview h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: #333;
}

/* Case Visual */
.case-visual {
  position: relative;
  width: 100%;
  min-height: 500px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-radius: 8px;
  border: 3px solid #1a252f;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
  display: grid;
  grid-template-areas:
    "top top top"
    "rear side front"
    "bottom bottom bottom";
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 200px 200px 200px; /* ✅ Zurück auf normale Größe */
  gap: 16px;
  padding: 16px;
  box-sizing: border-box;
}

.case-slot {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  min-height: 200px; /* ✅ Zurück auf normale Größe */
  height: 100%; /* ✅ Nimmt volle Grid-Zellen-Höhe ein */
  overflow: visible;
  box-sizing: border-box;
}

.case-slot-top {
  grid-area: top;
}

.case-slot-front {
  grid-area: front;
}

.case-slot-side {
  grid-area: side;
}

.case-slot-rear {
  grid-area: rear;
}

.case-slot-bottom {
  grid-area: bottom;
}

/* Slot Highlighting */
.case-slot:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.02);
}

/* Klickbare Slots im Zuordnung-Tab */
.clickable-slot {
  cursor: pointer;
  position: relative;
}

.clickable-slot::after {
  content: '\f0b2';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.clickable-slot:hover::after {
  opacity: 1;
}

.clickable-slot:hover {
  background: rgba(34, 113, 177, 0.3);
  border-color: rgba(34, 113, 177, 0.6);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.case-slot.occupied {
  background: rgba(255, 100, 100, 0.2);
  border-color: rgba(255, 100, 100, 0.5);
}

.slot-label {
  font-weight: bold;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
  white-space: nowrap;
}

.slot-info {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  padding: 0 0.25rem;
  word-wrap: break-word;
}

.best-option {
  background: rgba(76, 217, 100, 0.3);
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(76, 217, 100, 0.5);
  white-space: nowrap;
}

.occupied-label {
  background: rgba(255, 100, 100, 0.4);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 100, 100, 0.6);
  font-size: 0.75rem;
}

.slot-options {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.3rem;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  word-wrap: break-word;
}

/* Slot Capacity Dots Container */
.slot-capacity-dots {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
  align-items: center;
}

/* Größen-Gruppe (z.B. "140mm: ○○○") */
.slot-size-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Größen-Label (z.B. "140mm:") */
.slot-size-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  min-width: 50px;
  text-align: right;
}

/* AIO Recommendation */
.pb-aio-recommendation {
  margin-top: 1rem;
  padding: 0.85rem;
  background: #e3f2fd;
  border-radius: 6px;
  border-left: 4px solid #2196f3;
}

.aio-rec {
  font-size: 0.95rem;
  color: #1565c0;
  line-height: 1.6;
}

.aio-rec strong {
  color: #0d47a1;
}

.aio-rec .recommended {
  background: #4caf50;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
  margin: 0 0.25rem;
}

.case-mapping {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}

.case-mapping th,
.case-mapping td {
  border: 1px solid #ddd;
  padding: 0.5em;
  text-align: center;
}

.case-mapping th {
  background: #f5f5f5;
}

/* Responsive */
@media (max-width: 1200px) {
  #pb-builder {
    grid-template-columns: 180px 1fr 280px;
  }
}

@media (max-width: 768px) {
  #pb-builder {
    grid-template-columns: 1fr;
  }

  .pb-steps-sidebar {
    width: 100%;
    display: flex;
    overflow-x: auto;
  }

  .case-visual {
    height: 250px;
  }
}

.pb-prod-card {
  position: relative;
}

.selection-count-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.pb-prod-card.selected .selection-count-badge {
  background: linear-gradient(135deg, #135e96 0%, #0d4a6f 100%);
  box-shadow: 0 4px 12px rgba(19, 94, 150, 0.4);
  transform: scale(1.1);
}

.pb-prod-card.selected {
  border-color: #2271b1;
  background: linear-gradient(135deg, #eef5fb 0%, #dbeafe 100%);
  box-shadow: 0 4px 16px rgba(34, 113, 177, 0.25);
}

.pb-prod-card.selected:hover {
  border-color: #135e96;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  box-shadow: 0 8px 24px rgba(34, 113, 177, 0.35);
}

.summary-item-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.summary-label {
  flex: 1;
}

.summary-price {
  font-weight: bold;
  margin-left: auto;
}

.summary-quantity-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
}

.summary-qty-btn {
  width: 24px;
  height: 24px;
  border: 1.5px solid #2271b1;
  background: white;
  color: #2271b1;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  line-height: 1;
}

.summary-qty-btn:hover {
  background: #2271b1;
  color: white;
  transform: scale(1.1);
}

.summary-qty-btn:active {
  transform: scale(0.95);
}

.summary-qty-display {
  font-weight: bold;
  font-size: 14px;
  color: #2271b1;
  min-width: 30px;
  text-align: center;
}

.summary-remove-all {
  width: 20px;
  height: 20px;
  border: none;
  background: #dc3232;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  line-height: 1;
  margin-left: 5px;
}

.summary-remove-all:hover {
  background: #a00;
  transform: scale(1.1);
}

.pb-case-actions {
  margin-top: 15px;
  text-align: center;
}

.pb-auto-fill-fans {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.pb-auto-fill-fans:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.pb-auto-fill-fans:active {
  transform: translateY(0);
}

/* Overlay */
.pb-variant-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Modal */
.pb-variant-modal {
  background: white;
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  padding: 0;
}

/* Header */
.pb-variant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.pb-variant-header h3 {
  margin: 0;
  font-size: 22px;
}

.pb-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.pb-modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

/* Variants Grid */
.pb-variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  padding: 20px 30px 30px;
}

/* Variant Card */
.pb-variant-card {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  background: white;
}

.pb-variant-card:hover {
  border-color: #2271b1;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pb-variant-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 10px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pb-variant-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pb-variant-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
  color: #333;
  line-height: 1.3;
}

.pb-variant-price {
  font-size: 16px;
  font-weight: bold;
  color: #2271b1;
}

/* Quantity Selector */
.pb-quantity-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}

.pb-quantity-btn {
  width: 28px;
  height: 28px;
  background: #2271b1;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.pb-quantity-btn:hover {
  background: #135e96;
  transform: scale(1.05);
}

.pb-quantity-btn:active {
  transform: scale(0.95);
}

.pb-quantity-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.5;
}

.pb-quantity-btn:disabled:hover {
  transform: none;
}

.pb-quantity-input {
  width: 50px;
  height: 28px;
  text-align: center;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  transition: border-color 0.2s;
}

.pb-quantity-input:focus {
  outline: none;
  border-color: #2271b1;
}

.pb-quantity-label {
  font-size: 11px;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}

/* Variant Card mit Quantity Selector */
.pb-variant-card.has-quantity {
  padding-bottom: 10px;
}

.pb-variant-card.has-quantity:hover {
  border-color: #2271b1;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pb-variant-add-btn {
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  background: #2271b1;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pb-variant-add-btn:hover {
  background: #135e96;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
}

.pb-variant-add-btn:active {
  transform: translateY(0);
}

/* Parent Card Hint */
.pb-prod-card.has-variations {
  cursor: pointer;
}

.variant-hint {
  font-size: 12px;
  color: #2271b1;
  font-weight: 600;
  margin-top: 5px;
}

/* Mobile */
@media (max-width: 768px) {
  .pb-variants-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    padding: 15px;
  }

  .pb-variant-modal {
    max-height: 90vh;
  }
}

/* Parent Card Styling für Auto-Fill */
.pb-parent-card {
  position: relative;
}

.pb-variant-count {
  font-size: 11px;
  color: #666;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid #eee;
}

.pb-parent-card:hover .pb-variant-count {
  color: #2271b1;
}

.reverse-hint {
  color: #ff9800;
  font-size: 14px;
  cursor: help;
}

/* Vorinstallierte Lüfter */
.case-slot.has-preinstalled {
  position: relative;
}

.case-slot.preinstalled-optimal {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.1) 100%);
  border-color: #4CAF50;
}

.case-slot.preinstalled-suboptimal {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 152, 0, 0.1) 100%);
  border-color: #FF9800;
}

.preinstalled-info {
  color: #4CAF50;
  font-weight: 600;
}

.preinstalled-suboptimal .preinstalled-info {
  color: #FF9800;
}

.slot-status {
  font-size: 11px;
  margin-top: 5px;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
}

.preinstalled-optimal .slot-status {
  background: rgba(76, 175, 80, 0.2);
  color: #2E7D32;
}

.preinstalled-suboptimal .slot-status {
  background: rgba(255, 152, 0, 0.2);
  color: #E65100;
}

.slot-recommendation {
  font-size: 9px; /* ← Kleiner: 10px → 9px */
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.2rem; /* ← Weniger: 5px → 0.2rem */
  font-style: italic;
  line-height: 1.1;
}

/* Slot Status Farben */
.case-slot.slot-optimal {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.3) 0%, rgba(76, 175, 80, 0.1) 100%);
  border-color: #4CAF50;
}

.case-slot.slot-suboptimal {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.3) 0%, rgba(255, 152, 0, 0.1) 100%);
  border-color: #FF9800;
}

/* Vorinstalliert Optimal - leicht bläulicher */
.case-slot.slot-preinstalled-optimal {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.25) 0%, rgba(33, 150, 243, 0.15) 100%);
  border-color: #4CAF50;
  border-style: dashed; /* Gestrichelte Border zur Unterscheidung */
}

/* Vorinstalliert Suboptimal - leicht bläulicher */
.case-slot.slot-preinstalled-suboptimal {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.25) 0%, rgba(33, 150, 243, 0.15) 100%);
  border-color: #FF9800;
  border-style: dashed; /* Gestrichelte Border zur Unterscheidung */
}

/* Hinweis auf vorinstallierte unter ausgewählten */
.slot-preinstalled-note {
  font-size: 9px; /* ← Original */
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.15rem; /* ← Reduziert: 5px → 0.15rem */
  font-style: italic;
  line-height: 1.1;
}

.case-slot.slot-empty {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.case-slot.slot-occupied {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.3) 0%, rgba(244, 67, 54, 0.1) 100%);
  border-color: #F44336;
}

/* Status Icon & Text */
.slot-status-icon {
  font-size: 32px; /* ✅ Größer für bessere Sichtbarkeit */
  margin-bottom: 0.5rem;
  line-height: 1;
}

.slot-status-text {
  font-size: 13px; /* ✅ Größer für bessere Lesbarkeit */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.slot-detail {
  font-size: 12px; /* ← Original */
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.2; /* ← Etwas kompakter */
  text-align: center;
  margin-bottom: 0.15rem; /* ← Kleiner Abstand */
}

.slot-cfm {
  font-size: 11px;
  color: rgba(100, 200, 255, 0.9);
  font-weight: 600;
  text-align: center;
  margin-top: 0.2rem;
}

.slot-airflow {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.slot-recommendation {
  font-size: 10px; /* ← Original */
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.15rem; /* ← Reduziert: 5px → 0.15rem */
  font-style: italic;
  line-height: 1.1;
}

/* Legende */
.case-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #333; /* ← Statt rgba(255,255,255,0.8) */
}

.legend-color {
  font-size: 16px;
}

.legend-color.green { color: #4CAF50; }
.legend-color.yellow { color: #FF9800; }
.legend-color.blue { color: #2196F3; }
.legend-color.gray { color: rgba(255, 255, 255, 0.3); }
.legend-color.red { color: #F44336; }

/* Buttons */
.pb-assign-fans {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
  margin-left: 10px;
}

.pb-assign-fans:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
}

/* Assignment Modal */
.pb-assignment-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 1200px;
  width: 95%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.pb-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
}

.pb-modal-header h3 {
  margin: 0;
  font-size: 22px;
  color: #333;
}

.pb-assignment-body {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
  padding: 20px 30px;
  overflow-y: auto;
  flex: 1;
}

.pb-assignment-left h4,
.pb-assignment-right h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: #555;
}

/* Fan Pool */
.pb-fan-pool {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pb-fan-pool-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  transition: all 0.2s;
}

.pb-fan-pool-item.fully-assigned {
  opacity: 0.5;
  background: #f0f0f0;
}

.fan-pool-img,
.pb-fan-pool-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 6px;
  background: white;
  padding: 4px;
}

.fan-pool-info {
  flex: 1;
}

.fan-pool-name {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}

.fan-pool-count {
  font-size: 12px;
  color: #666;
}

.available-count {
  color: #4caf50;
  font-weight: bold;
}

.assigned-count {
  color: #2196f3;
  font-weight: bold;
}

/* Slot Assignments */
.pb-slot-assignments {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pb-slot-item {
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  padding: 15px;
}

.pb-slot-header {
  margin-bottom: 10px;
}

.pb-slot-header strong {
  font-size: 14px;
  color: #333;
}

.slot-recommendation-text {
  font-size: 12px;
  color: #666;
  font-weight: normal;
}

.slot-preinstalled-info {
  font-size: 11px;
  color: #2196f3;
  margin-top: 4px;
}

.pb-slot-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pb-fan-select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.pb-qty-btn {
  width: 32px;
  height: 32px;
  border: 2px solid #2271b1;
  background: white;
  color: #2271b1;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.pb-qty-btn:hover:not(:disabled) {
  background: #2271b1;
  color: white;
}

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

.pb-qty-display {
  font-weight: bold;
  font-size: 16px;
  min-width: 30px;
  text-align: center;
}

.pb-current-assignment {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.assigned-fan-tag {
  background: #2196f3;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.no-assignment {
  font-size: 12px;
  color: #999;
  font-style: italic;
}

/* Modal Footer */
.pb-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 30px;
  border-top: 1px solid #eee;
  background: #f8f9fa;
}

.pb-btn-primary,
.pb-btn-secondary {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.pb-btn-primary {
  background: #2271b1;
  color: white;
}

.pb-btn-primary:hover {
  background: #135e96;
  transform: translateY(-1px);
}

.pb-btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.pb-btn-secondary:hover {
  background: #e0e0e0;
}

/* Slot Visual - Punkte-Anzeige */
.pb-slot-visual {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  border-radius: 8px;
  border: 2px dashed #d0d0d0;
  justify-content: center;
  align-items: center;
}

.slot-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: white;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.slot-dot.empty {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.slot-dot.filled {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  border-color: #1565c0;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
  animation: fillDot 0.3s ease;
}

@keyframes fillDot {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Slot Title */
.pb-slot-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.pb-slot-title strong {
  font-size: 15px;
  color: #333;
}

/* Quantity Display Update */
.pb-qty-display {
  font-weight: bold;
  font-size: 14px;
  min-width: 50px;
  text-align: center;
  color: #2196f3;
}

/* Remove button in tags */
.assigned-fan-tag {
  background: #2196f3;
  color: white;
  padding: 4px 10px 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.remove-fan-tag {
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  line-height: 1;
}

.remove-fan-tag:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

/* Slot Item Hover Effect */
.pb-slot-item {
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  padding: 15px;
  transition: all 0.2s;
}

.pb-slot-item:hover {
  border-color: #2196f3;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

/* Preinstalled Info Icon */
.slot-preinstalled-info {
  font-size: 11px;
  color: #2196f3;
  margin-top: 6px;
  padding: 4px 8px;
  background: rgba(33, 150, 243, 0.1);
  border-radius: 4px;
  display: inline-block;
}

/* Needs Reverse Tag */
.assigned-fan-tag.needs-reverse {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  border: 1px solid #e65100;
}

.slot-recommendation {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.15rem;
  font-style: italic;
  line-height: 1.1;
}

/* Orange Warnung */
.slot-recommendation[style*="color: #ff9800"] {
  color: #ff9800 !important;
  font-weight: 600;
}

/* Vorinstallierte Dot */
.slot-dot.preinstalled {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  border: 2px dashed #1565c0;
  opacity: 0.6;
}

/* Ersetzt vorinstallierten */
.slot-dot.replaced-preinstalled {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  border: 2px dashed #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
  position: relative;
}

.slot-dot.replaced-preinstalled::after {
  content: '→';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* Tooltip für Dots */
.slot-dot[title] {
  cursor: help;
  position: relative;
}

.slot-dot[title]:hover {
  transform: scale(1.15);
  z-index: 10;
}

/* Slot-Gruppe in Summary */
.summary-item-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.summary-remove-slot {
  width: 24px;
  height: 24px;
  border: none;
  background: #dc3232;
  color: white;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.summary-remove-slot:hover {
  background: #a00;
  transform: scale(1.1);
}

.pb-open-assignment {
  margin-left: 10px;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
  background: #2271b1;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.pb-open-assignment:hover {
  background: #135e96;
}

/* === AIO-spezifische Styles === */

/* AIO Slot in Case Visual */
.case-slot.slot-aio-occupied {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.3) 0%, rgba(33, 150, 243, 0.1) 100%);
  border-color: #2196F3;
  border-width: 2px;
  border-style: solid;
}

/* AIO-Lüfter Dots */
.slot-dot.aio-fan {
  background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
  border: 2px solid #00838F;
  box-shadow: 0 2px 8px rgba(0, 188, 212, 0.5);
  position: relative;
}

.slot-dot.aio-fan::after {
  content: '💧';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
}

/* AIO Badge in Modal */
.aio-badge {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
  display: inline-block;
}

/* AIO-Slot im Assignment Modal */
.pb-slot-item.aio-slot-occupied {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.08) 0%, rgba(33, 150, 243, 0.03) 100%);
  border: 2px solid #2196F3;
  opacity: 0.9;
}

.slot-aio-info {
  padding: 15px;
  background: rgba(33, 150, 243, 0.1);
  border-radius: 6px;
  margin-top: 10px;
  border-left: 4px solid #2196F3;
}

.slot-aio-info p {
  margin: 8px 0;
  line-height: 1.5;
}

.slot-aio-info p:first-child {
  color: #1976D2;
  font-weight: 600;
  font-size: 14px;
}

/* Legende erweitern */
.legend-color.cyan { 
  color: #00BCD4; 
}

/* === AIO-Pool Styles === */

.pb-aio-pool {
  margin-bottom: 20px;
}

.pb-aio-pool-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0.05) 100%);
  border-radius: 8px;
  border: 2px solid #2196F3;
  transition: all 0.2s;
}

.pb-aio-pool-item.aio-assigned {
  opacity: 0.7;
  border-style: dashed;
}

.aio-pool-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
  background: white;
  padding: 4px;
}

.aio-pool-info {
  flex: 1;
}

.aio-pool-name {
  font-weight: 600;
  font-size: 14px;
  color: #1976D2;
  margin-bottom: 4px;
}

.aio-pool-specs {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.aio-pool-price {
  font-size: 13px;
  font-weight: 600;
  color: #2196F3;
  margin-bottom: 6px;
}

.aio-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.aio-status.available {
  background: #4CAF50;
  color: white;
}

.aio-status.assigned {
  background: #2196F3;
  color: white;
}

/* === NEW: AIO Pool Header === */
.pb-aio-pool-header {
  font-weight: 600;
  font-size: 14px;
  color: #1976D2;
  padding: 12px 0 8px 0;
  margin-top: 20px;
  border-bottom: 2px solid #2196F3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pb-aio-pool-header i {
  color: #2196F3;
}

/* === NEW: AIO Status in Pool === */
.pb-aio-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pb-aio-available {
  color: #4CAF50;
  font-weight: 600;
  font-size: 12px;
}

.pb-aio-available i {
  color: #4CAF50;
}

.pb-aio-assigned {
  color: #FF9800;
  font-weight: 600;
  font-size: 12px;
}

.pb-aio-assigned i {
  color: #FF9800;
}

/* === NEW: AIO Selection Mode === */
.pb-aio-pool-item.aio-selection-active {
  border-color: #2196F3 !important;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.2) 0%, rgba(33, 150, 243, 0.1) 100%);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
  transform: scale(1.02);
}

/* === NEW: Slot AIO Compatibility Highlights === */
.pb-slot-item.slot-aio-compatible {
  border: 3px solid #4CAF50 !important;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.08) 100%) !important;
  cursor: pointer !important;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  animation: pulse-green 2s ease-in-out infinite;
}

.pb-slot-item.slot-aio-compatible:hover {
  border-color: #2196F3 !important;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.2) 0%, rgba(33, 150, 243, 0.1) 100%) !important;
  transform: scale(1.05);
}

.pb-slot-item.slot-aio-incompatible {
  border: 2px solid #F44336 !important;
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.1) 0%, rgba(244, 67, 54, 0.05) 100%) !important;
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
}

@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  }
  50% {
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.5);
  }
}

/* === NEW: AIO Radiator Visualization === */
.pb-aio-radiator {
  /* ✅ KOMPAKT: Nur so groß wie die Dots, die es umfasst */
  margin: 0 auto; /* Zentriert im Slot */
  padding: 8px; /* ✅ Minimales Padding */
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.25) 0%, rgba(33, 150, 243, 0.15) 100%);
  border: 3px solid #2196F3;
  border-radius: 10px;
  position: relative;
  display: inline-flex; /* ✅ Inline = nimmt nur die Breite, die es braucht */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: auto; /* ✅ Automatische Breite basierend auf Inhalt */
  box-sizing: border-box;
}

/* ✅ X-Button zum Entfernen der AIO */
.pb-aio-remove-btn {
  position: absolute;
  top: -8px; /* ✅ Leicht nach oben verschoben */
  right: -8px; /* ✅ Leicht nach rechts verschoben */
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(244, 67, 54, 0.9);
  border: 2px solid #C62828;
  color: white;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; /* ✅ Versteckt standardmäßig */
  transition: all 0.2s ease;
  z-index: 100; /* ✅ Höherer z-index */
  padding: 0;
}

/* ✅ Icon soll Klicks durchlassen */
.pb-aio-remove-btn i {
  pointer-events: none;
}

.pb-aio-radiator:hover .pb-aio-remove-btn {
  opacity: 1; /* ✅ Erscheint beim Hover */
}

.pb-aio-remove-btn:hover {
  background: rgba(244, 67, 54, 1);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.5);
}

.pb-aio-radiator-label {
  font-size: 11px;
  font-weight: 700;
  color: #1976D2;
  margin-bottom: 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pb-aio-radiator-label i {
  color: #2196F3;
  font-size: 14px;
}

.pb-aio-fan-dots {
  display: flex;
  gap: 8px; /* ✅ Kompakter */
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px; /* ✅ Minimales Padding */
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  border: 2px solid rgba(33, 150, 243, 0.3);
}

.pb-aio-fan-dot {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%) !important;
  border: 2px solid #1565C0 !important;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.pb-aio-fan-dot:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.6);
  border-color: #0D47A1 !important;
}

.pb-aio-fan-dot::after {
  content: '💧';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
}

.pb-aio-radiator-info {
  text-align: center;
  font-size: 11px;
  color: #666;
  margin-top: 8px;
  font-weight: 600;
}

/* === NEW: AIO Fan Item in Pool === */
.pb-aio-fan-item {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.08) 0%, rgba(33, 150, 243, 0.03) 100%);
  border: 2px solid #90CAF9;
  margin-top: 8px;
}

.pb-aio-fan-item .pb-fan-info {
  flex: 1;
}

.pb-aio-fan-desc {
  display: block;
  margin-top: 4px;
  font-size: 10px;
}

.pb-aio-fan-actions {
  display: flex;
  align-items: center;
}

.pb-btn-change-aio-fans {
  transition: all 0.2s;
}

.pb-btn-change-aio-fans:hover {
  background: #1976D2 !important;
  transform: scale(1.05);
}

.pb-aio-fans-header {
  font-weight: 600;
  font-size: 13px;
  color: #1976D2;
  padding: 10px 0 6px 0;
  margin-top: 12px;
  border-bottom: 2px solid #90CAF9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pb-aio-fans-header i {
  color: #2196F3;
}

/* === AIO-Slot Controls === */

.slot-aio-controls {
  padding: 12px;
  background: rgba(33, 150, 243, 0.05);
  border-radius: 6px;
  margin-top: 10px;
}

.pb-btn-assign-aio {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 10px;
}

.pb-btn-assign-aio:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.pb-btn-remove-aio {
  width: 100%;
  padding: 8px;
  background: #f44336;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 10px;
}

.pb-btn-remove-aio:hover {
  background: #d32f2f;
  transform: translateY(-1px);
}

/* Spacing für Section Headers */
.pb-assignment-left h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 15px;
}

/* AIO-Option im Dropdown hervorheben */
.pb-fan-select option[value="aio"] {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.2) 0%, rgba(33, 150, 243, 0.1) 100%);
  font-weight: 600;
  color: #1976D2;
}

/* === AIO-Zuordnungs-Modus === */

.pb-btn-start-aio-assignment {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.pb-btn-start-aio-assignment:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

/* Banner */
.aio-assignment-banner {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.aio-assignment-banner span {
  font-weight: 600;
  font-size: 14px;
}

.aio-assignment-cancel {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.aio-assignment-cancel:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Slot-States im Zuordnungs-Modus */
.aio-assignment-mode .pb-slot-item {
  transition: all 0.3s ease;
}

.aio-assignment-mode .pb-slot-item.slot-aio-compatible {
  border: 3px solid #4CAF50;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
  cursor: pointer;
  transform: scale(1.02);
}

.aio-assignment-mode .pb-slot-item.slot-aio-compatible:hover {
  border-color: #2196F3;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(33, 150, 243, 0.08) 100%);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.aio-assignment-mode .pb-slot-item.slot-aio-suboptimal {
  border-color: #FF9800;
  position: relative;
}

.aio-assignment-mode .pb-slot-item.slot-aio-suboptimal::after {
  content: '⚠️ Nicht optimal';
  position: absolute;
  top: 10px;
  right: 10px;
  background: #FF9800;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
}

.aio-assignment-mode .pb-slot-item.slot-aio-incompatible,
.aio-assignment-mode .pb-slot-item.slot-occupied-disabled {
  opacity: 0.3;
  pointer-events: none;
  filter: grayscale(1);
}

.aio-assignment-mode .pb-slot-controls,
.aio-assignment-mode .pb-current-assignment {
  opacity: 0.3;
  pointer-events: none;
}

.aio-assignment-mode .pb-slot-item {
  pointer-events: auto; /* ← Explizit aktivieren */
  position: relative; /* ← Für z-index */
  z-index: 1;
}

.aio-assignment-mode .pb-slot-item.slot-aio-compatible {
  cursor: pointer; /* ← Cursor als Feedback */
  pointer-events: auto;
}

/* AIO-Warnung in Summary */
.pb-selection-summary li div[style*="FF9800"] {
  background: rgba(255, 152, 0, 0.1);
  border-left: 3px solid #FF9800;
  padding: 8px 12px;
  margin-left: -12px;
  border-radius: 4px;
  animation: pulse 2s ease infinite;
}

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

/* GPU Loading State */
.pb-gpu-loading {
  text-align: center;
  padding: 40px;
  font-size: 16px;
  color: #666;
  animation: pulse 1.5s ease-in-out infinite;
}

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

/* GPU Choice Modal */
.pb-gpu-choice-modal {
  background: white;
  border-radius: 16px;
  max-width: 750px;
  width: 90%;
  padding: 0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.pb-gpu-choice-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding: 35px;
}

.gpu-choice-option {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 3px solid #dee2e6;
  border-radius: 16px;
  padding: 35px 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.gpu-choice-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(34, 113, 177, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.gpu-choice-option:hover {
  border-color: #2271b1;
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(34, 113, 177, 0.25);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.gpu-choice-option:hover::before {
  opacity: 1;
}

.choice-icon {
  font-size: 56px;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.gpu-choice-option h4 {
  margin: 15px 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

.gpu-choice-option p {
  font-size: 14px;
  color: #666;
  margin: 8px 0;
  line-height: 1.5;
}

.choice-detail {
  font-size: 13px !important;
  color: #888 !important;
}

.choice-price {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #2271b1 !important;
  margin-top: 20px !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.choice-hint {
  color: #2271b1 !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  margin-top: 15px !important;
}

/* Responsive */
@media (max-width: 768px) {
  .pb-gpu-choice-body {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 25px;
  }

  .choice-icon {
    font-size: 48px;
  }

  .gpu-choice-option h4 {
    font-size: 18px;
  }

  .choice-price {
    font-size: 24px !important;
  }
}

/* Virtual GPU Badge in Summary */
.summary-virtual-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ════════════════════════════════════════
   CONFIG SHARING
   ════════════════════════════════════════ */

/* Share Button in Summary */
.pb-share-config-btn {
  width: 100%;
  padding: 12px 20px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.pb-share-config-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Share Modal */
.pb-share-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.pb-share-modal-body {
  padding: 30px;
}

.pb-share-modal-body > p {
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

.share-url-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.share-url-input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #333;
  background: #f8f9fa;
}

.share-url-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
}

.share-copy-btn {
  padding: 12px 24px;
  background: #2271b1;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.share-copy-btn:hover {
  background: #135e96;
  transform: translateY(-1px);
}

.share-info {
  padding: 15px;
  background: linear-gradient(135deg, #e3f2fd 0%, #e8eaf6 100%);
  border-left: 4px solid #667eea;
  border-radius: 8px;
}

.share-info p {
  margin: 0;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

.share-info strong {
  color: #667eea;
}

/* Config Loaded Banner */
.pb-config-loaded-banner {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 15px;
  animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.pb-config-loaded-banner span {
  font-size: 15px;
  font-weight: 600;
}

.pb-config-loaded-banner .banner-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1;
}

.pb-config-loaded-banner .banner-close:hover {
  background: rgba(255,255,255,0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .share-url-container {
    flex-direction: column;
  }

  .share-copy-btn {
    width: 100%;
  }

  .pb-config-loaded-banner {
    right: 10px;
    left: 10px;
    top: 10px;
  }
}

/* ════════════════════════════════════════
   PERFORMANCE CALCULATOR
   ════════════════════════════════════════ */

.pb-performance-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pb-performance-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px 0;
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
}

/* Einklappbare Performance-Section */
.pb-performance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 8px 0;
  margin-bottom: 16px !important;
  border-bottom: 2px solid #dee2e6;
  transition: border-color 0.2s;
}

.pb-performance-header:hover {
  border-bottom-color: #2271b1;
}

/* ✅ NEU: Performance Header Icon */
.pb-performance-header i.fa-bolt {
  color: #f59e0b;
  margin-right: 6px;
}

/* ✅ NEU: Gehäuse & Airflow Section Icon */
.pb-case-airflow-section h3 i.fa-home {
  color: #64748b;
  margin-right: 6px;
}

/* ✅ NEU: Airflow Button Icon */
.pb-open-airflow-modal i {
  margin-right: 6px;
}

.pb-performance-toggle {
  width: 28px;
  height: 28px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.pb-performance-toggle i {
  transition: transform 0.3s ease;
}

.pb-performance-toggle:hover {
  background: #2271b1;
  color: white;
  border-color: #2271b1;
}

.pb-performance-header.collapsed .pb-performance-toggle i {
  transform: rotate(-180deg);
}

.pb-perf-content {
  max-height: 1200px;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 1;
}

.pb-perf-content.collapsed {
  max-height: 0;
  opacity: 0;
}

.pb-perf-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pb-perf-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pb-perf-bar-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ✅ NEU: Farbige Icons für Performance-Labels */
.pb-perf-bar-label i {
  width: 20px;
  text-align: center;
}

.pb-perf-bar-wrapper:nth-child(1) .pb-perf-bar-label i {
  color: #a855f7; /* Gaming - Violett */
}

.pb-perf-bar-wrapper:nth-child(2) .pb-perf-bar-label i {
  color: #3b82f6; /* Produktivität - Blau */
}

.pb-perf-bar-wrapper:nth-child(3) .pb-perf-bar-label i {
  color: #06b6d4; /* Kühlung - Cyan */
}

.pb-perf-bar-wrapper:nth-child(4) .pb-perf-bar-label i {
  color: #14b8a6; /* Airflow - Türkis */
}

.pb-perf-bar-wrapper:nth-child(5) .pb-perf-bar-label i {
  color: #f59e0b; /* Lautstärke - Orange */
}

.pb-perf-bar-container {
  position: relative;
  width: 100%;
  height: 32px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pb-perf-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

/* Gaming Bar - Grün bis Dunkelgrün */
.pb-perf-bar-gaming {
  background: linear-gradient(90deg, #4caf50 0%, #2e7d32 100%);
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.pb-perf-bar-gaming[data-score="0"] {
  background: #e0e0e0;
}

.pb-perf-bar-gaming[data-score^="1"],
.pb-perf-bar-gaming[data-score^="2"],
.pb-perf-bar-gaming[data-score^="3"] {
  background: linear-gradient(90deg, #f44336 0%, #c62828 100%);
  box-shadow: 0 2px 6px rgba(244, 67, 54, 0.3);
}

.pb-perf-bar-gaming[data-score^="4"],
.pb-perf-bar-gaming[data-score^="5"] {
  background: linear-gradient(90deg, #ff9800 0%, #f57c00 100%);
  box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

.pb-perf-bar-gaming[data-score^="6"],
.pb-perf-bar-gaming[data-score^="7"] {
  background: linear-gradient(90deg, #ffc107 0%, #ffa000 100%);
  box-shadow: 0 2px 6px rgba(255, 193, 7, 0.3);
}

/* Productivity Bar - Blau bis Dunkelblau */
.pb-perf-bar-productivity {
  background: linear-gradient(90deg, #2196f3 0%, #1565c0 100%);
  box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

.pb-perf-bar-productivity[data-score="0"] {
  background: #e0e0e0;
}

.pb-perf-bar-productivity[data-score^="1"],
.pb-perf-bar-productivity[data-score^="2"],
.pb-perf-bar-productivity[data-score^="3"] {
  background: linear-gradient(90deg, #f44336 0%, #c62828 100%);
  box-shadow: 0 2px 6px rgba(244, 67, 54, 0.3);
}

.pb-perf-bar-productivity[data-score^="4"],
.pb-perf-bar-productivity[data-score^="5"] {
  background: linear-gradient(90deg, #ff9800 0%, #f57c00 100%);
  box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

.pb-perf-bar-productivity[data-score^="6"],
.pb-perf-bar-productivity[data-score^="7"] {
  background: linear-gradient(90deg, #ffc107 0%, #ffa000 100%);
  box-shadow: 0 2px 6px rgba(255, 193, 7, 0.3);
}

/* Cooling Bar - Cyan bis Dunkelcyan */
.pb-perf-bar-cooling {
  background: linear-gradient(90deg, #00bcd4 0%, #0097a7 100%);
  box-shadow: 0 2px 6px rgba(0, 188, 212, 0.3);
}

.pb-perf-bar-cooling[data-score="0"] {
  background: #e0e0e0;
}

.pb-perf-bar-cooling[data-score^="1"],
.pb-perf-bar-cooling[data-score^="2"],
.pb-perf-bar-cooling[data-score^="3"] {
  background: linear-gradient(90deg, #f44336 0%, #c62828 100%);
  box-shadow: 0 2px 6px rgba(244, 67, 54, 0.3);
}

.pb-perf-bar-cooling[data-score^="4"],
.pb-perf-bar-cooling[data-score^="5"] {
  background: linear-gradient(90deg, #ff9800 0%, #f57c00 100%);
  box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

.pb-perf-bar-cooling[data-score^="6"],
.pb-perf-bar-cooling[data-score^="7"] {
  background: linear-gradient(90deg, #ffc107 0%, #ffa000 100%);
  box-shadow: 0 2px 6px rgba(255, 193, 7, 0.3);
}

/* Airflow Bar - Lila/Violett */
.pb-perf-bar-airflow {
  background: linear-gradient(90deg, #9c27b0 0%, #7b1fa2 100%);
  box-shadow: 0 2px 6px rgba(156, 39, 176, 0.3);
}

.pb-perf-bar-airflow[data-score="0"] {
  background: #e0e0e0;
}

.pb-perf-bar-airflow[data-score^="1"],
.pb-perf-bar-airflow[data-score^="2"],
.pb-perf-bar-airflow[data-score^="3"] {
  background: linear-gradient(90deg, #f44336 0%, #c62828 100%);
  box-shadow: 0 2px 6px rgba(244, 67, 54, 0.3);
}

.pb-perf-bar-airflow[data-score^="4"],
.pb-perf-bar-airflow[data-score^="5"] {
  background: linear-gradient(90deg, #ff9800 0%, #f57c00 100%);
  box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

.pb-perf-bar-airflow[data-score^="6"],
.pb-perf-bar-airflow[data-score^="7"] {
  background: linear-gradient(90deg, #ffc107 0%, #ffa000 100%);
  box-shadow: 0 2px 6px rgba(255, 193, 7, 0.3);
}

/* Noise Bar - Grün (leise) bis Rot (laut) - INVERTIERT */
.pb-perf-bar-noise {
  background: linear-gradient(90deg, #4caf50 0%, #2e7d32 100%);
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.pb-perf-bar-noise[data-score="0"] {
  background: #e0e0e0;
}

.pb-perf-bar-noise[data-score^="1"],
.pb-perf-bar-noise[data-score^="2"],
.pb-perf-bar-noise[data-score^="3"] {
  background: linear-gradient(90deg, #f44336 0%, #c62828 100%);
  box-shadow: 0 2px 6px rgba(244, 67, 54, 0.3);
}

.pb-perf-bar-noise[data-score^="4"],
.pb-perf-bar-noise[data-score^="5"] {
  background: linear-gradient(90deg, #ff9800 0%, #f57c00 100%);
  box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

.pb-perf-bar-noise[data-score^="6"],
.pb-perf-bar-noise[data-score^="7"] {
  background: linear-gradient(90deg, #ffc107 0%, #ffa000 100%);
  box-shadow: 0 2px 6px rgba(255, 193, 7, 0.3);
}

.pb-perf-bar-value {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 700;
  color: #333;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
  z-index: 2;
  pointer-events: none;
}

/* ════════════════════════════════════════
   Gehäuse & Airflow Section
   ════════════════════════════════════════ */

.pb-case-airflow-section {
  margin-top: 20px;
  padding: 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pb-case-airflow-section h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

/* Gehäuse-Info Container */
.pb-case-info-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
}

.pb-case-summary-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border-radius: 4px;
  padding: 4px;
}

.pb-case-summary-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pb-case-summary-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.pb-case-summary-type {
  font-size: 12px;
  color: #666;
}

.pb-case-summary-price {
  font-size: 13px;
  color: #2271b1;
  font-weight: 600;
}

/* Airflow-Info Container */
.pb-airflow-info-container {
  margin-top: 12px;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
}

.pb-airflow-totals {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pb-airflow-cfm,
.pb-airflow-pressure {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pb-airflow-cfm-value {
  font-size: 18px;
  font-weight: 700;
  color: #2271b1;
}

.pb-airflow-pressure-value {
  font-size: 14px;
  font-weight: 600;
}

.pb-airflow-pressure-value.optimal {
  color: #4caf50;
}

.pb-airflow-pressure-value.positive {
  color: #2196f3;
}

.pb-airflow-pressure-value.negative {
  color: #ff9800;
}

.pb-airflow-pressure-value.neutral {
  color: #9e9e9e;
}

.pb-airflow-breakdown {
  font-size: 12px;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.4;
}

.pb-open-airflow-modal {
  width: 100%;
  padding: 8px;
  background: #2271b1;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.pb-open-airflow-modal:hover {
  background: #135e96;
}

/* ════════════════════════════════════════
   Airflow-Modal
   ════════════════════════════════════════ */

.pb-airflow-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pb-airflow-modal.active {
  opacity: 1;
  pointer-events: all;
}

.pb-airflow-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.pb-airflow-modal-content {
  position: relative;
  width: 95%;
  max-width: 1200px;
  max-height: 85vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.pb-airflow-modal.active .pb-airflow-modal-content {
  transform: scale(1);
}

.pb-airflow-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pb-airflow-modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.pb-airflow-modal-close {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.pb-airflow-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Tab Navigation */
.pb-airflow-tabs {
  display: flex;
  gap: 0;
  background: #f0f0f0;
  border-bottom: 2px solid #ddd;
  padding: 0;
  margin: 0;
}

.pb-airflow-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pb-airflow-tab:hover {
  background: rgba(34, 113, 177, 0.05);
  color: #2271b1;
}

.pb-airflow-tab.active {
  background: white;
  border-bottom-color: #2271b1;
  color: #2271b1;
}

.pb-airflow-tab .tab-icon {
  font-size: 18px;
}

.pb-airflow-tab .tab-label {
  font-size: 13px;
}

/* Tab Content */
.pb-airflow-tab-content {
  display: none;
}

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

.pb-airflow-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Case Diagram im Modal */
.pb-airflow-case-diagram {
  margin-bottom: 32px;
}

/* Stats Section */
.pb-airflow-modal-stats h3 {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

.pb-airflow-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.pb-airflow-stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  text-align: center;
}

.pb-airflow-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pb-airflow-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #2271b1;
}

/* ✅ Pressure Status Farben */
.pb-airflow-stat-value.neutral {
  color: #999;
}

.pb-airflow-stat-value.balanced {
  color: #4CAF50;
}

.pb-airflow-stat-value.positive {
  color: #2196F3;
}

.pb-airflow-stat-value.negative {
  color: #FF9800;
}

/* Fan Breakdown */
.pb-airflow-fan-breakdown {
  margin-top: 24px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

.pb-airflow-fan-breakdown h4 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.pb-airflow-fan-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pb-airflow-fan-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
}

.pb-airflow-fan-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.pb-airflow-fan-cfm {
  font-size: 14px;
  font-weight: 600;
  color: #2271b1;
}

.pb-preinstalled-fan {
  border-left: 3px solid #f0ad4e;
  background: #fffbf0;
}

/* Fan Assignment Container (Tab 2) */
.pb-fan-assignment-container {
  margin-top: 24px;
}

.pb-fan-pool,
.pb-fan-positions {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e5e5e5;
}

.pb-fan-pool h3,
.pb-fan-positions h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.pb-fan-pool-list,
.pb-fan-positions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  max-height: 400px;
  overflow-y: auto;
}

.pb-fan-pool-item,
.pb-fan-position-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 6px;
  border: 2px solid #ddd;
  font-size: 14px;
  transition: all 0.2s ease;
  position: relative;
}

.pb-fan-info {
  flex: 1;
}

/* Fan Dots */
.pb-fan-dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.pb-fan-dot {
  border-radius: 50%;
  border: 2px solid #ddd;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Größenklassen für Dots */
.pb-fan-dot.dot-size-120 {
  width: 18px; /* ✅ Größer: 12px → 18px */
  height: 18px;
  font-size: 11px;
}

.pb-fan-dot.dot-size-140 {
  width: 22px; /* ✅ Größer: 16px → 22px */
  height: 22px;
  font-size: 13px;
}

.pb-fan-dot.dot-size-200 {
  width: 20px;
  height: 20px;
  font-size: 12px;
}

.pb-fan-dot.available {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #059669;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.pb-fan-dot.available:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.5);
}

/* ✅ Gefüllte Slot-Dots = gleiche grüne Farbe wie verfügbare Pool-Dots */
.pb-fan-dot.filled {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-color: #059669 !important;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3) !important;
  cursor: default;
}

/* ✅ Klickbare gefüllte Dots */
.pb-fan-dot.clickable-dot {
  cursor: pointer !important;
  transition: all 0.2s ease;
}

.pb-fan-dot.clickable-dot:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5) !important;
  border-color: #dc2626 !important;
  filter: brightness(1.1);
}

.pb-fan-dot.assigned {
  background: rgba(200, 200, 200, 0.3) !important; /* ✅ Leicht grau statt transparent */
  border: 2px dashed rgba(150, 150, 150, 0.8) !important; /* Dunkle gestrichelte Border */
  cursor: not-allowed;
  opacity: 1 !important; /* Volle Sichtbarkeit */
  box-shadow: none !important;
}

.pb-fan-dot.selected {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
  transform: scale(1.2);
}

.pb-fan-dot.selected::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  line-height: 1;
}

/* Leere Dots (für Slot-Kapazität) */
.pb-fan-dot.empty {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  border-style: dashed;
  cursor: default;
}

.pb-fan-dot.empty:hover {
  transform: none;
  box-shadow: none;
}

.pb-fan-pool-item {
  cursor: pointer;
}

.pb-fan-pool-item:hover {
  border-color: #2271b1;
  box-shadow: 0 2px 4px rgba(34, 113, 177, 0.1);
  transform: translateY(-2px);
}

.pb-fan-position-item:hover {
  border-color: #2271b1;
  box-shadow: 0 2px 4px rgba(34, 113, 177, 0.1);
}

/* Selection-Modus aktiv */
.pb-fan-pool-item.in-selection-mode {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  transform: scale(1.03);
  position: relative;
}

.pb-fan-pool-item.in-selection-mode::before {
  content: 'Klicke auf Slots zum Zuordnen';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #3b82f6;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  z-index: 10;
}

/* Ausgewählter Lüfter */
.pb-fan-pool-item.selected {
  border-color: #2271b1;
  background: linear-gradient(135deg, #e8f4ff 0%, #d4ebff 100%);
  box-shadow: 0 4px 12px rgba(34, 113, 177, 0.2);
  transform: scale(1.02);
}

.pb-fan-pool-item.selected::before {
  content: '✓';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: #2271b1;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
}

/* Verfügbare Slots wenn Lüfter ausgewählt */
.pb-fan-position-item.available {
  border-color: #10b981;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  cursor: pointer;
}

.pb-fan-position-item.available:hover {
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  transform: translateY(-2px) scale(1.02);
}

.pb-fan-position-item.available::after {
  content: '+ Hier zuordnen';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #10b981;
  font-weight: 600;
  white-space: nowrap;
}

/* Position mit zugeordneten Lüftern */
.pb-fan-position-item.has-fans {
  border-color: #2271b1;
  background: #f0f9ff;
}

.pb-fan-position-item.has-fans .pb-assigned-fans {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  width: 100%;
}

.pb-assigned-fan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: white;
  border-radius: 4px;
  border: 1px solid #ddd;
  font-size: 12px;
}

.pb-assigned-fan-name {
  flex: 1;
  color: #333;
  font-weight: 600;
}

.pb-assigned-fan-remove {
  padding: 2px 6px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

.pb-assigned-fan-remove:hover {
  background: #c82333;
  transform: scale(1.05);
}

.pb-auto-fill-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pb-auto-fill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.pb-auto-fill-btn:active {
  transform: translateY(0);
}

.pb-assign-btn,
.pb-remove-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pb-assign-btn {
  background: #2271b1;
  color: white;
}

.pb-assign-btn:hover {
  background: #135e96;
}

.pb-remove-btn {
  background: #dc3545;
  color: white;
}

.pb-remove-btn:hover {
  background: #c82333;
}

/* Responsive */
@media (max-width: 768px) {
  .pb-airflow-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .pb-airflow-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pb-airflow-modal-header h2 {
    font-size: 20px;
  }
}

/* Bottleneck Analysis */
.pb-bottleneck-analysis {
  margin-top: 16px;
}

.pb-bottleneck-card {
  border-radius: 8px;
  padding: 12px 16px;
  border-left: 4px solid;
  animation: slideIn 0.3s ease;
}

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

.pb-bottleneck-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pb-bottleneck-icon {
  font-size: 20px;
  line-height: 1;
}

.pb-bottleneck-message {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.pb-bottleneck-recommendation {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  padding-left: 30px;
}

/* Severity Levels */
.pb-bottleneck-excellent {
  background: linear-gradient(135deg, #d4f4dd 0%, #e8f8ed 100%);
  border-left-color: #4caf50;
}

.pb-bottleneck-good {
  background: linear-gradient(135deg, #d4f4dd 0%, #e8f8ed 100%);
  border-left-color: #66bb6a;
}

.pb-bottleneck-acceptable {
  background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
  border-left-color: #ff9800;
}

.pb-bottleneck-high {
  background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%);
  border-left-color: #f44336;
}

/* Refresh Button */
.pb-perf-refresh-btn {
  width: 100%;
  padding: 10px 16px;
  margin-top: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.pb-perf-refresh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

/* Debug View */
.pb-perf-debug {
  margin-top: 15px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  font-size: 11px;
  overflow: auto;
  max-height: 300px;
}

.pb-perf-debug pre {
  margin: 0;
  color: #333;
  font-family: 'Courier New', monospace;
}

/* Responsive */
@media (max-width: 768px) {
  .pb-performance-section {
    padding: 15px;
  }

  .pb-perf-bar-container {
    height: 28px;
  }

  .pb-perf-bar-value {
    font-size: 12px;
  }

  .pb-perf-refresh-btn {
    font-size: 12px;
    padding: 8px 14px;
  }

  .pb-bottleneck-message {
    font-size: 13px;
  }

  .pb-bottleneck-recommendation {
    font-size: 12px;
    padding-left: 24px;
  }
}n@keyframes slideInDown {n    opacity: 0;n  }n    opacity: 1;n  }nn  animation: slideInDown 0.3s ease;n


/* === Selection Hint Animation === */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pb-selection-hint {
  animation: slideInDown 0.3s ease;
}
/* === AIO Auto-Assign Hint === */
.pb-aio-auto-hint {
  margin: 12px 0;
  padding: 12px 16px;
  border-radius: 8px;
  animation: slideInDown 0.3s ease;
  border-left: 4px solid;
}

.pb-aio-auto-hint-success {
  background: linear-gradient(135deg, #d4f4dd 0%, #e8f8ed 100%);
  border-left-color: #4caf50;
}

.pb-aio-auto-hint-error {
  background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%);
  border-left-color: #f44336;
}

.pb-aio-auto-hint-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pb-aio-auto-hint-icon {
  font-size: 20px;
  line-height: 1;
}

.pb-aio-auto-hint-success .pb-aio-auto-hint-icon {
  color: #4caf50;
}

.pb-aio-auto-hint-error .pb-aio-auto-hint-icon {
  color: #f44336;
}

.pb-aio-auto-hint-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.pb-aio-auto-hint-btn {
  padding: 8px 16px;
  background: #2271b1;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pb-aio-auto-hint-btn:hover {
  background: #135e96;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.pb-aio-auto-hint-btn:active {
  transform: translateY(0);
}

/* === Größte passende AIO Hervorhebung === */
.pb-largest-compatible-aio {
  border: 2px solid #66bb6a !important;
  box-shadow: 0 0 15px rgba(102, 187, 106, 0.3);
  position: relative;
}

.pb-largest-aio-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === Auto-Fill Lüfter Button & Modal === */
.pb-auto-fill-wrapper {
  display: flex;
  justify-content: flex-end;
  margin: 15px 0;
  padding: 0 5px;
}

.pb-auto-fill-btn {
  background: linear-gradient(135deg, #2271b1 0%, #1e5a8a 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
  transition: all 0.3s ease;
}

.pb-auto-fill-btn:hover {
  background: linear-gradient(135deg, #1e5a8a 0%, #164a70 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 113, 177, 0.4);
}

.pb-auto-fill-btn:active {
  transform: translateY(0);
}

/* Auto-Fill Modal */
.pb-auto-fill-modal {
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
}

/* Lüfter-Auswahl Grid */
.pb-autofill-fan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.pb-autofill-fan-card {
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  position: relative;
}

.pb-autofill-fan-card:hover {
  border-color: #2271b1;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(34, 113, 177, 0.2);
}

.pb-autofill-fan-card.selected {
  border-color: #2271b1;
  background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
  box-shadow: 0 6px 15px rgba(34, 113, 177, 0.3);
}

.pb-autofill-fan-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
}

.pb-autofill-fan-card.disabled:hover {
  border-color: #ddd;
  transform: none;
  box-shadow: none;
}

.pb-autofill-fan-card img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}

.pb-autofill-fan-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  line-height: 1.3;
}

.pb-autofill-fan-size {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.pb-autofill-fan-warning {
  font-size: 11px;
  color: #f57c00;
  margin-top: 5px;
  font-weight: 600;
}

/* Füll-Optionen */
.pb-autofill-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pb-autofill-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.pb-autofill-option:hover {
  border-color: #2271b1;
  background: #f8f9fa;
}

.pb-autofill-option input[type="radio"] {
  margin-top: 2px;
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.pb-autofill-option input[type="radio"]:checked + .pb-autofill-option-content {
  color: #2271b1;
}

.pb-autofill-option:has(input[type="radio"]:checked) {
  border-color: #2271b1;
  background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
  box-shadow: 0 4px 10px rgba(34, 113, 177, 0.15);
}

.pb-autofill-option-content {
  flex: 1;
}

.pb-autofill-option-content strong {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  color: #333;
}

.pb-autofill-option-content span {
  display: block;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

/* AIO-Checkbox */
.pb-autofill-aio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.pb-autofill-aio-option:hover {
  border-color: #2271b1;
  background: #f8f9fa;
}

.pb-autofill-aio-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.pb-autofill-aio-option span {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.pb-autofill-aio-option:has(input[type="checkbox"]:checked) {
  border-color: #2271b1;
  background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
}

/* Vorschau */
.pb-autofill-preview {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  min-height: 100px;
}
