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

.infos {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2%;
  padding-left: 10%;
  padding-right: 10%;
  text-align: justify;
}

.Downloads{
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2%;
  padding-bottom: 2%;
  padding-left: 10%;
  padding-right: 10%;
  filter: brightness(100%);
  gap: 20px; /* Abstand zwischen den Dokumenten */
}

/* Style for the download links with overlay */
.Anmeldung-Link, .Einwilligung-Link {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white; /* Ensure text is visible on overlay */
}

.Anmeldung-Link .Hintergrundbild,
.Einwilligung-Link .Hintergrundbild {
    width: 100%; /* Adjust as needed */
    height: auto;
    filter: brightness(90%);
    border: 2px solid #000000;
    border-radius: 5%;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3); /* Slightly darker overlay for text contrast */
    color: rgb(255, 255, 255);
    text-align: center;
    opacity: 1; /* Always visible */
    transition: background-color 0.3s ease;
    border: 2px solid #000000;
    border-radius: 5%;
}

.Anmeldung-Link:hover .overlay,
.Einwilligung-Link:hover .overlay {
    background-color: rgba(0, 0, 0, 0.5); /* Darker on hover */
}

.overlay-text {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 5px;
}

.overlay-subtext {
    font-size: 1.3em;
}

/* 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 Query für mobile Ansicht (z.B. unter 768px Breite) */
@media (max-width: 768px) {
    .Downloads {
        flex-direction: column; /* PDFs untereinander anzeigen */
    }

    .overlay-text {
        font-size: 2em; /* Schriftgröße für "PDF" reduzieren */
    }

    .overlay-subtext {
        font-size: 1em; /* Schriftgröße für "(zum Herunterladen klicken)" reduzieren */
    }
}

@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;
    }
}