.register-form-fields {
    border: none; 
    padding: 0; 
    margin: 0;
}

.status-message-none {
    display: none;
}

.register-form-fieldset {
     margin-top: 25px; 
     margin-bottom: 20px; 
     padding: 15px 20px;
     border: 1px solid #cbd5e1; 
     border-radius: 8px;
}

.register-legend-jahrgang {
    padding: 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e3a8a;
    font-family: sans-serif;
}

.tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

/* Versteckt die standardmäßige, hässliche Browser-Checkbox komplett */
.tag-item input[type="checkbox"],
.tag-item input[type="radio"] {
    display: none;
}

/* Das Aussehen der klickbaren Jahreskachel (Tag) */
.tag-label {
    display: inline-block;
    padding: 6px 14px;
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.tag-label:hover {
    background-color: #e2e8f0;
}

/* 🌟 WENN GEKLICKT: Die Kachel färbt sich automatisch in deine Systemfarbe ein! */
.tag-item input:checked + .tag-label {
    background-color: #369dfa; /* Deine vordefinierte Stufenfarbe */
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 6px rgba(54, 157, 250, 0.3);
}

/* 📱 Mobil-Optimierung für kleine Bildschirme */
@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 15px !important;
    }
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.avatar-delete {
    position: absolute !important;
    /* 🧩 Die Zauberformel für das halbe Überlappen: 
       Wir schieben das Icon genau auf die rechte und untere Außenkante (-10px) */
    bottom: 20px !important;
    right: 0px !important;
    
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    
    width: 28px !important;
    height: 28px !important;
    background-color: #ffffff !important; /* Weißer Kreis */
    color: #ef4444 !important;           /* Rotes Kreuz */
    
    border: 2px solid #ef4444 !important; /* Roter Außenring */
    border-radius: 50% !important;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease-in-out !important;
    padding: 0 !important;
    z-index: 10 !important;
    display: none;
}

/* Hover-Effekt: Invertiert die Farben edel beim Drüberfahren */
.avatar-delete:hover {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    transform: scale(1.1);
}