#lang-toggle {
    background: linear-gradient(45deg, #4f1919, #ff3333);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#lang-toggle:hover {
    background: linear-gradient(45deg, #ff4444, #ff6666);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

#lang-toggle:active {
    transform: scale(0.97);
}




body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}


body[dir="rtl"] .bar {

    flex-direction: row-reverse;
}

body[dir="rtl"] nav {
    flex-direction: row-reverse;
    justify-content: center;
}


body[dir="rtl"] nav span {
    left: 0;
    right: auto;
}

body[dir="rtl"] nav a:nth-child(1):hover~span {
    left: 0;
    width: 110px;
}

body[dir="rtl"] nav a:nth-child(2):hover~span {
    left: 95px;
    width: 115px;
}

body[dir="rtl"] nav a:nth-child(3):hover~span {
    left: 189px;
    width: 110px;
}

body[dir="rtl"] nav a:nth-child(4):hover~span {
    left: 289px;
}

body[dir="rtl"] nav a:nth-child(5):hover~span {
    left: 413px;
}



[dir="rtl"] #lang-toggle {
    float: left;
}



body {
    background-image: url('kreuzz.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-left: 50px;
    padding-right: 50px;
}


.bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.logo {

    width: 200px;
    height: auto;
    display: flex;
    justify-content: center;
}

.logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

.haupt-titel {
    margin-top: -10%;
    color: #250902;
    text-align: center;
}

/* Deutsch */
html[lang="de"] .haupt-titel {
    font-family: "Momo Signature", cursive;
}

/* Arabisch */
html[lang="ar"] .haupt-titel {
    font-family: "Cairo", "Amiri", sans-serif;
    direction: rtl;
}

nav {

    position: relative;
    justify-content: space-between;
    box-shadow: 7px 4px 4px gray;
    top: -25px;
    width: 524px;
    height: 50px;
    background: #737171;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;

}

nav a {
    position: relative;
    display: inline-block;
    font-size: 1em;
    font-weight: 500;
    color: #eee;
    text-decoration: none;
    padding: 0 30px;
    z-index: 1;
}

nav span {
    position: absolute;
    top: 0;
    left: 0;
    width: 95px;
    height: 100%;
    background: linear-gradient(45deg, #4f1919, #ff3333);
    border-radius: 8px;
    transition: .5s;
}

nav a:nth-child(1):hover~span {
    left: 0;
}

nav a:nth-child(2):hover~span {
    left: 95px;
}

nav a:nth-child(3):hover~span {
    left: 189px;
    width: 110px;
}

nav a:nth-child(4):hover~span {
    left: 289px;
    width: 115px;
}

nav a:nth-child(5):hover~span {
    left: 413px;
    width: 110px;
}



.gottesdienst-container {
    text-align: center;
    font-size: x-large;
    font-weight: bold;
    text-align: center;
    padding: 2%;
    padding-left: 10%;
    padding-right: 10%;
}

.gottesdienst-container h2 {
    font-family: 'Georgia', serif;
    color: #38040e;
    padding-bottom: 10px;
    margin-top: 0;
    border-bottom: 3px solid #38040e;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.gottesdienst-container h3 {
    color: #640d14;
}

.gottesdienst-container p {
    margin-bottom: 15px;
    text-align: justify;
}


.gottesdienst-container ul {
    list-style-type: none;
    padding-left: 0;
}

.gottesdienst-container ul li {
    padding-left: 0;
    margin-bottom: 12px;
    background: transparent;
    backdrop-filter: blur(10px);
    text-align: center;
    font-size: x-large;
    font-weight: bold;
    text-align: center;
    padding: 2%;
    padding-left: 10%;
    padding-right: 10%;
    padding: 10px;
    border-radius: 4px;
}

.gottesdienst-container ul li strong {
    color: #640d14;
    /* Grüner Titel für Listenpunkte */
    display: block;
    /* Titel in eigene Zeile */
    margin-bottom: 5px;
    border-bottom: 1px dotted #e0e0e0;
    padding-bottom: 3px;
}


.bild {
    padding-top: 2%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;

}

.abuna,
.kodas,
.Marina,
.kimi,
.abanob {

    width: 30%;
    height: 20vw;
    overflow: hidden;
    border-radius: 40% 60% 70% 30% / 50% 50% 60% 40%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.abuna img,
.kodas img,
.Marina img,
.kimi img,
.abanob img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}


.sonntagsschule-container {
    font-size: x-large;
    font-weight: bold;
    text-align: center;
    padding: 2%;
    padding-left: 10%;
    padding-right: 10%;
}

.sonntagsschule-container h2 {
    font-family: 'Georgia', serif;
    color: #38040e;
    padding-bottom: 10px;
    margin-top: 0;
    border-bottom: 3px solid #38040e;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.sonntagsschule-container h3 {
    color: #640d14;
}

.sonntagsschule-container p {
    margin-bottom: 15px;
    text-align: justify;
}


.sonntagsschule-container ul {
    list-style-type: none;
    padding-left: 0;
}

.sonntagsschule-container ul li {
    padding-left: 0;
    margin-bottom: 12px;
    background: transparent;
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 4px;
}

.sonntagsschule-container ul li strong {
    color: #800e13;
    ;
    display: block;
    margin-bottom: 5px;
    border-bottom: 1px dotted #e0e0e0;
    padding-bottom: 3px;
}


.familientreffen-container {
    font-size: x-large;
    font-weight: bold;
    text-align: center;
    padding: 2%;
    padding-left: 10%;
    padding-right: 10%;
}

.familientreffen-container h2 {
    font-family: 'Georgia', serif;
    color: #38040e;
    padding-bottom: 10px;
    margin-top: 0;
    border-bottom: 3px solid #38040e;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.familientreffen-container h3 {
    color: #640d14;
}

.familientreffen-container p {
    margin-bottom: 15px;
    text-align: justify;
}


.familientreffen-container ul {
    list-style-type: none;
    padding-left: 0;
}

.familientreffen-container ul li {
    padding-left: 0;
    margin-bottom: 12px;
    background: transparent;
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 4px;
}

.familientreffen-container ul li strong {
    color: #800e13;
    ;
    display: block;
    margin-bottom: 5px;
    border-bottom: 1px dotted #e0e0e0;
    padding-bottom: 3px;
}


.dienervorbereitung-container {
    font-size: x-large;
    font-weight: bold;
    text-align: center;
    padding: 2%;
    padding-left: 10%;
    padding-right: 10%;
}

.dienervorbereitung-container h2 {
    font-family: 'Georgia', serif;
    color: #38040e;
    padding-bottom: 10px;
    margin-top: 0;
    border-bottom: 3px solid #38040e;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.dienervorbereitung-container h3 {
    color: #640d14;
}

.dienervorbereitung-container p {
    margin-bottom: 15px;
    text-align: justify;
}


.dienervorbereitung-container ul {
    list-style-type: none;
    padding-left: 0;
}

.dienervorbereitung-container ul li {
    padding-left: 0;
    margin-bottom: 12px;
    background: transparent;
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 4px;
}

.dienervorbereitung-container ul li strong {
    color: #800e13;
    ;
    display: block;
    margin-bottom: 5px;
    border-bottom: 1px dotted #e0e0e0;
    padding-bottom: 3px;
}

.dienste-container {
    font-size: x-large;
    font-weight: bold;
    text-align: center;
    padding: 2%;
    padding-left: 10%;
    padding-right: 10%;
}

.dienste-container h2 {
    font-family: 'Georgia', serif;
    color: #38040e;
    padding-bottom: 10px;
    margin-top: 0;
    border-bottom: 3px solid #38040e;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}


.dienste-container h3 {
    color: #640d14;
}

.dienste-container p {
    margin-bottom: 15px;
    text-align: justify;
}


.dienste-container ul {
    list-style-type: none;
    padding-left: 0;
}

.dienste-container ul li {
    padding-left: 0;
    margin-bottom: 12px;
    background: transparent;
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 4px;
}

.dienste-container ul li strong {
    color: #800e13;
    display: block;
    margin-bottom: 5px;
    border-bottom: 1px dotted #e0e0e0;
    padding-bottom: 3px;
}


footer {
    background: #737171;
    padding-top: 50px;
    margin-bottom: 0;
    margin-left: -50px;
    margin-right: -50px;
    border-radius: 50% 50% 0 0 / 100px 100px 0 0;
}

.container {
    max-width: 1140px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.footer-content {
    width: 33.3%;
}

h3 {
    font-size: 28px;
    margin-bottom: 15px;
    text-align: center;
    color: white;
}

.footer-content p {
    width: 190px;
    margin: auto;
    padding: 7px;
    color: #eee;
}

.footer-content ul {
    text-align: center;

    padding: 0;
}

.list {
    padding: 0;
}

.list li {
    width: auto;
    list-style-type: none;
    padding: 7px;
    position: relative;
    text-align: center;
}




a {
    text-decoration: none;
    color: black;

    transition: color 0.3s ease;

    position: relative;
    display: inline-block;
}


.footer-content a:hover {
    color: #f18930;
}


.footer-content a::before {
    content: '';
    position: absolute;

    transform: translateX(-50%);
    left: 50%;
    top: 100%;

    width: 0;
    height: 2px;
    background: #f18930;
    transition: width .5s ease;
}


.footer-content a:hover::before {
    width: 70px;
}




.social-icons {
    text-align: center;
    padding: 0;
}

.social-icons li {
    display: block;
    text-align: center;
    padding: 5px;
    position: relative;
    margin: 5px 0;
}

.social-icons i {
    color: white;
    font-size: 25px;
    transition: color 0.3s ease;
}

.social-icons a:hover i {
    color: #f18930;
}

.social-icons a::before {
    display: none;
}




.bottom-bar {
    background: #f18930;
    text-align: center;
    padding: 10px 0;
    margin-top: 50px;
}

.bottom-bar p {
    color: #ffffff;
    margin: 0;
    font-size: 16px;
    padding: 7px;
}

body[dir="rtl"] .bar {
    /* Wenn die .bar Flexbox verwendet, wird die Reihenfolge der Elemente (Logo & Nav) umgekehrt. */
    flex-direction: row-reverse;
}

body[dir="rtl"] .logo {
    /* Wenn das Logo ursprünglich links war, muss der Rand nach links verschoben werden,
       und alle LTR-Floats müssen umgekehrt werden. */
    float: right;
    margin-right: 10px;
    /* Beispiel */
    margin-left: 0;
}

body[dir="rtl"] #lang-toggle {
    /* Den Sprachwechsel-Button von rechts nach links oben verschieben */
    float: left;
    margin-right: 15px;
    /* Alten rechten Rand entfernen */
    margin-left: 15px;
    /* Neuen linken Rand hinzufügen */
}


@media (max-width: 750px) {

    #lang-toggle {
        float: none !important;
        margin: 10px auto 20px auto !important;
        display: block;
        text-align: center;
    }

    [dir="rtl"] #lang-toggle {
        float: none !important;
        margin: 10px auto 20px auto !important;
        display: block;
        text-align: center;
    }



    body {
        padding-left: 10px;
        padding-right: 10px;
    }

    .bar {
        flex-direction: column;
        gap: 10px;
        padding-top: 10px;
    }

    .logo {
        width: 100%;
        max-width: 120px;
        margin: 0 auto;
    }

    .haupt-titel {
        flex-grow: 0;
        width: 100%;
        padding-top: 30px;
    }


    nav {
        position: static;
        width: 100%;
        padding: 10px 0;
        flex-wrap: wrap;
    }

    nav a {
        padding: 8px 5px;
        flex-grow: 1;
        font-size: 0.9em;
        text-align: center;
    }

    /* WICHTIG: Blendet den animierten Span aus, da er bei flexiblem Layout nicht funktioniert */
    nav span {
        display: none;
    }

    /* --- BILDER ANPASSUNG --- */
    .bild {
        flex-direction: column;
        gap: 20px;
    }

    .abuna,
    .kodas {
        width: 70%;
        /* Nimmt mehr Breite ein */
        height: 70vw;
        /* Größer für Mobilgeräte */
    }


    /* --- INHALTSBEREICHE ANPASSUNG --- */
    .gottesdienst-container,
    .sonntagsschule-container,
    .familientreffen-container,
    .dienervorbereitung-container {
        padding-left: 5%;
        /* Reduziert den Seitenabstand */
        padding-right: 5%;
    }


    /* --- FOOTER ANPASSUNG --- */
    footer {
        /* Kompensiert body padding-left/right im Media Query */
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 50px 50px 0 0;
    }

    .container {
        flex-direction: column;
        gap: 30px;
        padding: 0 10px;
    }

    .footer-content {
        width: 100%;
        text-align: center;
    }

    .footer-content p {
        width: auto;
    }
}