/* MallorcaExperts Projektkosten-Rechner — scoped under .me-calc (Flexbox only) */

.me-calc {
  --me-calc-bg: #f6f5f2;
  --me-calc-surface: #fff;
  --me-calc-soft: #fff9f3;
  --me-calc-accent-bg: #fff2e6;
  --me-calc-text: #1f1f1f;
  --me-calc-muted: #6f6f73;
  --me-calc-light: #949498;
  --me-calc-primary: #ee7300;
  --me-calc-primary-hover: #d96500;
  --me-calc-primary-dark: #b95700;
  --me-calc-primary-soft: #fff0e3;
  --me-calc-border: #eae6e0;
  --me-calc-border-light: #f1ede8;
  --me-calc-radius-s: 14px;
  --me-calc-radius-m: 20px;
  --me-calc-radius-l: 28px;
  --me-calc-shadow: 0 20px 60px rgba(31, 31, 31, 0.08);
  --me-calc-shadow-s: 0 8px 24px rgba(31, 31, 31, 0.05);

  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--me-calc-surface);
  border: 1px solid var(--me-calc-border);
  border-radius: var(--me-calc-radius-l);
  box-shadow: var(--me-calc-shadow);
  color: var(--me-calc-text);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.me-calc button,
.me-calc input {
  font: inherit;
}

.me-calc button {
  -webkit-tap-highlight-color: transparent;
}

.me-calc__header {
  position: relative;
  padding: 38px 40px 34px;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--me-calc-border);
}

.me-calc__header::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 28px;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(238, 115, 0, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 14px rgba(238, 115, 0, 0.05),
    0 0 0 28px rgba(238, 115, 0, 0.025);
  pointer-events: none;
}

.me-calc__eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--me-calc-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.me-calc__header h1,
.me-calc__header .me-calc__title {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 0 13px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.me-calc__header h1 em,
.me-calc__header .me-calc__title em {
  color: var(--me-calc-primary);
  font-style: normal;
}

.me-calc__header p {
  position: relative;
  z-index: 1;
  max-width: 710px;
  margin: 0;
  color: var(--me-calc-muted);
  font-size: 16px;
}

.me-calc__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.me-calc__inputs {
  flex: 1 1 420px;
  min-width: 0;
  padding: 34px 38px 38px;
  border-right: 1px solid var(--me-calc-border);
}

.me-calc__results {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 34px;
  background: var(--me-calc-soft);
}

.me-calc__field {
  margin-bottom: 30px;
}

.me-calc__field:last-child {
  margin-bottom: 0;
}

.me-calc__label {
  display: block;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 800;
}

.me-calc__hint {
  color: var(--me-calc-muted);
  font-size: 13px;
  font-weight: 500;
}

.me-calc__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.me-calc__option {
  flex: 1 1 calc(50% - 5px);
  min-width: 140px;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--me-calc-text);
  text-align: left;
  cursor: pointer;
  background: var(--me-calc-surface);
  border: 1px solid var(--me-calc-border);
  border-radius: var(--me-calc-radius-s);
  box-shadow: 0 1px 0 rgba(31, 31, 31, 0.02);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.me-calc__option:hover {
  color: var(--me-calc-primary);
  border-color: rgba(238, 115, 0, 0.5);
  box-shadow: var(--me-calc-shadow-s);
  transform: translateY(-1px);
}

.me-calc__option.is-active {
  color: var(--me-calc-primary);
  background: var(--me-calc-primary-soft);
  border-color: var(--me-calc-primary);
  box-shadow: inset 0 0 0 1px rgba(238, 115, 0, 0.08);
}

.me-calc__option strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.me-calc__segments {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.me-calc__segment {
  flex: 1 1 30%;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--me-calc-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: var(--me-calc-surface);
  border: 1px solid var(--me-calc-border);
  border-radius: var(--me-calc-radius-s);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.me-calc__segment:hover {
  color: var(--me-calc-primary);
  border-color: rgba(238, 115, 0, 0.5);
  transform: translateY(-1px);
}

.me-calc__segment.is-active {
  color: #fff;
  background: var(--me-calc-primary);
  border-color: var(--me-calc-primary);
}

.me-calc__range {
  display: flex;
  align-items: center;
  gap: 18px;
}

.me-calc__range input[type="range"] {
  width: 100%;
  min-width: 0;
  height: 6px;
  cursor: pointer;
  accent-color: var(--me-calc-primary);
}

.me-calc__range-value {
  flex: 0 0 auto;
  min-width: 106px;
  padding: 11px 13px;
  text-align: center;
  background: var(--me-calc-soft);
  border: 1px solid var(--me-calc-border-light);
  border-radius: var(--me-calc-radius-s);
}

.me-calc__range-value strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.me-calc__range-value span {
  color: var(--me-calc-muted);
  font-size: 12px;
  font-weight: 600;
}

.me-calc__extras {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.me-calc__extra {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  cursor: pointer;
  background: var(--me-calc-surface);
  border: 1px solid var(--me-calc-border-light);
  border-radius: var(--me-calc-radius-s);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.me-calc__extra:hover {
  background: #fffcf9;
  border-color: rgba(238, 115, 0, 0.45);
  transform: translateY(-1px);
}

.me-calc__extra input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--me-calc-primary);
  flex: 0 0 auto;
}

.me-calc__extra strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.me-calc__extra small {
  display: block;
  margin-top: 3px;
  color: var(--me-calc-muted);
  font-size: 12px;
}

.me-calc__card {
  padding: 28px;
  color: var(--me-calc-text);
  background: var(--me-calc-surface);
  border: 1px solid var(--me-calc-border);
  border-radius: var(--me-calc-radius-m);
  box-shadow: var(--me-calc-shadow-s);
}

.me-calc__card .me-calc__eyebrow {
  margin-bottom: 10px;
}

.me-calc__project {
  margin-bottom: 7px;
  color: var(--me-calc-muted);
  font-size: 14px;
  font-weight: 600;
}

.me-calc__price {
  margin-bottom: 9px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.me-calc__sep {
  padding: 0 0.16em;
  color: var(--me-calc-primary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.me-calc__desc {
  color: var(--me-calc-muted);
  font-size: 13px;
}

.me-calc__details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.me-calc__detail {
  flex: 1 1 calc(50% - 5px);
  min-width: 120px;
  padding: 15px;
  background: var(--me-calc-surface);
  border: 1px solid var(--me-calc-border-light);
  border-radius: var(--me-calc-radius-s);
}

.me-calc__detail span {
  display: block;
  margin-bottom: 4px;
  color: var(--me-calc-muted);
  font-size: 12px;
  font-weight: 600;
}

.me-calc__detail strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.me-calc__note {
  margin-top: 16px;
  padding: 16px 17px;
  color: var(--me-calc-muted);
  font-size: 13px;
  background: var(--me-calc-surface);
  border: 1px solid var(--me-calc-border-light);
  border-radius: var(--me-calc-radius-s);
}

.me-calc__note strong {
  color: var(--me-calc-text);
}

.me-calc__cta {
  margin-top: 18px;
  padding: 24px;
  background: var(--me-calc-primary-soft);
  border: 1px solid rgba(238, 115, 0, 0.24);
  border-radius: var(--me-calc-radius-m);
}

.me-calc__cta .me-calc__eyebrow {
  margin-bottom: 8px;
}

.me-calc__cta h2 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.me-calc__cta p {
  margin: 0 0 17px;
  color: var(--me-calc-muted);
  font-size: 14px;
}

.me-calc__cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 13px 19px;
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  background: var(--me-calc-primary);
  border-radius: var(--me-calc-radius-s);
  box-shadow: 0 10px 24px rgba(238, 115, 0, 0.22);
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.me-calc__cta-btn:hover {
  background: var(--me-calc-primary-hover);
  box-shadow: 0 12px 28px rgba(238, 115, 0, 0.28);
  transform: translateY(-1px);
  color: #fff !important;
}

.me-calc__cta-btn:active {
  background: var(--me-calc-primary-dark);
  transform: translateY(0);
}

.me-calc__cta-sub {
  display: block;
  margin-top: 10px;
  color: var(--me-calc-muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.me-calc__footer {
  padding: 17px 30px 21px;
  color: var(--me-calc-light);
  font-size: 12px;
  text-align: center;
  border-top: 1px solid var(--me-calc-border);
}

@media (max-width: 900px) {
  .me-calc__inputs {
    flex: 1 1 100%;
    padding: 28px 26px;
    border-right: 0;
    border-bottom: 1px solid var(--me-calc-border);
  }

  .me-calc__results {
    flex: 1 1 100%;
    padding: 26px;
  }

  .me-calc__header h1,
  .me-calc__header .me-calc__title {
    font-size: 32px;
  }
}

@media (max-width: 560px) {
  .me-calc {
    border-radius: 22px;
  }

  .me-calc__header {
    padding: 28px 22px 25px;
  }

  .me-calc__header::after {
    display: none;
  }

  .me-calc__header h1,
  .me-calc__header .me-calc__title {
    font-size: 28px;
  }

  .me-calc__option {
    flex: 1 1 100%;
  }

  .me-calc__segment {
    flex: 1 1 100%;
  }

  .me-calc__range {
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
  }

  .me-calc__range-value {
    width: 100%;
  }

  .me-calc__detail {
    flex: 1 1 100%;
  }

  .me-calc__price {
    font-size: 28px;
  }

  .me-calc__inputs,
  .me-calc__results {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .me-calc * {
    transition: none !important;
  }
}
