body {
    font-family: 'Georgia', serif;
    background: #003366;
    margin: 0;
    padding: 10px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

.kalender-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 900px;
    width: 100%;
    overflow: hidden;
    margin: 10px auto;
}

.header {
    background: rgb(210, 40, 50);
    color: white;
    text-align: center;
    padding: 15px 10px;
    position: relative;
}

.header h1 {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo {
    position: absolute;
    top: 10px;
    right: 10px;
    height: clamp(40px, 8vw, 60px);
    width: auto;
}

.dato {
    background: rgb(163, 188, 228);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 1.2em;
    font-weight: bold;
}

.indhold {
    padding: 20px;
    text-align: center;
}

.billede {
    width: 100%;
    max-width: 500px;
    height: clamp(200px, 40vw, 350px);
    border-radius: 10px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.billede img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tekst {
    background: #f8f9fa;
    border-left: 5px solid #ff6600;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.sporgsmaal {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: #003366;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.svarmuligheder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.svar {
    background: #f8f9fa;
    border: 2px solid rgb(163, 188, 228);
    border-radius: 8px;
    padding: clamp(8px, 2vw, 12px);
    text-align: center;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    color: #003366;
    transition: all 0.3s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.svar.rigtigt {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.svar.forkert {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.svar-resultat {
    background: #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
}

.svar-resultat.rigtigt {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.svar-resultat.forkert {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

.svar:hover:not(.rigtigt):not(.forkert) {
    background: rgb(163, 188, 228);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.forside {
    padding: 20px;
    text-align: center;
}

.forside h2 {
    color: #003366;
    margin-bottom: 20px;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.laager {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: clamp(8px, 2vw, 15px);
    max-width: 800px;
    margin: 0 auto;
}

.laage {
    background: linear-gradient(135deg, rgb(210, 40, 50), #c41e3a);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    padding: clamp(10px, 3vw, 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(50px, 8vw, 80px);
    aspect-ratio: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.laage:hover:not(.locked) {
    transform: scale(1.05) rotateY(10deg);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #d63447, rgb(210, 40, 50));
}

.laage.locked {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.laage.locked:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.advarsel-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.advarsel-indhold {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.advarsel-indhold h3 {
    color: rgb(210, 40, 50);
    margin-top: 0;
    font-size: 1.5em;
}

.advarsel-indhold p {
    color: #003366;
    line-height: 1.6;
    margin: 15px 0;
}

.luk-knap {
    background: rgb(163, 188, 228);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.luk-knap:hover {
    background: #003366;
    transform: translateY(-2px);
}

.laage-nummer {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tilbage {
    margin-bottom: 20px;
}

.tilbage-knap {
    background: rgb(163, 188, 228);
    color: white;
    text-decoration: none;
    padding: clamp(8px, 2vw, 12px) clamp(15px, 3vw, 20px);
    border-radius: 5px;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.tilbage-knap:hover {
    background: #003366;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    body {
        padding: 5px;
        align-items: flex-start;
    }
    
    .kalender-container {
        margin: 5px;
        border-radius: 10px;
    }
    
    .header {
        padding: 10px 5px;
    }
    
    .logo {
        top: 5px;
        right: 5px;
    }
    
    .indhold {
        padding: 15px;
    }
    
    .forside {
        padding: 15px;
    }
    
    .svarmuligheder {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .laager {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.3rem;
    }
    
    .laager {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .billede {
        height: 200px;
    }
}

@media (min-width: 1200px) {
    .laager {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .svarmuligheder {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hilsen {
    background: rgb(163, 188, 228);
    color: white;
    text-align: center;
    padding: 15px;
    font-style: italic;
    font-size: 1.1em;
}

.sne {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.snefnug {
    position: absolute;
    color: white;
    font-size: 1em;
    animation: fald 10s linear infinite;
}

@keyframes fald {
    0% { transform: translateY(-100vh) rotate(0deg); }
    100% { transform: translateY(100vh) rotate(360deg); }
}