/* Stilierung für die Artikelhilfe-Seite */

:root {
  --artikelhilfe-surface: #ffffffdd;
  --artikelhilfe-border: #d1d5db;
  --artikelhilfe-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --artikelhilfe-blue: #2563eb;
  --artikelhilfe-red: #e11d48;
  --artikelhilfe-green: #10b981;
}

body.artikelhilfe-page {
  font-family: "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.12), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(16, 185, 129, 0.12), transparent 28%),
    linear-gradient(180deg, #0b1224 0%, #0f172a 35%, #0b1224 100%);
  color: #0f172a;
}

body.artikelhilfe-page.has-topnav {
  /* Abstand für die fixe Topnav aus main.css */
  padding-top: clamp(3.75rem, 5vw, 5rem);
}

.print-btn {
  position: fixed;
  top: calc(clamp(3.75rem, 5vw, 5rem) + 14px);
  right: 16px;
  padding: 10px 20px;
  border: none;
  background: var(--artikelhilfe-blue);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: 0.2s;
  z-index: 2000;
}

.print-btn:hover,
.print-btn:focus-visible {
  background: #1d4ed8;
  outline: none;
}

.artikelhilfe-main {
  flex: 1;
  display: grid;
  gap: 18px;
  padding: 52px clamp(14px, 4vw, 28px) 70px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.artikelhilfe-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 26px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: clamp(16px, 4vw, 24px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(5px);
}

.hero-text h1 {
  margin: 8px 0 6px;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: #e2e8f0;
}

.hero-text .subtitle {
  margin: 0;
  color: #cbd5e1;
  font-size: 1.05rem;
}

.hero-note {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  color: #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-note p {
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-note ul {
  margin: 0;
  padding-left: 18px;
  color: #cbd5e1;
  line-height: 1.55;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.chip--accent {
  background: rgba(59, 130, 246, 0.15);
  color: #e0f2fe;
  border: 1px solid rgba(59, 130, 246, 0.5);
}

.chip--outline {
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.artikelhilfe-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.legend-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  padding: 10px 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.dot--blue {
  background: var(--artikelhilfe-blue);
}
.dot--red {
  background: var(--artikelhilfe-red);
}
.dot--green {
  background: var(--artikelhilfe-green);
}

.artikelhilfe-guides {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: clamp(16px, 4vw, 22px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  color: #e2e8f0;
  display: grid;
  gap: 14px;
}

.guides-header h2 {
  margin: 8px 0 6px;
  color: #e2e8f0;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.guides-header .subtitle {
  margin: 0;
  color: #cbd5e1;
}

.guide-list {
  list-style: decimal;
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 10px;
  color: #e2e8f0;
}

.guide-list li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.guide-list strong {
  display: block;
  margin-bottom: 4px;
  color: #f8fafc;
}

.guide-list span {
  color: #cbd5e1;
  line-height: 1.55;
}

.artikelhilfe-section {
  width: 100%;
  max-width: 1100px;
  background: #ffffffee;
  border-radius: 16px;
  box-shadow: var(--artikelhilfe-shadow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.artikelhilfe-section table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.artikelhilfe-section th,
.artikelhilfe-section td {
  border: 1px solid var(--artikelhilfe-border);
  padding: clamp(14px, 2vw, 18px);
  text-align: center;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  word-break: break-word;
}

.artikelhilfe-section th {
  font-size: clamp(1.6rem, 3vw, 2rem);
  background: #f8fafc;
}

.artikelhilfe-section th:first-child {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), #f8fafc);
}
.artikelhilfe-section th:nth-child(2) {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.08), #f8fafc);
}
.artikelhilfe-section th:nth-child(3) {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), #f8fafc);
}

.artikelhilfe-section .blue {
  color: var(--artikelhilfe-blue);
}

.artikelhilfe-section .red {
  color: var(--artikelhilfe-red);
}

.artikelhilfe-section .green {
  color: var(--artikelhilfe-green);
}

.artikelhilfe-section tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.artikelhilfe-section tbody tr:hover td {
  background: #f1f5f9;
}

/* Spaltenfarben für bessere Zuordnung */
.artikelhilfe-section td:nth-child(1) {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), transparent);
}
.artikelhilfe-section td:nth-child(2) {
  background: linear-gradient(180deg, rgba(225, 29, 72, 0.08), transparent);
}
.artikelhilfe-section td:nth-child(3) {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), transparent);
}
.artikelhilfe-section tbody tr:nth-child(even) td:nth-child(1) {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.12), #f8fafc);
}
.artikelhilfe-section tbody tr:nth-child(even) td:nth-child(2) {
  background: linear-gradient(180deg, rgba(225, 29, 72, 0.12), #f8fafc);
}
.artikelhilfe-section tbody tr:nth-child(even) td:nth-child(3) {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12), #f8fafc);
}


.artikelhilfe-section,
.artikelhilfe-section table,
.artikelhilfe-section tr,
.artikelhilfe-section th,
.artikelhilfe-section td {
  scroll-margin-top: clamp(4.5rem, 6vw, 5.5rem);
}

@media (max-width: 700px) {
  .artikelhilfe-hero {
    grid-template-columns: 1fr;
  }

  .artikelhilfe-section th {
    font-size: 1.5rem;
  }

  .artikelhilfe-section td {
    font-size: 1.05rem;
  }
}

@media print {
  .topnav,
  #sideNav,
  .print-btn,
  .artikelhilfe-nav,
  .artikelhilfe-hero,
  .artikelhilfe-legend {
    display: none !important;
  }

  body.artikelhilfe-page {
    background: #fff !important;
    padding: 0;
  }

  .artikelhilfe-section {
    box-shadow: none;
    border-radius: 0;
    border: 1px solid #cbd5e1;
  }

  .artikelhilfe-section th {
    font-size: 2rem;
  }

  .artikelhilfe-section td {
    font-size: 1.4rem;
  }

  @page {
    size: auto;
    margin: 10mm;
  }
}
