.calculator-page {
  padding: var(--s8) var(--s4);
  min-height: 80vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.calculator {
  max-width: 480px;
  width: 100%;
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.calc-header {
  background: var(--primary-container);
  color: #fff;
  padding: var(--s6) var(--s8);
}
.calc-header h1 {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}
.calc-header p {
  font-size: 0.85rem;
  opacity: 0.75;
  font-weight: 500;
}

.calc-body {
  padding: 1.75rem 2rem 2rem;
}

.calculator .field {
  margin-bottom: 1.25rem;
}
.calculator .field label {
  display: block;
  font-family: var(--font-headline);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.calculator .field select,
.calculator .field input[type="number"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid rgba(0, 53, 39, 0.10);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--on-surface);
  background: var(--surface-card);
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.calculator .field select:focus,
.calculator .field input:focus {
  outline: none;
  border-color: var(--primary-bright);
}
.calculator .field select:focus-visible,
.calculator .field input:focus-visible {
  outline: 3px solid var(--primary-bright);
  outline-offset: 2px;
}
.calculator .field .hint {
  font-size: 0.8rem;
  color: var(--on-surface-muted);
  margin-top: 0.3rem;
}

.btn-bereken {
  width: 100%;
  padding: 14px 36px;
  background: var(--primary-bright);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--shadow-cta);
  margin-top: 0.25rem;
  line-height: 1;
}
.btn-bereken:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}
.btn-bereken:focus-visible {
  outline: 3px solid var(--primary-bright);
  outline-offset: 3px;
}

.result {
  background: var(--primary-wash-lightest);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-top: 1.25rem;
  display: none;
  border-top: 3px solid var(--primary-bright);
}
.result.visible {
  display: block;
}

.result-number {
  font-family: var(--font-headline);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.result-unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--on-surface-secondary);
}
.result-detail {
  font-size: 0.85rem;
  color: var(--on-surface-secondary);
  margin-top: 0.4rem;
}

.breakdown {
  margin-top: 1rem;
  border-top: 1px solid var(--primary-wash-light);
  padding-top: 0.75rem;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.25rem 0;
  color: var(--on-surface-secondary);
}
.breakdown-row.total {
  font-weight: 700;
  color: var(--primary);
  border-top: 1px solid rgba(0, 53, 39, 0.10);
  margin-top: 0.4rem;
  padding-top: 0.5rem;
  font-size: 0.9rem;
}

.tip {
  background: var(--primary-wash-lightest);
  border-left: 3px solid var(--primary-bright);
  padding: 0.9rem 1.1rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--on-surface-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  line-height: 1.55;
}

@media (max-width: 520px) {
  .calculator-page { padding: var(--s4) var(--s2); }
  .calc-header { padding: 1.25rem 1.5rem; }
  .calc-body { padding: 1.5rem; }
  .result-number { font-size: 1.8rem; }
}
