:root {
    --bg: #fef6f0;
    --card: #fff;
    --accent: #d63447;
    --accent-dark: #a02734;
    --muted: #666;
    --gold: #f9c74f;
}

body {
    font-family: "Comic Sans MS", cursive, sans-serif;
    background: var(--bg) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><circle cx="2" cy="2" r="1" fill="%23d63447"/><circle cx="10" cy="15" r="1" fill="%23f9c74f"/><circle cx="15" cy="5" r="1" fill="%23d63447"/></svg>') repeat;
    color: #111;
    margin: 0;
    padding: 1rem;
}

main {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.2rem;
    color: var(--accent-dark);
    text-shadow: 1px 1px 3px var(--gold);
}

#info {
    font-size: 1rem;
    color: var(--muted);
}

#calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 1rem;
}

.box {
    background: var(--card);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.box.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.box.today {
    border: 3px solid var(--accent);
    background: linear-gradient(145deg, #fff5f0, #ffe6e0);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Türöffnen Animation */
.box.opening::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    background: var(--gold);
    transform: translateX(-50%);
    animation: doorOpen 0.6s forwards;
}

@keyframes doorOpen {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 0; }
}

.falling-star {
    box-shadow: 0 0 6px gold;
}

button {
    margin-top: 6px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: var(--accent);
    color: white;
    font-weight: bold;
    transition: background 0.2s, transform 0.2s;
}

button:hover {
    background: var(--accent-dark);
    transform: scale(1.05);
}

#player {
    margin-top: 2rem;
    background: #fff7f3;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#player-title {
    margin-bottom: 0.5rem;
    color: var(--accent-dark);
}

video, img {
    border-radius: 8px;
    max-width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Responsive Grid */
@media (max-width: 600px) {
    #calendar {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
}
