/* Allgemeine Body-Styles für den Farbverlauf */
body {
    background: linear-gradient(45deg, #e0e0e0, #add8e6); /* Diagonal von LightGray nach LightBlue */
    min-height: 100vh; /* Mindestens die volle Höhe des Viewports */
    display: flex;
    flex-direction: column;
    color: #333; /* Standard-Textfarbe */
    font-family: 'Roboto Variable', sans-serif;
    text-rendering: optimizeLegibility;
    font-weight: 800;
}

a {
    font-family: 'Roboto Variable', sans-serif;
    letter-spacing: -1px;
}

/* Header/Navbar Anpassungen */
.navbar {
    background: linear-gradient(to right, #0056b3, #007bff); /* Ein kräftiger Blau-Verlauf für die Navbar */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.navbar-brand, .navbar-nav .nav-link {
    color: #ffffff !important; /* Weiße Schrift für Kontrast */
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #cceeff !important; /* Helleres Blau beim Hover */
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Hauptinhaltsbereich */
main {
    flex-grow: 1; /* Nimmt den verfügbaren Platz ein */
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Formen (Registrierung, Login) */
.card, .form-control {
    border-radius: 0.75rem; /* Abgerundete Ecken für moderne Optik */
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #007bff; /* Standard-Blau von Bootstrap */
    border-color: #007bff;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3; /* Dunkleres Blau beim Hover */
    border-color: #004085;
}

/* Akzentfarben für Handball (Orange/Blau) */
.text-handball-orange {
    color: #ff6f00; /* Ein kräftiges Orange */
}

.bg-handball-blue {
    background-color: #007bff; /* Ein helleres Blau */
    color: #fff;
}

/* Crispy Forms spezifische Anpassungen */
.crispy_form {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9); /* Leicht transparenter Hintergrund für die Form */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
}

/* Footer */
footer {
    background-color: #343a40; /* Dunkler Hintergrund */
    color: #ffffff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

/* Autocomplete Vorschläge */
#verein-suggestions {
    position: absolute; /* Wichtig für die korrekte Positionierung */
    width: calc(100% - 30px); /* Passt sich der Breite des Inputfeldes an */
    max-height: 200px; /* Begrenzt die Höhe, wenn viele Vorschläge */
    overflow-y: auto; /* Scrollbar bei Überlauf */
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 1000; /* Stellt sicher, dass es über anderen Elementen liegt */
    border-radius: 0 0 0.75rem 0.75rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#verein-suggestions .list-group-item {
    border-left: none;
    border-right: none;
    cursor: pointer;
    padding: 0.75rem 1.25rem;
    color: #333;
    transition: background-color 0.2s ease;
}

#verein-suggestions .list-group-item:hover {
    background-color: #f0f0f0;
}

#verein-suggestions .list-group-item.text-muted,
#verein-suggestions .list-group-item.text-danger {
    font-style: italic;
    color: #6c757d !important;
}

/* Beispiele für Verwendung der Handball-Akzentfarben (optional) */
/* .card-header-handball {
    background-color: #ff6f00;
    color: white;
} */

.gruppe-frozen {
    border: 3px solid #003366; /* Dunkelblau */
    box-shadow: 0 0 10px 2px #003366;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
}

.kategorie-bg-maennlich {
    background: linear-gradient(115deg, #e3f2fd 40%, #90caf9 100%);
}
.kategorie-bg-weiblich {
    background: linear-gradient(135deg, #fce4ec 60%, #f06292 100%);
}
.kategorie-bg-gemischt {
    background: linear-gradient(135deg, #e8f5e9 60%, #66bb6a 100%);
}
.kategorie-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin: 0 12px 32px 12px;
    min-width: 340px;
    display: inline-block;
    vertical-align: top;
}
.gruppen-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}


.filter-sticky {
    position: sticky;
    top: 0px; /* Passe ggf. an die Höhe deiner Navbar an */
    z-index: 1020;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: none;
}
a.btn {
    display: grid;
    align-items: center;
    /* font-size: 1.6rem; */
}