/* layout.css - Layout und Responsive Design */
.layout-split {
    display: flex;
    gap: 30px;
    align-items: stretch; /* Geändert von flex-start auf stretch für bündige Unterkanten */
}

/* Linke Karte (Eingabe) */
.left-column {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

/* Container für die rechte Seite inkl. Buttons darunter */
.right-column-container {
    flex: 2.2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Rechte Karte (Ausgabe / Liste) */
.right-column {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    flex-grow: 1; /* Lässt den Kasten den verfügbaren Platz nach oben einnehmen */
    margin-bottom: 20px;
    max-height: 80vh; /* Erhöht die maximale Höhe wieder */
    overflow-y: auto;
}



.bottom-buttons {
    display: flex;
    gap: 15px;
}

.bottom-buttons .nav-btn {
    flex: 1;
    margin-bottom: 0;
}



/* Custom Scrollbar für die rechte Karte */
.right-column::-webkit-scrollbar {
    width: 8px;
}
.right-column::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* RESPONSIVES DESIGN (FÜR SMARTPHONES) */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .layout-split {
        flex-direction: column;
    }

    .left-column,
    .right-column {
        width: 100%;
        min-width: 0;
    }

    .right-column {
        max-height: none;
        overflow-y: visible;
    }

    /* Header-Anpassung für die mobile Ansicht */
    .right-header {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 15px;
        text-align: center;
    }

    .export-controls {
        width: 100%;
        justify-content: center;
    }

    #export-format, .export-btn {
        flex: 1;
        font-size: 14px;
    }
}