@font-face {
    font-family: montserrat-medium;
    src: url(fonts/montserrat/Montserrat-Medium.ttf);
}
@font-face {
    font-family: montserrat-bold;
    src: url(fonts/montserrat/Montserrat-Bold.ttf);
}

body {
    font-family: montserrat-medium, sans-serif;
    margin: 0;
    background: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigationsleiste */
nav {
    background-color: #297ab8;
    position: fixed;
    top: 0;
    left: 0;
    width: 90%;
    margin: auto;
    z-index: 1000;

    /* Größer & mehr Platz */
    padding: 1.2rem 2rem;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Abstand zwischen links, mitte, rechts */
    margin: 0;
    padding: 0;
    width: 100%;
    color: white;
    font-family: montserrat-medium;
    font-size: 1.4rem; /* größere Schrift */
}

nav ul li {
    flex: 0 1 auto; /* passt sich Inhalt an, kein fester % Wert */
}

.nav-left {
    text-align: left;
}

.nav-center {
    text-align: center;
    flex-grow: 1; /* füllt den freien Platz und zentriert */
}

.nav-right {
    text-align: right;
    white-space: nowrap; /* kein Umbruch bei Uhrzeit */
}

nav a {
    color: white;
}

/* Uhrzeit */
#time {
    font-family: montserrat-bold;
    font-size: 1.4rem;
}

/* Abstand unter Nav-Bar */
main {
    padding: 150px 5% 40px; /* oben genug Platz für Nav-Bar */
    text-align: center;
}

h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Box-Container */
.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.box {
    background-color: white;
    width: 320px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

.icon {
    width: 90px;
    height: 90px;
    margin-bottom: 15px;
}

.medium {
    display: inline-block;
    margin-top: 2rem;
    font-size: 1.5rem;
    color: #297ab8;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 8px;
        font-size: 1.1rem;
    }

    main {
        padding-top: 200px; /* mehr Platz bei mobiler Ansicht */
    }

    .box {
        width: 90%;
    }

    h1 {
        font-size: 1.5rem;
    }
}

/* Große Box, die 3x2 normal große Boxen ersetzt */
.box-large {
    width: 90vw;                /* flexibel, 90% der Bildschirmbreite */
    max-width: 1399px;           /* max 720px breit */
    aspect-ratio: 720 / 552;    /* festes Seitenverhältnis */
    max-height: 510px;          /* max Höhe */

    margin: 0 auto;             /* zentriert horizontal */
    padding: 20px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.box-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

.box-large .icon {
    width: 100%;
    height: auto;
    max-height: 50%;
    object-fit: contain;
    margin-bottom: 20px;
}

/* Padding für kleine Bildschirme */
@media (max-width: 480px) {
    .box-large {
        padding: 10px;
    }
}


