/* ===========================================================================
   MIRACLEAN Austria – Händlerseite
   ---------------------------------------------------------------------------
   Wird ausschliesslich von haendler.html geladen. Alle Klassen tragen das
   Praefix "hdl-", damit Aenderungen hier keine andere Seite beruehren.
   Das Formular nutzt weiterhin die gemeinsamen Formularklassen aus style.css
   (.form, .field, …), damit Validierung und Versand unveraendert bleiben.

   Aufbau:  1 Hero · 2 Vorteile im Vertrieb · 3 Vertriebsunterstuetzung
            4 Partner · 5 Haendleranfrage
   Flaechen: Navy und Hellgrau im Wechsel, Gelb nur als Akzent.
   =========================================================================== */

/* --- Gemeinsam -------------------------------------------------------------- */
.hdl-section { padding-block: var(--sp-7); }
@media (min-width: 900px) { .hdl-section { padding-block: 4.5rem; } }

.hdl-mist { background: var(--mist); }
.hdl-dark { background: var(--navy); color: #d7e2f4; }
.hdl-dark h2, .hdl-dark h3 { color: #fff; }
.hdl-dark .eyebrow { color: var(--signal); }

/* Zwei aufeinanderfolgende helle Abschnitte mit feiner Linie trennen */
.hdl-mist + .hdl-mist { border-top: 1px solid var(--line); }

.hdl-heading {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  max-width: 32ch;
  margin-bottom: var(--sp-4);
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: break-word;
}
.hdl-intro {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 70ch;
  margin-bottom: var(--sp-6);
}
.hdl-dark .hdl-intro { color: #c9d6ec; }

/* Kleine Symbole: Navy-Flaeche mit gelber Linie, wie auf der Startseite */
.hdl-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--signal);
}
.hdl-icon svg { width: 20px; height: 20px; }
.hdl-dark .hdl-icon { background: transparent; border: 1px solid var(--navy-line); }

/* --- Block 1: Haendler-Hero ------------------------------------------------------
   Navy, ein einziger Button. Rechts die Gebindegruppe auf weisser Tafel.
   Mobil: Text, Button, Bild. */
.hdl-hero { background: var(--navy); color: #fff; overflow: hidden; }
.hdl-hero__grid {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
  padding-block: var(--sp-5) var(--sp-7);
}
@media (min-width: 900px) {
  .hdl-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: var(--sp-7);
    padding-block: var(--sp-6) var(--sp-7);
  }
}
.hdl-hero .eyebrow { color: var(--signal); margin-bottom: var(--sp-3); }
.hdl-hero__title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.06;
  margin-bottom: var(--sp-5);
  text-wrap: balance;
}
.hdl-hero__lead { margin-bottom: var(--sp-6); max-width: 58ch; }
.hdl-hero__lead p {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: #c9d6ec;
  margin-bottom: var(--sp-3);
}
.hdl-hero__lead p:last-child { margin-bottom: 0; }
.hdl-hero__visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* --- Block 2: Vorteile im Vertrieb -------------------------------------------------
   Vier gleichwertige Karten. Ab zwei Spalten stehen Symbol, Titel und Text
   zeilenweise auf gleicher Hoehe (Subgrid). */
.hdl-benefits { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 640px)  { .hdl-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hdl-benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); } }

.hdl-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.hdl-card .hdl-icon { margin-bottom: var(--sp-4); }
.hdl-card h3 {
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.35;
  margin-bottom: var(--sp-2);
  hyphens: auto;
}
.hdl-card p { margin: 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--ink-muted); }
@media (min-width: 640px) {
  .hdl-benefits .hdl-card {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
  }
}

/* --- Block 3: Vertriebsunterstuetzung ----------------------------------------------
   Sechs kompakte Punkte ohne Kartenflaechen: Symbol links, Text rechts,
   feine Trennlinien. */
.hdl-support {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: var(--sp-6);
}
@media (min-width: 640px)  { .hdl-support { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hdl-support { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hdl-support li {
  margin: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: var(--sp-4);
  align-content: start;
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--navy-line);
}
.hdl-support .hdl-icon { grid-row: 1 / span 2; }
.hdl-support h3 {
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.35;
  margin: .1rem 0 var(--sp-1);
  hyphens: auto;
}
.hdl-support p { margin: 0; font-size: var(--fs-sm); line-height: 1.6; color: #b9c9e3; }

/* --- Block 4: Partner ---------------------------------------------------------------
   Drei gleichwertige Karten; ab Desktop zeilenweise buendig (Subgrid). */
.hdl-partners { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 900px) { .hdl-partners { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); } }

.hdl-partner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
}
.hdl-partner .hdl-icon { margin-bottom: var(--sp-4); }
.hdl-partner h3 {
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.35;
  margin-bottom: var(--sp-2);
}
.hdl-partner > p { margin: 0 0 var(--sp-4); font-size: var(--fs-sm); line-height: 1.6; color: var(--ink-muted); }
.hdl-partner__label {
  margin: 0 0 var(--sp-2) !important;
  font-size: var(--fs-xs) !important;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy) !important;
}
.hdl-partner ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; align-content: start; }
.hdl-partner li {
  margin: 0;
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--ink);
}
.hdl-partner li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: .5em;
  background: var(--signal);
  border-radius: 50%;
}
.hdl-partner__note {
  margin: var(--sp-4) 0 0 !important;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs) !important;
  color: var(--ink-muted) !important;
}
@media (min-width: 900px) {
  .hdl-partner {
    display: grid;
    grid-row: span 6;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
}

.hdl-partners__close {
  margin: var(--sp-6) 0 0;
  max-width: 70ch;
  padding-left: var(--sp-4);
  border-left: 3px solid var(--signal);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
}

/* --- Block 5: Haendleranfrage -------------------------------------------------------
   Navy-Grund: links die Einleitung in heller Schrift, rechts das Formular in
   einer weissen Tafel. Mobil untereinander, Formular einspaltig. */
.hdl-request { display: grid; gap: var(--sp-6); }
@media (min-width: 1000px) {
  .hdl-request { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--sp-8); align-items: start; }
}
.hdl-request__intro p { font-size: var(--fs-base); line-height: 1.7; color: var(--ink-muted); max-width: 52ch; }
.hdl-dark .hdl-request__intro p { color: #c9d6ec; }
/* Die Tafel setzt die Schriftfarbe ausdruecklich zurueck: sonst erbten
   Feldbeschriftungen und Statusmeldung die helle Farbe des Navy-Abschnitts. */
.hdl-request__card {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
@media (min-width: 640px) { .hdl-request__card { padding: var(--sp-6); } }
.hdl-request__card .form { gap: var(--sp-4); }
.hdl-request__card .form__row { gap: var(--sp-4); }
.hdl-request__card .field textarea { min-height: 120px; }
/* Leere Fehlerzeilen nicht als Leerraum reservieren; sobald die Validierung
   eine Meldung einsetzt, ist das Element nicht mehr leer und erscheint. */
.hdl-request__card .field__error:empty { display: none; }

.hdl-trust {
  margin: var(--sp-3) 0 0;
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-muted);
}

/* --- Hero: zwei Buttons, Gebindefoto schwebt beim Laden ein ------------------ */
.hdl-hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
@media (max-width: 479px) { .hdl-hero__actions .btn { flex: 1 1 100%; } }
.hdl-hero__visual img { box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
@media (prefers-reduced-motion: no-preference) {
  .hdl-hero__visual img { animation: hdl-visual-in 1100ms cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes hdl-visual-in {
  from { opacity: 0; transform: translateY(32px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* Karten heben sich beim Ueberfahren leicht an */
.hdl-card, .hdl-partner {
  transition: transform var(--transition), box-shadow var(--transition);
}
.hdl-card:hover, .hdl-partner:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: reduce) {
  .hdl-card:hover, .hdl-partner:hover { transform: none; }
}

/* --- Block 5: Ablauf in drei Schritten -------------------------------------------
   Nummern in gelben Kreisen, verbunden durch eine Linie (ab Desktop waagrecht). */
.hdl-white { background: #fff; }
.hdl-steps {
  list-style: none; margin: var(--sp-6) 0 0; padding: 0;
  display: grid; gap: var(--sp-6);
  counter-reset: none;
}
@media (min-width: 900px) {
  .hdl-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-7); position: relative; }
  .hdl-steps::before {
    content: ""; position: absolute; top: 24px; left: 24px; right: 33%;
    height: 2px; background: var(--line);
  }
}
.hdl-step { margin: 0; position: relative; }
.hdl-step__num {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: var(--sp-4);
  border-radius: 50%;
  background: var(--signal); color: var(--navy-deep);
  font-size: var(--fs-lg); font-weight: 900;
  box-shadow: 0 0 0 6px #fff;
}
.hdl-step h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.hdl-step p { margin: 0; color: var(--ink-muted); max-width: 38ch; }
