/* Eigener Stil für die App */
:root {
    /* Dein neuer Farbcode als Hauptfarbe für Bootstrap */
    --bs-primary: #313a45;
    --bs-primary-rgb: 49, 58, 69; /* Das sind die RGB-Werte für #313a45 */

    /* Deine neue Farbe als Standard-Schriftfarbe */
    --bs-body-color: #313a45;

    --bs-body-font-family: 'Inter', sans-serif;
}


/* Stabile Höhen für robustes Layout auf allen Geräten */
html, body {
    height: 100%;
    overflow: hidden; /* Verhindert, dass die ganze Seite scrollt */
}

body { background-color: #f8f9fa; }
.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: #164a82;
    --bs-btn-hover-border-color: #164a82;
}

.view:not(.active) {
    display: none !important;
}
.view.active {
    display: block;
    height: 100%;
    overflow-y: auto; /* NEU: Erlaubt vertikales Scrollen, NUR wenn der Inhalt zu lang ist */
    -webkit-overflow-scrolling: touch; /* NEU: Sorgt für flüssiges, "natives" Scrollen auf Apple-Geräten */
}

.app-header {
    background-color: var(--bs-primary);
    color: white;
    position: sticky; top: 0; z-index: 1020;
}
#offline-indicator, #view-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    text-align: center; z-index: 9999; flex-direction: column; padding: 1rem;
}
#offline-indicator {
    background-color: rgba(0, 0, 0, 0.7); color: white;
}
#view-loader {
    background-color: #f8f9fa;
}
#resend-code-link.disabled {
    color: var(--bs-secondary-color);
    pointer-events: none;
    text-decoration: none;
}
#app-container {
    visibility: hidden;
    height: 100%; /* Stellt sicher, dass der Container die volle Höhe hat */
}
.selection-list {
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.selection-list .list-group-item span,
.selection-list .list-group-item small{
    font-size: 12px;
}

.scrollable-main {
    flex-grow: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#scroll-down-button {
    position: absolute;
    bottom: 85px; /* Abstand zum Eingabefeld */
    right: 20px;
    z-index: 1030;
}