/* ==========================================================================
   Community Plugin – Profilverwaltung
   ========================================================================== */

.community-profile {
    max-width: 600px;
    margin-inline: auto;
}

/* Tab-Navigation */
.community-profile__tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.community-profile__tab {
    background: none;
    border: none;
    padding: .6rem 1rem;
    font-size: 0.9em;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: none;
    margin: 0;
    border-radius: 0;
    transition: color .15s, background .15s;
    position: relative;
    bottom: -2px;
}

.community-profile__tab:hover {
    color: #374151;
}

.community-profile__tab.is-active {
    color: var(--community-white);
    background: var(--community-primary);
    border-bottom: 2px solid var(--community-primary);
}

/* Panels */
.community-profile__panel {
    display: none;
    margin-top: 1.5rem;
    clear: both;
}

.community-profile__panel.is-active {
    display: block;
}

/* Zweispaltige Zeile */
.community-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.community-form__field--zip {
    max-width: 120px;
}

/* PLZ + Stadt: 1fr + 2fr */
.community-form__row:has(.community-form__field--zip) {
    grid-template-columns: 120px 1fr;
}

/* Select */
.community-form__field select {
    padding: .6rem .85rem;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}

.community-form__field select:focus {
    border-color: var(--community-primary);
    box-shadow: 0 0 0 3px rgba(90, 156, 156, .2);
}

/* Hinweis-Text unter Feldern */
.community-form__hint {
    font-size: 0.8em;
    color: #9ca3af;
    margin-top: .15rem;
}

.community-form__intro {
    font-size: 0.875em;
    color: #6b7280;
    margin-top: 0;
    margin-bottom: 1.25rem;
}

/* Passwort-Stärke-Anzeige */
.community-password-strength {
    margin-top: .5rem;
}

.community-password-strength__bar {
    height: 5px;
    border-radius: 99px;
    transition: width .25s, background-color .25s;
    background: #d1d5db;
}

.community-password-strength__bar.strength--1 { background: var(--community-strength-1); }
.community-password-strength__bar.strength--2 { background: var(--community-strength-2); }
.community-password-strength__bar.strength--3 { background: var(--community-strength-3); }
.community-password-strength__bar.strength--4 { background: var(--community-strength-4); }
.community-password-strength__bar.strength--5 { background: var(--community-strength-5); }

.community-password-strength__label {
    font-size: 0.78em;
    color: #6b7280;
    margin-top: .2rem;
    display: block;
}

/* Responsive */
@media ( max-width: 480px ) {
    .community-form__row {
        grid-template-columns: 1fr;
    }

    .community-form__row:has(.community-form__field--zip) {
        grid-template-columns: 1fr;
    }

    .community-profile__tab {
        font-size: 0.8em;
        padding: .5rem .75rem;
    }
}
