/* Farbpalette
   https://coolors.co/palette/071e22-1d7874-679289-f4c095-ee2e31
*/

body {
    /* background-color: #071e22; */
    background-image: url("../img/schwanzwald.png");
    background-size: cover;
    font-family: "Inter", sans-serif;
    margin: 0;
    padding: 0;
    color: #f4c095;
}

.calendar-frame {
    padding: 40px;
    margin: 2rem;
}

.doors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.door.closed {
    background: linear-gradient(145deg, #1d7874, #679289);
    border: 2px solid #f4c095aa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    color: #f4c095;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.door.opened {
    background: linear-gradient(145deg, #ee2e31, #f4c095);
    border: 2px solid #1d7874;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #071e22;
    text-shadow: 0 2px 4px rgba(255,255,255,0.4);
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.door {
    height: auto;
    width: 100%;
    max-width: 100%;

    border-radius: 16px;
    background-image: url("../img/bg_door.jpg");;
    background-position: center 40%;
    background-size: 120%;
    border: 2px solid #f4c095aa;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4), 0 0 8px rgba(244,192,149,0.2);
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;

    display: grid;
    grid-template-columns: 120px 1fr auto;

    align-items: center;
    padding: 18px 22px;
    box-sizing: border-box;
    column-gap: 18px;
}

.door-number-box {
    height: 120px;
    width: 120px;
    border-radius: 14px;
    background: linear-gradient(145deg, #1d7874, #679289);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5), 0 0 10px rgba(238,46,49,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* benutze ich aktuell nicht */
/* .door-number-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
    margin-bottom: 0.3rem;
} */

.door-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fdf3e5;
    text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}

.door-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fdf3e5;
}

.door-header {
    display: grid;
    grid-template-columns: 1fr auto;
    margin-bottom: 6px;
    padding-bottom: 4px;
}

.door-header-left {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 1;
    font-weight: 600;

    background: rgba(0, 0, 0, 0.35);
    padding: 4px 10px;
    border-radius: 6px;

    display: inline-block;
    margin-bottom: 0.6rem;

    color: #fdf3e5;
}

.door-header-right {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 1;

    background: rgba(0, 0, 0, 0.35);
    padding: 4px 10px;
    border-radius: 6px;

    display: inline-block;
    margin-bottom: 0.6rem;
    color: #fdf3e5;
}

.door-rows {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 6px;
}

.door-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
}

.door-prize {
    color: #fdf3e5;
    font-size: 1.05rem;
    line-height: 1.35;
    word-break: break-word;
}

.door-los {
    color: #fdf3e5;
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
}

.door-divider {
    height: 1px;
    width: 100%;
    background-color: rgba(255,255,255,0.18);
    margin: 6px 0;
}

.door-content-text {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
}

.door-ticket {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    white-space: nowrap;
    justify-content: center;
    text-align: right;
}

.door-ticket-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fdf3e5;
}

.door:hover {
    transform: scale(1.03);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.6),
        0 0 16px rgba(238, 46, 49, 0.35);
    border-color: #ee2e31;
}

.overschrivvl {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 20px 0;
}

.overschrivvl img:nth-child(1) {
    margin-left: 50px;
}

.overschrivvl img:nth-child(2) {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}


/* tablet size 2 cols */
@media (max-width: 1530px) {
    .calendar-frame {
        margin: 1rem;
        padding: 24px;
    }

    .doors {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .door {
        height: auto;
        grid-template-columns: 100px 1fr 90px;
    }

    .door-number-box {
        width: 100px;
        height: 100px;
    }
}

/* mobile size*/
@media (max-width: 700px) {
    .calendar-frame {
        margin: 0.5rem;
        padding: 16px;
    }

    .doors {
        grid-template-columns: 1fr; /* eine Spalte */
        gap: 20px;
    }

    .door {
        width: 100%;
        height: auto;
        grid-template-columns: 80px 1fr auto;
        padding: 14px 16px;
    }

    .door-number-box {
        width: 80px;
        height: 80px;
    }

    .door-content-text {
        font-size: 1rem;
    }

    .door-ticket-value {
        font-size: 1.2rem;
    }
}