:root {
    --default_orange: #f4e4c1;
    --default_orange_2: #ff8000;
    --text_color_primary: #FFFFFF;
    --border_color_subtle: rgba(255, 255, 255, 0.3);
}

/* Allgemeine Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #FFFFFF;
    background-color: #000000;
}

#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Hintergrundbild je nach Bildschirmorientierung */
@media (orientation: landscape) {
    #background {
        background-image: url('../data/images/background_wide.jpg');
    }
}

@media (orientation: portrait) {
    #background {
        background-image: url('../data/images/background_high.jpg');
    }
}

/* Header und Navigation */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    position: relative;
}

#logo {
    max-height: 50%;
    max-width: 50%;
    margin: 0 auto;
    display: block;
    position: relative;
    top: 0;
    left: 25%;
    transform: translateX(-50%);
    background-color: rgba(256, 256, 256, 0.0);
}

/* Accordion Styles */
.accordion-header {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--default_orange_2);
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    border: none;
    margin: 0;
}

.accordion-header:hover {
    color: var(--default_orange);
}

.accordion-content {
    display: none;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
}

.accordion-content p {
    margin: 0;
}

/* Aktives Accordion */
.accordion.active .accordion-content {
    display: block;
}

/* Social Media Icons */
.social-media-links a {
    color: #FFFFFF;
    margin: 0 10px;
    text-decoration: none;
    font-size: 24px;
}

/* Social Media Section */
.social-profile-links {
    margin-bottom: 20px;
}

.social-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text_color_primary);
    text-decoration: none;
    font-size: 20px;
    padding: 10px 18px;
    border: 1px solid var(--border_color_subtle);
    border-radius: 6px;
    transition: color 0.2s, border-color 0.2s;
}

.social-profile-link:hover {
    color: var(--default_orange);
    border-color: var(--default_orange);
}

.social-profile-link:focus-visible {
    color: var(--default_orange);
    border-color: var(--default_orange);
    outline: 2px solid var(--default_orange);
    outline-offset: 2px;
}

.social-profile-link span {
    font-size: 16px;
}

/* Versteckte Elemente */
.hidden {
    display: none;
}

/* Member Group Styles */
.member-group-header {
    cursor: pointer;
    color: var(--default_orange_2);
    font-size: 16px;
    margin-top: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #444;
}

.member-group-header:hover {
    color: var(--default_orange);
}

.member-group-content {
    padding-left: 20px;
}

.member-group-content.hidden {
    display: none;
}

/* Mitglieder Styles */
.member {
    margin-bottom: 30px;
}

.member-name {
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
}

.member-image {
    width: 100%;
    max-width: 300px;
    cursor: pointer;
}

.member-chronik {
    margin-top: 20px;
}

.chronik-umfrage {
    margin-top: 14px;
    padding: 12px 16px;
    border-left: 3px solid var(--default_orange_2);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0 4px 4px 0;
}

.chronik-umfrage p {
    margin: 6px 0;
}

.chronik-antwort {
    color: var(--default_orange);
    font-style: italic;
    margin-bottom: 12px;
}

.member-social-media a {
    color: #FFFFFF;
    margin: 0 5px;
    text-decoration: none;
    font-size: 20px;
}

/* Kontaktseite */
.contact-member {
    margin-bottom: 20px;
}

.contact-member h3 {
    margin-bottom: 5px;
}

.contact-member p {
    margin: 2px 0;
}

.contact-member button {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #444;
    color: #fff;
    border: none;
    cursor: pointer;
}

.contact-member button:hover {
    background-color: #666;
}

/* Kalender */
#kalender iframe {
    width: 100%;
    height: 800px;
    border: none;
}

/* Zusätzliche Styles */
.gallery {
    display: flex;
    overflow-x: auto;
    padding: 20px 0;
}

.gallery img {
    height: 200px;
    margin-right: 10px;
}

/* Button Styles */
button {
    background-color: var(--default_orange_2);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

button:hover {
    background-color: var(--default_orange);
}

/* Intro-Video Overlay */
#intro-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #000;
    align-items: center;
    justify-content: center;
}

#intro-overlay.visible {
    display: flex;
}

#intro-video {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#intro-skip,
#intro-sound {
    position: absolute;
    top: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 10001;
}

#intro-skip {
    right: 1rem;
}

#intro-sound {
    left: 1rem;
}

#intro-skip:hover,
#intro-sound:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 0;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    margin: 0 auto;
}

.modal-content {
    position: relative;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 60px); /* Abzüglich Padding des Modal */
    object-fit: contain; /* Behält das Seitenverhältnis bei */
}

#modal-image {
    max-height: 100%;
    max-width: 100%;
    display: block;
    margin: auto;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.modal-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.modal-controls .prev,
.modal-controls .next {
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 16px;
}

.modal-controls .prev:hover,
.modal-controls .next:hover {
    color: #bbb;
}

/* Slideshow image */
.slideshow-image {
    display: block;
    max-width: 80%;
    max-height: 80%;
}

/* Album Group Styles */
.album-group {
    margin-bottom: 30px;
}

.album-group-header {
    cursor: pointer;
    color: var(--default_orange_2);
    font-size: 18px;
    margin-top: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #444;
}

.album-group-header:hover {
    color: var(--default_orange);
}

.album-group-content {
    display: flex;
    flex-wrap: wrap;
    padding-left: 20px;
}

.album-group-content.hidden {
    display: none;
}

/* Album Image Styles */
.album-image {
    width: calc(33.333% - 20px);
    max-width: 300px;
    margin: 10px;
    cursor: pointer;
    border: 2px solid #fff;
}

.album-image:hover {
    border-color: var(--default_orange);
}

.album-image {
    transition: border-color 0.3s;
}

/* Set the color of all hyperlinks to the same orange as the header text */
a {
    color: var(--default_orange_2);
}

a:hover {
    color: var(--default_orange);
}

/* Intro video on home section */
.intro-video {
    width: 100%;
    max-width: 720px;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 4px;
}

/* Year group headers in photo album */
.album-year-group {
    margin-bottom: 10px;
}

.album-year-header {
    cursor: pointer;
    padding: 10px 15px;
    background-color: rgba(244, 228, 193, 0.15);
    border-left: 4px solid var(--default_orange_2);
    color: var(--default_orange);
    font-size: 1.2em;
    margin: 0;
    transition: background-color 0.2s;
}

.album-year-header:hover {
    background-color: rgba(244, 228, 193, 0.25);
}

.album-year-content {
    display: none;
    padding-left: 10px;
}

.album-year-group.active .album-year-content {
    display: block;
}