.mainSec>Section {
    padding-block: 2rem;
}

.profilePic {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100rem;
}

.profilePic.customer {
    background-color: var(--green-200);
    border: 2px solid var(--green);
}

.profilePic.customer svg {
    fill: var(--green-50);
}

.profilePic.bubble-bottom {
    opacity: 0;
}

.profilePic img {
    background-color: #fff;
    border: 2px solid var(--peak-color);
    border-radius: 100rem;
    padding: 0.25rem;
    width: 100%;
    height: 100%;
}

.profilePic.customer>div {
    height: 20px;
}

.profilePic.customer>div svg {
    height: 20px;
}

.nachrichtenWrapper {
    gap: 10px;
}

.bubble-left,
.bubble-right {
    position: relative;
    /* Wächst mit dem Inhalt */
    max-width: 600px;
    /* Verhindert, dass die Blase zu breit wird */
    background: rgba(0, 0, 0, 0.05);
    color: var(--fc);
    padding: 0.8rem;
    border-radius: 0.7rem;
    font-family: sans-serif;
    /* Platz für die Spitze links */
    z-index: 1;
    flex: 1;
}

.bubble-left.bubble-left-top {
    border-radius: 0.7rem 0.7rem 0.7rem 5px;
}

.bubble-left.bubble-left-bottom {
    border-radius: 5px 0.7rem 0.7rem 0.7rem;
}

div:has(div>.bubble-left),
div:has(div>.bubble-right) {
    margin-bottom: 2rem;
}

div:has(div>.bubble-left.bubble-left-top) {
    margin-bottom: 0.25rem;
}

/* Die Spitze (Dreieck) */
.bubble-left::after {
    content: "";
    position: absolute;
    left: -8px;
    /* Schiebt die Spitze nach links aus der Box */
    top: calc((35px / 2) - (20px / 2));
    /* Höhe der Spitze von oben */
    /* Das Dreieck-Prinzip mit Borders */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 8px 0;
    /* Rechts ist die Farbe, links 0 */
    border-color: transparent rgba(0, 0, 0, 0.05) transparent transparent;
}

.bubble-left.bubble-left-bottom::after {
    opacity: 0;
}

.bubble-right::after {
    content: "";
    position: absolute;
    /* Platziert die Spitze am rechten Rand der Box */
    right: -8px;
    /* Vertikale Zentrierung (angepasst an deine Box-Höhe von 80px) */
    top: calc((35px / 2) - (10px));

    width: 0;
    height: 0;
    border-style: solid;
    /* Die Magie: border-left bekommt die Farbe, oben/unten sind transparent */
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.05);
}

.tradesWrapper {
    flex-direction: column;
    gap: 2rem;
}

.aboutTradesCard {
    background-color: var(--main-color-200);
    padding: 1rem;
    border-radius: 0.5rem;
    flex: 1;
    gap: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    will-change: transform;
    z-index: 10;
}

.aboutTradesCard:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    z-index: 99;
}

.aboutTradesCard h3 {
    font-size: 2.5rem;
    font-style: bold;
    color: transparent;
    /* background: linear-gradient(0deg, var(--peak-color-50) 10%, var(--peak-color-200) 70%, var(--peak-color-50) 100%); */

    /* 1. Fallback für alte Browser: Zeige eine normale Farbe an */
    color: orange;

    /* 2. Der eigentliche Verlauf */
    background-image: linear-gradient(to right, orange, #ffac6c);

    /* 3. Den Hintergrund auf den Text begrenzen */
    -webkit-background-clip: text;
    /* Erforderlich für Chrome, Safari und neuere Edge-Versionen */
    background-clip: text;
    /* Standard-Eigenschaft */

    /* 4. Den eigentlichen Text durchsichtig machen, damit der Hintergrund sichtbar wird */
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.aboutTradesCard small {
    color: var(--fc-nonFocus);
}

.aboutTradesCard .iconWrapper {
    background: var(--peak-color-70-o-05);
    border-radius: 100rem;
    padding: 0.5rem;
}

.aboutTradesCard::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -2rem;
    /* Etwas mehr Abstand nach oben */
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    /* Kern-Änderungen für viel Text: */
    width: 200px;
    /* Feste Breite für den Umbruch */
    white-space: normal;
    /* Erlaubt Zeilenumbrüche */
    line-height: 1.4;
    /* Bessere Lesbarkeit */
    text-align: center;
    padding: 10px 15px;

    background: var(--main-color-300);
    color: var(--fc);
    border-radius: 8px;
    font-size: 0.85rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);

    opacity: 0;
    z-index: 10;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Cooler "Bounce"-Effekt */
}

.aboutTradesCard:hover::after {
    opacity: 1;
    bottom: -1rem;
    /* Gleitet beim Hover leicht nach oben */
}

.aboutTradesCard::before {
    content: "";
    position: absolute;
    bottom: -2rem;
    /* Gleiche Startposition wie die Box */
    left: 50%;
    transform: translateX(-50%) translateY(50%) rotate(45deg);
    /* Drehung macht es zum Diamanten */

    width: 12px;
    height: 12px;
    background: var(--main-color-300);
    /* Muss exakt die Farbe der Tooltip-Box sein */

    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
    /* Damit es hinter oder genau an der Box liegt */
}

/* Sichtbar machen beim Hover */
.aboutTradesCard:hover::before {
    opacity: 1;
    bottom: -1rem;
    z-index: 10;
    /* Muss leicht unter der Box sitzen (Wert anpassen je nach Box-Abstand) */
}

/* .aboutTradesCard .info {
        position: absolute;
        cursor: pointer;
        bottom: 0.5rem;
        right: 0.5rem;
      }

      .aboutTradesCard .info path {
        fill: var(--fc-nonFocus);
      } */

.personalCardWrapper {
    max-width: 1200px;
    margin-inline: auto;
    flex-direction: column;
}

.personalCard {
    padding: 1rem;
    padding-right: 2rem;
    padding-top: calc(50px + 1rem);
    border-left: 8px solid var(--peak-color);
    background-color: var(--main-color-200);
    position: relative;
}

.personalCard.left {
    padding-right: 1rem;
    padding-left: 2rem;
    border-left: none;
    border-right: 8px solid orange;
}

.personalCardPicture {
    position: absolute;
    display: flex;
    top: 0;
    transform: translateY(-50%);
    background-color: #fff;
    border-radius: 100rem;
    border: 2px solid orange;
}

.personalCard.left .personalCardPicture {
    right: 1rem;
}

.personalCardPicture img {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.roleWrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.roleWrapper span {
    padding: 0.4rem 0.6rem;
    border-radius: 100rem;
    background-color: var(--peak-color);
}

.roleWrapper span.top {
    background-image: linear-gradient(to right, orange, #ff9a4c);
}

.roleWrapper span small {
    font-weight: 600;
    color: #000000;
    background: linear-gradient(90deg, #FFFFFF, #FFFFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.roleWrapper span.top small {
    font-weight: 700;
}

@media screen and (min-width: 768px) {
    .nachrichtenWrapper {
        gap: 1rem;
    }

    .profilePic {
        width: 80px;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 100rem;
    }

    .profilePic img {
        padding: 0.5rem;
    }

    .profilePic.customer>div {
        height: 40px;
    }

    .profilePic.customer>div svg {
        height: 40px;
    }

    .bubble-left,
    .bubble-right {
        position: relative;
        /* Wächst mit dem Inhalt */
        max-width: 600px;
        /* Verhindert, dass die Blase zu breit wird */
        background: rgba(0, 0, 0, 0.05);
        color: var(--fc);
        padding: 1rem;
        border-radius: 15px;
        font-family: sans-serif;
        /* Platz für die Spitze links */
        z-index: 1;
        flex: 1;
    }

    .bubble-left::after {
        content: "";
        position: absolute;
        left: -10px;
        /* Schiebt die Spitze nach links aus der Box */
        top: calc((80px / 2) - (20px / 2));
        /* Höhe der Spitze von oben */
        /* Das Dreieck-Prinzip mit Borders */
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 10px 10px 10px 0;
        /* Rechts ist die Farbe, links 0 */
        border-color: transparent rgba(0, 0, 0, 0.05) transparent transparent;
    }

    .bubble-right::after {
        content: "";
        position: absolute;
        /* Platziert die Spitze am rechten Rand der Box */
        right: -10px;
        /* Vertikale Zentrierung (angepasst an deine Box-Höhe von 80px) */
        top: calc((80px / 2) - (10px));

        width: 0;
        height: 0;
        border-style: solid;
        /* Die Magie: border-left bekommt die Farbe, oben/unten sind transparent */
        border-width: 10px 0 10px 10px;
        border-color: transparent transparent transparent rgba(0, 0, 0, 0.05);
    }

    .bubble-left.bubble-left-top {
        border-radius: 15px 15px 15px 5px;
    }

    .bubble-left.bubble-left-bottom {
        border-radius: 5px 15px 15px 15px;
    }

    .tradesWrapper {
        flex-direction: row;
        gap: 1rem;
    }

    .personalCardWrapper {
        flex-direction: row;
    }
}

@media (prefers-color-scheme: dark) {

    .bubble-left,
    .bubble-right {
        background: rgba(255, 255, 255, 0.08);
    }

    /* Die Spitze (Dreieck) */
    .bubble-left::after {
        border-color: transparent rgba(255, 255, 255, 0.08) transparent transparent;
    }

    .bubble-right::after {
        border-color: transparent transparent transparent rgba(255, 255, 255, 0.08);
    }
}