@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;
  justify-content: center; /* Zentriert Boxen horizontal */
  gap: 20px;
}

.box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: white;
  border-radius: 10px;
  padding: 20px;
  width: 250px;        /* gleiche Breite */
  min-height: 200px;   /* gleiche Höhe */
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.box img.icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.box:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}




.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;
    }
}
