#talfi-livskort-ramme {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.livskort {
    background-color: transparent;
    width: 280px;
    height: 420px;
    perspective: 1000px;
    cursor: pointer;
}

.kort-indre {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.livskort.vendt .kort-indre {
    transform: rotateY(180deg);
}

.kort-forside, .kort-backside {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
}

.kort-forside {
    background-color: #f0f0f0;
}

.kort-forside img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kort-backside {
    background: #ffffff;
    color: #333333;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    box-sizing: border-box;
    border: 2px solid #eaeaea;
}

.kort-tekst {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #222222;
    font-style: italic;
    word-break: break-word;
}

@media (max-width: 600px) {
    .livskort {
        width: 100%;
        max-width: 260px;
        height: 390px;
    }
    .kort-tekst {
        font-size: 1.1rem;
    }
}