/* LL Immobilienwert-Rechner
   Farben über die Variablen anpassen, z. B. in Elementor > Website-Einstellungen > Eigenes CSS:
   .llwr { --llwr-accent: #123456; }                                                        */

.llwr {
  /* Lebenslagen: Rot, Creme, Anthrazit */
  --llwr-accent: #8b1e2d;
  --llwr-accent-hover: #6f1824;
  --llwr-accent-soft: #f6e9eb;
  --llwr-on-accent: #ffffff;
  --llwr-bg: #ffffff;
  --llwr-surface: #f7f3ec;
  --llwr-text: #1e1e21;
  --llwr-muted: #5f5c57;
  --llwr-border: #e3ddd2;
  --llwr-error: #b42318;
  --llwr-warn: #7a4d00;
  --llwr-warn-soft: #fbefd6;
  --llwr-radius: 14px;
  --llwr-font: var(--font-haupt, inherit);

  font-family: var(--llwr-font);
  color: var(--llwr-text);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
  box-sizing: border-box;
}
.llwr *, .llwr *::before, .llwr *::after { box-sizing: inherit; }

.llwr-panel {
  background: var(--llwr-bg);
  border: 1px solid var(--llwr-border);
  border-radius: calc(var(--llwr-radius) + 6px);
  padding: clamp(20px, 5vw, 40px);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -16px rgba(0,0,0,.12);
}
/* Nur beim Schrittwechsel einblenden, nicht bei jeder Auswahl */
.llwr-panel.is-entering > * { animation: llwr-in .28s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes llwr-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .llwr-panel.is-entering > * { animation: none; } }

/* Browser-Oberflächen im Markenton */
.llwr ::selection { background: var(--llwr-accent-soft); color: var(--llwr-text); }
.llwr input { caret-color: var(--llwr-accent); }
.llwr .llwr-input input::placeholder { color: #74706a; opacity: 1; }
.llwr button:focus-visible, .llwr a:focus-visible, .llwr .llwr-consent input:focus-visible {
  outline: 2px solid var(--llwr-accent); outline-offset: 2px;
}
.llwr-title:focus, .llwr-error:focus { outline: none; }

/* Kopf */
.llwr-progress { height: 4px; background: var(--llwr-surface); border-radius: 99px; overflow: hidden; }
.llwr-progress > div { height: 100%; background: var(--llwr-accent); border-radius: 99px; transition: width .35s ease; }
.llwr-stepinfo { margin: 10px 0 18px; font-size: 13px; color: var(--llwr-muted); font-variant-numeric: tabular-nums; }
.llwr .llwr-title { margin: 0 0 8px; font-family: inherit; font-size: 1.625rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--llwr-text); text-wrap: balance; }
@media (max-width: 520px) { .llwr .llwr-title { font-size: 1.375rem; } }
.llwr-sub { margin: 0 0 28px; color: var(--llwr-muted); font-size: 15px; text-wrap: pretty; }

/* Karten */
.llwr-cards { display: grid; gap: 10px; }
.llwr-cards--types { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 680px) { .llwr-cards--types { grid-template-columns: 1fr 1fr; } .llwr-cards--types .llwr-card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.llwr-cards--list { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .llwr-cards--list { grid-template-columns: 1fr; } }

.llwr .llwr-card {
  appearance: none; font: inherit; color: inherit; text-align: left; cursor: pointer;
  background: var(--llwr-bg); border: 1.5px solid var(--llwr-border); border-radius: var(--llwr-radius);
  padding: 18px 16px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, background .15s, transform .1s;
  margin: 0; box-shadow: none; text-transform: none; letter-spacing: normal;
}
.llwr .llwr-card:hover { border-color: color-mix(in srgb, var(--llwr-accent) 55%, var(--llwr-border)); background: var(--llwr-bg); color: inherit; }
.llwr .llwr-card:active { transform: scale(.99); }
.llwr .llwr-card.is-selected { border-color: var(--llwr-accent); background: var(--llwr-accent-soft); box-shadow: inset 0 0 0 1px var(--llwr-accent); }
.llwr-card span { font-weight: 600; font-size: 15px; line-height: 1.3; }
.llwr-card--row { padding: 14px 16px; gap: 2px; }
.llwr-card--row strong { font-size: 15px; }
.llwr-card--row small { color: var(--llwr-muted); font-size: 13px; }
.llwr-icon { width: 34px; height: 34px; fill: none; stroke: var(--llwr-accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Felder */
.llwr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.llwr-col-full { grid-column: 1 / -1; }
@media (max-width: 520px) { .llwr-grid { grid-template-columns: 1fr; } }
.llwr-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--llwr-text); }
.llwr-input { position: relative; }
.llwr .llwr-input input {
  width: 100%; font: inherit; font-size: 16px; color: var(--llwr-text);
  background: var(--llwr-bg); border: 1.5px solid var(--llwr-border); border-radius: calc(var(--llwr-radius) - 4px);
  padding: 12px 14px; margin: 0; min-height: 48px; box-shadow: none; outline: none;
  transition: border-color .15s, box-shadow .15s;
  -moz-appearance: textfield;
}
.llwr .llwr-input input::-webkit-outer-spin-button,
.llwr .llwr-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.llwr .llwr-input input:focus { border-color: var(--llwr-accent); box-shadow: 0 0 0 3px var(--llwr-accent-soft); }
.llwr .llwr-input input[aria-invalid="true"] { border-color: var(--llwr-error); }
.llwr .llwr-input input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--llwr-error) 14%, transparent); }
.llwr-input--unit input { padding-right: 44px; }
.llwr-unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--llwr-muted); font-size: 15px; pointer-events: none; }
.llwr .llwr-input input[inputmode] { font-variant-numeric: tabular-nums; }

.llwr-fieldset { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.llwr-fieldset legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }

.llwr-segment { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--llwr-surface); border-radius: var(--llwr-radius); padding: 4px; gap: 4px; }
@media (max-width: 520px) { .llwr-segment { grid-template-columns: 1fr 1fr; } }
.llwr .llwr-segment button {
  appearance: none; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; margin: 0;
  background: transparent; color: var(--llwr-muted); border: 0; border-radius: calc(var(--llwr-radius) - 4px);
  padding: 10px 6px; box-shadow: none; text-transform: none; letter-spacing: normal;
}
.llwr .llwr-segment button:hover { color: var(--llwr-text); background: transparent; }
.llwr .llwr-segment button.is-selected { background: var(--llwr-bg); color: var(--llwr-accent); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

.llwr-fieldset--grid { margin: 0; }
.llwr-rent { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.llwr .llwr-segment--2 { grid-template-columns: repeat(2, auto); }
.llwr .llwr-segment--2 button { padding: 8px 14px; white-space: nowrap; }
@media (max-width: 420px) { .llwr-rent { grid-template-columns: 1fr; } }

.llwr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.llwr .llwr-chip {
  appearance: none; font: inherit; font-size: 14px; cursor: pointer; margin: 0;
  background: var(--llwr-bg); color: var(--llwr-text); border: 1.5px solid var(--llwr-border); border-radius: 99px;
  padding: 8px 14px; box-shadow: none; text-transform: none; letter-spacing: normal;
}
.llwr .llwr-chip:hover { border-color: color-mix(in srgb, var(--llwr-accent) 55%, var(--llwr-border)); background: var(--llwr-bg); color: var(--llwr-text); }
.llwr .llwr-chip.is-selected { background: var(--llwr-accent); border-color: var(--llwr-accent); color: var(--llwr-on-accent); }

.llwr-found { display: flex; align-items: center; gap: 8px; margin: -10px 0 20px; font-size: 14px; color: var(--llwr-accent); font-weight: 600; }
.llwr-found svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.llwr-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 13px; line-height: 1.55; color: var(--llwr-muted); cursor: pointer; }
.llwr-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--llwr-accent); }
.llwr-consent a { color: var(--llwr-accent); }
.llwr-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Navigation */
.llwr-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.llwr .llwr-btn {
  appearance: none; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; margin: 0;
  border-radius: 99px; padding: 13px 26px; border: 1.5px solid transparent; min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  transition: background .15s, border-color .15s; text-transform: none; letter-spacing: normal; box-shadow: none;
}
.llwr .llwr-btn--primary { background: var(--llwr-accent); color: var(--llwr-on-accent); }
.llwr .llwr-btn--primary:hover { background: var(--llwr-accent-hover); color: var(--llwr-on-accent); }
.llwr .llwr-btn--primary:disabled { opacity: .8; cursor: progress; }
.llwr .llwr-btn--ghost { background: transparent; color: var(--llwr-muted); border-color: var(--llwr-border); }
.llwr .llwr-btn--ghost:hover { color: var(--llwr-text); border-color: var(--llwr-text); background: transparent; }
.llwr-spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: llwr-spin .7s linear infinite; }
@keyframes llwr-spin { to { transform: rotate(360deg); } }

.llwr-error { color: var(--llwr-error); font-size: 14px; font-weight: 600; margin: 18px 0 0; }

/* Ergebnis */
.llwr-result { background: var(--llwr-surface); border-radius: var(--llwr-radius); padding: clamp(20px, 4vw, 32px); margin-top: 8px; }
.llwr-result__label { margin: 0 0 6px; font-size: 14px; color: var(--llwr-muted); font-weight: 600; }
.llwr-result__range { margin: 0; font-size: clamp(28px, 6vw, 40px); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; color: var(--llwr-text); display: flex; flex-wrap: wrap; gap: 0 .3em; font-variant-numeric: tabular-nums; }
.llwr-result__range > span { white-space: nowrap; }
.llwr-dash { color: var(--llwr-muted); font-weight: 400; }
.llwr-bar { position: relative; height: 6px; border-radius: 99px; margin: 22px 0 46px; background: color-mix(in srgb, var(--llwr-accent) 28%, var(--llwr-surface)); }
.llwr-bar__mark { position: absolute; top: 50%; width: 16px; height: 16px; margin-left: -8px; transform: translateY(-50%); background: var(--llwr-accent); border: 3px solid var(--llwr-bg); border-radius: 50%; box-shadow: 0 1px 3px rgba(30, 30, 33, .25); }
.llwr-bar__mark span { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--llwr-accent); font-variant-numeric: tabular-nums; }
.llwr-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px 24px; margin: 0; padding-top: 20px; border-top: 1px solid var(--llwr-border); }
.llwr-facts .llwr-facts__wide { grid-column: 1 / -1; }
.llwr-facts .llwr-facts__wide dd { font-weight: 500; font-size: 15px; }
.llwr-facts div { margin: 0; }
.llwr-facts dt { font-size: 13px; color: var(--llwr-muted); margin: 0 0 2px; }
.llwr-facts dd { margin: 0; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.llwr-facts small { display: block; font-weight: 400; font-size: 12px; color: var(--llwr-muted); }
.llwr-result--none p { margin: 0 0 10px; }

.llwr-cta { margin-top: 24px; }
.llwr-cta p { margin: 0 0 16px; font-size: 15px; color: var(--llwr-muted); }
.llwr-cta .llwr-btn { width: 100%; }
.llwr-disclaimer { margin: 24px 0 0; font-size: 12px; line-height: 1.55; color: var(--llwr-muted); }

/* Datenlage + persönliche Bewertung */
.llwr-result__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 6px; }
.llwr-result__top .llwr-result__label { margin: 0; }
.llwr-badge { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.3; padding: 4px 10px; border-radius: 99px; background: var(--llwr-accent-soft); color: var(--llwr-accent); }
.llwr-badge--mittel { background: var(--llwr-bg); color: var(--llwr-muted); box-shadow: inset 0 0 0 1px var(--llwr-border); }
.llwr-badge--niedrig { background: var(--llwr-warn-soft); color: var(--llwr-warn); }
.llwr-result__note { margin: 0 0 22px; padding: 12px 14px; border-radius: calc(var(--llwr-radius) - 4px); background: var(--llwr-warn-soft); color: var(--llwr-text); font-size: 14px; }

.llwr-visit { margin-top: 20px; padding: clamp(18px, 4vw, 26px); border: 1.5px solid var(--llwr-border); border-radius: var(--llwr-radius); display: flex; flex-direction: column; gap: 14px; }
.llwr-visit--emph { border-color: var(--llwr-accent); background: var(--llwr-accent-soft); }
.llwr .llwr-visit h3, .llwr .llwr-visit h4 { margin: 0; font-family: inherit; font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; color: var(--llwr-text); }
.llwr-visit > p { margin: 0; font-size: 15px; color: var(--llwr-muted); }
.llwr-visit .llwr-fieldset { margin: 0; }
.llwr-visit .llwr-error { margin: 0; }
.llwr-visit .llwr-btn { align-self: flex-start; }
@media (max-width: 520px) { .llwr-visit .llwr-btn { align-self: stretch; } }
.llwr-visit .llwr-visit__phone { font-size: 14px; }
.llwr-visit__phone a { color: var(--llwr-accent); font-weight: 700; text-decoration: none; }
.llwr-visit__phone a:hover { text-decoration: underline; }
.llwr-visit--done { flex-direction: row; align-items: flex-start; border-color: var(--llwr-accent); background: var(--llwr-accent-soft); }
.llwr-visit--done svg { width: 24px; height: 24px; flex: none; margin-top: 1px; fill: none; stroke: var(--llwr-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.llwr-visit--done strong { color: var(--llwr-text); }
.llwr-visit--done p { margin: 4px 0 0; color: var(--llwr-muted); font-size: 15px; }

/* PLZ passt nicht zur Straße */
.llwr-suggest { margin-top: 18px; padding: 14px 16px; border-radius: calc(var(--llwr-radius) - 4px); background: var(--llwr-warn-soft); color: var(--llwr-text); display: flex; flex-direction: column; gap: 12px; }
.llwr-suggest p { margin: 0; font-size: 15px; }
.llwr-suggest__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.llwr .llwr-suggest .llwr-btn { min-height: 42px; padding: 9px 18px; font-size: 14px; }
@media (max-width: 520px) { .llwr-suggest__btns .llwr-btn { flex: 1 1 100%; } }

.llwr-visit .llwr-consent { margin-top: 0; }

/* Hinweis unter dem Telefonfeld */
.llwr-help { margin: -8px 0 0; font-size: 13px; color: var(--llwr-muted); }

/* Bestätigung „Ergebnis per E-Mail unterwegs“ */
.llwr-sent { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 0; padding: 12px 16px; border-radius: calc(var(--llwr-radius) - 4px); background: var(--llwr-accent-soft); color: var(--llwr-text); font-size: 15px; }
.llwr-sent svg { width: 20px; height: 20px; flex: none; margin-top: 1px; fill: none; stroke: var(--llwr-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.llwr-sent strong { overflow-wrap: anywhere; }

/* Ergebnis an weitere Adresse senden */
.llwr-share { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.llwr-share__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.llwr-share__row p { margin: 0; font-size: 15px; color: var(--llwr-muted); }
.llwr .llwr-share .llwr-btn { min-height: 44px; padding: 10px 20px; font-size: 14px; }
.llwr-share--form { padding: clamp(18px, 4vw, 24px); border: 1.5px solid var(--llwr-border); border-radius: var(--llwr-radius); }
.llwr-share__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
@media (max-width: 520px) { .llwr-share__form { grid-template-columns: 1fr; } .llwr-share__row .llwr-btn { flex: 1 1 100%; } }
.llwr-share .llwr-error { margin: 0; }
.llwr-share__done { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 16px; border-radius: calc(var(--llwr-radius) - 4px); background: var(--llwr-accent-soft); color: var(--llwr-text); font-size: 15px; overflow-wrap: anywhere; }
.llwr-share__done svg { width: 20px; height: 20px; flex: none; margin-top: 1px; fill: none; stroke: var(--llwr-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.llwr-share__done em { color: var(--llwr-muted); font-style: normal; }
