  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    background: #f5f5f5;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    color: #333;
    padding: 32px 16px 64px;
  }

  .foerderantrag-wrapper {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    padding: 32px;
  }

  /* ── Kopfbereich ── */
  .fa-title {
    color: #005288;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
  }
  .fa-intro {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 28px;
  }

  /* ── Abschnitt-Header ── */
  .section {
    margin-bottom: 18px;
    border: 1px solid #dde3ea;
    border-radius: 6px;
    overflow: hidden;
  }
  .section-header {
    background: #005288;
    color: #fff;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    border-radius: 0;
  }
  .section-header:hover { background: #004070; }
  .section-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
  }
  .section-badge {
    background: rgba(255,255,255,0.25);
    color: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
  }
  .section-arrow {
    font-size: 18px;
    transition: transform 0.25s;
    line-height: 1;
  }
  .section.open .section-arrow { transform: rotate(180deg); }

  .section-body {
    display: none;
    padding: 24px 20px;
    border-top: none;
  }
  .section.open .section-body { display: block; }

  /* ── Formular-Hilfsmittel ── */
  .form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }
  .form-group {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 120px;
  }
  .form-group.narrow  { flex: 0 0 90px; min-width: 80px; }
  .form-group.medium  { flex: 0 0 140px; min-width: 120px; }
  .form-group.wide    { flex: 2 1 0; }
  .form-group.full    { flex: 1 1 100%; }
  .form-group--plz    { flex: 0 0 110px; }

  label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin-bottom: 4px;
  }
  label .req { color: #c0392b; margin-left: 2px; }
  .req { color: #c0392b; font-weight: 600; }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="date"],
  input[type="number"],
  select,
  textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    color: #222;
    background: #fff;
    transition: border-color 0.2s;
    appearance: auto;
  }
  input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #005288;
    box-shadow: 0 0 0 3px rgba(0,82,136,0.10);
  }
  input.invalid, select.invalid, textarea.invalid {
    border-color: #c0392b;
    background: #fff5f5;
  }
  textarea { resize: vertical; }

  /* ── Subheadlines ── */
  .sub-headline {
    color: #005288;
    font-weight: 600;
    font-size: 14px;
    border-left: 3px solid #005288;
    padding-left: 10px;
    margin: 22px 0 14px;
  }
  .sub-headline-sm {
    color: #005288;
    font-weight: 600;
    font-size: 13px;
    margin: 18px 0 10px;
  }

  /* ── Hinweis-Box ── */
  .hint-box {
    background: #eaf3fb;
    border-left: 4px solid #005288;
    padding: 10px 14px;
    font-size: 13px;
    color: #333;
    border-radius: 0 4px 4px 0;
    margin-bottom: 16px;
    line-height: 1.55;
  }

  /* ── Tabellen für Kostenpositionen ── */
  .cost-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 6px;
  }
  .cost-table th {
    background: #f0f4f8;
    color: #444;
    padding: 7px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    border-bottom: 1px solid #dde3ea;
  }
  .cost-table td {
    padding: 5px 6px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
  }
  .cost-table td input[type="text"],
  .cost-table td input[type="number"] {
    padding: 5px 7px;
    font-size: 13px;
  }
  .cost-table td input[type="number"] { text-align: right; }
  .cost-table .total-row td {
    background: #f7f9fb;
    font-weight: 600;
    color: #005288;
    border-top: 2px solid #dde3ea;
  }
  .cost-table .col-desc  { width: 48%; }
  .cost-table .col-betrag{ width: 22%; }
  .cost-table .col-ges   { width: 22%; }
  .cost-table .col-del   { width: 8%; text-align: center; }
  .cost-table .col-mg    { width: 44%; }
  .cost-table .col-b2    { width: 22%; }
  .cost-table .col-chk   { width: 28%; }

  .chk-cell { display: flex; gap: 14px; align-items: center; }
  .chk-cell label { font-size: 12px; color: #555; display: flex; align-items: center; gap: 4px; cursor: pointer; }
  .chk-cell input[type="checkbox"] { width: auto; }

  .btn-add-row {
    background: none;
    border: 1px dashed #005288;
    color: #005288;
    padding: 5px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    margin-top: 4px;
    transition: background 0.2s;
  }
  .btn-add-row:hover { background: #eaf3fb; }

  .btn-del-row {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 3px;
    transition: color 0.2s;
  }
  .btn-del-row:hover { color: #c0392b; }

  /* ── Eigenanteil / Gesamt ── */
  .summary-row {
    display: flex;
    gap: 14px;
    margin-top: 12px;
  }
  .summary-item {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .summary-item label { font-size: 12px; color: #666; margin-bottom: 4px; }

  .total-highlight {
    border: 2px solid #005288 !important;
    background: #f0f7ff !important;
    font-weight: 700;
    color: #005288;
  }

  .bold-label {
    font-weight: 700;
    color: #222;
  }

  /* ── Anhänge ── */
  .upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  @media (max-width: 560px) { .upload-grid { grid-template-columns: 1fr; } }

  .upload-group label {
    font-size: 12px;
    color: #555;
    margin-bottom: 6px;
    display: block;
  }
  .upload-btn-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .upload-btn {
    display: inline-block;
    background: #f0f4f8;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 7px 14px;
    font-size: 13px;
    cursor: pointer;
    color: #333;
    font-family: inherit;
    transition: background 0.2s;
    white-space: nowrap;
  }
  .upload-btn:hover { background: #dde6f0; }
  input[type="file"] { display: none; }
  .upload-file-name { font-size: 12px; color: #666; }

  .hint-upload {
    font-size: 12px;
    color: #888;
    margin-bottom: 14px;
  }

  /* ── Erklärung ── */
  .erklaerung-text {
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px;
    font-size: 13px;
    color: #444;
    line-height: 1.65;
    margin-bottom: 18px;
  }
  .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
  }
  .checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #005288;
  }
  .checkbox-group label {
    font-size: 13px;
    color: #333;
    cursor: pointer;
    line-height: 1.5;
  }
  .checkbox-group label .req { color: #c0392b; }
  .checkbox-group.invalid label { color: #c0392b; }

  /* ── Submit-Bereich ── */
  .submit-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 28px;
    gap: 10px;
  }
  .btn-submit {
    background: #005288;
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
  }
  .btn-submit:hover:not(:disabled) { background: #004070; }
  .btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

  .msg-success {
    background: #e8f5e9;
    border: 1px solid #66bb6a;
    color: #2e7d32;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 14px;
    text-align: right;
    display: none;
  }
  .msg-error {
    background: #fdecea;
    border: 1px solid #ef9a9a;
    color: #b71c1c;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 14px;
    text-align: right;
    display: none;
  }

  /* ── Erfolgs-Bestätigung ── */
  .success-box {
    display: none;
    background: #e8f5e9;
    border: 1px solid #66bb6a;
    border-left: 5px solid #2e7d32;
    border-radius: 6px;
    padding: 24px 28px;
    color: #1b5e20;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 16px;
    text-align: center;
  }
  .success-box .success-icon {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
  }

  /* ── Art der Einreichung ── */
  .einreichung-auswahl {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #f0f4f8;
    border: 1px solid #dde3ea;
    border-radius: 6px;
    padding: 14px 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
  .einreichung-label {
    font-size: 14px;
    font-weight: 600;
    color: #005288;
    margin-right: 8px;
  }
  .einreichung-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
  }
  .einreichung-auswahl.invalid {
    border-color: #c0392b;
    background: #fff5f5;
  }
  .einreichung-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #005288;
    cursor: pointer;
  }

  /* ── Utility ── */
  .input-total   { font-weight: 700; }
  .label-primary { color: #005288; }
  .link-primary  { color: #005288; }
  .mt-22         { margin-top: 22px; }
  .mt-28         { margin-top: 28px; }
  .mt-14         { margin-top: 14px; }

  /* ── Responsive ── */
  @media (max-width: 600px) {
    .foerderantrag-wrapper { padding: 18px 12px; }
    .form-row { flex-direction: column; gap: 10px; }
    .form-group.narrow, .form-group.medium, .form-group.wide { flex: 1 1 100%; }
    .summary-row { flex-direction: column; }
    .upload-grid { grid-template-columns: 1fr; }
    .btn-submit { width: 100%; }
    .submit-area { align-items: stretch; }
    .msg-success, .msg-error { text-align: left; }
  }
