/* ================================================================= */
/*                          Allgemeine Stile                         */
/* ================================================================= */
@import url('../css/variables.css');

/* ======================= Grundstruktur ======================= */
.license-section {
    width: 100%;
    background-color: #f3f4ed;
    padding: 6rem 2rem;
}

.license-container {
    max-width: 99rem;
    margin: 0 auto;
    text-align: center;
}

/* =========================== Überschrift ========================== */
.license-tagline {
    font-size: 1.1rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.license-heading {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #212121;
}

/* ========================= Kartenlayout ======================== */
.license-cards {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    /* Mobile zuerst */
    gap: 30px;
}

/* ===================== Flip-Karten Setup ===================== */
.license-card {
    perspective: 1000px;
    position: relative;
    min-height: 550px;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.flip-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.license-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-hint {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: left;
    padding-left: 1rem;
    font-size: 0.8rem;
    opacity: 0.6;
    color: #333;
}

/* Vorder- und Rückseite */
.flip-card-front,
.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flip-card-front {
    background-color: white;
    z-index: 2;
    padding: 15px;
}

/* ======================== Rückseite Style angepasst ========================= */
.flip-card-back {
    background-color: #fff;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    transform: rotateY(180deg);
    overflow: hidden;
}

.license-header {
    padding: 20px;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

.license-header.license-b {
    background: linear-gradient(to right, #00c6ff, #0072ff);
}

.license-header.license-a {
    background: linear-gradient(to right, #ff758c, #ff7eb3);
}

.license-header.license-c {
    background: linear-gradient(to right, #56ab2f, #a8e063);
}

.license-header.license-d {
    background: linear-gradient(to right, #f7971e, #ffd200);
}

.license-details {
    padding: 18px 20px;
    font-size: 0.9rem;
    color: #212121;
    text-align: left;
    line-height: 1.5;
}

.license-details p {
    margin: 0 0 12px;
}

/* ========================= Bildbereich ======================== */
.license-image {
    width: 100%;
    height: 80%;
    border-radius: var(--border-radius);
    object-fit: cover;
    flex-grow: 1;
}

/* ========================= Infobereich (unten) ================== */
.license-info {
    padding: 15px;
    background-color: #fff;
    color: #212121;
    text-align: left;
}

.license-info h4 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #212121;
}

.license-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #212121;
}

/* ===================== Disabled Card (nur Bild betroffen) ============= */
.license-card.disabled {
    pointer-events: none;
    opacity: 1;
    position: relative;
}

.license-image-wrapper {
    position: relative;
    width: 100%;
    height: 80%;
    overflow: hidden;
}

.license-card.disabled .license-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) brightness(0.5);
    transition: filter 0.3s ease;
}

/* ======================== Overlay-Text (Bald verfügbar) =========== */
.license-overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 1;
}


/* ================================================================= */
/*                             Responsive                            */
/* ================================================================= */
@media (min-width: 600px) {
    .license-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 4 Spalten ab 1156px */
@media (min-width: 1156px) {
    .license-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}