/* ===================================
   Grelli-IT Style
=================================== */

.container {
  /* Box-Modell */
  margin: 0 auto;
}

.grid {
  /* Layout */
  display: grid;
  align-items: center;

  /* Grid */
  grid-template-columns: 2fr 1fr;
  grid-template-areas: "text illustration";
}

.grid > .text-block {
  /* Layout */
  grid-area: text;
}

.grid > .illustration {
  /* Layout */
  grid-area: illustration;

  /* Typografie */
  text-align: center;
}

.illustration img,
.illustration svg {
  /* Box-Größe */
  max-width: 100%;
  height: auto;

  /* Optik */
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-architecture .grid,
.theme-performance .grid {
  /* Grid */
  grid-template-columns: 33% 67%;
  grid-template-areas: "illustration text";

  /* Box-Modell */
  margin: 128px 0;
}

.theme-designsystem .grid {
  /* Grid */
  grid-template-columns: 67% 33%;
  grid-template-areas: "text illustration";
}

.benefits-grid {
  /* Layout */
  display: grid;
  align-items: start;
  position: relative;

  /* Grid */
  grid-template-columns: 1fr 1fr;

  /* Box-Modell */
  gap: 3rem;

  /* Typografie */
  text-align: center;
}

.benefits-grid li {
  /* Optik */
  list-style: none;
}

.benefits-grid::before {
  /* Layout */
  content: "";
  position: absolute;
  top: 25%;
  bottom: 0;
  left: 50%;

  /* Box-Größe */
  width: 1px;
  height: 50%;

  /* Optik */
  background: var(--color-secondary);
}

.benefit-block {
  /* Box-Modell */
  padding: 0 2rem;
}

.benefit-block h3 {
  /* Box-Modell */
  margin-bottom: 1rem;

  /* Typografie */
  color: var(--color-secondary);
}

h2 {
  /* Layout */
  position: relative;

  /* Box-Modell */
  margin-bottom: 1rem;

  /* Typografie */
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  color: var(--color-primary);
}

h2::after {
  /* Layout */
  content: "";
  display: block;

  /* Box-Größe */
  width: 60px;
  height: 3px;

  /* Box-Modell */
  margin-top: 0.5rem;

  /* Optik */
  background: var(--color-secondary);
}

.text-block p {
  /* Box-Modell */
  margin-bottom: 1.5rem;

  /* Typografie */
  color: #555;
}

.text-block ul {
  /* Box-Modell */
  padding: 0;

  /* Optik */
  list-style: none;
}

.theme-architecture .text-block li,
.theme-designsystem .text-block li {
  /* Box-Modell */
  margin-bottom: 0.75rem;

  /* Interaktion */
  transition: border-color 0.3s ease;
}

.text-block li {
  /* Box-Modell */
  padding-left: 0.5rem;
  border-left: 2px solid var(--color-border);
}

.theme-architecture .text-block li:hover,
.theme-designsystem .text-block li:hover {
  /* Box-Modell */
  border-color: var(--color-secondary);
}

.lined-table {
  /* Box-Größe */
  width: 100%;

  /* Optik */
  border-collapse: collapse;

  /* Box-Modell */
  margin: 1.5rem 0;
}

.lined-table td {
  /* Box-Modell */
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.lined-table td:first-child {
  /* Typografie */
  font-weight: bold;
  color: var(--shadow-one);
}

/* --- Media Queries --- */

@media (min-width: 1024px) {
  .grid {
    /* Layout */
    align-items: stretch;
  }

  .grid > .illustration {
    /* Layout */
    display: flex;
    align-items: stretch;

    /* Box-Größe */
    height: 100%;
  }

  .grid > .illustration img,
  .grid > .illustration svg {
    /* Layout */
    display: block;

    /* Box-Größe */
    width: 100%;
    height: 100%;

    /* Optik */
    object-fit: cover;
    object-position: center;
  }

  .theme-architecture .grid .text-block,
  .theme-performance .grid .text-block {
    /* Box-Modell */
    margin-left: 32px;
  }

  .theme-designsystem .grid .text-block {
    /* Box-Modell */
    margin-right: 32px;
  }
}

@media (max-width: 1024px) {
  .grid,
  .theme-architecture .grid,
  .theme-designsystem .grid,
  .theme-performance .grid,
  .theme-benefits .grid {
    /* Grid */
    grid-template-columns: 1fr;
    grid-template-areas:
      "illustration"
      "text";
  }

  .benefits-grid {
    /* Grid */
    grid-template-columns: 1fr;
  }

  .benefits-grid::before {
    /* Layout */
    display: none;
  }

  .theme-architecture .illustration img,
  .theme-architecture .illustration svg,
  .theme-designsystem .illustration img,
  .theme-designsystem .illustration svg,
  .theme-performance .illustration img,
  .theme-performance .illustration svg {
    /* Box-Größe */
    width: 100%;

    /* Optik */
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
  }

  .theme-architecture .illustration img,
  .theme-architecture .illustration svg {
    /* Optik */
    object-position: top center;
  }

  .theme-architecture .grid,
  .theme-performance .grid {
    /* Box-Modell */
    margin: 64px 0;
  }
}

.specs-table.compact {
  width: 100%;
  border-collapse: separate; /* wichtig */
  table-layout: fixed;
  font-size: 0.9rem;
}

/* Zeilen */
.specs-table.compact tr {
  border-bottom: 1px solid #e3e5e7;
}

/* Zellen – oben/unten kompakt, links/rechts 0 */
.specs-table.compact td {
  padding: 7px 0; /* oben/unten 4px, links/rechts 0 */
  line-height: 1.25;
  padding-right: 20px;
}

/* Titel */
.specs-table.compact td b {
  font-weight: 400;
  color: var(--color-secondary);
  font-size: 1rem;
}

/* Hover */
@media (hover: hover) {
  .specs-table.compact tr:hover td {
    background: #f7f7f7;
  }
}

/* Mobile: einspaltig */
@media (max-width: 700px) {
  .specs-table.compact {
    border-spacing: 0 0;
  }

  .specs-table.compact,
  .specs-table.compact tr,
  .specs-table.compact td {
    display: block;
    width: 100%;
  }

  .specs-table.compact td {
    padding: 3px 0;
    border-bottom: none;
  }
}
