/* =========================================
   GEDENKSEITEN-ÜBERSICHT
========================================= */

.memorial-overview-container {
    max-width: 1400px;
    padding: 30px 60px 60px;
}

.memorial-swiper {
    width: 100%;
    padding: 20px 10px 65px;
}

.memorial-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

.memorial-card-link {
    display: block;
    width: 100%;
    max-width: 470px;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.memorial-card-link:hover {
    color: inherit;
}

.memorial-overview-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 620px;
    height: 100%;
    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98),
            rgba(247, 245, 241, 0.98)
        );

    border: 1px solid rgba(66, 58, 50, 0.13);
    border-radius: 30px;

    box-shadow:
        0 18px 45px rgba(46, 40, 35, 0.13),
        0 3px 10px rgba(46, 40, 35, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.memorial-overview-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;

    background: linear-gradient(
        90deg,
        #7c736a,
        #b6aaa0,
        #7c736a
    );
}

.memorial-card-link:hover .memorial-overview-card {
    transform: translateY(-8px);

    border-color: rgba(66, 58, 50, 0.24);

    box-shadow:
        0 25px 55px rgba(46, 40, 35, 0.18),
        0 8px 18px rgba(46, 40, 35, 0.1);
}


/* =========================================
   PROFILBEREICH
========================================= */

.memorial-card-top {
    padding: 42px 30px 14px;
    text-align: center;
}

.memorial-profile-image {
    display: block;
    width: 165px;
    height: 165px;
    margin: 0 auto 24px;

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

    border: 6px solid #ffffff;
    border-radius: 50%;

    box-shadow:
        0 10px 28px rgba(51, 45, 40, 0.19),
        0 0 0 1px rgba(70, 60, 52, 0.1);
}

.memorial-card-name {
    margin: 0;
    color: #332f2b;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
}

.memorial-birth-name {
    margin-top: 8px;
    color: #817a74;
    font-size: 0.95rem;
}


/* =========================================
   LEBENSDATEN
========================================= */

.memorial-card-dates {
    margin: 8px 35px 0;
    padding: 18px 20px;

    color: #57514b;
    background: rgba(255, 255, 255, 0.58);

    border-top: 1px solid rgba(78, 68, 60, 0.1);
    border-bottom: 1px solid rgba(78, 68, 60, 0.1);

    text-align: center;
    font-size: 1rem;
    line-height: 1.8;
}

.memorial-symbol {
    display: inline-block;
    min-width: 16px;
    color: #6f675f;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
}


/* =========================================
   BEISETZUNG
========================================= */

.memorial-funeral {
    margin: 22px 35px 0;
    padding: 18px 20px;

    color: #5c554f;
    background: #ece8e3;

    border-radius: 18px;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.7;
}

.memorial-funeral-title {
    margin-bottom: 5px;
    color: #3f3a35;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.memorial-funeral i {
    margin-right: 4px;
}

.memorial-divider {
    margin: 0 7px;
    color: #9e958c;
}

.memorial-funeral-location {
    margin-top: 2px;
}


/* =========================================
   ABSCHIEDSWORTE
========================================= */

.memorial-quote {
    position: relative;
    flex-grow: 1;

    margin: 22px 35px 0;
    padding: 23px 24px 22px;

    color: #5d5650;
    background: rgba(255, 255, 255, 0.68);

    border-left: 4px solid #aea39a;
    border-radius: 4px 18px 18px 4px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.65;
    text-align: center;
}

.memorial-quote-icon {
    display: block;
    margin-bottom: 6px;

    color: #a69c93;
    font-size: 1.8rem;
    line-height: 1;
}


/* =========================================
   BUTTON / FUSS
========================================= */

.memorial-card-footer {
    padding: 26px 35px 32px;
    text-align: center;
}

.memorial-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-width: 210px;
    padding: 12px 22px;

    color: #ffffff;
    background: #5d5650;

    border-radius: 999px;

    font-size: 0.95rem;
    font-weight: 500;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.memorial-card-link:hover .memorial-card-button {
    background: #3f3a35;
    transform: translateX(2px);
}


/* =========================================
   SWIPER NAVIGATION
========================================= */

.memorial-swiper .swiper-button-next,
.memorial-swiper .swiper-button-prev {
    width: 46px;
    height: 46px;

    color: #4e4842;
    background: rgba(255, 255, 255, 0.92);

    border: 1px solid rgba(74, 66, 59, 0.15);
    border-radius: 50%;

    box-shadow: 0 5px 18px rgba(48, 42, 37, 0.14);
}

.memorial-swiper .swiper-button-next::after,
.memorial-swiper .swiper-button-prev::after {
    font-size: 17px;
    font-weight: 700;
}

.memorial-swiper .swiper-pagination-bullet {
    background: #756d66;
}

.memorial-empty {
    width: 100%;
    padding: 50px 25px;

    color: #6e665f;
    background: #f4f1ed;

    border-radius: 20px;

    text-align: center;
}


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

@media (max-width: 767px) {

    .memorial-overview-container {
        padding: 15px 12px 40px;
    }

    .memorial-swiper {
        padding-right: 4px;
        padding-left: 4px;
    }

    .memorial-overview-card {
        min-height: auto;
        border-radius: 24px;
    }

    .memorial-card-top {
        padding: 36px 20px 12px;
    }

    .memorial-profile-image {
        width: 140px;
        height: 140px;
    }

    .memorial-card-name {
        font-size: 1.65rem;
    }

    .memorial-card-dates,
    .memorial-funeral,
    .memorial-quote {
        margin-right: 20px;
        margin-left: 20px;
    }

    .memorial-card-footer {
        padding-right: 20px;
        padding-left: 20px;
    }

    .memorial-swiper .swiper-button-next,
    .memorial-swiper .swiper-button-prev {
        display: none;
    }
}

.memorial-overview-card .memorial-profile-image {
    display: block;
    width: 165px;
    height: 165px;
    max-width: 165px;
    max-height: 165px;
    margin: 0 auto 24px;

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

    border: 6px solid #ffffff;
    border-radius: 50%;

    box-shadow: 0 10px 28px rgba(51, 45, 40, 0.19);
}

/* =========================================
   ALLE GEDENKSEITEN
========================================= */

.memorial-list-page {
    max-width: 1400px;
}

.memorial-list-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    padding: 28px 30px;

    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(66, 58, 50, 0.11);
    border-radius: 24px;

    box-shadow: 0 10px 30px rgba(46, 40, 35, 0.08);
}

.memorial-list-title {
    margin: 0;

    color: #332f2b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 500;
}

.memorial-list-subtitle {
    margin: 7px 0 0;
    color: #756e68;
}


/* Suche */

.memorial-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 430px;
}

.memorial-search-input {
    min-height: 52px;
    padding: 12px 48px 12px 48px;

    background: #faf9f7;
    border: 1px solid #dcd7d2;
    border-radius: 999px;

    font-size: 1rem;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.memorial-search-input:focus {
    background: #ffffff;
    border-color: #8a8179;

    box-shadow:
        0 0 0 0.22rem rgba(104, 94, 85, 0.14);
}

.memorial-search-icon {
    position: absolute;
    top: 50%;
    left: 19px;
    z-index: 2;

    color: #77706a;
    font-size: 1.1rem;

    transform: translateY(-50%);
    pointer-events: none;
}

.memorial-search-spinner {
    position: absolute;
    top: 50%;
    right: 18px;

    color: #69615a;

    transform: translateY(-50%);
}


/* Kartenraster */

.memorial-card-grid {
    align-items: stretch;
}

.memorial-card-grid > div {
    align-items: stretch;
}

.memorial-list-card-link {
    max-width: none;
}

.memorial-list-card {
    min-height: 650px;
}

.memorial-list-quote {
    max-height: 155px;
    overflow: hidden;
}


/* Ladevorgang */

#card-container {
    min-height: 250px;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

#card-container.is-loading {
    opacity: 0.48;
    transform: translateY(3px);
    pointer-events: none;
}


/* Keine Ergebnisse */

.memorial-no-results {
    padding: 70px 25px;

    color: #675f58;
    background: rgba(255, 255, 255, 0.94);

    border: 1px solid rgba(66, 58, 50, 0.11);
    border-radius: 24px;

    box-shadow: 0 10px 30px rgba(46, 40, 35, 0.08);

    text-align: center;
}

.memorial-no-results-icon {
    display: block;
    margin-bottom: 16px;

    color: #9c9188;
    font-size: 3rem;
}

.memorial-no-results h3 {
    color: #3e3934;
    font-family: Georgia, "Times New Roman", serif;
}


/* Pagination */

.memorial-pagination-wrapper {
    margin-top: 45px;
}

.memorial-pagination {
    gap: 7px;
}

.memorial-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 43px;
    height: 43px;
    padding: 8px 13px;

    color: #59524c;
    background: rgba(255, 255, 255, 0.94);

    border: 1px solid #d8d2cc;
    border-radius: 50% !important;

    box-shadow: 0 4px 12px rgba(46, 40, 35, 0.07);
}

.memorial-pagination .page-link:hover {
    color: #ffffff;
    background: #6a625b;
    border-color: #6a625b;
}

.memorial-pagination .page-item.active .page-link {
    color: #ffffff;
    background: #4d4741;
    border-color: #4d4741;
}

.memorial-pagination .page-item.disabled .page-link {
    color: #aaa39c;
    background: rgba(244, 242, 239, 0.85);
}


/* Responsive */

@media (max-width: 767.98px) {

    .memorial-list-page {
        padding-right: 10px;
        padding-left: 10px;
    }

    .memorial-list-header {
        align-items: stretch;
        flex-direction: column;
        gap: 20px;

        padding: 22px 18px;
    }

    .memorial-list-title {
        font-size: 1.7rem;
    }

    .memorial-search-wrapper {
        max-width: none;
    }

    .memorial-list-card {
        min-height: auto;
    }

    .memorial-list-quote {
        max-height: none;
    }
}