/* =====================================================================
   Produktseiten — wird nur auf produkt-*.html geladen
   Reihenfolge: Kopf, Sprungnavigation, Abschnitte, Downloads,
   Ansprechpartner, schmale Bildschirme
   ===================================================================== */

/* ---------------------------------------------------------------
   1. Produktkopf
   --------------------------------------------------------------- */
.pd-top {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
  margin-top: 8px;
}

/* ---- Galerie ---- */
.pd-gal-haupt {
  margin: 0; overflow: hidden;
  border: 0;
  border-left: 2.4px solid var(--card-line);
  border-bottom: 2.4px solid var(--card-line);
  border-radius: 12px 4px 12px 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .16);
  background: #fff;
}
.pd-gal-haupt img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}
.pd-gal-haupt:hover img { transform: scale(1.03); }

.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pd-thumb {
  width: 84px; height: 68px; padding: 0; border: 1px solid var(--line); background: #fff;
  border-radius: 8px 2px 8px 8px; overflow: hidden; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb:hover { border-color: var(--green); }
.pd-thumb.is-aktiv { border-color: var(--card-line); box-shadow: 0 0 0 1px var(--card-line); }

/* ---- rechte Spalte ---- */
.pd-kopf h1 { margin: 10px 0 14px; }
.pd-lead {
  font-size: 17.5px; line-height: 1.65; color: var(--ink);
  margin: 0 0 26px; max-width: 46ch;
}

/* Kurzfakten */
.pd-fakten {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px; margin: 0 0 28px; background: var(--line);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.pd-fakten > div { background: #fff; padding: 16px 4px 16px 0; }
.pd-fakten dt {
  font-family: var(--font-head); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--grey); margin-bottom: 6px;
}
.pd-fakten dd {
  margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink); font-weight: 500;
}

/* Anfragebox */
.pd-buy {
  background: #F7F8F5; border-left: 3px solid var(--green);
  padding: 22px 24px; border-radius: 0 4px 4px 0;
}
.pd-feld-gebinde { margin-bottom: 16px; }
.pd-feld-gebinde label {
  display: block; font-family: var(--font-head); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--grey); margin-bottom: 8px;
}
.pd-feld-gebinde select {
  width: 100%; font-family: var(--font-body); font-size: 15.5px;
  padding: 12px 14px; border: 1px solid #C9D8C4; border-radius: 4px; background: #fff;
}
.pd-feld-gebinde select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.pd-buy-zeile { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pd-buy-zeile .btn { flex: 1 1 200px; }
.pd-buy-hinweis { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--grey); }

/* Verweis auf den Verbrauchsrechner */
.pd-rechner {
  display: flex; align-items: center; gap: 16px; margin-top: 16px;
  padding: 16px 20px; border: 1px solid var(--line); border-radius: 4px;
  background: #fff; text-decoration: none; color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.pd-rechner:hover {
  border-color: var(--green); box-shadow: 0 6px 20px rgba(15, 23, 42, .07); transform: translateY(-1px);
}
.pd-rechner-icon {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(84, 180, 53, .13); color: var(--green-dark);
}
.pd-rechner-icon svg { width: 21px; height: 21px; }
.pd-rechner b { display: block; font-family: var(--font-head); font-size: 15px; font-weight: 600; }
.pd-rechner small { display: block; font-size: 12.5px; color: var(--grey); margin-top: 2px; }

/* ---------------------------------------------------------------
   2. Sprungnavigation, bleibt beim Scrollen oben stehen
   --------------------------------------------------------------- */
.pd-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.pd-nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pd-nav .wrap::-webkit-scrollbar { display: none; }
.pd-nav a {
  flex: none; padding: 17px 20px; text-decoration: none; white-space: nowrap;
  font-family: var(--font-head); font-size: 12px; font-weight: 500;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--grey);
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.pd-nav a:hover, .pd-nav a.is-aktiv { color: var(--ink); border-bottom-color: var(--green); }

/* Anker nicht unter die Leiste rutschen lassen */
#eigenschaften, #anwendung, #verarbeitung, #daten, #downloads { scroll-margin-top: 62px; }

/* ---------------------------------------------------------------
   3. Abschnitte
   --------------------------------------------------------------- */
.pd-abschnitt { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.pd-abschnitt-kopf h2 { margin: 10px 0 0; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
/* alles außer der Überschrift gehört in die rechte Spalte,
   auch wenn ein Abschnitt mehrere Blöcke enthält */
.pd-abschnitt > :not(.pd-abschnitt-kopf) { grid-column: 2; }

/* Eigenschaften als Häkchenliste */
.pd-check {
  list-style: none; margin: 0; padding: 0;
  columns: 2; column-gap: 44px;
}
.pd-check li {
  position: relative; padding-left: 30px; margin: 0 0 14px;
  break-inside: avoid; font-size: 15.5px; line-height: 1.6;
}
.pd-check li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 15px; height: 9px; border-left: 2px solid var(--green-dark);
  border-bottom: 2px solid var(--green-dark); transform: rotate(-45deg);
}

/* Anwendung */
.pd-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pd-box {
  background: #fff; padding: 26px 28px;
  border-left: 2.4px solid var(--card-line); border-bottom: 2.4px solid var(--card-line);
  border-radius: 12px 4px 12px 12px; box-shadow: 0 0 10px rgba(0, 0, 0, .1);
}
.pd-box h3 { font-size: 17px; margin: 0 0 14px; }
.pd-box p { margin: 0; font-size: 15.5px; line-height: 1.65; }
.pd-punkte { list-style: none; margin: 0; padding: 0; }
.pd-punkte li {
  position: relative; padding-left: 20px; margin-bottom: 11px; font-size: 15.5px; line-height: 1.6;
}
.pd-punkte li:last-child { margin-bottom: 0; }
.pd-punkte li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
}

/* Verarbeitung als nummerierte Schritte */
.pd-schritte { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.pd-schritte li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 15.5px; line-height: 1.62;
}
.pd-schritte li:first-child { padding-top: 0; }
.pd-schritte li:last-child { border-bottom: 0; }
.pd-schritt-nr {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(84, 180, 53, .13); color: var(--green-dark);
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
}

/* Verbrauchsangabe */
.pd-verbrauch {
  margin-top: 28px; padding: 22px 26px; border-radius: 4px;
  background: var(--deep); color: #fff;
  display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.pd-verbrauch-label {
  display: block; font-family: var(--font-head); font-size: 11px; letter-spacing: 2.2px;
  text-transform: uppercase; color: var(--green); margin-bottom: 6px;
}
.pd-verbrauch p { margin: 0; font-size: 16px; line-height: 1.55; color: #fff; }
.pd-verbrauch .btn--outline { border-color: rgba(255, 255, 255, .5); color: #fff; flex: none; }
.pd-verbrauch .btn--outline:hover { background: var(--green); border-color: var(--green); color: var(--ink); }

/* Technische Daten */
.pd-daten { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.pd-tab { width: 100%; border-collapse: collapse; background: #fff; }
.pd-tab tr { border-bottom: 1px solid var(--line); }
.pd-tab tr:first-child { border-top: 1px solid var(--line); }
.pd-tab th, .pd-tab td { padding: 14px 18px; text-align: left; font-size: 15px; line-height: 1.5; vertical-align: top; }
.pd-tab th {
  width: 46%; font-family: var(--font-head); font-weight: 500; color: var(--grey);
}
.pd-tab td { color: var(--ink); font-weight: 500; }
.pd-tab tr:nth-child(odd) { background: #FAFBF9; }
.pd-norm {
  background: #fff; padding: 22px 24px; border-left: 3px solid var(--green); border-radius: 0 4px 4px 0;
}
.pd-norm h3 { font-size: 15px; margin: 0 0 10px; }
.pd-norm p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--grey); }

/* ---------------------------------------------------------------
   4. Downloads
   --------------------------------------------------------------- */
.pd-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pd-dl-item {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
  text-decoration: none; color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.pd-dl-item:hover {
  border-color: var(--green); box-shadow: 0 8px 24px rgba(15, 23, 42, .08); transform: translateY(-2px);
}
.pd-dl-icon {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 4px; background: rgba(84, 180, 53, .13); color: var(--green-dark);
}
.pd-dl-icon svg { width: 20px; height: 20px; }
.pd-dl-text b { display: block; font-family: var(--font-head); font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.pd-dl-text small { display: block; font-size: 12px; color: var(--grey); margin-top: 3px; letter-spacing: .4px; }

/* Mediathek: Suchfeld und Gruppen über derselben Download-Optik */
.md-suche { max-width: 560px; margin: 0 auto 40px; text-align: center; }
.md-suche input {
  width: 100%; font-family: var(--font-body); font-size: 16px;
  padding: 15px 20px; border: 1px solid #C9D8C4; border-radius: 4px; background: #fff;
}
.md-suche input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.md-zaehler {
  margin: 12px 0 0; font-family: var(--font-head); font-size: 12px;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--grey);
}
.md-gruppe + .md-gruppe { margin-top: 42px; }
.md-gruppe-titel {
  font-size: 15px; margin: 0 0 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line); color: var(--ink);
  letter-spacing: .3px;
}
.md-gruppe .pd-dl-item { background: #fff; }

/* ---------------------------------------------------------------
   5. Ansprechpartner
   --------------------------------------------------------------- */
.ap-kopf { max-width: 620px; margin-bottom: 40px; }
.ap-kopf h2 { margin: 10px 0 14px; }
.ap-kopf p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--grey); }

.ap-liste { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 26px; align-items: stretch; }

.ap-karte {
  display: flex; flex-direction: column; background: #fff; overflow: hidden;
  border-left: 2.4px solid var(--card-line); border-bottom: 2.4px solid var(--card-line);
  border-radius: 12px 4px 12px 12px; box-shadow: 0 0 10px rgba(0, 0, 0, .1);
}
.ap-bild { position: relative; background: #EFF2EC; aspect-ratio: 4 / 3; overflow: hidden; }
.ap-karte--haupt .ap-bild { aspect-ratio: 4 / 3.4; }
.ap-bild img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}
.ap-karte:hover .ap-bild img { transform: scale(1.04); }
.ap-mono {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--green-dark); background:
    radial-gradient(circle at 50% 42%, rgba(84, 180, 53, .16), rgba(84, 180, 53, 0) 62%), #EFF2EC;
}
.ap-mono svg { width: 74px; height: 74px; opacity: .55; }
.ap-text { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.ap-text h3 { font-size: 19px; margin: 0 0 4px; }
.ap-rolle {
  margin: 0 0 14px; font-family: var(--font-head); font-size: 11px; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--green-dark);
}
.ap-kurz { margin: 0 0 18px; font-size: 14.8px; line-height: 1.62; color: var(--grey); flex: 1; }
.ap-kontakt {
  margin: 0; display: flex; gap: 18px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.ap-kontakt a {
  font-family: var(--font-head); font-size: 13px; font-weight: 500; text-decoration: none;
  color: var(--ink); border-bottom: 1px solid var(--green); padding-bottom: 2px;
  transition: color .2s;
}
.ap-kontakt a:hover { color: var(--green-dark); }

/* ---------------------------------------------------------------
   6. Schmalere Bildschirme
   --------------------------------------------------------------- */
@media (max-width: 1080px) {
  .pd-top { grid-template-columns: 1fr; gap: 34px; }
  .pd-abschnitt { grid-template-columns: 1fr; gap: 22px; }
  .pd-abschnitt > :not(.pd-abschnitt-kopf) { grid-column: auto; }
  .pd-daten { grid-template-columns: 1fr; gap: 22px; }
  .ap-liste { grid-template-columns: 1fr 1fr; }
  .ap-karte--haupt { grid-column: 1 / -1; flex-direction: row; }
  .ap-karte--haupt .ap-bild { width: 40%; aspect-ratio: auto; }
}
@media (max-width: 720px) {
  .pd-check { columns: 1; }
  .pd-zwei { grid-template-columns: 1fr; }
  .ap-liste { grid-template-columns: 1fr; }
  .ap-karte--haupt { flex-direction: column; }
  .ap-karte--haupt .ap-bild { width: 100%; aspect-ratio: 4 / 3; }
  .pd-verbrauch { flex-direction: column; align-items: flex-start; }
  .pd-lead { font-size: 16.5px; }
}
