/* ============================================================
   Profilseite
   ============================================================ */

.profilseite {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}


/* ============================================================
   Profilkopf
   ============================================================ */

.profil-kopf {
    display: flex;
    align-items: center;
    gap: 24px;

    margin-bottom: 28px;
    padding: 28px;

    background: var(--farbe-oberflaeche);
    border: 1px solid var(--farbe-rahmen);
    border-radius: 20px;

    box-shadow: var(--schatten-dezent);
}


.profilbild-bereich {
    flex-shrink: 0;
}


.profilbild {
    display: block;

    width: 96px;
    height: 96px;

    object-fit: cover;

    border-radius: 50%;
}


.profilbild-initiale {
    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--farbe-primaer-hell);
    color: var(--farbe-primaer);

    font-size: 2rem;
    font-weight: 700;
}


.profil-kopfdaten {
    min-width: 0;
}


.profil-namezeile {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}


.profil-namezeile h1 {
    margin: 0;

    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.15;

    color: var(--farbe-text);
}


.profil-rolle {
    display: inline-flex;
    align-items: center;

    padding: 5px 10px;

    background: var(--farbe-primaer-hell);
    color: var(--farbe-primaer);

    border-radius: 999px;

    font-size: 0.8rem;
    font-weight: 700;
}


.profil-fraktion {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 10px;

    color: var(--farbe-text);
    text-decoration: none;

    font-weight: 600;
}


.profil-fraktion:hover {
    color: var(--farbe-primaer);
}


.profil-fraktionspunkt {
    width: 10px;
    height: 10px;

    flex-shrink: 0;

    border-radius: 50%;
}


.profil-fraktionsname {
    font-weight: 650;
}


.profil-fraktionskuerzel {
    color: var(--farbe-text-sekundaer);
    font-weight: 500;
}


.profil-meine-fraktion {
    display: inline-block;

    margin-top: 8px;

    color: var(--farbe-primaer);
    text-decoration: none;

    font-size: 0.9rem;
    font-weight: 600;
}


.profil-meine-fraktion:hover {
    text-decoration: underline;
}


.profil-wahlperioden {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 12px;

    font-size: 0.9rem;
    color: var(--farbe-text-sekundaer);
}


.profil-meta-label {
    font-weight: 600;
    color: var(--farbe-text);
}


/* ============================================================
   Warnung
   ============================================================ */

.profil-warnung {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 24px;
    padding: 16px 18px;

    background: var(--farbe-oberflaeche);
    border: 1px solid var(--farbe-rahmen);
    border-left: 4px solid #c58a00;

    border-radius: 14px;
}


.profil-warnung-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #fff3cd;
    color: #856404;

    font-weight: 800;
}


.profil-warnung div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.profil-warnung strong {
    color: var(--farbe-text);
}


.profil-warnung span {
    color: var(--farbe-text-sekundaer);
    font-size: 0.9rem;
}


/* ============================================================
   Allgemeine Abschnitte
   ============================================================ */

.profil-abschnitt {
    margin-bottom: 24px;
    padding: 24px;

    background: var(--farbe-oberflaeche);
    border: 1px solid var(--farbe-rahmen);
    border-radius: 18px;

    box-shadow: var(--schatten-dezent);
}


.profil-abschnitt-kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 20px;
}


.profil-abschnitt-kopf h2 {
    margin: 0;

    font-size: 1.25rem;
    font-weight: 700;

    color: var(--farbe-text);
}


.profil-abschnitt-kopf p {
    margin: 5px 0 0;

    color: var(--farbe-text-sekundaer);
    font-size: 0.9rem;
}


/* ============================================================
   Biografie
   ============================================================ */

.profil-biografie {
    padding: 18px 20px;

    background: var(--farbe-hintergrund);

    border-radius: 12px;

    color: var(--farbe-text);

    line-height: 1.7;

    white-space: pre-line;
}


.profil-hinweis {
    margin: 12px 0 0;

    color: var(--farbe-text-sekundaer);

    font-size: 0.8rem;
}


/* ============================================================
   Leere Bereiche
   ============================================================ */

.profil-leer {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 18px;

    background: var(--farbe-hintergrund);

    border-radius: 12px;

    color: var(--farbe-text-sekundaer);
}


.profil-leer-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--farbe-oberflaeche);
    border: 1px solid var(--farbe-rahmen);

    font-weight: 700;
}


.profil-leer div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.profil-leer strong {
    color: var(--farbe-text);
}


.profil-leer span {
    font-size: 0.875rem;
}


/* ============================================================
   Drucksachen
   ============================================================ */

.profil-drucksachen {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.profil-drucksache {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 16px 18px;

    color: inherit;
    text-decoration: none;

    background: var(--farbe-hintergrund);

    border: 1px solid transparent;
    border-radius: 14px;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}


.profil-drucksache:hover {
    border-color: var(--farbe-primaer);
    box-shadow: var(--schatten-dezent);
    transform: translateY(-1px);
}


.profil-drs-nummer {
    display: flex;
    flex-direction: column;
    gap: 2px;

    min-width: 105px;
}


.profil-drs-nummer span {
    color: var(--farbe-text-sekundaer);

    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


.profil-drs-nummer strong {
    color: var(--farbe-primaer);

    font-size: 0.95rem;
}


.profil-drs-inhalt {
    min-width: 0;
    flex: 1;
}


.profil-drs-titel {
    display: block;

    overflow: hidden;

    color: var(--farbe-text);

    font-weight: 650;
    line-height: 1.4;

    text-overflow: ellipsis;
}


.profil-drs-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 6px;
}


.profil-dokumenttyp {
    display: inline-flex;

    padding: 4px 8px;

    background: var(--farbe-oberflaeche);
    border: 1px solid var(--farbe-rahmen);

    border-radius: 999px;

    color: var(--farbe-text-sekundaer);

    font-size: 0.75rem;
    font-weight: 600;
}


.profil-drs-pfeil {
    flex-shrink: 0;

    color: var(--farbe-text-sekundaer);

    font-size: 1.3rem;

    transition: color 0.15s ease;
}


.profil-drucksache:hover .profil-drs-pfeil {
    color: var(--farbe-primaer);
}


/* ============================================================
   Profilverwaltung
   ============================================================ */

.profil-verwaltung {
    margin-bottom: 0;
}


.profil-aktionen {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.profil-aktion-form {
    margin: 0;
}


.profil-aktion {
    display: flex;
    align-items: center;
    gap: 14px;

    width: 100%;

    padding: 16px 18px;

    box-sizing: border-box;

    color: inherit;
    text-decoration: none;
    text-align: left;

    background: var(--farbe-hintergrund);

    border: 1px solid transparent;
    border-radius: 14px;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}


a.profil-aktion:hover,
button.profil-aktion:hover {
    border-color: var(--farbe-primaer);
    box-shadow: var(--schatten-dezent);
    transform: translateY(-1px);
}


.profil-aktion-button {
    appearance: none;
    font: inherit;
    cursor: pointer;
}


.profil-aktion-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--farbe-primaer-hell);
    color: var(--farbe-primaer);

    font-size: 1.1rem;
    font-weight: 700;
}


.profil-aktion-inhalt {
    display: flex;
    flex-direction: column;
    gap: 3px;

    min-width: 0;
    flex: 1;
}


.profil-aktion-inhalt strong {
    color: var(--farbe-text);
}


.profil-aktion-inhalt span {
    color: var(--farbe-text-sekundaer);

    font-size: 0.85rem;
    line-height: 1.4;
}


.profil-aktion-pfeil {
    flex-shrink: 0;

    color: var(--farbe-text-sekundaer);

    font-size: 1.3rem;
}


.profil-aktion-hinweis {
    cursor: default;
}


.profil-aktion-hinweis .profil-aktion-icon {
    background: var(--farbe-hintergrund);
    border: 1px solid var(--farbe-rahmen);
    color: var(--farbe-text-sekundaer);
}


.profil-aktion-hinweis:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--farbe-rahmen);
}


/* ============================================================
   Mobile
   ============================================================ */

@media (max-width: 700px) {

    .profil-kopf {
        align-items: flex-start;
        gap: 18px;

        padding: 20px;

        border-radius: 16px;
    }


    .profilbild {
        width: 76px;
        height: 76px;
    }


    .profil-namezeile h1 {
        font-size: 1.7rem;
    }


    .profil-abschnitt {
        padding: 20px;

        border-radius: 16px;
    }


    .profil-drucksache {
        align-items: flex-start;
        gap: 12px;

        padding: 15px;
    }


    .profil-drs-nummer {
        min-width: 85px;
    }

}


@media (max-width: 480px) {

    .profil-kopf {
        flex-direction: column;
    }


    .profilbild {
        width: 72px;
        height: 72px;
    }


    .profil-namezeile {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }


    .profil-fraktion {
        flex-wrap: wrap;
    }


    .profil-wahlperioden {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }


    .profil-abschnitt {
        padding: 16px;
    }


    .profil-abschnitt-kopf {
        margin-bottom: 16px;
    }


    .profil-drucksache {
        display: grid;
        grid-template-columns: 1fr auto;
    }


    .profil-drs-nummer {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: baseline;
        gap: 6px;
    }


    .profil-drs-inhalt {
        grid-column: 1;
    }


    .profil-drs-pfeil {
        grid-column: 2;
        grid-row: 2;
    }


    .profil-warnung {
        align-items: flex-start;
    }

}

/* ============================================================
   Parlaments-Tabs (Profilseite)
   ============================================================ */

.profil-tabs {
    position: relative;

    display: flex;
    align-items: stretch;
    flex-wrap: wrap;

    width: 100%;
    padding: 4px;

    margin-bottom: 1.25rem;

    background: var(--farbe-oberflaeche);
    border: 1px solid var(--farbe-rahmen);
    border-radius: 14px;

    box-shadow: var(--schatten-klein);
}

.profil-tab {
    position: relative;
    z-index: 2;

    flex: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;

    appearance: none;
    border: 0;
    background: transparent;

    min-height: 40px;
    padding: 0.55rem 0.85rem;

    border-radius: 10px;

    color: var(--farbe-text);
    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.profil-tab:hover {
    color: var(--farbe-primaer);
}

.profil-tab.aktiv {
    color: #ffffff;
}

.profil-tab-punkt {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.profil-tab-slider {
    position: absolute;
    z-index: 1;

    top: 4px;
    bottom: 4px;
    left: 4px;
    width: 0;

    background: var(--farbe-primaer);
    border-radius: 10px;

    pointer-events: none;
    transition: left 0.2s ease, width 0.2s ease;
}

@media (max-width: 700px) {

    .profil-tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .profil-tabs::-webkit-scrollbar {
        display: none;
    }

    .profil-tab {
        flex: 0 0 auto;
    }

}


/* ------------------------------------------------------------
   Panel
   ------------------------------------------------------------ */

.profil-panel {
    display: none;

    padding: 1.5rem;

    background: var(--farbe-oberflaeche);
    border: 1px solid var(--farbe-rahmen);
    border-radius: 18px;

    box-shadow: var(--schatten-dezent);
}

.profil-panel.aktiv {
    display: block;
}

.profil-panel-kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;

    margin-bottom: 1rem;
}

.profil-panel-parlament {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.profil-rolle-verwalten-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--farbe-link);
    white-space: nowrap;
}


/* ------------------------------------------------------------
   Wahlperioden-Bearbeitung (in den Tabs)
   ------------------------------------------------------------ */

.profil-wahlperioden-formular {
    margin: 1rem 0;
    padding: 1rem;

    background: var(--farbe-hintergrund);
    border: 1px solid var(--farbe-rahmen);
    border-radius: 12px;
}

.profil-perioden-auswahl {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.6rem 0;
}

.profil-wahlperioden-speichern {
    margin-top: 0.4rem;
    padding: 0.5rem 1rem;

    border: 0;
    border-radius: 8px;

    background: var(--farbe-primaer);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.profil-wahlperioden-speichern:hover {
    background: var(--farbe-primaer-hover);
}

.profil-drucksachen-kopf {
    margin: 1.25rem 0 0.75rem;
}

.profil-drucksachen-kopf h3 {
    margin: 0 0 0.15rem;
}

.profil-tab-aktionen {
    margin-top: 1.25rem;
}
