: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-family: 'Roboto', Arial, sans-serif;
  --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;
}

/* ============================================ */
/* RESET & BASE STYLES */
/* ============================================ */

body {
  background: var(--bg-light);
  font-family: var(--font-family);
  color: var(--text-normal);
  margin: 0;
  padding: 30px 0;
}

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

.box-container {
  display: flex;
  flex-direction: column;
  gap: var(--gap-medium);
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 40px auto;
  width: 100%;
  padding: 0 var(--container-padding-mobile);
}

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

.info-box,
.highlight-box,
.video-row-box,
.video-single-box,
.image-text-box,
.image-grid {
  background: var(--bg-white);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-medium);
  box-sizing: border-box;
  max-width: 1200px;
  width: 100%;
}

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

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

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

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

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

/* Info Box */
.info-box {
  padding: var(--padding-box-large) var(--padding-box);
}

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

/* Highlight Box */
.highlight-box {
  padding: var(--padding-box-large) var(--padding-box);
}

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

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

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

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

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

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

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

.video-col iframe,
.video-single-box iframe,
.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 */
/* ============================================ */

/* Image Text Box */
.image-text-box {
  display: flex;
  gap: var(--gap-medium);
  align-items: center;
  padding: var(--padding-box);
}

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

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

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

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

.text-section {
  flex: 1;
}

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

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

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

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

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

/* Comparison Table */
.comparison-table-container {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-medium);
  background: var(--bg-white);
}

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

.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;
}

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

.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);
}

.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);
}

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

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

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

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

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


.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;
}

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;
}

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;
}

table.attribute-table th,
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);
}

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

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 */
/* ============================================ */

.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;
}

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

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

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

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

/* Tablet Layout (max-width: 768px) */
@media (max-width: 768px) {
  .box-container {
    padding: 0 12px;
    gap: var(--gap-mobile-medium);
    margin: 20px auto;
  }
  
  .info-box,
  .highlight-box,
  .video-single-box {
    padding: var(--gap-mobile-large) var(--box-padding-mobile);
    border-radius: var(--radius-mobile);
  }
  
  .image-text-box {
    padding: var(--box-padding-mobile);
    gap: var(--gap-mobile-medium);
    flex-direction: column !important;
  }
  
  .image-grid {
    padding: var(--box-padding-mobile);
    gap: var(--gap-mobile-small);
  }
  
  .image-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .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);
  }
  
  .video-col {
    flex: 1 1 45%;
    max-width: 48%;
    box-sizing: border-box;
  }
  
  .video-col iframe,
  .video-single-box iframe,
  .video-single-box video {
    border-radius: var(--radius-mobile-small);
  }
  
  .image-section img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-mobile-small);
    margin-bottom: var(--gap-mobile-small);
  }
  
  /* Typography adjustments */
  .info-box h1, .info-box h2, .info-box h3, .info-box h4, .info-box h5, .info-box h6,
  .highlight-box h1, .highlight-box h2, .highlight-box h3, .highlight-box h4, .highlight-box h5, .highlight-box h6,
  .text-section h1, .text-section h2, .text-section h3, .text-section h4, .text-section h5, .text-section h6,
  .image-grid h1, .image-grid h2, .image-grid h3, .image-grid h4, .image-grid h5, .image-grid h6,
  .video-headline,
  .image-headline {
    font-size: 1.4em;
    margin-bottom: 14px;
  }
}

/* Mobile Layout (max-width: 480px) */
@media (max-width: 480px) {
  body {
    padding: 12px 0;
  }
  
  .box-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  
  .info-box,
  .highlight-box,
  .video-single-box,
  .video-row-box,
  .image-text-box,
  .image-grid {
    width: 95vw;
    max-width: 95vw;
    padding: 16px 12px;
    border-radius: var(--radius-mobile);
  }
  
  .image-text-box.clean {
    padding: 0;
  }
  
  .image-grid.cols-4,
  .image-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .video-row-box {
    flex-direction: column;
    gap: var(--gap-mobile-medium);
  }
  
  .video-col {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .video-col iframe,
  .video-single-box iframe,
  .video-single-box video {
    border-radius: var(--radius-mobile-small);
  }
  
  .image-section img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-mobile-small);
    margin-bottom: var(--gap-mobile-small);
  }
  
  .image-grid img {
    border-radius: var(--radius-mobile-small);
  }
  
  /* Typography adjustments */
  .info-box h1, .info-box h2, .info-box h3, .info-box h4, .info-box h5, .info-box h6,
  .highlight-box h1, .highlight-box h2, .highlight-box h3, .highlight-box h4, .highlight-box h5, .highlight-box h6,
  .text-section h1, .text-section h2, .text-section h3, .text-section h4, .text-section h5, .text-section h6,
  .image-grid h1, .image-grid h2, .image-grid h3, .image-grid h4, .image-grid h5, .image-grid h6,
  .video-headline,
  .image-headline {
    font-size: 1.35em;
    margin-bottom: 12px;
    line-height: 1.3;
  }
  
  .info-box p {
    font-size: 1.05em;
    line-height: 1.5;
  }
  
  .highlight-box li {
    margin-bottom: 8px;
    line-height: 1.6;
  }
  
  .text-section p {
    font-size: 1.02em;
    line-height: 1.5;
  }
  
  /* Table adjustments */
  .comparison-table {
    font-size: 0.9em;
    min-width: 450px;
  }
  
  .comparison-table thead th {
    padding: 12px 6px;
    font-size: 0.9em;
  }
  
  .comparison-table tbody th,
  .comparison-table tbody td {
    padding: 10px 6px;
    font-size: 0.85em;
  }
  
  .comparison-table tbody td {
    font-size: 1.0em;
  }
  
  .comparison-table tfoot th,
  .comparison-table tfoot td {
    padding: 12px 6px;
  }
  
  .btn-buy-now {
    padding: 8px 12px;
    font-size: 0.85em;
  }
  
  .table-container {
    margin: 0 calc(-1 * var(--box-padding-mobile));
  }
  
  table.attribute-table {
    font-size: 0.9em;
  }
  
  table.attribute-table thead th {
    padding: 12px 6px;
    font-size: 0.9em;
  }
  
  table.attribute-table th,
  table.attribute-table td {
    padding: 10px 6px;
    font-size: 0.85em;
  }
}

/* Small Mobile Layout (max-width: 360px) */
@media (max-width: 360px) {
  .box-container {
    padding: 0 4px;
    gap: 12px;
  }
  
  .info-box,
  .highlight-box,
  .video-single-box,
  .image-text-box {
    padding: var(--box-padding-mobile-small);
  }
  
  .image-text-box.clean {
    padding: 0;
  }
  
  .comparison-table-container,
  .table-container {
    margin: 0 calc(-1 * var(--box-padding-mobile-small));
  }
  
  .comparison-table {
    min-width: 400px;
    font-size: 0.8em;
  }
  
  .comparison-table thead th,
  .comparison-table tbody th,
  .comparison-table tbody td,
  .comparison-table tfoot th,
  .comparison-table tfoot td {
    padding: 8px 4px;
  }
  
  table.attribute-table {
    font-size: 0.8em;
  }
  
  table.attribute-table thead th,
  table.attribute-table th,
  table.attribute-table td {
    padding: 8px 4px;
  }
  
  .image-grid.cols-4,
  .image-grid.cols-3,
  .image-grid.cols-2 {
    grid-template-columns: 1fr;
  }
  
  .info-box h1, .info-box h2, .info-box h3, .info-box h4, .info-box h5, .info-box h6,
  .highlight-box h1, .highlight-box h2, .highlight-box h3, .highlight-box h4, .highlight-box h5, .highlight-box h6,
  .text-section h1, .text-section h2, .text-section h3, .text-section h4, .text-section h5, .text-section h6,
  .image-grid h1, .image-grid h2, .image-grid h3, .image-grid h4, .image-grid h5, .image-grid h6,
  .video-headline,
  .image-headline {
    font-size: 1.25em;
    margin-bottom: 10px;
  }
  
  .info-box p,
  .text-section p {
    font-size: 1.0em;
  }
}

/* Special handling for specific mobile widths */
@media (max-width: 480px) and (min-width: 375px) {
  .image-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .image-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Landscape Mode on Mobile */
@media (max-width: 812px) and (orientation: landscape) {
  .box-container {
    padding: 0 var(--container-padding-mobile);
    gap: var(--gap-mobile-small);
  }
  
  .info-box,
  .highlight-box,
  .video-single-box,
  .image-text-box,
  .image-grid,
  .video-row-box {
    padding: var(--box-padding-mobile-small);
  }
  
  .image-text-box {
    gap: var(--gap-mobile-small);
    flex-direction: column !important;
  }
  
  .image-grid {
    gap: var(--gap-mobile-small);
  }
  
  .video-row-box {
    gap: var(--gap-mobile-small);
  }
}


@media (max-width: 768px) {
  .video-row-box {
    flex-direction: row;              /* statt column */
    flex-wrap: wrap;                  /* erlaubt Umbruch */
    justify-content: center;          /* zentriert Inhalte */
    gap: var(--gap-mobile-medium);    /* optional */
  }

  .video-col {
    flex: 1 1 45%;                    /* zwei nebeneinander */
    max-width: 48%;                   /* Sicherheitsabstand */
    box-sizing: border-box;
  }
}

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

/* === Zusätzliche Regeln für Spalten mit colspan === */

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

/* Optional: Styling für neue Spalten-Header */
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);
}