/* Screen reader only class for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
#idAboutMeSection {
    background-image: linear-gradient(to top, #f5f3f1, rgb(255 255 255) 50%);
}
.about_me_content {
    width: 85%;
    margin: 0 auto;
}
.about_me_main {
    width: 80%;
    margin: 0 auto;
}
.about_me_content p {
    color: var(--text-color);
    text-align: justify;
    hyphens: auto;
}
.doctor_profile {
    width: 80%;
    margin: 0 auto 3.2em;
    display: flex;
    justify-content: space-between;
    text-align: justify;
    hyphens: auto;
}
.doctor_profile:focus-within {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}
.doctor_content {
    width: 65%;
}
.doctor_content h2 {
    line-height: 1.3;
}
.doctor_img {
    width: 25%;
}
.doctor_img img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

/* Zitat-Styling für bessere Barrierefreiheit */
.doctor_quote {
    margin: 1.6em 0 0 0;
    padding-left: 1.5em;
    border-left: 3px solid var(--primary-color);
    font-style: italic;
}
.doctor_quote p {
    margin: 0.5em 0 0 0;
    color: var(--accent-color);
}
.doctor_quote cite {
    display: block;
    color: var(--accent-color);
    font-size: clamp(1.1rem, 1.3vw, 2rem);
    font-style: normal;
    text-align: right;
}
.doctor_quote cite:before {
    content: "— ";
}
.about_me_placeholder {
    height: 3vh;
    min-height: 2rem;
}

/* Focus management for accessibility */
#idAboutMeMain:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .doctor_profile {
        background: #fff;
        border: 2px solid #000;
    }
    .doctor_content h2 {
        color: #000;
    }
    .doctor_content p {
        color: #000;
    }
    .doctor_quote {
        background: #fff;
        border: 2px solid #000;
    }
    .doctor_quote p {
        color: #000;
    }
    .doctor_quote cite {
        color: #000;
    }
}

@media (max-width: 799px) {
    .about_me_main, 
    .doctor_profile {
        width: 100%;
    }
    .doctor_quote cite {
        padding-top: 0.6em;
        font-size: clamp(1.2rem, 2.4vw, 2.1rem);
    }
}

@media (max-width: 480px) {
    .profile_1 {
        margin: 0;
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
    }
    .profile_2 {
        margin: 2rem 0 0 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .doctor_content {
        width: 100%;
        margin: 1rem 0;
    }
    .doctor_img {
        width: 60%;
    }
    .doctor_quote {
        padding: 1rem;
        border-left-width: 2px;
        margin-top: 1rem;
    }
    .doctor_quote::before {
        top: -0.3rem;
        left: 0.5rem;
    }
    .doctor_quote cite {
        font-size: clamp(1.4rem, 4vw, 2rem);
    }
}