/* Förderantrag-Formular auf /buchung — ergänzt smd-kalender.css und benutzt
   dessen Bausteine (.smd-position-row, .smd-fahrtkosten, .smd-totals, ...)
   weiter. Hier steht nur, was es dort noch nicht gibt. */

.smd-fa-container {
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 900px;
    margin: 2rem auto 0;
}

/* Angeschnittene Ansicht: das Formular steht vollständig im DOM, ist aber auf
   eine Teilhöhe begrenzt und blendet nach unten in Weiss aus. Erst „alles
   anzeigen" hebt die Begrenzung auf. */
.smd-fa-clamp {
    position: relative;
    max-height: 420px;
    overflow: hidden;
}

.smd-fa-clamp.smd-fa-open {
    max-height: none;
    overflow: visible;
}

.smd-fa-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 220px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 55%, #fff 100%);
}

.smd-fa-clamp.smd-fa-open .smd-fa-fade {
    display: none;
}

.smd-fa-expand-wrap {
    text-align: center;
    margin-top: -1rem;
    position: relative;
    z-index: 1;
}

.smd-fa-expand-btn {
    padding: 0.75rem 1.75rem;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
}

.smd-fa-expand-btn:hover {
    background: #4f46e5;
}

/* Abschnitte */
.smd-fa-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.smd-fa-section:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.smd-fa-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.smd-fa-hint {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.smd-fa-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.smd-fa-grid-3 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2rem;
    gap: 0.5rem;
    align-items: end;
    margin-bottom: 0.5rem;
}

.smd-fa-field label {
    display: block;
    font-size: 0.8125rem;
    color: #4b5563;
    margin-bottom: 0.25rem;
}

.smd-fa-field input,
.smd-fa-field select,
.smd-fa-field textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-family: inherit;
    background: #fff;
}

.smd-fa-field input:focus,
.smd-fa-field select:focus,
.smd-fa-field textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.smd-fa-field-full {
    grid-column: 1 / -1;
}

/* Beantragte Fördersumme */
.smd-fa-ergebnis {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 0.5rem;
    padding: 1rem;
}

.smd-fa-ergebnis-label {
    font-size: 0.75rem;
    color: #4338ca;
    margin-bottom: 0.25rem;
}

.smd-fa-ergebnis-betrag {
    font-size: 1.375rem;
    font-weight: 600;
    color: #312e81;
}

.smd-fa-remove-btn {
    padding: 0.5rem 0;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1rem;
}

.smd-fa-remove-btn:hover {
    color: #ef4444;
}

.smd-fa-actions {
    margin-top: 1.5rem;
}

@media (max-width: 640px) {
    .smd-fa-grid,
    .smd-fa-grid-3 {
        grid-template-columns: 1fr;
    }
}
