
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; 
    background-image: url('https://bordbahn.ch/IMG_7632.webp'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.header .logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.8rem;
    color: #555;
    flex-shrink: 0;
}

.header .nav-desktop {
    display: none; 
    gap: 1.5rem;
}

.header .nav-desktop button {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease; 
    position: relative;
    overflow: hidden;
    color: #333;
    font-weight: 600;
}

.header .nav-desktop button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header .nav-desktop button.active {
    background-color: #DC2626; 
    color: white;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
    transform: scale(1.05);
}

.header .lang-switch-desktop {
    display: flex;
    gap: 0.5rem;
}

.header .lang-switch-desktop button {
    background-color: #f0f0f0;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.header .lang-switch-desktop button.active {
    background-color: #DC2626; 
    color: white;
}

/* Hauptinhaltsbereich */
.main-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.main-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 800px;
    width: 90%;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    transform: translateY(0);
    opacity: 1;
}


.footer-mobile-nav {
    display: flex; 
    justify-content: space-around;
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.footer-mobile-nav button {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #555;
    padding: 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;  
    flex: 1;
    max-width: 100px;
}

.footer-mobile-nav button .icon {
    font-size: 1.5rem;
}

.footer-mobile-nav button.active {
    background-color: #DC2626; 
    color: white;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.4);
    transform: scale(1.05);
}


@keyframes jump {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.header button.jumping {
    animation: jump 0.4s ease-out;
}

.footer-mobile-nav button.jumping {
    animation: jump 0.4s ease-out;
}


.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}


@media (min-width: 768px) {
    .header .nav-desktop {
        display: flex; 
    }
    .footer-mobile-nav {
        display: none; 
    }
    .header .lang-switch-desktop {
        display: flex;
    }
    .header .lang-switch-mobile {
        display: none;
    }
}

@media (max-width: 767px) {
    .header {
        padding: 0.75rem 1rem;
    }
    .header .logo {
        width: 40px;
        height: 40px;
    }
    .header .lang-switch-desktop {
        display: none;
    }
    .header .lang-switch-mobile {
        display: flex;
        gap: 0.5rem;
    }
    .header .lang-switch-mobile button {
        background-color: #f0f0f0;
        border: none;
        padding: 0.4rem 0.8rem;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 600;
    }
    .header .lang-switch-mobile button.active {
        background-color: #DC2626; 
        color: white;
    }
    .main-card {
        padding: 1.5rem;
    }
    .footer-mobile-nav button {
        font-size: 0.65rem;
        padding: 0.4rem;
    }
    .footer-mobile-nav button .icon {
        font-size: 1.2rem;
    }
}

.btn {
      background-color: #f0f0f0;
        border: none;
        padding: 0.4rem 0.8rem;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 600;
        margin-top: 5px;
}

.btn:hover {
    background-color: #DC2626; 
    color: white;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.4);
    transform: scale(1.05);
}