/* Globale Definitionen */
:root {
    --primary-color: #2d5a27;
    --secondary-color: #8b5a2b;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-muted: #6c757d;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.navbar-brand {
    font-family: 'Montserrat', sans-serif;
}

.text-shadow {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* --- Automatische Link-Styles für Fließtexte (heller Hintergrund) --- */
p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(45, 90, 39, 0.3);
    transition: all 0.3s ease;
}

p a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Navbar im bläulichen Anthrazit */
.navbar {
    background-color: rgba(43, 62, 80, 0.98);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #1e3d1a;
    border-color: #1e3d1a;
}

#hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('/home/images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* --- Breiterer Container für den Statistik-Bereich --- */
.container-wide {
    width: 100%;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 992px) {
    .container-wide {
        padding-right: 3rem;
        padding-left: 3rem;
        max-width: 96%;
    }
}

@media (min-width: 1600px) {
    .container-wide {
        max-width: 1500px;
    }
}

.showcase-row {
    padding: 60px 0;
}

.feature-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.feature-img:hover {
    transform: scale(1.02);
}

/* Feature Animationen */
.image-fade-container {
    position: relative;
    width: 100%;
    line-height: 0;
}

.fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeCycle 6s infinite ease-in-out;
}

@keyframes fadeCycle {

    0%,
    20% {
        opacity: 0;
    }

    40%,
    60% {
        opacity: 1;
    }

    80%,
    100% {
        opacity: 0;
    }
}

.image-detection-container {
    position: relative;
    width: 100%;
    line-height: 0;
}

.detection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.detection-circle {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: drawCircle 5s infinite ease-in-out;
}

@keyframes drawCircle {

    0%,
    15% {
        stroke-dashoffset: 1200;
        opacity: 0;
    }

    35%,
    75% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    90%,
    100% {
        stroke-dashoffset: 1200;
        opacity: 0;
    }
}

/* Kontrast-Bereich Statistiken */
.bg-contrast {
    background-color: #e2e6ea;
}

section {
    scroll-margin-top: 80px;
}

/* Footer im bläulichen Anthrazit */
.footer-anthracite {
    background-color: #2b3e50;
}

.footer-text-muted {
    color: #adb5bd;
}

/* Link im Footer-Copyright Bereich */
.footer-text-muted a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.footer-text-muted a:hover {
    opacity: 1;
    border-bottom-color: #ffffff;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

footer h5 {
    color: #ffffff;
}

hr.border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* =========================================
   NEU: Auth-Seiten (Login, Teilnahme, PW)
   ========================================= */

/* Feststehender Hintergrund, der unter allem liegt (Wrapper-Ansatz) */
.auth-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('/home/images/bg2.jpg') no-repeat center center;
    background-size: cover;
    z-index: -1;
}

/* Farb-Gradient Overlay mit Blur */
.auth-bg .auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.25), rgba(43, 62, 80, 0.45));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Glassmorphism Effekt für die Formular-Karten */
.glass-card {
    background: rgba(255, 255, 255, 0.15);
    /* Sehr transparent */
    backdrop-filter: blur(16px);
    /* Starker Glas-Blur */
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    /* Lichtkante oben */
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    /* Lichtkante links */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    color: #ffffff;
    /* Schrift im Glas ist weiß */
}

/* Textfarben innerhalb des Glases anpassen */
.glass-card h4,
.glass-card label {
    color: #ffffff;
}

.glass-card .text-muted,
.glass-card .form-text {
    color: rgba(255, 255, 255, 0.75) !important;
}

.glass-card a {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

.glass-card a:hover {
    color: #e0e0e0;
    border-bottom-color: #ffffff;
}

/* Transparente Eingabefelder passend zum Glas */
.glass-card .form-control {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.glass-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.glass-card .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Checkbox-Styling im Glas */
.glass-card .form-check-input {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.glass-card .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}