* {
    box-sizing: border-box;
  }
  
  @font-face {
    font-family: 'Playfair Display';
    font-style: normal, serif;
    font-weight: 400;
    font-display: swap;
    src: url('../../assets/fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
  }

  @font-face {
    font-family: 'Roboto';
    font-style: normal, serif;
    font-weight: 400;
    font-display: swap;
    src: url('../../assets/fonts/RobotoFlex.ttf') format('truetype');
  }
  
  body {
    margin: 0px;
    background-color: #f8f9fa;
    font-family: 'Playfair Display', serif;
  }
  
  .sidenav {
    height: 100%;
    width: 1px;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #111;
    color: white;
    overflow-x: hidden;
  }
  
  .sidenav a {
    color: white;
    padding: 1px;
    text-decoration: none;
    display: block;
  }
  
  .sidenav a:hover {
    background-color: #ddd;
    color: black;
  }
  
  .content {
    background-color: #d8dede79;
    position: fixed;
    width: 100%;
    top: 0px;
    height: 70px;
    margin-left: 0px;
    margin-top: 0px;
    padding-left: 55px;
  }
  
  .contentdown {
    background-color: #f8f9fa;
    height: 100%;
    margin-left: 30px;
    margin-right: 30px;
    padding-left: 20px;
    margin-bottom: 50px;
    margin-top: 90px;
  }

  .contentcard {
    background-color: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    height: 100%;
    margin-left: 30px;
    padding-left: 20px;
    margin-right: 30px;
    padding-right: 20px;
    margin-bottom: 50px;
    margin-top: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); 
  }
  
  .footer {
    background-color: #212529;
    bottom: 0px;
    width: 100%;
    position: fixed;
    margin-left: 0px;
    padding-left: 50px;
    color: white;
  }

  .footer a {
    color: white;
    text-decoration: none;
  }
  
  .footer a:hover {
    color: white;
    text-decoration: underline;
  }
  
  h1 {
    font-size: 1.875em;
    font-weight: 400;
    font-family: 'Playfair Display', serif;
  }

  h2 {
    font-size: 1.1em;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
  }
  
  p {
    font-size: 1.0em;
    line-height: 1.8;
    font-weight: 400;
  }
  
  a {
    color: black;
    text-decoration: none;
  }
  
  a:hover {
    color: black;
    text-decoration: underline;
  }
  
  #borderimg { 
    border: 1px solid #E5E5E5;
    border-radius: 10px;
  }

  th, td {
    padding-top: 10px;
    padding-bottom: 20px;
    padding-left: 30px;
    padding-right: 40px;
  }

  td {
    vertical-align: bottom;
  }

  .download-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    font-family: Playfair Display;
    font-weight: 400;
    font-size: 1.0em;
  }
  .download-button:hover {
    background-color: #0056b3;
  }


  /* Navigation Menue*/
.topnav {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  padding-right: 50px;
}

/* 1. Grundstyling für die Menü-Links */
.nav-menu a {
  position: relative; /* Wichtig für die absolute Positionierung des Strichs */
  text-decoration: none;
  margin-left: 25px;
  padding-bottom: 8px; /* Abstand zwischen Text und Strich */
  color: #000; /* Deine gewünschte Textfarbe */
}

/* 2. Den Strich vorbereiten (unsichtbar) */
.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px; /* Dicke des Strichs */
  background-color: #007bff; /* Farbe des Strichs */
  transform: scaleX(0); /* Startet mit Breite 0 */
  transition: transform 0.3s ease; /* Weiche Animation */
}

/* 3. Hover-Effekt: Strich einblenden */
.nav-menu a:hover::after {
  transform: scaleX(1);
}

/* 4. Dauerhafter Strich für die aktive Seite */
.nav-menu a.active::after {
  transform: scaleX(1);
}

/* Hide Checkbox and Toggle-Label on Desktop */
.nav-toggle, .nav-toggle-label {
  display: none;
}

input[type=text], textarea {
  width: 60%;
  padding: 12px;
  margin: 10px 0;
  box-sizing: border-box;
  border: 1px solid #000000;
  border-radius: 8px;
  resize: vertical;
}

/* Mobile View (Responsive) */
@media screen and (max-width: 768px) {
  .nav-toggle-label {
    display: block;
    cursor: pointer;
    padding-right: 30px;
  }

  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    display: block;
    background: #333;
    height: 2px;
    width: 25px;
    position: relative;
  }
  .nav-toggle-label span::before { content: ""; top: 8px; position: absolute; }
  .nav-toggle-label span::after { content: ""; top: -8px; position: absolute; }

  /* Hide mobile menue */
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
  }

  /* Wenn die Checkbox NICHT angewählt ist, verstecke das Menü komplett */
  .nav-toggle:not(:checked) ~ .nav-container .nav-menu {
    display: none;
  }

/* Wenn die Checkbox angewählt ist, zeige es als Block/Flex */
  .nav-toggle:checked ~ .nav-container .nav-menu {
    display: flex;
    flex-direction: column;
    height: auto; /* Erlaubt dem Menü so groß zu sein wie sein Inhalt */
  }

  .nav-menu {
    display: flex;
    flex-direction: column; /* Einträge untereinander stapeln */
    padding: 20px 0;        /* Etwas Platz zum Rand des Menüs */
  }

  .nav-menu li {
    display: block;         /* Volle Breite für jeden Punkt */
    margin-left: 0;         /* Den Desktop-Abstand links entfernen */
    margin-bottom: 10px;    /* Vertikaler Abstand zwischen den Punkten */
    text-align: center;     /* Optional: Zentriert die Links mobil */
  }

  .nav-menu li a {
    display: block;         /* Vergrößert die Klickfläche für Finger */
    padding: 10px 0;        /* Zusätzliches Padding für bessere Bedienbarkeit */
  }
}
