* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    transition: background-color 0.3s, color 0.3s;
}

/* Kopfzeile */
.Kopfzeile {
    display: flex;
    border-bottom: 0.5px solid #808080;
    justify-content: space-between;
    max-width: 100%;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.Logos {
    margin-top: 20px;
}

.DPSG {
    height: 50px;
    margin-left: 5px;
}

.Pfarrei {
    height: 50px;
    margin-right: 5px;
}

/* Navigation */
nav {
    height: 90px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
}

.nav-list li {
    margin: 0 20px;
    white-space: nowrap;
}

.nav-list li a {
    color: black;
    font-size: 15px;
    text-decoration: none;
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.logo img {
    height: 40px;
}

/* Hamburger-Menü */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: black;
    border-radius: 5px;
}

/* Hero Sektion */
.hero {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    color: #ffffff;
    background-size: cover;
    min-height: 320px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
   
    z-index: 0;
}

.Hintergrundbild {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
}

.hero h2 {
    font-size: 3rem;
    margin: 0 0 10px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.4rem;
    margin: 0;
    color: white;
}
/* Footer */
footer {
    padding: 20px;
    background-color: #f4f4f4;
    color: #000000;
    font-size: 0.9rem;
    text-align: center;
}

.footer-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo-container img {
    border-radius: 50%;
    background-color: white;
    padding: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.footer-pfarrei-logo {
    max-width: 50px;
    height: auto;
}

.footer-dpsg-logo,
.footer-zela-logo {
    max-width: 120px;
    height: auto;
}

.footer-address-logos {
    padding: 15px 0;
    width: 100%;
    text-align: center;
}

.footer-address-logos p {
    margin: 5px 0;
}

.footer-address-logos .email-link {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
}


/* Galerie */
.galerie {
    background: linear-gradient(180deg, #f8f8f8 0%, #ffffff 100%);
    padding: 40px 20px 60px;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-intro {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-intro h3 {
    margin: 0 0 10px;
    font-size: 2rem;
    color: #1f2d3d;
}

.gallery-intro p {
    margin: 0;
    color: #5b6470;
    font-size: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.gallery-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
}

.gallery-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.gallery-card-body {
    padding: 16px 18px 20px;
}

.gallery-card-body h4 {
    margin: 0 0 6px;
    color: #1f2d3d;
    font-size: 1.05rem;
}

.gallery-card-body p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.no-images-message {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    color: #5b6470;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    z-index: 2000;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.gallery-lightbox p {
    margin-top: 12px;
    color: #ffffff;
    text-align: center;
}

.gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
    cursor: pointer;
}

.gallery-nav-prev {
    left: 20px;
}

.gallery-nav-next {
    right: 20px;
}

/* Medienabfragen */

@media (max-width: 1150px) {
    nav {
        flex-direction: column;
        position: relative;
        z-index: 1000;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transition: all 0.3s ease-in-out;
    }

    .nav-list.active {
        display: flex;
    }
.nav-list li {
    margin: 10px 0;
  }

    .menu-toggle {
        display: flex;
    }

    .logo-item {
        position: relative;
        order: -1;
        margin-bottom: 15px;
    }
}

@media (max-width: 1250px) {
    .Überschrift {
        font-size: 3.5rem;
    }
    .hero p {
        font-size: 1.8rem;
    }
    .container2 h1, .container3 h2, .container3 span { /* Anpassung für container2 */
        font-size: 2rem;
    }
    .container2 p, .container3 p { /* Anpassung für container2 */
        font-size: 1.3rem;
    }
    .Abschnittsüberschrift1, .Abschnittsüberschrift {
        font-size: 25px;
    }
    .Frage, .container2 p { /* Anpassung für container2 */
        font-size: 18px;
    }
}

@media (max-width: 900px) {
    .Überschrift {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .Abschnittsüberschrift1, .Abschnittsüberschrift {
        font-size: 20px;
    }
    .Frage, .container2 p { /* Anpassung für container2 */
        font-size: 16px;
    }
    .MAiladresse p, .test {
        font-size: 25px;
    }
    .container2 h1, .container3 h2, .container3 span { /* Anpassung für container2 */
        font-size: 1.8rem;
    }
    .container2 p, .container3 p { /* Anpassung für container2 */
        font-size: 1.1rem;
    }
}

@media (max-width: 700px) {
    .Überschrift {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .Abschnittsüberschrift1, .Abschnittsüberschrift {
        font-size: 18px;
    }
    .Frage, .container2 p { /* Anpassung für container2 */
        font-size: 14px;
    }
    .MAiladresse p, .test {
        font-size: 20px;
    }
    .container2 h1, .container3 h2, .container3 span { /* Anpassung für container2 */
        font-size: 1.5rem;
    }
    .container2 p, .container3 p { /* Anpassung für container2 */
        font-size: 1rem;
    }
}

@media (max-width: 500px) {
    .Überschrift {
        font-size: 1.2rem;
    }
    .hero p {
        font-size: 0.8rem;
    }
    .Abschnittsüberschrift1, .Abschnittsüberschrift {
        font-size: 16px;
    }
    .Frage, .container2 p { /* Anpassung für container2 */
        font-size: 12px;
    }
    .MAiladresse p, .test {
        font-size: 16px;
        margin-left: 5px;
        margin-right: 5px;
    }
    .container2 h1, .container3 h2, .container3 span { /* Anpassung für container2 */
        font-size: 1.2rem;
    }
    .container2 p, .container3 p { /* Anpassung für container2 */
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}