  @font-face {
    font-family: LeaugeSpartan;
    src: url('schrift/League_Spartan/LeagueSpartan-VariableFont_wght.ttf');
  }

  @font-face {
    font-family: LeaugeSpartanBold;
    src: url('schrift/League_Spartan/static/LeagueSpartan-Black.ttf');
  }
  .bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* Bild füllt den gesamten Bereich, ohne Verzerrung */
    z-index: -1;         /* Hinter allen anderen Elementen */
  }

    header {
      font-family: LeaugeSpartan;
      color:#869836;
      background-color: white;
      padding: 10px 20px;
      display: flex;
      justify-content: space-between; /* Platz zwischen Logo und Navigation */
      align-items: center;
      position: sticky;
      top: 0; 
      z-index: 1000; /* Schichtung des Headers */
    }

    .logo {
      margin-left: 20px;
      margin-top: 5px;
    }

    /* Navigation Styling */
    nav ul {
      list-style: none; /* Entfernt Punkte von Listen */
      padding: 0; /* Entfernt Innenabstand */
      margin: 0 15px; /* Abstand zwischen den Navigationspunkten */
      text-align: right;
      margin-left: 70%;
      font-size: 130px;
      font-family: LeaugeSpartanBold;
    }

    nav ul li a {
      text-decoration: none; /* Entfernt Unterstreichung der Links */
      color: #869836; /* Schriftfarbe der Links */
      font-size: 16px; /* Schriftgröße der Links */
    }
  
    header {
      position: relative;
      color: #869836;
      position: relative;
      padding: 16px;
    }
    /* Hamburger-Icon */
    .menu-icon {
      font-size: 2.5rem;
      cursor: pointer;
      padding: 16 px;
      z-index: 1100;
      position: relative;
      color: #869836;
    }   
   /* Versteckt Checkbox*/
    #menu-toggle {
      display: none; 
    }
    /* Vollbild-Menü */
    .menu {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      background: white;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      transform: scale(0);
      transition: transform 0.3s;
      z-index: 1000;
      }

    /* Menü anzeigen, wenn geöffnet */
    #menu-toggle:checked + .menu-icon + .menu {
      transform: scale(1);
    }
    /* Navigation Links */
    .menu ul {
     list-style: none;
      padding: 0;
      margin: 0;
      text-align: center;
    }
    .menu a {
      color: #869836;
      text-decoration: none;
      transition: color 0.2s;
      font-size: 60px;
      line-height: 1;
      display: block;
      padding: 3px 0;
    }
    
    .menu a:hover {
      color: #859984;
    }

/* Hero Section Styling */
.hero {
  text-align: center; /* Zentriert Text */
  padding: 50px; /* Abstand oben und unten */
  background-color: #869836; /* Hintergrundfarbe mit Transparenz */
  color: black; /* Schriftfarbe */
}
  /* Hauptbereich */
  main {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif
  }

  footer {
    color: #869836;
    font-size: 15px;
    text-align: center;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif
  }

  .container {
    justify-content: center;
    margin-top: 2%;
    margin-bottom: 40px;
  }
  
  /* Letzte Box zentrieren, wenn ungerade Anzahl */
  .container .box:nth-last-child(1):nth-child(odd) {
    grid-column: span 2;
    justify-self: center;
  }
  
  .box {
    display: flex;
    width:500px;
    max-width: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    justify-content: center;
  }
  
  .box:hover {
    transform: scale(1.05);
  }
  .image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/2; /*das ist Seitenverhältnis 3:2*/
  }
  
  .image-wrapper img {
    width: 100%;
    display: block;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover; /*wichtig für gleichmässige Füllung*/
  }
  
  .image-wrapper img.normal {
    z-index: 1;
    opacity: 1;
  }
  
  .image-wrapper img.hover {
    z-index: 2;
    opacity: 0;
  }
  
  .box:hover .image-wrapper img.normal {
    opacity: 0;
  }
  
  .box:hover .image-wrapper img.hover {
    opacity: 1;
  }

  .container {
    display: grid;
    grid-template-columns: repeat(1, 400px);
    gap: 2rem;
  }
  

  /* RESPONSIVE MACHEN*/

  /* Desktop: 2 Spalten */
  @media (min-width: 1025px) {
    .container {
      grid-template-columns: repeat(2, 500px);
    }
  
    /* Letzte Box zentrieren bei ungerader Anzahl */
    .container .box:nth-last-child(1):nth-child(odd) {
      grid-column: span 2;
      justify-self: center;
    }
  }
  
  /* Tablet: 2 kleinere Spalten */
  @media (min-width: 600px) and (max-width: 1024px) {
    .container {
      grid-template-columns: repeat(2, 1fr);
      padding: 0 1rem;
    }
  
    .box {
      width: 100%;
      max-width: none;
    }
  }
  
  /* Mobile: 1 Spalte */
  @media (max-width: 599px) {
    .container {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .box {
      width: 100%;
      max-width: 600px;
    }
  }
  

  