/* =====================================================
   SEITENSPALTEN
===================================================== */

.links,
.rechts {
    width: 280px;
    min-width: 280px;
    padding: 20px;

    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #edf8ff 30%,
        #d4eeff 70%,
        #bfe6ff 100%
    );
}

.links {
    border-right: 3px solid #205070;
}

.rechts {
    border-left: 3px solid #205070;
}

.menue-bild,
.rechts-bild {
    display: block;
    width: 100%;
    max-width: 190px;
    height: auto;
    margin: 0 auto 20px auto;
}


/* =====================================================
   MENÜ
===================================================== */

.links h2 {
    width: 100%;

    color: #205070;
    text-align: center;

    margin-bottom: 20px;
    padding-bottom: 5px;

    border-bottom: 2px solid #205070;
}

.menue-button {
    display: none;
}

.menue-inhalt {
    width: 100%;
    margin-bottom: 40px;
}

.links a {
    display: block;
    width: 100%;

    padding: 12px;
    margin-bottom: 12px;

    color: #205070;
    background: rgba(255,255,255,0.85);

    text-align: center;
    text-decoration: none;

    border: 2px solid #205070;
    border-radius: 10px;

    box-shadow: 0 3px 8px rgba(0,0,0,0.20);

    transition: 0.2s;
}

.links a:hover {
    background: #ffffff;

    transform: translateY(-2px);

    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}


/* =====================================================
   VERANSTALTUNGSKALENDER
===================================================== */

.kalender-box {
    width: 100%;
    box-sizing: border-box;

    background: rgba(255,255,255,0.85);

    border: 2px solid #205070;
    border-radius: 10px;

    padding: 12px;
    margin-bottom: 40px;

    text-align: center;
}

.kalender-box h3 {
    color: #205070;

    margin-bottom: 12px;
    padding-bottom: 5px;

    border-bottom: 1px solid #205070;

    font-size: 1rem;
    font-weight: bold;

    text-align: center;
    white-space: nowrap;
}

.kalender-termine.scrollbar {
    max-height: 285px;
    overflow-y: auto;
    padding-right: 5px;
}

.termin-link {
    display: block;

    color: inherit;
    text-decoration: none;

    cursor: pointer;
}

.termin {
    padding: 10px 0;

    border-bottom: 1px solid #205070;
}

.kalender-termine > *:last-child .termin,
.kalender-termine > .termin:last-child {
    border-bottom: none;
}

.termin-zeile {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 8px;

    align-items: start;

    text-align: left;
}

.termin-icon {
    width: 24px;
    min-height: 20px;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding-top: 2px;
}

.termin-icon img {
    display: block;

    width: 18px;
    height: 18px;
}

.termin-text strong {
    display: block;

    color: #205070;

    font-size: 0.9rem;

    margin-bottom: 4px;
}

.termin-text span {
    display: block;

    font-size: 0.9rem;
    line-height: 1.35;
}

.termin-link:hover .termin {
    background: rgba(32,80,112,0.08);

    border-radius: 6px;

    transition: 0.2s ease;
}

.termin-link:hover strong {
    color: #003b75;
}

.termin-leer {
    text-align: center;

    padding: 15px 5px;

    color: #205070;
}

.termin-leer strong {
    display: block;

    margin-bottom: 8px;
}


/* =====================================================
   WERBEBOXEN
===================================================== */

.werbung-box {
    width: 100%;
    box-sizing: border-box;

    background: rgba(255,255,255,0.85);

    border: 2px dashed #205070;
    border-radius: 10px;

    padding: 15px;
    margin-bottom: 20px;

    text-align: center;
}

.werbung-box h3 {
    color: #205070;

    font-size: 1rem;

    margin-bottom: 10px;

    border: none;
}

.werbung-box p {
    margin: 0;

    line-height: 1.5;
}

.werbung-box p + p {
    margin-top: 15px;
}

/* Links in Werbeboxen dürfen nicht wie Menübuttons aussehen */
.links .werbung-box a,
.werbung-box a {
    display: inline;

    width: auto;
    padding: 0;
    margin: 0;

    color: #205070;
    background: transparent;

    border: none;
    border-radius: 0;

    box-shadow: none;

    font-weight: bold;
    text-decoration: none;

    transform: none;
}

.links .werbung-box a:hover,
.werbung-box a:hover {
    background: transparent;

    transform: none;
    box-shadow: none;

    text-decoration: underline;
}


/* =====================================================
   STARTSEITEN-SLIDER
===================================================== */

.slider {
    position: relative;

    margin: 20px 0;

    background: white;

    border-radius: 10px;

    overflow: hidden;
}

.slider img {
    display: block;

    width: 100%;
    height: 300px;

    object-fit: contain;

    background: white;

    border-radius: 10px;
}

.prev,
.next {
    position: absolute;
    top: 50%;

    transform: translateY(-50%);

    background: rgba(0,0,0,0.5);
    color: white;

    border: none;
    border-radius: 50%;

    padding: 15px;

    font-size: 24px;

    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* =====================================================
   NEWS
===================================================== */

.news-karte {
    background: #fafafa;

    padding: 18px;
    margin-bottom: 18px;

    border-left: 4px solid #205070;
    border-radius: 8px;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
}

.news-karte:last-child {
    margin-bottom: 0;
}

.news-datum {
    display: block;

    margin-bottom: 8px;

    color: #555;
    font-size: 0.85rem;
}

.news-titel {
    width: 100%;

    margin: 0 0 16px 0;

    color: #205070;
    line-height: 1.25;

    overflow-wrap: anywhere;
}

.news-flex {
    display: flex;
    align-items: center;
    gap: 25px;
}

.news-inhalt {
    flex: 1;
    min-width: 0;
}

.news-text {
    margin: 0 0 12px 0;

    line-height: 1.6;
}

.news-mehr {
    margin: 0;
}

.news-bildbereich {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    max-width: 260px;
}

.news-bildlink {
    display: block;

    width: 100%;
    line-height: 0;
}

.news-bild {
    display: block;

    max-width: 260px;
    width: auto;
    height: auto;

    border: 2px solid #205070;
    border-radius: 8px;

    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.news-bildlink:hover .news-bild {
    transform: scale(1.02);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
}

.news a {
    color: #205070;
    font-weight: bold;
    text-decoration: none;
}

.news a:hover {
    text-decoration: underline;
}

/* =====================================================
   NEWS MOBIL
===================================================== */

@media (max-width: 900px) {

    .news-flex {
        flex-direction: column;
        align-items: stretch;
    }

    .news-bildbereich {
        width: 100%;
        max-width: 100%;
        flex-basis: auto;

        margin-top: 8px;
    }

    .news-bild {
        width: 100%;
        max-width: 320px;

        margin: 0 auto;
    }
}

/* =====================================================
   DOWNLOADS
===================================================== */

.download-bereich {
    margin-top: 25px;
}

.download-bereich h3 {
    color: #205070;

    margin-bottom: 12px;
    padding-bottom: 5px;

    border-bottom: 1px solid #205070;
}

.download-liste {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.download-link {
    display: block;

    padding: 12px;

    background: rgba(255,255,255,0.9);
    color: #205070;

    text-decoration: none;
    font-weight: bold;

    border: 2px solid #205070;
    border-radius: 10px;

    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.download-link:hover {
    background: #ffffff;

    text-decoration: underline;
}

.download-leer {
    color: #666;

    font-style: italic;
}


/* =====================================================
   RASSEN
===================================================== */

.rassen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;

    margin-top: 20px;
}

.rasse-beschreibung {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.6;
    margin-bottom: 15px;
}

@media (max-width: 1200px) {
    .rassen-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =====================================================
   VEREINSSEITE
===================================================== */

.vorstellung ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.vorstellung li {
    margin-bottom: 6px;

    line-height: 1.5;
}


/* =====================================================
   IMPRESSUM / DATENSCHUTZ
===================================================== */

.impressum-inhalt,
.datenschutz-inhalt {
    margin-top: 20px;

    background: white;

    border-radius: 10px;

    overflow: hidden;
}

.rechtstext-seite {
    padding: 20px;
}

.rechtstext-box {
    width: 100%;

    overflow: hidden;
}

.itrk-legaltext {
    width: 100%;
}


/* =====================================================
   VERSTORBENE / IN GEDENKEN
===================================================== */

.verstorben-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;

    margin-top: 20px;
}

.verstorben-karte {
    display: flex;
    flex-direction: column;
    align-items: center;

    height: 100%;

    padding: 20px;

    text-align: center;

    border: 2px solid #205070;
}

.verstorben-karte img {
    display: block;

    width: 100%;
    max-width: 220px;
    height: 290px;

    object-fit: cover;
    object-position: center;

    margin: 0 auto 15px auto;

    border-radius: 10px;
    border: 2px solid #205070;

    filter: grayscale(100%);
}

.verstorben-karte h3 {
    color: #205070;

    margin: 10px 0 5px;
}

.verstorben-karte p {
    margin: 4px 0;

    line-height: 1.5;
}

.gedenk-kerze {
    width: 220px;
    height: 220px;

    margin: 0 auto 15px auto;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f5f5;

    border-radius: 10px;
    border: 2px solid #205070;

    font-size: 5rem;
}


/* =====================================================
   RESPONSIVE SEITEN
===================================================== */

@media (max-width: 1100px) {
    .verstorben-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .download-liste,
    .rassen-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .verstorben-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   MEHR-LESEN-TEXT
===================================================== */

.mehrtext-inhalt {
    max-height: 7.5em; /* ca. 5 Zeilen */
    overflow: hidden;
    position: relative;
}

.mehrtext-inhalt::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.5em;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        white
    );
}

.mehrtext-inhalt.offen {
    max-height: none;
}

.mehrtext-inhalt.offen::after {
    display: none;
}

.mehrtext-button {
    margin-top: 10px;

    background: none;
    border: none;

    color: #205070;

    font-weight: bold;
    cursor: pointer;

    padding: 0;
}

.mehrtext-button:hover {
    text-decoration: underline;
}

.mehrtext-button,
.mehr-link {

    display: inline-block;

    margin-top: 10px;

    background: none;
    border: none;

    color: #205070;

    font-weight: bold;
    font-size: 1rem;

    text-decoration: none;

    cursor: pointer;

    padding: 0;

    transition: color 0.2s ease;
}

.mehrtext-button:hover,
.mehr-link:hover {

    color: #003b75;

    text-decoration: underline;
}

/* =====================================================
   TERMIN-INFO-POPUP
===================================================== */

.termin-info-button {
    width: 100%;
    padding: 0;

    background: none;
    border: none;

    font: inherit;
    text-align: inherit;

    cursor: pointer;
}

/* Hintergrund */

.termin-popup {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 10000;

    padding: 20px;

    background: rgba(0, 0, 0, 0.65);

    align-items: center;
    justify-content: center;
}

.termin-popup.anzeigen {
    display: flex;
}

/* Popup */

.termin-popup-inhalt {
    position: relative;

    width: 100%;
    max-width: 450px;

    max-height: 85vh;
    overflow-y: auto;

    padding: 25px;
    padding-top: 60px;

    background: #ffffff;

    border: 3px solid #205070;
    border-radius: 12px;

    box-shadow: 0 8px 30px rgba(0,0,0,0.35);

    text-align: left;
}

/* Überschrift */

.termin-popup-inhalt h3 {
    margin: 0 55px 20px 0;

    padding-bottom: 10px;

    border-bottom: 1px solid #205070;

    color: #205070;

    font-size: 1.4rem;
    font-weight: bold;

    line-height: 1.4;

    word-break: break-word;
}

/* Text */

.termin-popup-inhalt p {
    margin-bottom: 14px;

    line-height: 1.6;

    word-break: break-word;
}

.termin-popup-inhalt strong {
    color: #205070;
}

/* Schließen */

.termin-popup-schliessen {
    position: absolute;

    top: 12px;
    right: 12px;

    width: 38px;
    height: 38px;

    display: flex;
    justify-content: center;
    align-items: center;

    border: none;
    border-radius: 50%;

    background: #205070;
    color: #ffffff;

    font-size: 28px;
    font-weight: bold;

    cursor: pointer;

    transition: all .2s ease;
}

.termin-popup-schliessen:hover {
    background: #2f6f9c;
    transform: rotate(90deg);
}

/* Links */

.termin-popup-inhalt a {
    display: inline-block;

    margin-top: 10px;
    padding: 10px 18px;

    background: #205070;
    color: #ffffff;

    text-decoration: none;
    font-weight: bold;

    border-radius: 8px;

    transition: .2s;
}

.termin-popup-inhalt a:hover {
    background: #2f6f9c;
}

/* Mobil */

@media (max-width: 768px) {

    .termin-popup {
        padding: 12px;
    }

    .termin-popup-inhalt {
        max-width: 100%;
        padding: 20px;
        padding-top: 55px;
    }

}

/* =====================================================
   ANFAHRT / GOOGLE MAPS
===================================================== */

.anfahrt-seite {
    overflow: hidden;
}

.anfahrt-adresse {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    margin: 22px 0;
    padding: 18px;

    background: #edf8ff;

    border: 2px solid #205070;
    border-radius: 10px;

    color: #205070;
    text-align: left;
}

.anfahrt-adresse > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.anfahrt-adresse strong {
    font-size: 1.05rem;
}

.anfahrt-symbol {
    flex: 0 0 auto;

    font-size: 2rem;
    line-height: 1;
}

.anfahrt-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;

    margin: 25px 0;
}

.anfahrt-info-karte {
    padding: 18px;

    background: #fafafa;

    border-left: 4px solid #205070;
    border-radius: 8px;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
}

.anfahrt-info-karte h3 {
    margin: 0 0 12px 0;

    color: #205070;
    font-size: 1.05rem;
}

.anfahrt-info-karte p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.anfahrt-info-karte p:last-child {
    margin-bottom: 0;
}

.anfahrt-karten-ueberschrift {
    margin-top: 28px;
    margin-bottom: 12px;

    color: #205070;
    text-align: center;
}

.maps-container {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #f5f5f5;

    border: 2px solid #205070;
    border-radius: 10px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.maps-container iframe {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;
}

/* =====================================================
   ANFAHRT MOBIL
===================================================== */

@media (max-width: 900px) {

    .anfahrt-adresse {
        align-items: flex-start;
        justify-content: flex-start;

        text-align: left;
    }

    .anfahrt-info-grid {
        grid-template-columns: 1fr;
    }

    .maps-container {
        aspect-ratio: 4 / 3;
    }

}

@media (max-width: 520px) {

    .anfahrt-adresse {
        padding: 14px;
    }

    .anfahrt-symbol {
        font-size: 1.6rem;
    }

    .anfahrt-adresse strong {
        font-size: 1rem;
    }

    .anfahrt-info-karte {
        padding: 15px;
    }

    .maps-container {
        aspect-ratio: 1 / 1;
    }

    .anfahrt-seite .button-zurueck {
        width: 100%;

        padding-left: 12px;
        padding-right: 12px;

        text-align: center;
    }

}