/* LogiPro Interaktiv – Styles für die per JS erzeugten Bausteine.
   Werte 1:1 aus styles.css der Vorlage; Farben über die Elementor-Variablen (--navy, --blue …). */

/* ---------- Schnellanfrage (Startseite) ---------- */
.lp-quick-route { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 14px; }
.lp-quick-line { display: flex; flex-direction: column; align-items: center; padding-top: 40px; }
.lp-dot-from { width: 14px; height: 14px; border: 3px solid var(--navy); border-radius: 50%; background: var(--white); box-sizing: border-box; }
.lp-dash { flex-grow: 1; width: 0; border-left: 2px dashed var(--steel); margin: 4px 0; }
.lp-dot-to { width: 14px; height: 14px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px var(--sky-soft); }
.lp-gap { height: 26px; }
.lp-quick-fields { display: flex; flex-direction: column; gap: 14px; }
.lp-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.lp-quick-fields .lp-field input[type="text"] {
  min-height: 48px; padding: 0 14px; border: 1px solid var(--border-2); border-radius: 6px;
  font: inherit; font-weight: 400; font-size: 16px; color: var(--navy); background: var(--field); width: 100%; box-sizing: border-box;
}
.lp-when { margin: 0; padding: 0; border: 0; min-width: 0; }
.lp-when legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--navy); }
.lp-when-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 4px; background: #EEF1F5; border-radius: 8px; }
.lp-when-opts label {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 42px;
  border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--navy); cursor: pointer;
}
.lp-when-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lp-when-opts label.is-on { background: var(--navy); color: var(--white); font-weight: 600; }
.lp-when-opts label:has(input:focus-visible) { outline: 2px solid var(--sky); outline-offset: 2px; }

/* ---------- Preisrechner (Preise) ---------- */
body .elementor .js-rechner.is-ready { display: block; min-height: 0; padding: 0; border: 0; background: none; }
.lp-calc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: start; color: var(--navy); font-size: 16px; line-height: 1.6; }
.lp-calc p { margin: 0; }
.lp-calc-inputs { display: flex; flex-direction: column; gap: 28px; }
.lp-km-row { display: flex; align-items: center; gap: 20px; }
.lp-km-row input[type="range"] { flex: 1; min-width: 0; accent-color: var(--blue); height: 32px; }
.lp-km-box { display: flex; align-items: center; gap: 8px; }
.lp-calc .lp-km-box input[type="number"] {
  width: 96px; min-height: 48px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: 6px;
  font: inherit; font-size: 18px; font-weight: 600; text-align: right; background: var(--field); color: var(--navy); font-variant-numeric: tabular-nums;
}
.lp-calc-label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.lp-calc-hint { margin: 8px 0 0 !important; font-size: 14px; color: var(--text-3); }
.lp-toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lp-toggle {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 16px 52px;
  border: 1px solid var(--border-2); border-radius: 8px; background: var(--white); cursor: pointer;
}
.lp-toggle input { position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.lp-toggle b { font-weight: 600; }
.lp-toggle span { font-size: 14px; color: var(--text-3); }
.lp-toggle:has(input:checked) { border-color: var(--blue); background: var(--tint); box-shadow: inset 0 0 0 1px var(--blue); }
.lp-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-2); border-radius: 6px; overflow: hidden; background: var(--white); }
.lp-calc .lp-stepper button { width: 48px; height: 48px; padding: 0; border: 0; border-radius: 0; background: var(--bg); color: var(--navy); font: inherit; font-size: 22px; font-weight: 600; cursor: pointer; }
.lp-calc .lp-stepper button:hover { background: var(--tint); color: var(--navy); }
.lp-calc .lp-stepper input[type="number"] {
  width: 64px; min-height: 48px; padding: 0; text-align: center; font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums;
  border: 0; font-family: inherit; color: var(--navy); background: var(--white); -moz-appearance: textfield;
}
.lp-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.lp-slip {
  position: sticky; top: 104px; background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  border-top: 6px solid var(--navy); padding: 30px 30px 26px;
}
.lp-slip h3 { margin: 0 0 4px; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 22px; color: var(--navy); }
.lp-slip-sub { margin: 0 0 22px !important; color: var(--text-3); font-size: 14px; }
.lp-slip table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin: 0; border: 0; }
.lp-slip td { padding: 9px 0; border: 0; border-bottom: 1px dashed var(--border-2); vertical-align: baseline; background: none; }
.lp-slip td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; font-weight: 500; }
.lp-slip td small { display: block; color: var(--text-3); font-size: 13px; }
.lp-slip tr.off { display: none; }
.lp-slip table tbody > tr:nth-child(odd) > td,
.lp-slip table tbody > tr:hover > td { background: none; }
.lp-calc .lp-stepper button[type="button"] { min-height: 0; }
.lp-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--navy); }
.lp-total span { font-weight: 600; }
.lp-total output { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 112.5%; font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
.lp-vat { margin: 6px 0 22px !important; text-align: right; font-size: 13px; color: var(--text-3); }
.lp-over { margin: 0 0 22px !important; padding: 14px 16px; border-radius: 6px; background: var(--tint); font-size: 15px; }
.lp-btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 0 26px; box-sizing: border-box;
  border-radius: 6px; background: var(--blue); color: var(--white); font-weight: 600; font-size: 17px; text-decoration: none;
  transition: background .15s ease;
}
.lp-btn:hover, .lp-btn:focus-visible { background: var(--blue-hover); color: var(--white); }

.lp-calc-bar { display: none; }

@media (max-width: 960px) {
  .lp-calc { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lp-slip { position: static; }
  .lp-calc-bar:not([hidden]) {
    display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    background: var(--navy); color: var(--white); box-shadow: 0 -8px 24px rgba(1, 12, 26, 0.25);
  }
  .lp-calc-bar span { font-size: 13px; line-height: 1.3; color: var(--mist); min-width: 0; }
  .lp-calc-bar output { white-space: nowrap; margin-left: auto; font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 112.5%; font-size: 26px; line-height: 1; }
  .lp-calc-bar a { color: var(--link-light); font-weight: 600; font-size: 15px; padding: 10px 0 10px 6px; }
}
@media (max-width: 600px) {
  .lp-toggles, .lp-pair { grid-template-columns: minmax(0, 1fr); }
  .lp-slip { padding: 24px 20px; }
}
