/* ═══════ FÖRDERRECHNER STYLES ═══════ */

/* Helles Layout für Förderrechner */
body.fn-grid-bg {
  background-color: #fafbfc;
  background-image: linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  color: #1a2b3c;
}

/* Hero heller Hintergrund */
body.fn-grid-bg .lt-hero {
  background: #fff;
}

body.fn-grid-bg .lt-hero__title {
  color: #111827;
}

body.fn-grid-bg .lt-hero__subtitle {
  color: #4b5563;
}

body.fn-grid-bg .lt-hero__badge {
  background: #e8f4fd;
  color: #1a1a1a;
  border: none;
  border-radius: 4px;
}

body.fn-grid-bg .lt-hero__metric-value {
  color: #111827;
}

body.fn-grid-bg .lt-hero__metric-label {
  color: #6b7280;
}

/* Trust Bar hell */
body.fn-grid-bg .lt-trust-bar {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

body.fn-grid-bg .lt-trust-bar__item {
  color: #374151;
}

body.fn-grid-bg .lt-trust-bar__icon {
  color: #66ff7e;
}

/* Sektionen hell */
body.fn-grid-bg .lt-section {
  background: transparent;
  padding: 4rem 0;
}

body.fn-grid-bg .lt-section--alt {
  background: #fff;
}

body.fn-grid-bg .lt-section__badge {
  display: inline-block;
  background: #e8f4fd;
  color: #1a1a1a;
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

body.fn-grid-bg .lt-section__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

body.fn-grid-bg .lt-faq-section .lt-section__header {
  margin-bottom: 0.5rem;
}

body.fn-grid-bg .lt-section__title {
  color: #111827;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 0.5rem 0;
}

body.fn-grid-bg .lt-section__subtitle {
  color: #4b5563;
}

/* FAQ hell */
body.fn-grid-bg .lt-faq__item {
  background: #fff;
  border-color: #e5e7eb;
}

body.fn-grid-bg .lt-faq__question {
  color: #1a2b3c;
}

body.fn-grid-bg .lt-faq__answer {
  color: #4b5563;
}

/* CTA Sektion hell */
.fr-cta-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
  border-top: 1px solid #d1fae5;
}

.fr-cta h2 {
  color: #111827 !important;
}

.fr-cta p {
  color: #4b5563 !important;
}

/* Kontaktformular hell */
body.fn-grid-bg .lt-contact {
  background: #fff;
}

body.fn-grid-bg .lt-contact__title {
  color: #111827;
}

body.fn-grid-bg .lt-contact__subtitle {
  color: #4b5563;
}

body.fn-grid-bg .lt-contact__info-item {
  color: #374151;
}

body.fn-grid-bg .lt-form__input,
body.fn-grid-bg .lt-form__select,
body.fn-grid-bg .lt-form__textarea {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #111827;
}

body.fn-grid-bg .lt-form__label {
  color: #374151;
}

/* Related Section hell */
body.fn-grid-bg .related-section {
  background: #fff;
}

body.fn-grid-bg .related-card {
  background: #f9fafb;
  border-color: #e5e7eb;
}

body.fn-grid-bg .related-card:hover {
  background: #f0fdf4;
  border-color: #66ff7e;
}

body.fn-grid-bg .related-card__title {
  color: #111827;
}

body.fn-grid-bg .related-card__desc {
  color: #6b7280;
}

/* Tabs */
.fr-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.fr-tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid #1a1a24;
  border-radius: 8px;
  background: transparent;
  color: #1a1a24;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fr-tabs__btn:hover {
  border-color: #1a1a24;
  color: #1a1a24;
  background: #66ff7e;
}

.fr-tabs__btn--active {
  border-color: #1a1a24;
  color: #1a1a24;
  background: #66ff7e;
}

/* Panels */
.fr-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.fr-panel--active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fr-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.fr-panel__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 0.5rem;
}

.fr-panel__desc {
  color: #5a6b7c;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Form Fields */
.fr-field {
  margin-bottom: 1.25rem;
}

.fr-field__label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #2a3b4c;
  margin-bottom: 0.4rem;
}

.fr-field__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Manrope', sans-serif;
  color: #1a2b3c;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fr-field__input:focus {
  outline: none;
  border-color: #66ff7e;
  box-shadow: 0 0 0 3px rgba(102, 255, 126, 0.15);
}

.fr-field__hint {
  display: block;
  font-size: 0.8rem;
  color: #8a9bac;
  margin-top: 0.3rem;
}

/* Gemeinde Inputs (dynamisch) */
.fr-gemeinde-inputs {
  margin-bottom: 1rem;
}

.fr-gemeinde-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.fr-gemeinde-row label {
  font-size: 0.85rem;
  color: #5a6b7c;
  min-width: 100px;
}

.fr-gemeinde-row input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: 'Manrope', sans-serif;
}

.fr-gemeinde-row input:focus {
  outline: none;
  border-color: #66ff7e;
  box-shadow: 0 0 0 3px rgba(102, 255, 126, 0.15);
}

/* Buttons */
.fr-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: 8px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fr-btn--calc {
  background: #66ff7e;
  color: #191919;
}

.fr-btn--calc:hover {
  background: #55ee6d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 255, 126, 0.3);
}

.fr-btn--export {
  background: #1a2b3c;
  color: #fff;
  margin-right: 0.75rem;
  margin-top: 0.5rem;
}

.fr-btn--export:hover {
  background: #2a3b4c;
  transform: translateY(-2px);
}

.fr-btn--export-xlsx {
  background: #66ff7e;
  color: #000;
}

.fr-btn--export-xlsx:hover {
  background: #258a4a;
}

/* Result Panel */
.fr-result {
  background: #fff;
  border: 2px solid #e8f5e9;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 100px;
}

.fr-result__header h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1rem;
  color: #5a6b7c;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.fr-result__amount {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #66ff7e;
  margin-bottom: 1.5rem;
}

.fr-result__details {
  border-top: 1px solid #e8f5e9;
  padding-top: 1rem;
}

.fr-result__row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #5a6b7c;
  border-bottom: 1px solid #f0f4f0;
}

.fr-result__row:last-child {
  border-bottom: none;
}

.fr-result__row--highlight {
  font-weight: 700;
  color: #66ff7e;
  font-size: 1rem;
  background: rgba(102, 255, 126, 0.06);
  padding: 0.65rem 0.5rem;
  border-radius: 6px;
  margin: 0.25rem -0.5rem;
}

.fr-result__placeholder {
  color: #8a9bac;
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem 0;
}

.fr-result__bar {
  margin-top: 1.25rem;
  height: 8px;
  background: #e8f5e9;
  border-radius: 4px;
  overflow: hidden;
}

.fr-result__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #66ff7e, #66ff7e);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.fr-result__bar-label {
  display: block;
  font-size: 0.8rem;
  color: #5a6b7c;
  margin-top: 0.4rem;
  text-align: right;
}

/* Export Section */
.fr-export {
  text-align: right;
  padding: 2rem 0;
  border-top: 1px solid #e2e8f0;
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Förderstufen Tabelle */
.fr-stufen-table {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.fr-stufen-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.fr-stufen-table th {
  background: #1a2b3c;
  color: #fff;
  padding: 1rem 1.25rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
}

.fr-stufen-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #f0f4f0;
  font-size: 0.92rem;
  color: #2a3b4c;
}

.fr-stufen-table tr:last-child td {
  border-bottom: none;
}

.fr-stufen-table tr:hover td {
  background: rgba(102, 255, 126, 0.04);
}

.fr-stufe-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}

.fr-stufe-badge--1 { background: #66ff7e; }
.fr-stufe-badge--2 { background: #2e8b57; }
.fr-stufe-badge--3 { background: #4caf50; }
.fr-stufe-badge--4 { background: #ff9800; }
.fr-stufe-badge--5 { background: #f57c00; }
.fr-stufe-badge--6 { background: #e65100; }

/* Förderbare Kosten Grid */
.fr-kosten-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.fr-kosten-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.fr-kosten-card h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.fr-kosten-card--yes h4 { color: #66ff7e; }
.fr-kosten-card--no h4 { color: #c62828; }

.fr-kosten-card--yes { border-left: 4px solid #66ff7e; }
.fr-kosten-card--no { border-left: 4px solid #ef5350; }

.fr-kosten-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fr-kosten-card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: #3a4b5c;
  border-bottom: 1px solid #f5f5f5;
}

.fr-kosten-card li:last-child {
  border-bottom: none;
}

.fr-kosten-card--yes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #66ff7e;
  font-weight: 700;
}

.fr-kosten-card--no li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #c62828;
  font-weight: 700;
}

/* Intro Section */
.fr-intro {
  max-width: 100%;
  margin: 0;
  margin-top: 1.5rem;
}

.fr-intro p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #3a4b5c;
  margin-bottom: 1.5rem;
}

.fr-intro__hint {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(102, 255, 126, 0.08);
  border: 1px solid rgba(102, 255, 126, 0.2);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}

.fr-intro__hint svg {
  flex-shrink: 0;
  color: #66ff7e;
  margin-top: 2px;
}

.fr-intro__hint span {
  font-size: 0.88rem;
  color: #3a4b5c;
  line-height: 1.6;
}

/* CTA Section */
.fr-cta-section {
  background: linear-gradient(135deg, #1a2b3c 0%, #0f1f2e 100%);
  border-radius: 0;
}

.fr-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.fr-cta h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.fr-cta p {
  color: #b0c4d8;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.fr-cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 768px) {
  .fr-tabs {
    flex-direction: column;
  }

  .fr-tabs__btn {
    width: 100%;
    justify-content: center;
  }

  .fr-panel__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .fr-result {
    position: static;
  }

  .fr-kosten-grid {
    grid-template-columns: 1fr;
  }

  .fr-stufen-table {
    margin: 0 -1rem;
    border-radius: 0;
  }

  .fr-stufen-table th,
  .fr-stufen-table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
  }

  .fr-result__amount {
    font-size: 2rem;
  }

  .fr-export {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .fr-btn--export {
    margin-right: 0;
    width: 100%;
    justify-content: center;
  }
}

/* Accent-green Override für hellen Hintergrund */
body.fn-grid-bg .accent-green {
  color: #66ff7e;
}
