/* HZV-Mitgliedschaftsrechner – nur auf der Rechnerseite geladen, alles unter .hzv-rechner */
.hzv-rechner {
  --text: #333332;
  --blue: #0000b4;
  --blue-80: #3333c3;
  --blue-40: #9999e1;
  --blue-20: #ccccf0;
  --turquoise: #89ccca;
  --turquoise-40: #d0ebea;
  --turquoise-20: #e7f5f4;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(0, 0, 180, .20);
}

.hzv-rechner, .hzv-rechner * { box-sizing: border-box; }

.hzv-rechner { color-scheme: light; }

.hzv-rechner {
  margin: 0;
  color: var(--text);
  background: var(--turquoise-20);
  font-family: Arial, Helvetica, sans-serif;
  /* Theme vererbt 18px / 27px – Original rechnet mit Browser-Standard */
  font-size: 16px;
  line-height: normal;
}

/* Divi setzt padding-bottom an p/h1/h2 und Theme-Schrift/-Farbe an Überschriften */
.hzv-rechner p, .hzv-rechner h1, .hzv-rechner h2 { padding-bottom: 0; }
.hzv-rechner h1, .hzv-rechner h2 { color: inherit; font-family: inherit; }

.hzv-rechner button, .hzv-rechner input, .hzv-rechner select { font: inherit; }

/* min-height: 100vh des Originals entfällt – eingebettet ergäbe das Leerraum */
.hzv-rechner {
  padding: 30px;
}

.hzv-rechner .app {
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--blue-20);
  box-shadow: var(--shadow);
}

.hzv-rechner .topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 34px;
  border-bottom: 1px solid var(--blue-20);
}

.hzv-rechner .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.hzv-rechner .brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: var(--white);
  background: var(--blue);
  border-radius: 50% 50% 50% 10%;
  transform: rotate(-7deg);
}

.hzv-rechner .brand-mark svg { transform: rotate(7deg); }

.hzv-rechner .context-fields {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.hzv-rechner .context-field {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--blue-20);
  background: var(--turquoise-20);
}

.hzv-rechner .context-field label { white-space: nowrap; }

.hzv-rechner .context-value {
  color: var(--blue);
  font-weight: 700;
}

.hzv-rechner .context-field select {
  min-height: 34px;
  max-width: 220px;
  padding: 0 5px;
  border: 0;
  outline: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.hzv-rechner .context-field select:focus-visible, .hzv-rechner .money-input:focus-visible, .hzv-rechner .step-button:focus-visible, .hzv-rechner .details-toggle:focus-visible {
  outline: 3px solid var(--turquoise);
  outline-offset: 2px;
}

.hzv-rechner .hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(440px, 1.05fr);
  min-height: 610px;
}

.hzv-rechner .intro {
  position: relative;
  padding: 72px 60px 160px;
  border-right: 1px solid var(--blue-20);
}

.hzv-rechner .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.hzv-rechner .eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--blue);
}

.hzv-rechner .app .intro h1 {
  max-width: 560px;
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 55px !important;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.hzv-rechner .app .intro h1 em {
  color: var(--blue);
  font-size: inherit !important;
  font-style: normal;
}

.hzv-rechner .lead {
  max-width: 500px;
  margin: 28px 0 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
}

.hzv-rechner .logic-strip {
  position: absolute;
  left: 60px;
  right: 60px;
  bottom: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--blue-20);
}

.hzv-rechner .logic-item > span {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hzv-rechner .logic-item strong {
  font-size: 14px;
  line-height: 1.35;
}

.hzv-rechner .logic-item strong span {
  display: inline;
  margin: 0;
  font-size: inherit;
  letter-spacing: normal;
}
.hzv-rechner .logic-item:last-child { text-align: right; }
.hzv-rechner .logic-arrow { color: var(--blue); }

.hzv-rechner .calculator {
  padding: 52px 54px;
  background: var(--turquoise-20);
}

.hzv-rechner .input-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.hzv-rechner .input-label small {
  color: var(--text);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hzv-rechner .money-input-wrap {
  position: relative;
  margin-top: 12px;
  border-bottom: 2px solid var(--blue);
}

.hzv-rechner .money-input {
  width: 100%;
  padding: 4px 76px 8px 0;
  border: 0;
  outline: 0;
  color: var(--blue);
  background: transparent;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
}

.hzv-rechner .currency {
  position: absolute;
  right: 0;
  bottom: 17px;
  color: var(--blue);
  font-size: 34px;
  font-weight: 700;
}

.hzv-rechner .range-row {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 12px;
  margin: 20px 0 32px;
}

.hzv-rechner .step-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--blue-40);
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, .6);
  cursor: pointer;
}

.hzv-rechner .step-button:hover { background: var(--white); }

.hzv-rechner input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
  cursor: pointer;
}

.hzv-rechner .result-card {
  padding: 26px 28px;
  color: var(--white);
  background: var(--blue);
}

.hzv-rechner .result-card.negative { background: var(--blue-80); }

.hzv-rechner .result-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--turquoise);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hzv-rechner .status-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--blue);
  background: var(--turquoise);
}

.hzv-rechner .result-card h2 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.hzv-rechner .result-card h2 strong {
  color: var(--turquoise);
  font-weight: 700;
}

.hzv-rechner .result-card p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  line-height: 1.55;
}

.hzv-rechner .meter { margin-top: 30px; }

.hzv-rechner .meter-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hzv-rechner .meter-track {
  position: relative;
  height: 12px;
  background: linear-gradient(90deg, var(--blue-20) 0%, var(--blue-20) var(--break), var(--turquoise-40) var(--break), var(--turquoise-40) 100%);
  border: 1px solid var(--blue-40);
}

.hzv-rechner .break-even-tick {
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: var(--break);
  width: 2px;
  background: var(--blue);
  transform: translateX(-1px);
}

.hzv-rechner .break-even-tick::after {
  content: "Break-even";
  position: absolute;
  top: 23px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hzv-rechner .current-marker {
  position: absolute;
  top: 50%;
  left: var(--current);
  width: 18px;
  height: 18px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
  transform: translate(-50%, -50%);
  transition: left .2s ease;
}

.hzv-rechner .break-even-copy {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--blue-40);
  font-size: 13px;
}

.hzv-rechner .break-even-copy strong { color: var(--blue); }

.hzv-rechner .details { border-top: 1px solid var(--blue-20); }

.hzv-rechner .details-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 34px;
  border: 0;
  color: var(--blue);
  background: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.hzv-rechner .details-toggle span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hzv-rechner .details-chevron { transition: transform .2s ease; }
.hzv-rechner .details-toggle[aria-expanded="true"] .details-chevron { transform: rotate(180deg); }

.hzv-rechner .details-panel {
  padding: 6px 34px 30px;
  background: var(--white);
}

.hzv-rechner .details-panel[hidden] { display: none; }

.hzv-rechner .detail-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 18px;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--blue-20);
  font-size: 13px;
}

.hzv-rechner .detail-row strong { text-align: right; }

.hzv-rechner .detail-head {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hzv-rechner .detail-total {
  margin: 0 -12px;
  padding: 0 12px;
  color: var(--blue);
  background: var(--turquoise-20);
  border: 0;
}

.hzv-rechner .formula-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 20px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
}

.hzv-rechner .footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 34px;
  border-top: 1px solid var(--blue-20);
  color: var(--text);
  font-size: 11px;
  line-height: 1.5;
}

.hzv-rechner .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .hzv-rechner .topbar { align-items: flex-start; flex-direction: column; }
  .hzv-rechner .context-fields { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .hzv-rechner .hero { grid-template-columns: 1fr; }
  .hzv-rechner .intro { min-height: 480px; padding: 52px 36px 150px; border-right: 0; border-bottom: 1px solid var(--blue-20); }
  .hzv-rechner .logic-strip { left: 36px; right: 36px; bottom: 38px; }
  .hzv-rechner .calculator { padding: 42px 36px; }
}

@media (max-width: 620px) {
  .hzv-rechner { padding: 0; }
  .hzv-rechner .app { border-left: 0; border-right: 0; box-shadow: none; }
  .hzv-rechner .topbar { padding: 16px 20px; }
  .hzv-rechner .context-fields { flex-direction: column; }
  .hzv-rechner .context-field { width: 100%; justify-content: space-between; }
  .hzv-rechner .context-field select { max-width: 58%; }
  .hzv-rechner .intro { min-height: 530px; padding: 42px 24px 160px; }
  .hzv-rechner .app .intro h1 { font-size: 55px !important; }
  .hzv-rechner .lead { font-size: 15px; }
  .hzv-rechner .logic-strip { left: 24px; right: 24px; bottom: 30px; }
  .hzv-rechner .calculator { padding: 36px 24px; }
  .hzv-rechner .money-input { font-size: 56px; }
  .hzv-rechner .result-card { padding: 24px 22px; }
  .hzv-rechner .break-even-copy { flex-direction: column; gap: 6px; }
  .hzv-rechner .details-toggle, .hzv-rechner .details-panel, .hzv-rechner .footer { padding-left: 20px; padding-right: 20px; }
  .hzv-rechner .detail-row { grid-template-columns: minmax(100px, 1fr) 1fr 1fr; gap: 7px; font-size: 10px; }
  .hzv-rechner .detail-head { font-size: 8px; }
  .hzv-rechner .footer { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hzv-rechner, .hzv-rechner *, .hzv-rechner *::before, .hzv-rechner *::after { transition: none !important; }
}
  
