/* ==================================================================
   Sterbefall-Karten (Grabstein-Design)
   Angelehnt an das Original-Design mit Marmor-Hintergrund
   und oben abgerundeten Ecken.
   ================================================================== */

/* ─── Grabstein-Karte (Übersicht + Detail) ─── */
.decease-card {
    position: relative;
    border: 1px solid #C8BFA8;
    background: linear-gradient(rgba(248,244,239,0.3), rgba(248,244,239,0.3)),
                url('/assets/images/backgrounds/perlato_beige_marble.png') no-repeat center center;
    background-size: cover, cover;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 8px -8px 12px rgba(0,0,0,0.12);
    padding: 0;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.decease-card:hover {
    box-shadow: 10px -10px 16px rgba(0,0,0,0.18);
}

/* ─── Bild-Bereich ─── */
.decease-card-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 10px 3px 10px;
    min-height: 60px;
}

.decease-card-photo img {
    border: solid 2px #CCC;
    border-radius: 6px;
    padding: 3px;
    background: #fff;
    max-width: 100%;
    height: auto;
    max-height: 140px;
    width: auto;
}

/* ─── Inhalt (Name, Daten) ─── */
.decease-card-body {
    padding: 5px 16px 16px 16px;
    text-align: center;
    color: #2D2D2D;
}

.decease-card-name {
    font-family: 'Sacramento', cursive;
    font-size: 2rem;
    font-weight: 600;
    color: #5A4A3A;
    line-height: 1.2;
    margin-bottom: 4px;
    display: block;
}

.decease-card-location {
    font-size: 0.9rem;
    color: #5A4A3A;
    font-weight: 500;
    margin-top: 2px;
}

.decease-card-hr {
    border: none;
    border-top: 1px solid #C8BFA8;
    margin: 8px auto;
    width: 80%;
}

.decease-card-date {
    font-size: 0.95rem;
    color: #3D3D3D;
    line-height: 1.6;
}

.decease-card-date strong {
    color: #5A4A3A;
}

.decease-card-age {
    font-size: 0.95rem;
    color: #3D3D3D;
    line-height: 1.6;
}

.decease-card-verstorben {
    font-size: 0.95rem;
    color: #3D3D3D;
    line-height: 1.6;
}

.decease-card-condolence {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #fff;
    background: rgba(60,50,40,0.55);
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 3px;
    transition: background 0.2s ease;
}

.decease-card-condolence:hover {
    background: rgba(60,50,40,0.8);
    color: #fff;
}

.decease-card-funeral {
    font-size: 0.85rem;
    color: #5A4A3A;
    line-height: 1.4;
    margin-top: 4px;
}

.decease-card-funeral u {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ─── Download-Link (PDF) ─── */
.decease-card-download {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
    vertical-align: middle;
}

.decease-card-download img {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.decease-card-download:hover img {
    opacity: 1;
}

/* ─── Detail-Ansicht: Größere Variante (nutzt auch .decease-card Basis) ─── */
.decease-detail-card .decease-card-photo {
    padding: 24px 24px 8px 24px;
    min-height: 160px;
}

.decease-detail-card .decease-card-photo img {
    max-height: 300px;
    width: auto;
    border-width: 3px;
}

.decease-detail-card .decease-card-name {
    font-size: 3rem;
}

.decease-detail-card .decease-card-body {
    padding: 10px 24px 24px 24px;
}

.decease-detail-card .decease-card-date {
    font-size: 1.1rem;
}

.decease-detail-card .decease-card-age {
    font-size: 1rem;
}

.decease-detail-card .decease-card-funeral {
    font-size: 1rem;
}

/* ─── Pager ─── */
.decease-pager a,
.decease-pager span {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #C8BFA8;
    background: #fff;
    color: #5A4A3A;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.decease-pager a:hover {
    background: #5A4A3A;
    color: #fff;
    border-color: #5A4A3A;
}

.decease-pager .active {
    background: #5A4A3A;
    color: #fff;
    border-color: #5A4A3A;
}

/* ─── Responsive: kleinere Schrift auf Mobil ─── */
@media (max-width: 640px) {
    .decease-card-name {
        font-size: 1.5rem;
    }

    .decease-detail-card .decease-card-name {
        font-size: 2rem;
    }

    .decease-card-photo {
        padding: 6px 6px 2px 6px;
        min-height: 40px;
    }

    .decease-card-body {
        padding: 3px 10px 10px 10px;
    }

    .decease-detail-card .decease-card-photo {
        padding: 14px 14px 6px 14px;
        min-height: 100px;
    }

    .decease-detail-card .decease-card-photo img {
        max-height: 180px;
    }
}
