:root {
  /* Farbpalette */
  --primary-blue: #0069b4;
  --primary-blue-dark: #004d8a;
  --dark-gray: #383e46;
  --text-dark: #101010;
  --text-normal: #333;
  --bg-light: #f7f8fa;
  --bg-white: #fff;
  --bg-surface: #f7f7f7;
  --bg-hover: #eef6ff;
  --bg-table-zebra: #f8f9ff;
  --border-light: #e2e2e2;
  --success-color: #22c55e;
  --error-color: #ef4444;
  
  /* Schatten-System */
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.10);
  --shadow-table: 0 2px 12px rgba(0, 0, 0, 0.05);
  --shadow-button: 0 2px 8px rgba(0, 105, 180, 0.3);
  --shadow-button-hover: 0 4px 12px rgba(0, 105, 180, 0.4);
  
  /* Border-Radius System */
  --radius-small: 10px;
  --radius: 12px;
  --radius-large: 14px;
  --radius-mobile-small: 12px;
  --radius-mobile: 16px;
  
  /* Spacing System */
  --gap-xsmall: 8px;
  --gap-small: 16px;
  --gap-medium: 24px;
  --gap-large: 32px;
  --gap-mobile-small: 12px;
  --gap-mobile-medium: 16px;
  --gap-mobile-large: 20px;
  
  /* Padding System */
  --padding-box: 28px;
  --padding-box-large: var(--gap-large);
  --padding-table: 16px;
  --padding-mobile: 18px 10px;
  --container-padding-mobile: 8px;
  --box-padding-mobile: 16px;
  --box-padding-mobile-small: 12px;
  
  /* Typografie */
  --font-size-small: 0.95em;
  --font-size-base: 1.05em;
  --font-size-large: 1.08em;
  --line-height-base: 1.6;
  --line-height-tight: 1.2;
  
  /* Transitions */
  --transition-base: 0.3s ease;
  --transition-fast: 0.2s ease;
}

/* Alles ab hier nur innerhalb der Artikelbeschreibung */
.igo3d-desc {
  color: var(--text-normal);
}

/* ============================================ */
/* LAYOUT COMPONENTS */
/* ============================================ */

.igo3d-desc .box-container {
  display: flex;
  flex-direction: column;
  gap: var(--gap-medium);
  justify-content: center;
  align-items: center;

  /* ✅ Desktop: sauberer Gutter + Begrenzung */
  width: calc(100% - 16px);
  max-width: 1600px;
  margin: 40px auto;
  padding: 0;
}

/* ============================================ */
/* SHARED BOX COMPONENTS */
/* ============================================ */

.igo3d-desc .info-box,
.igo3d-desc .highlight-box,
.igo3d-desc .video-row-box,
.igo3d-desc .video-single-box,
.igo3d-desc .image-text-box,
.igo3d-desc .image-grid {
  background: var(--bg-white);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-medium);
  box-sizing: border-box;

  max-width: 100%;
  width: 100%;
}

/* ============================================ */
/* TYPOGRAPHY SYSTEM */
/* ============================================ */

.igo3d-desc .info-box h1,
.igo3d-desc .info-box h2,
.igo3d-desc .info-box h3,
.igo3d-desc .info-box h4,
.igo3d-desc .info-box h5,
.igo3d-desc .info-box h6,
.igo3d-desc .highlight-box h1,
.igo3d-desc .highlight-box h2,
.igo3d-desc .highlight-box h3,
.igo3d-desc .highlight-box h4,
.igo3d-desc .highlight-box h5,
.igo3d-desc .highlight-box h6,
.igo3d-desc .text-section h1,
.igo3d-desc .text-section h2,
.igo3d-desc .text-section h3,
.igo3d-desc .text-section h4,
.igo3d-desc .text-section h5,
.igo3d-desc .text-section h6,
.igo3d-desc .image-grid h1,
.igo3d-desc .image-grid h2,
.igo3d-desc .image-grid h3,
.igo3d-desc .image-grid h4,
.igo3d-desc .image-grid h5,
.igo3d-desc .image-grid h6,
.igo3d-desc .video-headline,
.igo3d-desc .image-headline {
  color: var(--primary-blue);
  font-weight: bold;
  margin: 0 0 16px 0;
  font-size: 1.6em;
  display: block;
}

.igo3d-desc .video-headline,
.igo3d-desc .image-headline {
  text-align: center;
  width: 100%;
}

.igo3d-desc .image-grid .image-headline {
  grid-column: 1 / -1;
}

/* ============================================ */
/* CONTENT COMPONENTS */
/* ============================================ */

.igo3d-desc .info-box {
  padding: var(--padding-box-large) var(--padding-box);
}

.igo3d-desc .info-box p {
  line-height: var(--line-height-base);
  margin: 0;
  font-size: var(--font-size-large);
}

.igo3d-desc .highlight-box {
  padding: var(--padding-box-large) var(--padding-box);
}

.igo3d-desc .highlight-box ul {
  padding-left: var(--gap-medium);
  margin: 0;
  font-size: var(--font-size-base);
}

.igo3d-desc .highlight-box li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.igo3d-desc .highlight-box li strong {
  font-weight: 700;
}

/* ============================================ */
/* VIDEO COMPONENTS */
/* ============================================ */

.igo3d-desc .video-row-box {
  padding: var(--padding-box-large) var(--padding-box);
  display: flex;
  gap: var(--gap-medium);
  justify-content: center;
  align-items: flex-start;
}

.igo3d-desc .video-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.igo3d-desc .video-single-box {
  padding: var(--padding-box-large) var(--padding-box);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.igo3d-desc .video-col iframe,
.igo3d-desc .video-single-box iframe,
.igo3d-desc .video-single-box video {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-light);
  background: #000;
  display: block;
}

/* ============================================ */
/* IMAGE COMPONENTS */
/* ============================================ */

.igo3d-desc .image-text-box {
  display: flex;
  gap: var(--gap-medium);
  align-items: center;
  padding: var(--padding-box);
}

.igo3d-desc .image-text-box.left {
  flex-direction: row;
}

.igo3d-desc .image-text-box.right,
.igo3d-desc .image-text-box.force-right {
  flex-direction: row-reverse;
}

.igo3d-desc .image-text-box.clean {
  padding: 0;
  box-shadow: none;
  background: none;
}

.igo3d-desc .image-section img {
  max-width: 300px;
  width: 100%;
  border-radius: var(--radius-small);
  object-fit: cover;
  box-shadow: var(--shadow-light);
  display: block;
}

.igo3d-desc .text-section {
  flex: 1;
}

.igo3d-desc .text-section p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  margin: 0;
}

/* Image Grid */
.igo3d-desc .image-grid {
  display: grid;
  gap: var(--gap-small);
  padding: var(--padding-box);
}

.igo3d-desc .cols-1 { grid-template-columns: 1fr; }
.igo3d-desc .cols-2 { grid-template-columns: repeat(2, 1fr); }
.igo3d-desc .cols-3 { grid-template-columns: repeat(3, 1fr); }
.igo3d-desc .cols-4 { grid-template-columns: repeat(4, 1fr); }

.igo3d-desc .image-grid img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-small);
  object-fit: cover;
  box-shadow: var(--shadow-light);
  display: block;
}

/* ============================================ */
/* TABLE COMPONENTS */
/* ============================================ */

.igo3d-desc .comparison-table-container {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-medium);
  background: var(--bg-white);
}

.igo3d-desc .comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--font-size-base);
  min-width: 600px;
}

.igo3d-desc .comparison-table thead th {
  background: var(--dark-gray);
  color: white;
  padding: 20px var(--padding-table);
  font-weight: 600;
  text-align: center;
  position: relative;
  font-size: 1.1em;
}

.igo3d-desc .comparison-table thead th:first-child {
  text-align: left;
  width: 35%;
}

.igo3d-desc .comparison-table tbody th {
  background: var(--bg-surface);
  color: var(--text-dark);
  padding: var(--padding-table);
  font-weight: 500;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--font-size-small);
  line-height: var(--line-height-tight);
}

.igo3d-desc .comparison-table tbody td {
  padding: var(--padding-table);
  text-align: center;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  font-size: 1.2em;
  font-weight: 600;
  vertical-align: middle;
  line-height: var(--line-height-tight);
  color: var(--success-color);
}

.igo3d-desc .comparison-table tbody tr:nth-child(even) td {
  background: var(--bg-table-zebra);
}

.igo3d-desc .comparison-table tfoot th,
.igo3d-desc .comparison-table tfoot td {
  background: var(--bg-surface);
  padding: 20px var(--padding-table);
  border-top: 2px solid var(--primary-blue);
  text-align: center;
}

.igo3d-desc .comparison-table tfoot th {
  text-align: left;
}

.igo3d-desc .feature-unavailable {
  color: var(--error-color);
  font-size: 1.4em;
  opacity: 0.7;
}

/* Attribute Table */
.igo3d-desc .table-container {
  overflow-x: auto;
  margin-top: 1em;
  outline-offset: 4px;
}

.igo3d-desc .visually-hidden {
  position: absolute;
  width: 1px; 
  height: 1px;
  padding: 0; 
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.igo3d-desc table.attribute-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-white);
  box-shadow: var(--shadow-table);
  border-radius: var(--radius);
  overflow: hidden;
}

.igo3d-desc table.attribute-table thead th {
  background: var(--dark-gray);
  color: white;
  padding: 20px var(--padding-table);
  font-weight: 600;
  text-align: left;
  font-size: 1.1em;
}

.igo3d-desc table.attribute-table th,
.igo3d-desc table.attribute-table td {
  padding: 14px var(--padding-table);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  color: var(--text-normal);
}

.igo3d-desc table.attribute-table tbody tr:nth-child(even) td {
  background-color: var(--bg-surface);
}

.igo3d-desc table.attribute-table th[colspan] {
  background-color: var(--bg-surface);
  color: var(--text-dark);
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
}

/* ============================================ */
/* BUTTON COMPONENTS */
/* ============================================ */

.igo3d-desc .btn-buy-now {
  display: inline-block;
  background: var(--primary-blue);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-small);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-button);
  vertical-align: top;
}

.igo3d-desc .btn-buy-now:link,
.igo3d-desc .btn-buy-now:visited,
.igo3d-desc .btn-buy-now:hover,
.igo3d-desc .btn-buy-now:active {
  color: white;
  text-decoration: none;
}

/* ============================================ */
/* INTERACTIVE STATES (DESKTOP ONLY) */
/* ============================================ */

@media (hover: hover) and (pointer: fine) {
  .igo3d-desc .comparison-table tbody tr:hover td,
  .igo3d-desc .comparison-table tbody tr:hover th {
    background: var(--bg-hover);
    transform: scale(1.01);
    transition: all var(--transition-fast);
  }
  
  .igo3d-desc table.attribute-table tbody tr:hover td {
    background-color: var(--bg-hover);
  }
  
  .igo3d-desc .btn-buy-now:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button-hover);
  }
}

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

@media (max-width: 768px) {
  .igo3d-desc .box-container {
    /* ✅ konsistent zum Desktop-Gutter (nicht -24px) */
    width: calc(100% - 16px);
    max-width: 1600px;
    margin: 20px auto;
    padding: 0;

    gap: var(--gap-mobile-medium);
  }
  
  .igo3d-desc .info-box,
  .igo3d-desc .highlight-box,
  .igo3d-desc .video-single-box {
    padding: var(--gap-mobile-large) var(--box-padding-mobile);
    border-radius: var(--radius-mobile);
  }
  
  .igo3d-desc .image-text-box {
    padding: var(--box-padding-mobile);
    gap: var(--gap-mobile-medium);
    flex-direction: column !important;
  }
  
  .igo3d-desc .image-grid {
    padding: var(--box-padding-mobile);
    gap: var(--gap-mobile-small);
  }
  
  .igo3d-desc .image-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .igo3d-desc .video-row-box {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: var(--gap-mobile-large) var(--box-padding-mobile);
    gap: var(--gap-mobile-medium);
  }
  
  .igo3d-desc .video-col {
    flex: 1 1 45%;
    max-width: 48%;
    box-sizing: border-box;
  }
  
  .igo3d-desc .video-col iframe,
  .igo3d-desc .video-single-box iframe,
  .igo3d-desc .video-single-box video {
    border-radius: var(--radius-mobile-small);
  }
  
  .igo3d-desc .image-section img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-mobile-small);
    margin-bottom: var(--gap-mobile-small);
  }

  .igo3d-desc .info-box h1,
  .igo3d-desc .info-box h2,
  .igo3d-desc .info-box h3,
  .igo3d-desc .info-box h4,
  .igo3d-desc .info-box h5,
  .igo3d-desc .info-box h6,
  .igo3d-desc .highlight-box h1,
  .igo3d-desc .highlight-box h2,
  .igo3d-desc .highlight-box h3,
  .igo3d-desc .highlight-box h4,
  .igo3d-desc .highlight-box h5,
  .igo3d-desc .highlight-box h6,
  .igo3d-desc .text-section h1,
  .igo3d-desc .text-section h2,
  .igo3d-desc .text-section h3,
  .igo3d-desc .text-section h4,
  .igo3d-desc .text-section h5,
  .igo3d-desc .text-section h6,
  .igo3d-desc .image-grid h1,
  .igo3d-desc .image-grid h2,
  .igo3d-desc .image-grid h3,
  .igo3d-desc .image-grid h4,
  .igo3d-desc .image-grid h5,
  .igo3d-desc .image-grid h6,
  .igo3d-desc .video-headline,
  .igo3d-desc .image-headline {
    font-size: 1.4em;
    margin-bottom: 14px;
  }
}

/* ✅ MOBILE: finaler Ausgleich (8px pro Seite) */
@media (max-width: 480px) {
  .igo3d-desc .box-container {
    width: calc(100% + 16px);
    max-width: none;
    margin-left: -8px;
    margin-right: -8px;

    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    gap: var(--gap-mobile-medium);
  }
  
  .igo3d-desc .info-box,
  .igo3d-desc .highlight-box,
  .igo3d-desc .video-single-box,
  .igo3d-desc .video-row-box,
  .igo3d-desc .image-text-box,
  .igo3d-desc .image-grid {
    width: 100%;
    max-width: 100%;
    padding: 16px 12px;
    border-radius: var(--radius-mobile);
  }
  
  .igo3d-desc .image-text-box.clean {
    padding: 0;
  }
  
  .igo3d-desc .image-grid.cols-4,
  .igo3d-desc .image-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .igo3d-desc .video-row-box {
    flex-direction: column;
    gap: var(--gap-mobile-medium);
  }
  
  .igo3d-desc .video-col {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .igo3d-desc .video-col iframe,
  .igo3d-desc .video-single-box iframe,
  .igo3d-desc .video-single-box video {
    border-radius: var(--radius-mobile-small);
  }
  
  .igo3d-desc .image-section img,
  .igo3d-desc .image-grid img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-mobile-small);
    margin-bottom: var(--gap-mobile-small);
  }

  .igo3d-desc .info-box h1,
  .igo3d-desc .info-box h2,
  .igo3d-desc .info-box h3,
  .igo3d-desc .info-box h4,
  .igo3d-desc .info-box h5,
  .igo3d-desc .info-box h6,
  .igo3d-desc .highlight-box h1,
  .igo3d-desc .highlight-box h2,
  .igo3d-desc .highlight-box h3,
  .igo3d-desc .highlight-box h4,
  .igo3d-desc .highlight-box h5,
  .igo3d-desc .highlight-box h6,
  .igo3d-desc .text-section h1,
  .igo3d-desc .text-section h2,
  .igo3d-desc .text-section h3,
  .igo3d-desc .text-section h4,
  .igo3d-desc .text-section h5,
  .igo3d-desc .text-section h6,
  .igo3d-desc .image-grid h1,
  .igo3d-desc .image-grid h2,
  .igo3d-desc .image-grid h3,
  .igo3d-desc .image-grid h4,
  .igo3d-desc .image-grid h5,
  .igo3d-desc .image-grid h6,
  .igo3d-desc .video-headline,
  .igo3d-desc .image-headline {
    font-size: 1.35em;
    margin-bottom: 12px;
    line-height: 1.3;
  }
  
  .igo3d-desc .info-box p {
    font-size: 1.05em;
    line-height: 1.5;
  }
  
  .igo3d-desc .highlight-box li {
    margin-bottom: 8px;
    line-height: 1.6;
  }
  
  .igo3d-desc .text-section p {
    font-size: 1.02em;
    line-height: 1.5;
  }
  
  .igo3d-desc .comparison-table {
    font-size: 0.9em;
    min-width: 450px;
  }
  
  .igo3d-desc .comparison-table thead th {
    padding: 12px 6px;
    font-size: 0.9em;
  }
  
  .igo3d-desc .comparison-table tbody th,
  .igo3d-desc .comparison-table tbody td {
    padding: 10px 6px;
    font-size: 0.85em;
  }
  
  .igo3d-desc .comparison-table tbody td {
    font-size: 1.0em;
  }
  
  .igo3d-desc .comparison-table tfoot th,
  .igo3d-desc .comparison-table tfoot td {
    padding: 12px 6px;
  }
  
  .igo3d-desc .btn-buy-now {
    padding: 8px 12px;
    font-size: 0.85em;
  }
  
  .igo3d-desc .table-container {
    margin: 0 calc(-1 * var(--box-padding-mobile));
  }
  
  .igo3d-desc table.attribute-table {
    font-size: 0.9em;
  }
  
  .igo3d-desc table.attribute-table thead th {
    padding: 12px 6px;
    font-size: 0.9em;
  }
  
  .igo3d-desc table.attribute-table th,
  .igo3d-desc table.attribute-table td {
    padding: 10px 6px;
    font-size: 0.85em;
  }
}

@media (max-width: 360px) {
  .igo3d-desc .box-container {
    /* ✅ kein Extra-Padding mehr, sonst weicht es vom Mobile-Fix ab */
    padding: 0;
    gap: 12px;
    margin: 0;
  }
  
  .igo3d-desc .info-box,
  .igo3d-desc .highlight-box,
  .igo3d-desc .video-single-box,
  .igo3d-desc .image-text-box {
    padding: var(--box-padding-mobile-small);
  }
  
  .igo3d-desc .image-text-box.clean {
    padding: 0;
  }
  
  .igo3d-desc .comparison-table-container,
  .igo3d-desc .table-container {
    margin: 0 calc(-1 * var(--box-padding-mobile-small));
  }
  
  .igo3d-desc .comparison-table {
    min-width: 400px;
    font-size: 0.8em;
  }
  
  .igo3d-desc .comparison-table thead th,
  .igo3d-desc .comparison-table tbody th,
  .igo3d-desc .comparison-table tbody td,
  .igo3d-desc .comparison-table tfoot th,
  .igo3d-desc .comparison-table tfoot td {
    padding: 8px 4px;
  }
  
  .igo3d-desc table.attribute-table {
    font-size: 0.8em;
  }
  
  .igo3d-desc table.attribute-table thead th,
  .igo3d-desc table.attribute-table th,
  .igo3d-desc table.attribute-table td {
    padding: 8px 4px;
  }
  
  .igo3d-desc .image-grid.cols-4,
  .igo3d-desc .image-grid.cols-3,
  .igo3d-desc .image-grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) and (min-width: 375px) {
  .igo3d-desc .image-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .igo3d-desc .image-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 812px) and (orientation: landscape) {
  .igo3d-desc .box-container {
    /* ✅ konsistent lassen (kein wieder-Override durch padding) */
    width: calc(100% - 16px);
    max-width: 1600px;
    margin: 20px auto;
    padding: 0;

    gap: var(--gap-mobile-small);
  }
  
  .igo3d-desc .info-box,
  .igo3d-desc .highlight-box,
  .igo3d-desc .video-single-box,
  .igo3d-desc .image-text-box,
  .igo3d-desc .image-grid,
  .igo3d-desc .video-row-box {
    padding: var(--box-padding-mobile-small);
  }
  
  .igo3d-desc .image-text-box {
    gap: var(--gap-mobile-small);
    flex-direction: column !important;
  }
  
  .igo3d-desc .image-grid {
    gap: var(--gap-mobile-small);
  }
  
  .igo3d-desc .video-row-box {
    gap: var(--gap-mobile-small);
  }
}

@media (max-width: 768px) {
  .igo3d-desc .video-row-box {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap-mobile-medium);
  }

  .igo3d-desc .video-col {
    flex: 1 1 45%;
    max-width: 48%;
    box-sizing: border-box;
  }
}

@media (min-width: 769px) {
  .igo3d-desc .comparison-table-container {
    overflow-x: hidden;
  }
}

/* colspan-Zentrierung */
.igo3d-desc table.attribute-table td[colspan="2"],
.igo3d-desc table.attribute-table th[colspan="2"] {
  text-align: center;
  vertical-align: middle;
}

/* zweite Header-Zeile */
.igo3d-desc table.attribute-table thead tr:nth-of-type(2) th {
  background-color: var(--primary-blue);
  color: white;
  font-weight: normal;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-light);
}
