/* Base styles */
.artikel-container {
  max-width: 800px;
  margin: 20px auto !important;
  padding: 24px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Typography */
.artikel-title {
  font-size: clamp(20px, 5vw, 24px);
  font-weight: bold;
  margin-bottom: 16px;
  word-break: break-word;
}

/* Image handling */
.artikel-image {
  margin-bottom: 16px;
  text-align: center;
}

.artikel-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

/* Product details */
.artikel-number {
  margin-bottom: 8px;
  font-size: clamp(14px, 4vw, 16px);
}

.artikel-description {
  margin-bottom: 16px;
  font-size: clamp(14px, 4vw, 16px);
  line-height: 1.6;
}

/* Grid layouts */
.artikel-properties,
.artikel-downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.artikel-subtitle {
  font-size: clamp(18px, 4vw, 20px);
  font-weight: 600;
  margin-bottom: 16px;
  grid-column: 1 / -1;
}

/* Download buttons */
.download-item {
  margin-bottom: 12px;
  position: relative;
}

.artikel-downloads a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: #EF7203;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.artikel-downloads a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.artikel-downloads a:hover {
  background-color: #c75e02;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.artikel-downloads a:hover::before {
  width: 300px;
  height: 300px;
}

/* Loading states */
.artikel-downloads a.loading {
  pointer-events: none;
  opacity: 0.7;
}

.artikel-downloads a.loading::after {
  content: '';
  position: absolute;
  right: 16px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Mobile-specific styles */
@media (max-width: 768px) {
  .artikel-container {
    margin: 0 !important;
    padding: 16px;
    border-radius: 0;
    box-shadow: none;
  }
  
  .artikel-page-mobile {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  .artikel-page-mobile main {
    flex: 1;
  }
  
  .artikel-page-mobile footer {
    position: inherit;
  }
  
  .artikel-downloads {
    grid-template-columns: 1fr;
  }
  
  .artikel-downloads a {
    padding: 16px;
    justify-content: center;
    font-size: 16px;
  }
  
  /* Improve touch targets on mobile */
  .download-item {
    margin-bottom: 16px;
  }
  
  .artikel-image img {
    max-width: 100%;
    height: auto;
  }
}

/* Print styles */
@media print {
  .artikel-container {
    box-shadow: none;
    margin: 0 !important;
  }
  
  .artikel-downloads a {
    border: 1px solid #000;
    background: none;
    color: #000;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .artikel-downloads a {
    background-color: #000;
    border: 2px solid #000;
  }
  
  .artikel-downloads a:hover {
    background-color: #333;
    border-color: #333;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .artikel-downloads a,
  .artikel-image img {
    transition: none;
  }
  
  .artikel-downloads a:hover {
    transform: none;
  }
}