/* ===== GEHALTSRECHNER PAGE ===== */

/* Hero override */
.gr-hero { text-align: center; padding: 64px 0 80px; }
.gr-hero h1 { max-width: 800px; margin: 0 auto 16px; font-size: 2.6rem; }
.gr-hero .hero-sub { max-width: 640px; margin: 0 auto 32px; }
.gr-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); padding: 6px 16px; border-radius: 24px; font-size: 0.82rem; color: var(--slate-300); margin-bottom: 24px; }

/* Calculator wrapper */
.gr-calc-wrap { max-width: 680px; margin: -48px auto 0; position: relative; z-index: 10; }

/* Calculator card */
.gr-card { background: #fff; border-radius: 20px; box-shadow: 0 8px 40px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.06); overflow: hidden; }
.gr-card-header { background: linear-gradient(135deg, var(--frost-600), var(--frost-700)); padding: 24px 32px; color: #fff; }
.gr-card-header h2 { font-size: 1.3rem; margin: 0; color: #fff; }
.gr-card-header p { font-size: 0.88rem; color: rgba(255,255,255,0.8); margin-top: 4px; }
.gr-card-body { padding: 32px; }

/* Step indicators */
.gr-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 32px; padding: 0 8px; }
.gr-step-item { display: flex; align-items: center; gap: 0; }
.gr-step-dot { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; border: 2px solid var(--slate-200); color: var(--slate-400); background: #fff; transition: all 0.3s ease; flex-shrink: 0; }
.gr-step-dot.active { border-color: var(--frost-600); background: var(--frost-600); color: #fff; }
.gr-step-dot.done { border-color: var(--emerald-500); background: var(--emerald-500); color: #fff; }
.gr-step-line { width: 32px; height: 2px; background: var(--slate-200); transition: background 0.3s; }
.gr-step-line.done { background: var(--emerald-500); }

/* Form groups */
.gr-group { margin-bottom: 24px; }
.gr-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; color: var(--slate-800); }
.gr-group label .gr-step-label { display: inline-block; background: var(--frost-50); color: var(--frost-600); font-size: 0.72rem; padding: 2px 8px; border-radius: 10px; margin-left: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; vertical-align: middle; }
.gr-group select {
  width: 100%; padding: 14px 16px; border: 2px solid var(--slate-200); border-radius: 12px;
  font-size: 0.95rem; font-family: inherit; background: #fff; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gr-group select:focus { outline: none; border-color: var(--frost-500); box-shadow: 0 0 0 4px rgba(26,124,230,0.1); }
.gr-group select.filled { border-color: var(--emerald-500); }

/* Experience slider */
.gr-slider-wrap { margin-top: 8px; }
.gr-slider {
  width: 100%; height: 8px; -webkit-appearance: none; appearance: none;
  background: linear-gradient(to right, var(--frost-500) var(--pct, 33%), var(--slate-200) var(--pct, 33%));
  border-radius: 4px; outline: none; cursor: pointer;
}
.gr-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px;
  background: var(--frost-600); border: 3px solid #fff; border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2); cursor: pointer; transition: transform 0.15s;
}
.gr-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.gr-slider::-moz-range-thumb {
  width: 28px; height: 28px; background: var(--frost-600); border: 3px solid #fff;
  border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,0.2); cursor: pointer;
}
.gr-slider-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--slate-500); margin-top: 6px; }
.gr-slider-value {
  text-align: center; font-family: 'Fraunces', serif; font-size: 1.5rem;
  font-weight: 600; color: var(--frost-600); margin-top: 8px;
}

/* Calculate button */
.gr-btn {
  display: block; width: 100%; padding: 18px; border-radius: 12px;
  font-weight: 700; font-size: 1.1rem; cursor: pointer; border: none;
  font-family: inherit; margin-top: 8px; transition: all 0.3s;
  background: linear-gradient(135deg, var(--frost-600), var(--frost-700));
  color: #fff; box-shadow: 0 4px 16px rgba(13,95,184,0.25);
}
.gr-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(13,95,184,0.35); }
.gr-btn:active { transform: translateY(0); }
.gr-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ===== RESULT AREA ===== */
.gr-result { display: none; margin-top: 28px; animation: fadeInUp 0.5s ease-out; }
.gr-result.show { display: block; }

/* Main salary display */
.gr-salary-display {
  background: linear-gradient(135deg, var(--slate-900), #0D2847);
  border-radius: 16px; padding: 32px; text-align: center; color: #fff; margin-bottom: 20px;
}
.gr-salary-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate-300); margin-bottom: 8px; }
.gr-salary-number {
  font-family: 'Fraunces', serif; font-size: 3rem; font-weight: 700; color: var(--frost-300);
  margin-bottom: 4px; transition: color 0.3s;
}
.gr-salary-monthly { font-size: 0.9rem; color: var(--slate-300); margin-bottom: 16px; }
.gr-salary-monthly strong { color: #fff; }

/* Salary range bar */
.gr-range-bar { position: relative; margin: 20px 0 12px; }
.gr-range-track { height: 12px; background: var(--slate-200); border-radius: 6px; position: relative; overflow: visible; }
.gr-range-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--amber-500), var(--frost-500), var(--emerald-500)); position: absolute; left: 0; top: 0; width: 100%; }
.gr-range-marker {
  position: absolute; top: -6px; width: 24px; height: 24px;
  background: #fff; border: 3px solid var(--frost-600); border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2); transition: left 0.8s ease; transform: translateX(-50%);
}
.gr-range-marker.green { border-color: var(--emerald-500); }
.gr-range-marker.amber { border-color: var(--amber-500); }
.gr-range-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--slate-500); margin-top: 8px; }

/* Comparison text */
.gr-comparison {
  padding: 16px 20px; border-radius: 12px; font-size: 0.92rem; line-height: 1.6;
  margin-bottom: 20px; font-weight: 500;
}
.gr-comparison.above { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.gr-comparison.at { background: var(--frost-50); color: var(--frost-700); border: 1px solid var(--frost-200); }
.gr-comparison.below { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* Netto breakdown */
.gr-netto-card {
  background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 12px;
  padding: 20px; margin-bottom: 20px;
}
.gr-netto-title { font-weight: 700; font-size: 0.82rem; text-transform: uppercase; color: var(--slate-500); letter-spacing: 0.04em; margin-bottom: 12px; }
.gr-netto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gr-netto-item { text-align: center; }
.gr-netto-value { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 600; color: var(--slate-900); }
.gr-netto-label { font-size: 0.78rem; color: var(--slate-500); }

/* CTA buttons */
.gr-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.gr-cta {
  display: block; padding: 16px 20px; border-radius: 12px; font-weight: 600;
  font-size: 0.95rem; text-align: center; text-decoration: none; transition: all 0.2s;
}
.gr-cta-primary { background: var(--emerald-600); color: #fff; }
.gr-cta-primary:hover { background: var(--emerald-700); color: #fff; text-decoration: none; transform: translateY(-1px); }
.gr-cta-secondary { background: #fff; color: var(--frost-600); border: 2px solid var(--frost-200); }
.gr-cta-secondary:hover { border-color: var(--frost-500); color: var(--frost-600); text-decoration: none; }

/* Reset button */
.gr-reset { display: inline-block; margin-top: 16px; font-size: 0.85rem; color: var(--slate-500); cursor: pointer; background: none; border: none; font-family: inherit; text-decoration: underline; }
.gr-reset:hover { color: var(--frost-600); }

/* ===== TRUST SECTION ===== */
.gr-trust { text-align: center; padding: 48px 0; }
.gr-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 720px; margin: 0 auto; }
.gr-trust-item { text-align: center; }
.gr-trust-icon { font-size: 2rem; margin-bottom: 8px; }
.gr-trust-value { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 600; color: var(--slate-900); }
.gr-trust-label { font-size: 0.85rem; color: var(--slate-500); }

/* ===== FAQ ===== */
.gr-faq { max-width: 720px; margin: 0 auto; }
.gr-faq-item { border-bottom: 1px solid var(--slate-200); }
.gr-faq-q { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 1rem; color: var(--slate-900); }
.gr-faq-q::after { content: '+'; font-size: 1.4rem; color: var(--frost-600); transition: transform 0.3s; }
.gr-faq-q.open::after { transform: rotate(45deg); }
.gr-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s; color: var(--slate-600); line-height: 1.7; }
.gr-faq-a.open { max-height: 300px; padding-bottom: 20px; }

/* ===== PROFILES GRID ===== */
.gr-profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gr-profile-link {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--slate-200); border-radius: 10px;
  text-decoration: none; color: var(--slate-900); font-size: 0.9rem; font-weight: 500;
  transition: all 0.2s;
}
.gr-profile-link:hover { border-color: var(--frost-300); box-shadow: 0 2px 12px rgba(0,0,0,0.06); text-decoration: none; transform: translateY(-1px); }
.gr-profile-median { font-family: 'Fraunces', serif; font-weight: 600; color: var(--frost-600); font-size: 0.85rem; margin-left: auto; white-space: nowrap; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .gr-hero h1 { font-size: 1.7rem; }
  .gr-calc-wrap { margin-top: -32px; }
  .gr-card-body { padding: 20px; }
  .gr-card-header { padding: 20px; }
  .gr-step-line { width: 16px; }
  .gr-step-dot { width: 30px; height: 30px; font-size: 0.78rem; }
  .gr-salary-number { font-size: 2.2rem; }
  .gr-salary-display { padding: 24px 16px; }
  .gr-trust-grid { grid-template-columns: 1fr; gap: 20px; }
  .gr-profiles { grid-template-columns: 1fr; }
  .gr-netto-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gr-steps { gap: 0; }
  .gr-step-line { width: 10px; }
}
