/* Anfrage-Formular im Design des Rechners --------------------------------- */
#em-quote-panel {
  --orange: #f19a2f; --orange-dark: #d8821a; --orange-glow: rgba(241,154,47,0.25);
  --ink: #0b1424; --muted: #6b7689; --line: #e8ecf3; --line-strong: #d4dae6;
  --r-lg: 18px; --r-sm: 8px;
  --shadow-1: 0 1px 2px rgba(15,30,61,0.04), 0 4px 16px rgba(15,30,61,0.06);
  --shadow-orange: 0 8px 24px rgba(241,154,47,0.28);
  display: none;
  scroll-margin-top: 130px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 56px;
  color: var(--ink);
  line-height: 1.5;
}
#em-quote-panel.is-open { display: block; animation: emq-slide-in .4s ease; }
@keyframes emq-slide-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #em-quote-panel.is-open { animation: none; } }

/* Karte wie die Rechner-Schritte */
#em-quote-panel .elementor-widget-form > .elementor-widget-container {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 24px 26px;
}

/* Schritt-Kopf, per JS eingesetzt */
#em-quote-panel .emq-step { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
#em-quote-panel .emq-step-num {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px var(--orange-glow);
}
#em-quote-panel .emq-step h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
#em-quote-panel .emq-lead { margin: 0 0 18px 40px; color: var(--muted); font-size: 14px; }

/* Beschriftungen */
#em-quote-panel .elementor-field-label {
  font-size: 13px; font-weight: 600; color: var(--muted);
  text-transform: none; letter-spacing: 0; margin-bottom: 6px;
}
#em-quote-panel .elementor-mark-required .elementor-field-label:after { color: var(--orange); }

/* Eingabefelder exakt wie im Rechner */
#em-quote-panel .elementor-field-textual {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: #fff; font-size: 16px; font-weight: 500; color: var(--ink);
  font-family: inherit; transition: all .15s ease; height: auto; min-height: 0;
}
#em-quote-panel .elementor-field-textual:hover { border-color: var(--muted); }
#em-quote-panel .elementor-field-textual:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-glow);
}
#em-quote-panel .elementor-field-textual::placeholder { color: #b8c0cf; font-weight: 400; }
#em-quote-panel textarea.elementor-field-textual { min-height: 96px; resize: vertical; }

/* Einwilligung */
#em-quote-panel .elementor-field-type-acceptance .elementor-field-option { display: flex; align-items: flex-start; gap: 10px; }
#em-quote-panel input[type="checkbox"] { accent-color: var(--orange); width: 18px; height: 18px; margin-top: 2px; flex: none; }
#em-quote-panel .elementor-field-type-acceptance label {
  font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.5; text-transform: none; letter-spacing: 0;
}
#em-quote-panel .elementor-field-type-acceptance a { color: var(--orange); text-decoration: underline; }

/* Senden-Knopf wie der Hauptknopf des Rechners */
#em-quote-panel .elementor-button[type="submit"] {
  background: var(--orange); color: #fff; border: none;
  border-radius: var(--r-sm); box-shadow: var(--shadow-orange);
  padding: 13px 26px; font-size: 15px; font-weight: 700; font-family: inherit;
  letter-spacing: .01em; transition: all .15s ease; width: auto;
}
#em-quote-panel .elementor-button[type="submit"]:hover { background: var(--orange-dark); transform: translateY(-1px); }
#em-quote-panel .elementor-button[type="submit"]:focus-visible { outline: 3px solid var(--orange-glow); outline-offset: 2px; }

/* Rueckmeldungen */
#em-quote-panel .elementor-message { font-size: 14px; border-radius: var(--r-sm); }
#em-quote-panel .elementor-message-success { color: #0f7a3a; }
#em-quote-panel .elementor-message-danger { color: #b3261e; }

@media (max-width: 620px) {
  #em-quote-panel .elementor-widget-form > .elementor-widget-container { padding: 20px 18px; }
  #em-quote-panel .emq-lead { margin-left: 0; }
  #em-quote-panel .elementor-button[type="submit"] { width: 100%; }
}
/* Rueckfrage-Felder: nur sichtbar, wenn keine Berechnung vorliegt */
#em-quote-panel .elementor-field-group-bedarf_einsatz,
#em-quote-panel .elementor-field-group-bedarf_masse,
#em-quote-panel .elementor-field-group-bedarf_menge { display: none !important; }
#em-quote-panel.emq-needs-input .elementor-field-group-bedarf_einsatz,
#em-quote-panel.emq-needs-input .elementor-field-group-bedarf_masse,
#em-quote-panel.emq-needs-input .elementor-field-group-bedarf_menge { display: flex !important; }
#em-quote-panel select.elementor-field-textual { cursor: pointer; }
/* Eingaben und Beispiele in normaler Schreibweise - sonst wird aus m² ein M² */
#em-quote-panel .elementor-field-textual,
#em-quote-panel .elementor-field-textual::placeholder { text-transform: none; }
    /* ---------- Scope & Tokens ---------- */
    #em-bc, #em-bc * { box-sizing: border-box; }
    #em-bc {
      --orange: #f19a2f;
      --orange-dark: #d8821a;
      --orange-soft: #fff4e0;
      --orange-glow: rgba(241,154,47,0.25);
      --navy: #0f1e3d;
      --navy-2: #1a2e54;
      --ink: #0b1424;
      --muted: #6b7689;
      --line: #e8ecf3;
      --line-strong: #d4dae6;
      --bg: #f6f8fc;
      --card: #ffffff;
      --success: #0f7a3a;
      --success-bg: #e8f7ee;
      --error: #b3261e;
      --error-bg: #fdecea;
      --r-lg: 18px;
      --r-md: 12px;
      --r-sm: 8px;
      --shadow-1: 0 1px 2px rgba(15,30,61,0.04), 0 4px 16px rgba(15,30,61,0.06);
      --shadow-2: 0 4px 12px rgba(15,30,61,0.06), 0 16px 40px rgba(15,30,61,0.10);
      --shadow-orange: 0 8px 24px rgba(241,154,47,0.28);
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
      color: var(--ink);
      background: var(--bg);
      padding: 32px 16px 64px;
      max-width: 1200px;
      margin: 0 auto;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    /* ---------- Hero ---------- */
    #em-bc .em-hero {
      position: relative;
      background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
      border-radius: 22px;
      padding: 38px 36px;
      color: #fff;
      overflow: hidden;
      margin-bottom: 28px;
    }
    #em-bc .em-hero::before, #em-bc .em-hero::after {
      content: ""; position: absolute; border-radius: 50%;
      background: radial-gradient(circle at 30% 30%, rgba(241,154,47,0.5), transparent 70%);
      pointer-events: none;
    }
    #em-bc .em-hero::before { width: 320px; height: 320px; right: -60px; top: -120px; }
    #em-bc .em-hero::after  { width: 220px; height: 220px; right: 180px; bottom: -120px; opacity: .55; }
    #em-bc .em-hero-inner { position: relative; z-index: 2; max-width: 640px; }
    #em-bc .em-eyebrow {
      display: inline-flex; align-items: center; gap: 8px;
      font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
      color: var(--orange); background: rgba(241,154,47,0.15);
      padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
    }
    #em-bc .em-eyebrow .em-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
    #em-bc h1.em-title {
      font-size: clamp(28px, 4vw, 40px);
      line-height: 1.15; margin: 0 0 10px; font-weight: 800; letter-spacing: -0.02em;
    }
    #em-bc h1.em-title em { color: var(--orange); font-style: normal; }
    #em-bc .em-lede { font-size: 16px; color: rgba(255,255,255,0.78); margin: 0; max-width: 540px; }

    /* Decorative balls in hero */
    #em-bc .em-hero-balls {
      position: absolute; inset: 0; pointer-events: none; z-index: 1;
      background-image:
        radial-gradient(circle at 88% 22%, rgba(255,255,255,.08) 0 22px, transparent 23px),
        radial-gradient(circle at 70% 70%, rgba(255,255,255,.06) 0 14px, transparent 15px),
        radial-gradient(circle at 95% 65%, rgba(255,255,255,.05) 0 10px, transparent 11px);
    }

    /* ---------- Layout ---------- */
    #em-bc .em-grid {
      display: grid;
      grid-template-columns: minmax(0,1fr) 380px;
      gap: 24px;
      align-items: start;
    }
    @media (max-width: 960px) { #em-bc .em-grid { grid-template-columns: 1fr; } }

    #em-bc .em-card {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: var(--r-lg);
      box-shadow: var(--shadow-1);
      padding: 24px 26px;
    }
    #em-bc .em-card + .em-card { margin-top: 18px; }

    #em-bc .em-step {
      display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px;
    }
    #em-bc .em-step-num {
      flex: 0 0 auto;
      width: 28px; height: 28px; border-radius: 50%;
      background: var(--orange); color: #fff; font-size: 13px; font-weight: 700;
      display: inline-flex; align-items: center; justify-content: center;
      box-shadow: 0 2px 8px var(--orange-glow);
    }
    #em-bc .em-step h3 {
      margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em;
    }
    #em-bc .em-step .em-hint { color: var(--muted); font-size: 13px; }

    /* ---------- Category pills ---------- */
    #em-bc .em-pills {
      display: flex; flex-wrap: wrap; gap: 8px;
    }
    #em-bc .em-pill {
      border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
      padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
      cursor: pointer; transition: all .15s ease;
      display: inline-flex; align-items: center; gap: 8px;
    }
    #em-bc .em-pill:hover { border-color: var(--orange); color: var(--orange-dark); }
    #em-bc .em-pill.is-active {
      background: var(--ink); color: #fff; border-color: var(--ink);
    }
    #em-bc .em-pill.is-active .em-count {
      background: rgba(255,255,255,0.18); color: #fff;
    }
    #em-bc .em-pill .em-count {
      background: var(--bg); color: var(--muted); font-size: 11px; font-weight: 600;
      padding: 2px 7px; border-radius: 999px;
    }

    /* ---------- Product cards ---------- */
    #em-bc .em-products {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
      gap: 12px; margin-top: 16px;
    }
    #em-bc .em-product {
      position: relative;
      border: 2px solid var(--line); background: #fff;
      border-radius: var(--r-md); padding: 14px 14px 12px; cursor: pointer;
      transition: all .15s ease;
      display: flex; flex-direction: column; gap: 8px;
    }
    #em-bc .em-product:hover {
      border-color: var(--orange); transform: translateY(-2px);
      box-shadow: var(--shadow-1);
    }
    #em-bc .em-product.is-active {
      border-color: var(--orange);
      box-shadow: var(--shadow-orange);
      background: linear-gradient(180deg, #fff 0%, #fffaf2 100%);
    }
    #em-bc .em-product.is-active::after {
      content: "✓"; position: absolute; top: 8px; right: 8px;
      width: 22px; height: 22px; border-radius: 50%;
      background: var(--orange); color: #fff; font-size: 13px; font-weight: 700;
      display: flex; align-items: center; justify-content: center;
    }
    #em-bc .em-product .em-pviz {
      aspect-ratio: 16/10;
      background: linear-gradient(135deg, #f6f8fc 0%, #eaf0fa 100%);
      border-radius: var(--r-sm);
      display: flex; align-items: center; justify-content: center;
      overflow: hidden;
    }
    #em-bc .em-product .em-pviz svg { width: 70%; height: 70%; }
    #em-bc .em-product .em-pname {
      font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em;
    }
    #em-bc .em-product .em-pmeta {
      font-size: 12px; color: var(--muted);
      display: flex; gap: 8px; flex-wrap: wrap;
    }
    #em-bc .em-product .em-tag {
      background: var(--bg); padding: 2px 8px; border-radius: 999px; font-weight: 500;
    }
    #em-bc .em-product .em-tag.em-tag-orange { background: var(--orange-soft); color: var(--orange-dark); }

    /* ---------- Shape selector ---------- */
    #em-bc .em-shapes {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
      gap: 10px; margin-top: 14px;
    }
    #em-bc .em-shape {
      border: 2px solid var(--line); background: #fff; border-radius: var(--r-md);
      padding: 12px 8px; cursor: pointer; text-align: center;
      transition: all .15s ease;
      display: flex; flex-direction: column; align-items: center; gap: 6px;
    }
    #em-bc .em-shape:hover { border-color: var(--orange); }
    #em-bc .em-shape.is-active {
      border-color: var(--orange); background: var(--orange-soft);
    }
    #em-bc .em-shape svg { width: 38px; height: 38px; stroke: var(--ink); fill: none; stroke-width: 2.4; stroke-linejoin: round; }
    #em-bc .em-shape.is-active svg { stroke: var(--orange-dark); }
    #em-bc .em-shape .em-sname { font-size: 12px; font-weight: 600; color: var(--ink); }

    /* ---------- Inputs ---------- */
    #em-bc .em-fields {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 14px; margin-top: 18px;
    }
    #em-bc .em-field { position: relative; }
    #em-bc .em-field label {
      display: block; font-size: 12px; font-weight: 600; color: var(--muted);
      letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px;
    }
    #em-bc .em-field .em-input-wrap { position: relative; }
    #em-bc .em-field input {
      width: 100%; padding: 12px 50px 12px 14px;
      border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
      background: #fff; font-size: 16px; font-weight: 500; color: var(--ink);
      font-family: inherit; transition: all .15s ease;
    }
    #em-bc .em-field input:hover { border-color: var(--muted); }
    #em-bc .em-field input:focus {
      outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-glow);
    }
    #em-bc .em-field input::placeholder { color: #b8c0cf; font-weight: 400; }
    #em-bc .em-field .em-suffix {
      position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
      font-size: 13px; font-weight: 600; color: var(--muted); pointer-events: none;
    }
    #em-bc .em-field .em-err {
      font-size: 12px; color: var(--error); margin-top: 6px; display: none; font-weight: 500;
    }
    #em-bc .em-field.has-error input { border-color: var(--error); background: #fdecea; }
    #em-bc .em-field.has-error .em-err { display: block; }

    /* ---------- Result panel (sticky) ---------- */
    #em-bc .em-side { position: sticky; top: 20px; }
    @media (max-width: 960px) { #em-bc .em-side { position: static; } }

    #em-bc .em-result-card {
      background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
      color: #fff; border-radius: var(--r-lg); padding: 26px 24px;
      box-shadow: var(--shadow-2);
      position: relative; overflow: hidden;
    }
    #em-bc .em-result-card::before {
      content: ""; position: absolute; right: -50px; top: -50px;
      width: 180px; height: 180px; border-radius: 50%;
      background: radial-gradient(circle, rgba(241,154,47,0.35), transparent 70%);
    }
    #em-bc .em-result-label {
      position: relative; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
      color: var(--orange); font-weight: 600; margin-bottom: 8px;
    }
    #em-bc .em-result-num {
      position: relative;
      font-size: clamp(40px, 6vw, 56px); font-weight: 800; letter-spacing: -0.03em;
      line-height: 1; margin: 4px 0 4px;
      background: linear-gradient(180deg, #fff 30%, #ffd9a3 100%);
      -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
      transition: opacity .25s;
    }
    #em-bc .em-result-num.is-pulse { animation: emPulse .35s ease; }
    @keyframes emPulse { 0% { transform: scale(.96); opacity: .6; } 100% { transform: scale(1); opacity: 1; } }
    #em-bc .em-result-sub {
      position: relative; color: rgba(255,255,255,0.75); font-size: 14px;
    }
    #em-bc .em-result-sub b { color: #fff; font-weight: 600; }

    #em-bc .em-result-empty .em-result-num { color: rgba(255,255,255,0.4); -webkit-text-fill-color: rgba(255,255,255,0.4); }

    #em-bc .em-result-meta {
      position: relative; margin-top: 18px;
      display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    }
    #em-bc .em-meta-tile {
      background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
      border-radius: var(--r-sm); padding: 10px 12px;
    }
    #em-bc .em-meta-tile .em-mt-k {
      font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: .08em; text-transform: uppercase;
    }
    #em-bc .em-meta-tile .em-mt-v {
      font-size: 16px; font-weight: 700; color: #fff; margin-top: 2px;
    }

    #em-bc .em-cta {
      position: relative;
      display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap;
    }
    #em-bc .em-btn {
      flex: 1; min-width: 140px;
      padding: 13px 18px; border-radius: 10px; border: none;
      font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
      transition: all .15s ease; text-align: center; text-decoration: none;
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    }
    #em-bc .em-btn-primary {
      background: var(--orange); color: #fff;
      box-shadow: var(--shadow-orange);
    }
    #em-bc .em-btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
    #em-bc .em-btn-ghost {
      background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.15);
    }
    #em-bc .em-btn-ghost:hover { background: rgba(255,255,255,0.14); }

    /* ---------- Below: formula + info ---------- */
    #em-bc .em-detail {
      margin-top: 16px;
      background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px;
      font-size: 13px; color: var(--muted);
    }
    #em-bc .em-detail summary {
      cursor: pointer; color: var(--ink); font-weight: 600; list-style: none;
      display: flex; justify-content: space-between; align-items: center;
    }
    #em-bc .em-detail summary::after {
      content: "↓"; transition: transform .2s; color: var(--muted);
    }
    #em-bc .em-detail[open] summary::after { transform: rotate(180deg); }
    #em-bc .em-detail .em-detail-body { margin-top: 12px; line-height: 1.65; }
    #em-bc .em-detail code {
      background: var(--bg); padding: 1px 6px; border-radius: 4px; font-size: 12px;
      font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink);
    }

    /* ---------- Toolbar ---------- */
    #em-bc .em-toolbar {
      display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px;
      border-top: 1px solid var(--line);
    }
    #em-bc .em-link-btn {
      background: none; border: 1px solid var(--line-strong); color: var(--muted);
      padding: 8px 14px; border-radius: 8px; font-family: inherit; font-size: 13px;
      font-weight: 500; cursor: pointer; transition: all .15s;
    }
    #em-bc .em-link-btn:hover { color: var(--ink); border-color: var(--ink); }

    /* ---------- Helper ---------- */
    #em-bc .em-empty-products {
      grid-column: 1/-1;
      padding: 26px; text-align: center; color: var(--muted);
      border: 2px dashed var(--line); border-radius: var(--r-md); font-size: 14px;
    }
    #em-bc .em-soon {
      display: inline-block; background: var(--orange-soft); color: var(--orange-dark);
      font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
      letter-spacing: .04em; text-transform: uppercase;
    }
