/* 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;
}
#idBesuchSection {
    background-image: linear-gradient(to top, #f5f3f1, rgb(255 255 255) 50%);
}
.besuch_content {
    width: 85%;
    margin: 0 auto;
    display: flex;
}
.besuch_content_links {
    width: 47%;
}
.besuch_content_rechts {
    width: 53%;
    margin: 2.5em 0 0 2em;
    border-radius: 10px;    
}
.besuch_content p {
    text-align: justify;
    hyphens: auto;
}
.besuch_content a {
    text-decoration: none;
    color: var(--main-brand-color);
    font-size: clamp(0.95rem, 1vw, 1.4rem);
    font-weight: bold;
    line-height: 1.4;
    transition: all 150ms ease-in-out;
}
.besuch_content a:hover {
    color: var(--text-color);
}
.besuch_accordeon {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}
.acc_elem h3 {
    margin: 0;
    padding: 0;
    font-weight: normal;
    font-size: inherit;
}
.lbl_accord {
    width: 100%;
    margin: 0;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-color);
    font-size: clamp(1rem, 1.1vw, 1.6rem);
    text-align: left;
    border: none;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}
.lbl_accord:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.lbl_accord:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}
.lbl_accord span:first-child {
    flex: 1;
}
.plusIcon {
    display: inline-block;                      /* nötig, da sonst transform nicht funktionieren würde (span-Elemente sind inline und transform geht nur bei Block-Elementen) */
    font-size: clamp(1rem, 1.1vw, 1.6rem);
    transform: rotate(0deg);
    transition: all 200ms ease-in;
}
.rotateplusIcon {
    transform: rotate(45deg);
}
.elem_antwort_close {
    width: 100%;
    max-height: 0;
    margin-top: -1rem;
    padding: 0 1.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: transparent;
    font-size: clamp(0.95rem, 1vw, 1.4rem);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    opacity: 0;
    transition: all 300ms ease-in-out;
    z-index: -1;
}
.elem_antwort_close a {
    text-decoration: none;
    color: var(--main-brand-color);
    font-size: clamp(0.95rem, 1vw, 1.4rem);
    font-weight: bold;
    transition: all 0.2s ease-in-out;
}
.elem_antwort_close a:hover {
    color: var(--text-color);
}
.elem_antwort_open {
    max-height: 500px;
    margin-top: 0;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
}
.placeholder {
    height: 3vh;
    min-height: 2rem;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .lbl_accord {
        background: #fff;
        border: 2px solid #000;
    }
    .lbl_accord span:first-child {
        color: #000;
    }
    .elem_antwort_open {
        background: #fff;
        color: #000;
    }
    .elem_antwort_close a {
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .lbl_accord {
        transition: none;
    }
    .lbl_accord:hover {
        transform: none;
    }
    .elem_antwort_close {
        transition: none;
    }
    .plusIcon {
        transition: none;
    }
}

@media (max-width: 799px) {
    .besuch_content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .besuch_content_links {
        width: 100%;
        margin-top: 0;
    }
    .besuch_content_rechts {
        width: 100%;
        margin: 2rem 0 0 0;
    }
    .besuch_content a {
        font-size: clamp(0.95rem, 2vw, 1.8rem);
    }
    .lbl_accord,
    .plusIcon {
        font-size: clamp(1.1rem, 2.1vw, 1.9rem);
    }
    .elem_antwort_close,
    .elem_antwort_close a {
        font-size: clamp(0.95rem, 2vw, 1.8rem);
    }
    .lbl_accord:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .besuch_content a,
    .lbl_accord,
    .plusIcon,
    .elem_antwort_close,
    .elem_antwort_close a {
       font-size: clamp(0.95rem, 3.6vw, 1.8rem);
    }
    .lbl_accord {
        padding: 0.8rem;
    }
}
