/* ===== Dienstenpagina (los van styles.css) ===== */

.service-description {
  /* desktop */
  text-align: center;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color .3s, color .3s;
  margin-top: 125px;
  padding: 0 15%; /* mobiel override beneden */
}

.service-description h1 {
  font-size: var(--font-scale-xl);
  font-weight: 700;
  margin: 0 0 30px;
  line-height: 1.2;
}

.service-description p {
  font-size: var(--font-scale-base);
  line-height: 1.6;
  margin: 0 0 100px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Inhoud ===== */

.diensten-inhoud {
  padding: 0 15%;
  margin: 2rem 0 3.5rem;
}

.diensten-inhoud h2 {
  font-size: var(--font-scale-md);
  font-weight: 600;
  color: var(--text-color);
  opacity: .8;
  margin: 0 0 .5rem;
}

/* Basislijst – neutraal; wordt per breakpoint gestyled */
.diensten-inhoud ul {
  list-style: none;
  margin: 0;
  padding: .25rem 0 0;
}

/* Links (basis) */
.diensten-inhoud a {
  color: var(--link-color, var(--text-color));
  text-decoration: none;
  text-underline-offset: 2px;
  transition: background-color .15s ease, text-decoration-color .15s ease;
  border-radius: .35rem;
}
.diensten-inhoud a:hover { text-decoration: underline; }
.diensten-inhoud a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--text-color), #000 25%);
  outline-offset: 2px;
  text-decoration: underline;
}

/* ===== Hoofdtekst ===== */

.diensten-tekst {
  padding: 0 15%;
  margin-top: 2rem;
  text-align: left;
  line-height: 1.6;
}
.diensten-tekst h2 {
  font-size: var(--font-scale-lg);
  margin: 0 0 30px;
  text-align: left;
}
.diensten-tekst p {
  font-size: var(--font-scale-base);
  margin: 0 0 25px;
}
.diensten-tekst a { text-decoration: none; }
.diensten-tekst a:hover { text-decoration: underline; }

/* ===== Microtypografie ===== */
.diensten-tekst p,
.service-description p {
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: anywhere;
}

/* ===== Desktop (≥1025px): verticale inhoud, uitgelijnd met tekst ===== */
@media (min-width: 1025px) {
  .diensten-inhoud ul {
    /* verticale kolom met ‘hanging’ line */
    border-left: 2px solid var(--border-color, #e0e0e0);
    padding-left: 1rem;
    max-width: 58ch; /* lijn met leesbreedte */
  }
  .diensten-inhoud li { margin: .35rem 0; }
  .diensten-inhoud a {
    display: inline-flex;
    align-items: baseline;
    gap: .5rem;
    padding: .10rem .15rem; /* compact klikvlak */
    white-space: normal;
  }
  .diensten-inhoud a::before {
    content: "›"; /* correcte UTF-8 chevron */
    font-weight: 600;
    opacity: .7;
    transform: translateY(-1px);
  }
}

/* ===== Tablet/Mobiel (≤1024px) ===== */
@media (max-width: 1024px) {
  /* zelfde page-padding als tekst */
  .diensten-inhoud { margin: 1.25rem 0 1.75rem; padding: 0 30px; }
}

/* Mobiel (≤768px): groter tikvlak, nette spacing; hero compacter */
@media (max-width: 768px) {
  .service-description,
  .diensten-tekst { padding: 30px; }

  .service-description {
    text-align: left;
    margen-top: 0;
  }
  .service-description h1 {
    font-size: var(--font-scale-lg);
    line-height: 1.3;
    margin-bottom: 16px;
  }
  .service-description p {
    margin-bottom: 12px;
    max-width: none;
  }

  .diensten-tekst h2 {
    font-size: calc(var(--font-scale-lg) * .95);
    line-height: 1.25;
    margin-bottom: 16px;
  }
  .diensten-tekst p {
    line-height: 1.7;
    margin-bottom: 14px;
  }

  /* Inhoud – mobiel tikvlak en border-left subtiel */
  .diensten-inhoud ul {
    border-left: 2px solid var(--border-color, #e0e0e0);
    padding-left: .75rem;
  }
  .diensten-inhoud li { margin: .35rem 0; }
  .diensten-inhoud a {
    display: block;          /* volledige rij tappable */
    padding: .35rem .25rem;  /* groter tikvlak */
  }
  .diensten-inhoud a:hover,
  .diensten-inhoud a:active {
    background-color: color-mix(in srgb, var(--bg-color), #000 4%);
  }
}

