/* Allgemeine Einstellungen */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1; /* Füllt den verfügbaren Platz */
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
}

@media (max-height: 820px) {
    footer {
        position: relative; /* Haftet am unteren Bildschirmrand */
        bottom: 0;
    }
}

/* Container */
.container-md {
    max-width: 720px !important; /* Erzwingt die korrekte maximale Breite */
    margin: 0 auto; /* Zentriert den Container */
    padding: 15px; /* Standard-Padding */
}

/* Übergangssektionen */
.classification-section {
    opacity: 0; /* Startzustand: Unsichtbar */
    transform: translateY(-30px); /* Startzustand: Leicht nach unten verschoben */
    transition: 1000ms; /* Übergangseffekte */
	pointer-events: none;
	}

.classification-section.classified {
    opacity: 1; /* Sichtbar */
    transform: translateY(0); /* Zurück zur Originalposition */
}

#responseOutput, #responseOutputTitle {
    position: relative;
}

#responseOutputTitle {
    z-index: 10;
}

.classification-section #responseOutput {
    opacity: 0; /* Startzustand: Unsichtbar */
    transform: translateY(-70px); /* Startzustand: Leicht nach unten verschoben */
    transition: 1000ms; /* Übergangseffekte */
    z-index: 5;
    background: #f2ece3 !important;
}

.classification-section.classified #responseOutput {
    opacity: 1; /* Sichtbar */
    transform: translateY(0); /* Zurück zur Originalposition */
}

/* Bootstrap Buttons */
.btn-primary, .btn--primary {
    background-color: #d2b48c; /* Hellbraun */
    border-color: #d2b48c;
    color: #ffffff; /* Weißer Text */
}

.btn-primary:hover, .btn--primary:hover {
    background-color: #c6a37e; /* Dunkleres Hellbraun */
    border-color: #c6a37e;
    color: #ffffff;
}

.btn-primary:focus, .btn--primary:focus {
    background-color: #c6a37e; /* Dunkleres Hellbraun */
    border-color: #c6a37e;
    box-shadow: 0 0 0 0.2rem rgba(198, 163, 126, 0.5); /* Fokus-Glanz */
    color: #ffffff;
}

.btn-primary:active, .btn--primary:active {
    background-color: #b89472; /* Noch dunkleres Hellbraun */
    border-color: #b89472;
    color: #ffffff;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); /* Klick-Effekt */
}

.btn-primary:disabled, .btn--primary:disabled {
    background-color: #e6d5c3; /* Blasser Hellbrauner Hintergrund */
    border-color: #e6d5c3;
    color: #ffffff;
    opacity: 0.65;
}

.btn-outline-primary {
    background-color: transparent;
    border-color: #d2b48c; /* Hellbrauner Rahmen */
    color: #d2b48c; /* Hellbrauner Text */
}

.btn-outline-primary:hover {
    background-color: #d2b48c; /* Hellbrauner Hintergrund */
    border-color: #d2b48c;
    color: #ffffff !important;
}

.btn-outline-primary:focus {
    background-color: #c6a37e; /* Dunkleres Hellbraun */
    border-color: #c6a37e;
    box-shadow: 0 0 0 0.2rem rgba(198, 163, 126, 0.5); /* Fokus-Glanz */
    color: #ffffff;
}

.btn-outline-primary:active {
    background-color: #b89472; /* Noch dunkleres Hellbraun */
    border-color: #b89472;
    color: #ffffff;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); /* Klick-Effekt */
}

.btn-outline-primary:disabled {
    background-color: transparent;
    border-color: #e6d5c3; /* Blasser Rahmen */
    color: #e6d5c3; /* Blasser Text */
    opacity: 0.65;
}

.btn-primary:focus, .btn-primary:active, .btn-primary:visited,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:focus, .btn-outline-primary:active,
.btn-outline-primary:not(:disabled):not(.disabled):active {
    color: #ffffff !important;
    background-color: #b89472 !important;
    border-color: #b89472 !important;
}

.btn-outline-primary:visited {
    color: #b89472;
}

/* Links */
a {
    color: #d2b48c;
    text-decoration: none;
}

a:hover {
    color: #c6a37e;
    text-decoration: underline;
}

/* Input-Felder */
input[type="text"], input[type="search"], textarea {
    background-color: #ffffff; /* Weißer Hintergrund */
    border: 1px solid #d2b48c; /* Hellbrauner Rahmen */
    color: #5a4a3b; /* Dunklerer Text */
}

input[type="text"]:focus, input[type="search"]:focus, textarea:focus {
    border-color: #c6a37e; /* Dunkleres Hellbraun bei Fokus */
    box-shadow: 0 0 0 0.2rem rgba(198, 163, 126, 0.5);
    outline: none;
}

input::placeholder {
    color: #b89472;
}

/* Übergänge */
.btn-primary, .btn--primary, .btn-outline-primary,
input[type="text"], input[type="search"], textarea, a {
    transition: all 0.15s ease-in-out;
    text-decoration: none !important;
}

/* Fehlertexte */
span.error-text {
    font-size: 1.5rem !important;
    color: #d14444;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid #e5dac8;
    border-radius: 50%;
    border-top-color: #af9577;
    animation: spin 1s linear infinite;
    margin: auto;
}
	
#tooltip, #tooltip .text-muted, #tooltip * {
    color: #d2b48c !important;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #333333; /* Dunkler Hintergrund */
        color: #ffffff; /* Helle Schriftfarbe */
    }

    .classification-section #responseOutput {
        opacity: 0;
        transform: translateY(-70px);
        transition: 1000ms;
        z-index: 5;
        background: #d2b48c !important;
        color: #333333;
		pointer-events: none;
    }

    .text-muted {
        color: #fff !important;
    }

    #tooltip, #tooltip .text-muted, #tooltip * {
        color: #d2b48c !important;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }