/* Globale Stile */
* {
    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;
    background-color: #ffffff;
    color: #ffffff;
    background-size: cover;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.Hintergrundbild {
    width: 100%;
    height: 80%;
    filter: brightness(50%);
}

.Überschrift {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    margin: 0;
    color: white;
    white-space: nowrap;
}

.hero p {
    font-size: 2rem;
    margin-top: 7px;
    color: inherit;
    margin-left: 0px;
    margin-right: 0px;
    white-space: nowrap;
}

/* Details/Summary für FAQ */
details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

/* Button Stil */
.test {
    display: inline-block;
    margin: 10px;
    padding: 12px 24px;
    font-size: 1.8rem;
    color: rgb(0, 0, 0);
    text-decoration: none;
    background-color: rgba(0, 183, 255, 0.349);
    border-radius: 8px;
    border: 2px solid rgba(80, 80, 80, 0.7);
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
}

/* Impressum und Datenschutz Container Stile */
.container2, .container3 { /* Beide Container teilen sich diese Grundstile */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5%;
    background-color: #f4f4f4;
    margin: 20px auto; /* Zentrierung */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    max-width: 1200px;
}

/* Überschriftenstile innerhalb der Container */
.container2 h1, .container3 h2, .container3 span { /* Spezifische Überschriften in den Containern */
    font-size: 2.5rem;
    color: #010022d7;
    margin-bottom: 20px;
    text-align: center;
    margin-top: 40px;
}

/* Absatzstile innerhalb der Container */
.container2 p, .container3 p { /* Absätze in beiden Containern */
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #333;
    text-align: left; /* Textausrichtung für den Inhalt */
    max-width: 800px; /* Begrenzung der Breite des Textes */
}

/* Spezifische Anpassungen für Impressum-Text (.container2) */
.container2 p.Absatz {
    font-weight: bold;
    margin-top: 20px;
}

.container2 p.Inhalt {
    margin-left: 20px;
}

.container2 p.Vertreten {
    font-style: italic;
    margin-top: 15px;
    margin-bottom: 15px;
}

/* 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;
}


/* 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;
    }
}