/* Hintergrund sauber über das ganze Display inkl. Safe-Area */
html, body {
    margin: 0;
    padding: 0;
    background: #4A1F1A;
    height: 100%;
}

html::before {
    content: '';
    position: fixed;
    inset: 0;
    background: #4A1F1A;
    z-index: -1;
}

/* Haupt-Body-Style */
body {
    position: relative;
    font-family: 'Arial', sans-serif;
    color: #fff;
    text-align: center;

    overflow-y: auto;

    padding-top: calc(60px + env(safe-area-inset-top));
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    min-height: 100vh;
}

/* LOGO BEREICH */
.logo {
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: logoFadeZoom 1.5s ease forwards;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 20px; /* Abgerundete Ecken */
}

/* TYPOGRAFIE */
h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 1.5s;
}

p {
    font-size: 1.2rem;
    max-width: 400px;
    line-height: 1.5;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 2s;
}

/* FOOTER - jetzt korrekt im Layoutfluss */
footer {
    margin-top: 30px;          /* Abstand zum letzten Inhalt */
    padding-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ANIMATIONEN */
@keyframes logoFadeZoom {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE LOGO GRÖSSEN */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    p { font-size: 1rem; }
    .logo { width: 120px; height: 120px; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    p { font-size: 0.9rem; }
    .logo { width: 110px; height: 110px; }
}

/* LANGUAGE SWITCHER */
.language-switcher {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 1000;
}

.language-switcher img {
    width: 56px;
    height: 40px;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    cursor: pointer;
    opacity: 0.8;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.language-switcher img:hover {
    transform: scale(1.1);
    opacity: 1;
}

@media (max-width: 480px) {
    .language-switcher img {
        width: 48px;
        height: 34px;
    }
}

/* EVENT BOX */
.event-info-box {
    margin-top: 25px;
    padding: 15px 20px;
    border-radius: 12px;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
    max-width: 400px;
    text-align: center;
    animation: fadeIn 1.2s ease forwards;
}

.event-label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    margin: 5px 6px;
    font-size: 0.9rem;
    font-weight: bold;
}

.label-open { background: #25a725; }
.label-closed { background: #b32020; }
