/* Modern Article Styles - col-right Bereich */

.col-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Card Basis-Styling */
.product-specs-card,
.description-card,
.features-card,
.order-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  transition: box-shadow 0.3s ease;
}

.product-specs-card:hover,
.description-card:hover,
.features-card:hover,
.order-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Produkt-Spezifikationen */
.product-specs-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.spec-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
}

.spec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-item:first-child {
  padding-top: 0;
}

.spec-icon {
  font-size: 1.8rem;
  min-width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.spec-content {
  flex: 1;
}

.spec-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.spec-value {
  font-size: 1rem;
  color: #212529;
  font-weight: 500;
}

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

.catalog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: #e7f3ff;
  color: #0056b3;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  width: fit-content;
}

.catalog-link:hover {
  background: #cce5ff;
  transform: translateX(3px);
}

/* Card Titel */
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #212529;
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #dee2e6;
}

/* Beschreibung */
.description-card {
  background: #f8f9fa;
}

.description-content {
  color: #495057;
  line-height: 1.6;
}

.description-content .short-desc {
  font-weight: 500;
  color: #212529;
  margin-bottom: 1rem;
}

.description-content p {
  margin: 0.5rem 0;
}

/* Besonderheiten */
.features-card {
  background: linear-gradient(135deg, #fff5e6 0%, #ffffff 100%);
  border-left: 4px solid #ff9800;
}

.features-content {
  color: #495057;
  line-height: 1.6;
}

/* Bestellung Card */
.order-card {
  background: linear-gradient(135deg, #ffffff 0%, #f1f8ff 100%);
  border: 2px solid #e3f2fd;
}

.dealer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.modern-order-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Größen-Optionen */
.size-option {
  background: white;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.size-option:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.size-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.size-icon {
  font-size: 2rem;
  min-width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 12px;
}

.size-info {
  flex: 1;
}

.size-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.size-range {
  font-size: 1.2rem;
  font-weight: 700;
  color: #212529;
  margin: 0.2rem 0;
}

.size-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4caf50;
}

/* Custom Checkbox */
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.custom-checkbox:hover {
  background: #f8f9fa;
}

.custom-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  position: relative;
  height: 24px;
  width: 24px;
  background-color: #fff;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: #4caf50;
  border-color: #4caf50;
}

.custom-checkbox input:checked ~ .checkmark:after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 16px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.checkbox-label {
  font-size: 0.95rem;
  color: #495057;
  font-weight: 500;
}

/* Modern Button */
.modern-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-transform: none;
}

.modern-button.primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
}

.modern-button.primary:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.button-icon {
  font-size: 1.3rem;
}

.button-text {
  letter-spacing: 0.3px;
}

/* Größen-Anzeige (nicht eingeloggt) */
.size-display {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.size-info-public {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.size-info-public .size-icon {
  font-size: 2rem;
  min-width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 12px;
}

.size-info-public .size-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.size-info-public .size-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #212529;
}

/* Responsive Design */
@media (max-width: 768px) {
  .col-right {
    gap: 1rem;
  }
  
  .product-specs-card,
  .description-card,
  .features-card,
  .order-card {
    padding: 1rem;
  }
  
  .spec-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .spec-icon {
    align-self: flex-start;
  }
  
  .size-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .modern-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* Animation für neu geladene Elemente */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-specs-card,
.description-card,
.features-card,
.order-card {
  animation: fadeInUp 0.5s ease-out;
}

.spec-item:nth-child(1) { animation-delay: 0.1s; }
.spec-item:nth-child(2) { animation-delay: 0.2s; }
.spec-item:nth-child(3) { animation-delay: 0.3s; }
.spec-item:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   MODERN TABS DESIGN
   ============================================ */

.modern-tabs {
  margin: 3rem 0 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Tab Navigation */
.tabs-navigation {
  display: flex;
  gap: 0.75rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 0.75rem 1.25rem;
  border-bottom: 2px solid #e9ecef;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tabs-navigation::-webkit-scrollbar {
  height: 6px;
}

.tabs-navigation::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.tabs-navigation::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

.tabs-navigation::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* Tab Buttons */
.tab-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  background: white;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #6c757d;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.tab-button::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #6c757d, #495057);
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

.tab-button:hover {
  background: #f8f9fa;
  color: #495057;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tab-button.active {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  border-color: #495057;
  box-shadow: 0 6px 20px rgba(73, 80, 87, 0.3);
  transform: translateY(-3px);
}

.tab-button.active::before {
  width: 100%;
}

.tab-icon {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.tab-button:hover .tab-icon {
  transform: scale(1.15);
}

.tab-button.active .tab-icon {
  transform: scale(1.1) rotateY(360deg);
  animation: iconPulse 0.6s ease;
}

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

.tab-text {
  font-weight: 600;
  letter-spacing: 0.3px;
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.5rem;
  background: #6c757d;
  color: white;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(108, 117, 125, 0.4);
}

.tab-button.active .tab-badge {
  background: white;
  color: #495057;
}

/* Tab Content */
.tabs-content {
  padding: 2rem;
  background: white;
  min-height: 300px;
}

.tab-panel {
  display: none;
  animation: fadeInContent 0.4s ease-out;
}

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

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

.tab-content-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Related Products Grid */
.related-products-grid {
  background: white;
  padding: 1.5rem;
}

.related-articles-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.related-article-item {
  background: white;
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.related-article-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: #f8f9fa;
}

/* Begrenze Bildgröße in ähnlichen Artikeln */
.related-article-item img {
  max-width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.related-article-item a {
  text-decoration: none;
  color: inherit;
}

.related-article-item a:hover {
  color: #007bff;
}

.related-article-item p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #495057;
}

.related-article-item .new {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: gold;
  color: red;
  font-weight: bold;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* Responsive Tabs */
@media (max-width: 992px) {
  .tabs-navigation {
    padding: 0.75rem;
    gap: 0.5rem;
  }
  
  .tab-button {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .tabs-content {
    padding: 1.5rem;
  }
  
  .tab-content-card {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .modern-tabs {
    margin: 2rem 0 1.5rem;
    border-radius: 12px;
  }
  
  .tabs-navigation {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .tab-button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    flex-shrink: 0;
  }
  
  .tab-icon {
    font-size: 1.2rem;
  }
  
  .tab-text {
    font-size: 0.875rem;
  }
  
  .tabs-content {
    padding: 1rem;
  }
  
  .tab-content-card {
    padding: 1rem;
  }
  
  .related-articles-wrapper {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .tab-button {
    padding: 0.625rem 0.875rem;
    gap: 0.5rem;
  }
  
  .tab-icon {
    font-size: 1.1rem;
  }
  
  .tab-text {
    display: none;
  }
  
  .tab-button .tab-icon {
    margin: 0;
  }
  
  .related-articles-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tab-spezifische Animationen */
.tab-panel {
  animation-duration: 0.5s;
}

.tab-panel.active:nth-child(1) {
  animation-delay: 0s;
}

.tab-panel.active:nth-child(2) {
  animation-delay: 0.05s;
}

/* Smooth transitions für alte jQuery UI Kompatibilität */
#product-tabs .ui-tabs-nav {
  display: none !important;
}

/* Kontakt Tab Panel */
#kontakt.tab-panel {
  background: transparent;
}

#kontakt.tab-panel .tab-content-card {
  background: #f8f9fa;
}

#kontakt .firma {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#kontakt .firma p {
  margin: 0.5rem 0;
  color: #495057;
  font-size: 1rem;
}

#kontakt .firma p:first-child {
  font-weight: 700;
  font-size: 1.2rem;
  color: #212529;
  margin-bottom: 1rem;
}

#kontakt iframe {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   CATEGORY & COLLECTION GRID LAYOUT
   ============================================ */

/* Category Article Grid */
ul.category {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 0;
  margin: 2rem 0;
  list-style: none;
}

ul.category ul.article {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
  list-style: none;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

ul.category ul.article:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: #f8f9fa;
  z-index: 10;
}

ul.category ul.article a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

ul.category ul.article img {
  max-width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  margin: 0 auto 1rem;
  display: block;
}

ul.category ul.article .titel {
  font-size: 1.1rem;
  font-weight: 700;
  color: #212529;
  margin: 0.5rem 0;
}

ul.category ul.article small {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: block;
}

ul.category ul.article .farbe {
  color: #495057;
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

ul.category ul.article .new {
  display: inline-block;
  margin-top: auto;
  padding: 0.35rem 1rem;
  background: #ffd700;
  color: #dc3545;
  font-weight: bold;
  border-radius: 6px;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
}

ul.category ul.article a:hover .titel {
  color: #495057;
}

/* Collection Category Grid */
div.collection > div:not(.header) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0;
  margin: 2rem 0;
}

div.collection > div > div {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
  margin: 0 !important;
  width: auto !important;
}

div.collection > div > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: #f8f9fa;
}

div.collection > div > div a {
  text-decoration: none;
  color: #212529;
  font-weight: 600;
  font-size: 1.05rem;
  display: block;
}

div.collection > div > div a:hover {
  color: #495057;
}

div.collection > div > div img {
  max-width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  margin: 0 auto 1rem;
  display: block;
  border-radius: 6px;
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
  ul.category,
  div.collection > div:not(.header) {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  ul.category ul.article img,
  div.collection > div > div img {
    max-height: 140px;
  }
}

@media (max-width: 480px) {
  ul.category,
  div.collection > div:not(.header) {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
