/* Budgetrechner (/budgetrechner). Navigation, Footer, Schlusskarte und die
   Grundtypografie kommen aus blog.css; hier steht nur, was die Seite zusätzlich braucht. */

.calc-main { max-width: 1200px; margin: 0 auto; padding: 156px 32px 0; display: flex; flex-direction: column; gap: 128px; }

/* ===== Rechner ===== */
.calc-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.calc-hero h1 { margin-top: 14px; font-size: clamp(40px, 4.8vw, 68px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.calc-sub { margin-top: 18px; font-size: 19px; line-height: 1.5; color: rgba(240, 237, 230, 0.72); max-width: 30em; text-wrap: pretty; }

.calc-fields { margin-top: 40px; display: flex; flex-direction: column; gap: 26px; }
.calc-field { display: flex; flex-direction: column; gap: 12px; }
.calc-field-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.calc-field-head label { font-size: 16px; font-weight: 600; color: #F0EDE6; }
.calc-amount {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px 0 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-variant-numeric: tabular-nums;
  transition: border-color .2s ease;
}
.calc-amount:focus-within { border-color: rgba(134, 168, 131, 0.8); }
.calc-amount-prefix { font-size: 13px; color: rgba(240, 237, 230, 0.5); }
.calc-amount input {
  width: 8ch;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #F0EDE6;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  outline: none;
}

.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --fill: 0%;
}
.calc-range:focus { outline: none; }
.calc-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, #86A883 var(--fill), rgba(255, 255, 255, 0.12) var(--fill));
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border-radius: 50%;
  border: 0;
  background: #F0EDE6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  transition: box-shadow .2s ease;
}
.calc-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(134, 168, 131, 0.55); }
.calc-range::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.calc-range::-moz-range-progress { height: 6px; border-radius: 999px; background: #86A883; }
.calc-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: #F0EDE6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.calc-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(134, 168, 131, 0.55); }


/* Ergebnis: Budgetring wie in der App, darunter die Antwort von Filo */
.calc-result-col { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.calc-ring-wrap { position: relative; width: min(100%, 380px); aspect-ratio: 1 / 1; container-type: inline-size; }
.calc-ring { width: 100%; height: 100%; display: block; }
.calc-ring circle { transition: stroke-dasharray .35s cubic-bezier(.22,.8,.24,1); }
.calc-ring-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 13%; }
.calc-ring-text { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 3cqw; text-align: center; }
.calc-ring-label { font-size: 3.2cqw; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(240, 237, 230, 0.5); white-space: nowrap; }
.calc-ring-amount {
  display: block;
  max-width: 100%;
  font-size: 11.5cqw;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #F0EDE6;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: color .2s ease;
}
.calc-ring-amount.is-over { color: #FFB464; }

.calc-chat { width: min(100%, 420px); display: flex; flex-direction: column; gap: 8px; }
.calc-chat-bubble {
  margin: 0;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(134, 168, 131, 0.10);
  border: 0.5px solid rgba(134, 168, 131, 0.18);
  font-size: 15px;
  line-height: 22px;
  color: #F0EDE6;
  text-wrap: pretty;
}

/* ===== Abschnitte ===== */
.calc-section-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.calc-section-head h2 { font-size: clamp(30px, 3.6vw, 52px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
.calc-section-head--wide { max-width: none; }
/* Satzteile bleiben zusammen: Umbruch nur zwischen den Sätzen, nie mitten im Satz. */
.calc-h2-part { display: inline-block; }

.calc-cards { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.calc-card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.calc-card-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #86A883;
  color: #1A1B1E;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.calc-card-icon { width: 32px; height: 32px; color: #86A883; }
.calc-card-icon svg { width: 100%; height: 100%; display: block; }
.calc-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.calc-card p { font-size: 15px; line-height: 1.6; color: rgba(240, 237, 230, 0.72); }

/* «Deine Rechnung»: die Rechnung mit den eigenen Zahlen */
.calc-eq {
  margin-top: 16px;
  padding: 24px 28px 26px;
  border-radius: 24px;
  background: rgba(134, 168, 131, 0.08);
  border: 1px solid rgba(134, 168, 131, 0.24);
}
.calc-eq-title { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #A4C2A1; }
.calc-eq-row { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 24px; }
.calc-eq-item { display: flex; align-items: flex-start; gap: 14px; }
.calc-eq-op { font-size: 24px; font-weight: 300; line-height: 1.2; color: rgba(240, 237, 230, 0.5); }
.calc-eq-cell { display: flex; flex-direction: column; gap: 4px; }
.calc-eq-value { font-size: 24px; font-weight: 300; letter-spacing: -0.02em; line-height: 1.2; color: #F0EDE6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-eq-item--result .calc-eq-value { color: #A4C2A1; font-weight: 600; }
.calc-eq-small { font-size: 13px; line-height: 1.4; color: rgba(240, 237, 230, 0.55); }

/* ===== Häufige Fragen (einfache Liste) ===== */
.calc-faq-list { margin-top: 32px; max-width: 760px; display: flex; flex-direction: column; }
.calc-faq-item { padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, 0.10); display: flex; flex-direction: column; gap: 12px; }
.calc-faq-item:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.10); }
.calc-faq-item h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; text-wrap: balance; }
.calc-faq-item p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(240, 237, 230, 0.72); max-width: 40em; text-wrap: pretty; }
.calc-chips { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.calc-chips li {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  color: rgba(240, 237, 230, 0.82);
}
.calc-faq-link { margin-top: 6px; align-self: flex-start; font-size: 15px; font-weight: 600; color: #A4C2A1; text-decoration: none; transition: color .2s ease; }
.calc-faq-link:hover { color: #C0D6BE; }

/* ===== Schlusskarte: so breit wie die grüne Karte der Startseite, rechts nur der App-Store-Button ===== */
.blog-end--calc { max-width: 1200px; padding-left: 32px; padding-right: 32px; }
/* Titel der Schlusskarte in der Grösse der Abschnittstitel dieser Seite (Gewicht, Zeilenhöhe und Laufweite sind bereits gleich). */
.blog-end--calc .v3-final-text h2 { font-size: clamp(30px, 3.6vw, 52px); }
@media (max-width: 880px) {
  .blog-end--calc { padding-left: 16px; padding-right: 16px; }
  .blog-end--calc .v3-final-text h2 { font-size: clamp(28px, 8.4vw, 36px); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .calc-hero { gap: 40px; }
}
@media (max-width: 880px) {
  .calc-main { padding: calc(env(safe-area-inset-top, 0px) + 104px) 16px 0; gap: 88px; }
  .calc-hero { grid-template-columns: 1fr; gap: 44px; }
  .calc-hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .calc-sub { font-size: 17px; }
  .calc-fields { margin-top: 32px; }
  .calc-ring-wrap { width: min(100%, 320px); }
  .calc-section-head h2 { font-size: clamp(28px, 8.4vw, 36px); }
  .calc-cards { margin-top: 28px; grid-template-columns: 1fr; }
  .calc-card { padding: 24px; }
  .calc-eq { padding: 22px 22px 24px; border-radius: 20px; }
  .calc-eq-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .calc-eq-item { align-items: baseline; }
  .calc-eq-item .calc-eq-op { width: 18px; }
  .calc-eq-item:first-child .calc-eq-cell { margin-left: 32px; }
  .calc-eq-value { font-size: 22px; }
  .calc-faq-item { padding: 22px 0; }
  .calc-faq-item h3 { font-size: 18px; }
  .calc-faq-item p { font-size: 15px; }
}
@media (max-width: 420px) {
  .calc-field-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .calc-ring circle, .calc-ring-amount, .calc-amount, .calc-range::-webkit-slider-thumb { transition: none; }
}
