/* ==========================================================
   custom.css – Happersberger-to-be custom overrides
   ========================================================== */

/* ── Spotlight: stack image above text on all screen sizes ── */

.spotlight.style1 {
    -moz-flex-direction: column-reverse !important;
    -webkit-flex-direction: column-reverse !important;
    -ms-flex-direction: column-reverse !important;
    flex-direction: column-reverse !important;
    text-align: center !important;
}

.spotlight.style1.orient-right {
    -moz-flex-direction: column-reverse !important;
    -webkit-flex-direction: column-reverse !important;
    -ms-flex-direction: column-reverse !important;
    flex-direction: column-reverse !important;
}

.spotlight.style1 .content {
    width: 100% !important;
    max-width: 100% !important;
}

/* Anmeldung form: limit width for better readability on wide screens */
@media screen and (min-width: 980px) {
    #anmeldung .content {
        width: 80% !important;
        max-width: 80% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.spotlight.style1 .image {
    width: 100% !important;
    min-width: 0 !important;
    height: min(50vw, 600px) !important;
    position: relative !important;
}

.spotlight.style1 .image img {
    position: absolute !important;
}

/* ── Form: Radio & Checkbox alignment ── */

/* Wrapper to center the option list while keeping options left-aligned */
#AnreiseAbfrage .radio-group,
#Trauzeugen .checkbox-group,
#DuscheAbfrage .checkbox-group,
#FruehstueckAbfrage .checkbox-group {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0.25rem auto 0;
}

/* Each individual option row */
.radio-option,
.checkbox-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}

.radio-option:hover,
.checkbox-option:hover {
    background: rgba(0, 0, 0, 0.04);
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    position: absolute;
    left: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    width: 1.65rem;
    height: 1.65rem;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.radio-option label,
.checkbox-option label {
    margin: 0;
    cursor: pointer;
    line-height: 1.3;
    font-size: 0.95em;
}

/* ── Hero Section ── */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 400px;
    overflow: hidden;
}

.hero img.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: top;
    text-align: center;
    padding: 2rem;
    color: #fff;
    margin-top: 100px;
}

.hero-content h1,
.hero-content h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
    border-bottom: none;

}

.hero-content .button {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.3s, color 0.3s;
}

.hero-content .button:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

/* ── Full-width photo divider ── */

.photo-divider {
    width: 100%;
    height: clamp(250px, 40vw, 550px);
    overflow: hidden;
    position: relative;
}

.photo-divider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ── Sticky Navigation Header ── */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    background: rgba(230, 230, 230, 0.95);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    padding: 0.5rem 0;
}

#header.visible {
    transform: translateY(0);
}

#header nav {
    display: flex;
    justify-content: center;
}

#header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

#header nav ul li {
    margin: 0;
    padding: 0;
}

#header nav ul li a {
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    border-bottom: none;
    transition: color 0.2s;
}

#header nav ul li a:hover {
    color: #f56a6a;
}

@media screen and (max-width: 736px) {
    #header nav ul {
        gap: 1rem;
        justify-content: center;
    }

    #header nav ul li a {
        font-size: 0.85em;
    }
}

/* ── Portrait Placeholders ── */
.portraits-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    margin-top: 2rem;
}

.portrait-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 350px;
}

.portrait-item p {
    margin-top: 1rem;
    font-weight: 600;
}

.portrait-image {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.portrait-image.placeholder {
    background-color: rgba(200, 200, 200, 0.5);
    border: 2px dashed rgba(150, 150, 150, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portrait-image.placeholder::after {
    content: "Portrait";
    color: rgba(100, 100, 100, 0.8);
    font-size: 0.9em;
}

/* Stack on smaller screens */
@media screen and (max-width: 480px) {
    .portraits-container {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
}

@media screen and (min-width: 768px) {
    .witness-details-container {
        flex-direction: row;
        gap: 2rem;
        align-items: flex-start;
    }

    .witness-detail-item {
        flex: 1;
    }

    .witness-detail-image.landscape {
        height: 250px;
    }

    .witness-detail-image.portrait {
        height: 400px;
    }
}

/* ── Gallery Centering ── */
.gallery.style2 article {
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    text-align: center;
    background-color: lightgrey;
}

.gallery.style2 article .image {
    display: flex;
    justify-content: center;
    width: 100%;
}

.gallery.style2 article .image img {
    max-width: 100%;
    height: auto;
}

.gallery.style2 article .caption {
    text-align: center;
    width: 100%;
}

/* ── General Header Spacing ── */
h2 {
    margin-top: -1rem !important;
    /* Verringert den Abstand nach oben für alle h2-Überschriften */
}

/* ── Program & Info Text Alignment ── */
#first .content>p,
#first .content>h2,
#anfahrt .content>p,
#anfahrt .content>h2,
#anmeldung .content>p,
#anmeldung .content>h2 {
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
}

/* ── Checkbox Shape Override (Round) ── */
input[type="checkbox"]+label:before {
    border-radius: 100% !important;
}