html {
    font-size: 14px;
}
#site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
}
#fragen-antworten-bereich form.mb-4 {
    position: sticky;
    top: var(--navbar-height, 70px);
    z-index: 1020;
    background-color: #fff;
    padding-top: .5rem;
    padding-bottom: .5rem;
}
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}


.suche-input {
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

    .suche-input:focus {
        font-size: 1.1rem;
        padding: 0.6rem 1.2rem;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        border-color: #86b7fe;
        z-index: 1;
    }



.accordion-button:not(.collapsed) {
    background-color: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
}

/* Suche Zurücksetzen Button */
.btn-suche-reset {
    background-color: white;
    border: 1px solid #dee2e6;
    color: #495057;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

    .btn-suche-reset:hover {
        background-color: #e2e6ea;
        border-color: #adb5bd;
        color: #343a40;
    }

/* Antwort-Bereich in dunkleren Grauton */
.bg-answer-gray {
    background-color: #e9ecef !important;
}

/* 1. Antwort-Block im Formular */
.antwort-block {
    background-color: #e9ecef !important;
    border-left: 4px solid #6c757d !important;
}

.bg-antwort-dunkel {
    background-color: #e9ecef;
    color: #495057;
}


@media (max-width: 767.98px) {
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.5rem 0.5rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    /* Kleinere Buttons im Mobile etwas größer machen (z.B. Edit/Delete) */
    .btn-sm {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    /* Abstände in Listen vergrößern */
    .list-group-item {
        margin-bottom: 8px;
        border-radius: 8px !important;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    /* Button-Gruppen & Gaps bei Flexbox anpassen für breitere Abstände */
    .d-flex.gap-1 {
        gap: 0.5rem !important;
    }

    .d-flex.gap-2 {
        gap: 0.75rem !important;
    }

    /* Mobile Suche Input Input-Feld leicht vergrößern */
    .suche-input {
        min-height: 48px;
    }

    /* Padding-Korrekturen für das Hauptfenster (damit nichts am Rand klebt) */
    .container, .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Form-Controls vergrößern für besseres Tippen */
    .form-control, .form-select {
        min-height: 44px;
        font-size: 1rem;
    }

    /* Suche Bereich umbauen mit Flexbox */
    form.mb-4 .input-group {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 8px; /* Abstand zwischen den Elementen */
    }

        form.mb-4 .input-group > .suche-input {
            flex: 0 0 100%; /* Input nimmt die volle Breite ein */
            border-radius: 8px !important;
        }

        form.mb-4 .input-group > .btn-suche-reset,
        form.mb-4 .input-group > .btn-primary {
            flex: 1; /* Teilt den Platz 50:50 unter dem Input auf */
            margin: 0;
            border-radius: 8px !important;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
}
