/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    color: #ffffff;
    background: #000000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Selection Screen */
.selection-screen {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-in;
}

.selection-screen.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.selection-container {
    background: #000000;
    border: 2px solid #ffffff;
    padding: 40px 30px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.selection-container h1 {
    text-align: center;
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    text-align: center;
    color: #ffffff;
    margin-bottom: 30px;
    font-size: 1rem;
    opacity: 0.8;
}

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

.bundesland-tile {
    background: #000000;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 20px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
}

.bundesland-tile:hover {
    background: #ffffff;
    color: #000000;
}

.bundesland-tile:active {
    transform: scale(0.98);
}

/* Main Screen */
.main-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    animation: fadeIn 0.3s ease-in;
}

/* Loading State */
.loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 0;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error State */
.error {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    gap: 20px;
}

.error p {
    font-size: 1.2rem;
}

.retry-button {
    background: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
}

.retry-button:hover {
    background: #ffffff;
    color: #000000;
}

/* Content */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

/* Header */
.header {
    background: #000000;
    padding: 15px 20px;
    border: 1px solid #ffffff;
    margin-bottom: 20px;
}

.bundesland-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bundesland-selector label {
    font-weight: 400;
    color: #ffffff;
    text-transform: uppercase;
}

#bundeslandSelect {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ffffff;
    background: #000000;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Courier New', Courier, monospace;
}

#bundeslandSelect:focus {
    outline: none;
    background: #ffffff;
    color: #000000;
}

#bundeslandSelect:hover {
    background: #ffffff;
    color: #000000;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Answer Container */
.answer-container {
    background: #000000;
    border: 3px solid #ffffff;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.main-answer {
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    color: #ffffff;
    letter-spacing: 10px;
}

.main-answer.work-day {
    color: #ffffff;
}

.main-answer.holiday {
    color: #ffffff;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.5; }
}

.question {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 400;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Holiday Info */
.holiday-info {
    background: #000000;
    border: 2px solid #ffffff;
    padding: 20px;
    text-align: center;
}

.holiday-name {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Next Holiday */
.next-holiday {
    background: #000000;
    border: 1px solid #ffffff;
    padding: 25px;
}

.next-holiday h2 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
}

.next-holiday-info {
    font-size: 1.1rem;
    color: #ffffff;
    opacity: 0.9;
}

/* Donation Section */
.donation-section {
    background: #000000;
    border: 1px solid #ffffff;
    padding: 25px;
    text-align: center;
}

.donation-text {
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 1rem;
    opacity: 0.8;
}

.paypal-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000000;
    color: #ffffff;
    padding: 12px 30px;
    border: 2px solid #ffffff;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.2s ease;
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
}

.paypal-button:hover {
    background: #ffffff;
    color: #000000;
}

/* Footer */
.footer {
    background: #000000;
    border: 1px solid #ffffff;
    padding: 20px;
    text-align: center;
    color: #ffffff;
    margin-top: 20px;
}

.footer a {
    color: #ffffff;
    text-decoration: underline;
}

.footer a:hover {
    background: #ffffff;
    color: #000000;
}

.cache-info {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 5px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}



/* Responsive Design */
@media (max-width: 768px) {
    .selection-container {
        padding: 30px 20px;
    }

    .selection-container h1 {
        font-size: 1.5rem;
    }

    .bundesland-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .bundesland-tile {
        padding: 15px 10px;
        font-size: 0.9rem;
    }

    .main-answer {
        font-size: 5rem;
    }

    .answer-container {
        padding: 40px 20px;
    }

    .question {
        font-size: 1.2rem;
    }

    .holiday-name {
        font-size: 1.2rem;
    }

    .next-holiday h2 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .bundesland-grid {
        grid-template-columns: 1fr;
    }

    .main-answer {
        font-size: 4rem;
    }

    .question {
        font-size: 1rem;
    }
}

