/* Rümpelrechner 2.0.7 – erstellt von Jentsch */

.rr2-calculator {
  --rr2-navy: #191d23;
  --rr2-blue: #343b45;
  --rr2-orange: #727b87;
  --rr2-ink: #24282e;
  --rr2-muted: #69717c;
  --rr2-line: #dfe3e8;
  --rr2-soft: #f6f7f8;
  --rr2-white: #ffffff;
  position: relative;
  width: min(1180px, 100%);
  margin: 32px auto;
  padding: clamp(26px, 5vw, 56px);
  overflow: hidden;
  color: var(--rr2-ink);
  background: linear-gradient(180deg, #fff 0%, #fbfbfc 100%);
  border: 1px solid #e1e4e8;
  border-radius: 24px;
  box-shadow: 0 20px 58px rgba(20, 24, 30, .09);
  box-sizing: border-box;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.rr2-calculator::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--rr2-blue);
}

.rr2-calculator *,
.rr2-calculator *::before,
.rr2-calculator *::after {
  box-sizing: inherit;
}

.rr2-calculator__intro {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.rr2-calculator__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 12px;
  color: #454c56;
  background: #f5f6f7;
  border: 1px solid #e1e4e8;
  border-radius: 999px;
  box-shadow: none;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.rr2-calculator__eyebrow span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rr2-blue);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--rr2-blue) 11%, transparent);
}

.rr2-calculator h2 {
  max-width: none;
  margin: 0;
  color: var(--rr2-navy);
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.rr2-calculator__intro > p {
  max-width: 670px;
  margin: 14px auto 0;
  color: var(--rr2-muted);
  font-size: clamp(.96rem, 1.5vw, 1.08rem);
}

.rr2-calculator__steps {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 22px auto 0;
  padding: 8px 12px;
  color: #5f6670;
  background: #f7f8f9;
  border: 1px solid #e2e5e8;
  border-radius: 999px;
  box-shadow: none;
  font-size: .77rem;
  font-weight: 750;
}

.rr2-calculator__steps span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rr2-calculator__steps b {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--rr2-white);
  background: var(--rr2-blue);
  border-radius: 50%;
  font-size: .72rem;
}

.rr2-calculator__steps span:last-child b {
  background: var(--rr2-orange);
}

.rr2-calculator__steps i {
  width: 30px;
  height: 1px;
  background: var(--rr2-line);
}

.rr2-calculator__layout {
  max-width: 790px;
  margin: 0 auto;
}

.rr2-calculator.has-result .rr2-calculator__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(315px, .65fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
  max-width: none;
  margin: 0;
}

.rr2-calculator__form {
  padding: clamp(20px, 3vw, 32px);
  background: var(--rr2-white);
  border: 1px solid #e0e3e7;
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(20, 24, 30, .055);
}

.rr2-fieldset,
.rr2-range-field {
  min-width: 0;
  margin: 0 0 17px;
  padding: 0 0 17px;
  border: 0;
  border-bottom: 1px solid #eceef1;
}

.rr2-fieldset legend,
.rr2-field-head label {
  margin: 0 0 12px;
  padding: 0;
  color: var(--rr2-navy);
  font-size: 1rem;
  font-weight: 800;
}

.rr2-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.rr2-field-head label {
  margin-bottom: 0;
}

.rr2-field-head output {
  color: var(--rr2-blue);
  font-size: 1.2rem;
  font-weight: 850;
  white-space: nowrap;
}

.rr2-choice-grid {
  display: grid;
  gap: 10px;
}

.rr2-choice-grid--objects,
.rr2-choice-grid--fill {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rr2-choice-grid--floor {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.rr2-choice-grid--access {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rr2-choice {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.rr2-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.rr2-choice > span {
  position: relative;
  display: grid;
  min-height: 58px;
  padding: 12px 10px;
  place-items: center;
  color: #474e58;
  background: #fff;
  border: 1.5px solid var(--rr2-line);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(20, 24, 30, .025);
  font-size: .91rem;
  font-weight: 750;
  text-align: center;
  transition: border-color .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.rr2-choice:hover > span {
  border-color: color-mix(in srgb, var(--rr2-blue) 55%, #fff);
  transform: translateY(-1px);
}

.rr2-choice input:checked + span {
  color: var(--rr2-white);
  background: var(--rr2-blue);
  border-color: var(--rr2-blue);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .14),
    0 8px 20px color-mix(in srgb, var(--rr2-blue) 18%, transparent);
}

.rr2-choice input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--rr2-blue) 30%, transparent);
  outline-offset: 2px;
}

.rr2-choice--stacked > span {
  min-height: 73px;
}

.rr2-choice--stacked strong,
.rr2-choice--stacked small {
  display: block;
}

.rr2-choice--stacked strong {
  font-size: .92rem;
}

.rr2-choice--stacked small {
  margin-top: 2px;
  color: #747b85;
  font-size: .69rem;
  font-weight: 650;
}

.rr2-choice--stacked input:checked + span small {
  color: rgba(255, 255, 255, .78);
}

.rr2-range-field input[type="range"] {
  width: 100%;
  height: 26px;
  margin: 12px 0 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  accent-color: var(--rr2-blue);
}

.rr2-range-field input[type="range"]::-webkit-slider-runnable-track {
  height: 7px;
  background: linear-gradient(
    to right,
    var(--rr2-blue) 0%,
    var(--rr2-blue) var(--rr2-range-progress, 0%),
    #e0e3e7 var(--rr2-range-progress, 0%),
    #e0e3e7 100%
  );
  border-radius: 999px;
}

.rr2-range-field input[type="range"]::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -8.5px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--rr2-blue);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--rr2-blue), 0 5px 13px rgba(20, 24, 30, .18);
}

.rr2-range-field input[type="range"]::-moz-range-track {
  height: 7px;
  background: #e0e3e7;
  border-radius: 999px;
}

.rr2-range-field input[type="range"]::-moz-range-progress {
  height: 7px;
  background: var(--rr2-blue);
  border-radius: 999px;
}

.rr2-range-field input[type="range"]::-moz-range-thumb {
  width: 17px;
  height: 17px;
  background: var(--rr2-blue);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--rr2-blue), 0 5px 13px rgba(20, 24, 30, .18);
}

.rr2-range-field input[type="range"]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--rr2-blue) 30%, transparent);
  outline-offset: 3px;
  border-radius: 999px;
}

.rr2-range-limits {
  display: flex;
  justify-content: space-between;
  color: #858c95;
  font-size: .76rem;
  font-weight: 650;
}

.rr2-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  margin-top: 13px;
  padding: 9px 12px;
  color: #474e58;
  background: #f7f8f9;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  font-size: .91rem;
  font-weight: 720;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.rr2-check:hover {
  background: #f1f2f4;
  border-color: color-mix(in srgb, var(--rr2-blue) 34%, #dfe3e7);
  transform: translateY(-1px);
}

.rr2-check input {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 2;
  width: 22px;
  height: 22px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  transform: translateY(-50%);
}

.rr2-check__box {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background: #fff;
  border: 1.5px solid #bfc5cc;
  border-radius: 6px;
  transition: .15s ease;
}

.rr2-check input:checked + .rr2-check__box {
  background: var(--rr2-blue);
  border-color: var(--rr2-blue);
}

.rr2-check input:checked + .rr2-check__box::after {
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  content: "";
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.rr2-check input:focus-visible + .rr2-check__box {
  outline: 3px solid color-mix(in srgb, var(--rr2-blue) 30%, transparent);
  outline-offset: 2px;
}

.rr2-fieldset--last {
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: 0;
}

.rr2-calculate {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 0;
  padding: 14px 20px;
  color: #fff;
  background: var(--rr2-blue);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 9px 22px color-mix(in srgb, var(--rr2-blue) 20%, transparent);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: filter .16s ease, transform .16s ease, box-shadow .16s ease;
}

.rr2-calculate svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.rr2-calculate:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 27px color-mix(in srgb, var(--rr2-blue) 24%, transparent);
}

.rr2-calculate:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--rr2-blue) 34%, transparent);
  outline-offset: 3px;
}

.rr2-calculate:disabled {
  cursor: wait;
  opacity: .72;
}

.rr2-calculator__form-status {
  min-height: 18px;
  margin: 10px 0 -5px;
  color: #b54708;
  font-size: .76rem;
  font-weight: 650;
  text-align: center;
}

.rr2-result[hidden] {
  display: none !important;
}

.rr2-calculate.is-loading svg {
  animation: rr2-spin 1s linear infinite;
}

.rr2-result {
  position: sticky;
  top: 24px;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--rr2-navy) 92%, #fff), var(--rr2-navy));
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(20, 24, 30, .2);
  text-align: center;
  transition: opacity .2s ease, transform .2s ease;
}

.rr2-result::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  content: "";
  background: var(--rr2-orange);
}

.rr2-result.is-stale {
  opacity: .72;
}

.rr2-result.has-updated {
  animation: rr2-result-pop .55s ease;
}

.rr2-result__icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 2px auto 17px;
  place-items: center;
  color: var(--rr2-navy);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

.rr2-result__icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: var(--rr2-blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.rr2-result__label {
  margin: 0 0 9px;
  color: rgba(255, 255, 255, .72);
  font-size: .83rem;
  font-weight: 750;
}

.rr2-result__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

.rr2-result__price small {
  color: rgba(255, 255, 255, .72);
  font-size: .95rem;
  font-weight: 750;
}

.rr2-result__price strong {
  color: #fff;
  font-size: clamp(2.45rem, 5vw, 3.55rem);
  font-weight: 900;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.rr2-result__included {
  max-width: 30ch;
  margin: 13px auto 0;
  color: rgba(255, 255, 255, .68);
  font-size: .78rem;
}

.rr2-result__divider {
  height: 1px;
  margin: 23px 0 18px;
  background: rgba(255, 255, 255, .14);
}

.rr2-result__promise {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #fff;
  font-size: .85rem;
  font-weight: 720;
  text-align: left;
}

.rr2-result__promise svg {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  padding: 4px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  background: #4f5965;
  border-radius: 50%;
}

.rr2-result__cta {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 19px;
  padding: 13px 16px;
  color: var(--rr2-navy) !important;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 11px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
  font-size: .9rem;
  font-weight: 850;
  text-decoration: none !important;
  transition: filter .16s ease, transform .16s ease;
}

.rr2-result__cta:hover {
  color: var(--rr2-navy) !important;
  filter: brightness(.96);
  transform: translateY(-1px);
}

.rr2-result__cta:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .42);
  outline-offset: 3px;
}

.rr2-result__status {
  min-height: 18px;
  margin: 12px 0 -4px;
  color: rgba(255, 255, 255, .62);
  font-size: .7rem;
}

.rr2-result.has-error .rr2-result__status {
  color: #ffd4c2;
}

.rr2-calculator__notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 22px;
  padding: 16px 18px;
  color: #626a74;
  background: var(--rr2-soft);
  border: 1px solid #e0e3e7;
  border-left: 4px solid var(--rr2-blue);
  border-radius: 11px;
}

.rr2-calculator__notice svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 1px;
  fill: none;
  stroke: var(--rr2-blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.rr2-calculator__notice p {
  margin: 0;
  font-size: .75rem;
}

@keyframes rr2-spin {
  to { transform: rotate(360deg); }
}

@keyframes rr2-result-pop {
  50% { transform: scale(1.018); }
}

/* Auf großen Bildschirmen bleibt das Formular in seiner ursprünglichen Breite.
   Der Richtpreis folgt darunter, statt die Eingabefelder zusammenzudrücken. */
@media (min-width: 901px) {
  .rr2-calculator.has-result .rr2-calculator__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(18px, 2.5vw, 26px);
    max-width: 790px;
    margin: 0 auto;
  }

  .rr2-calculator.has-result .rr2-result {
    position: relative;
    top: auto;
  }
}

@media (max-width: 900px) {
  .rr2-calculator.has-result .rr2-calculator__layout {
    grid-template-columns: 1fr;
  }

  .rr2-result {
    position: static;
  }
}

@media (max-width: 650px) {
  .rr2-calculator {
    margin: 18px auto;
    padding: 22px 13px;
    border-radius: 18px;
  }

  .rr2-calculator__intro {
    margin-bottom: 24px;
    padding-inline: 4px;
    text-align: left;
  }

  .rr2-calculator__steps {
    justify-content: flex-start;
    gap: 7px;
    margin-left: 0;
  }

  .rr2-calculator__steps i {
    width: 14px;
  }

  .rr2-calculator__form,
  .rr2-result {
    padding: 19px 15px;
    border-radius: 16px;
  }

  .rr2-choice-grid--objects,
  .rr2-choice-grid--fill {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rr2-choice-grid--floor {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rr2-choice-grid--access {
    grid-template-columns: 1fr 1fr;
  }

  .rr2-choice > span {
    min-height: 54px;
    padding-inline: 7px;
  }

  .rr2-calculator__notice {
    padding: 14px;
  }
}

@media (max-width: 390px) {
  .rr2-calculator__steps {
    font-size: .69rem;
  }

  .rr2-calculator__steps b {
    width: 22px;
    height: 22px;
  }

  .rr2-choice-grid--access {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rr2-calculator *,
  .rr2-calculator *::before,
  .rr2-calculator *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
