

/* Grundlegendes Layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  color: #1b4d3e;
}

.leerzeile {
  height: .7em;
  width: 100%; /* optional, damit das Div die volle Breite einnimmt */
  /* kein Inhalt, also leer */
}

.doppelleerzeile {
  height: 1.4em;
  width: 100%; /* optional, damit das Div die volle Breite einnimmt */
  /* kein Inhalt, also leer */
}

@font-face {
  font-family: 'Quicksand';
  src: url('fonts/Quicksand-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Quicksand';
  src: url('fonts/Quicksand-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Bellota';
  src: url('fonts/Bellota-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Bellota';
  src: url('fonts/Bellota-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Bellota';
  src: url('fonts/Bellota-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'Bellota';
  src: url('fonts/Bellota-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}


a {
  color:#1b4d3e;
  text-decoration: underline;
  font-size: 1.6rem;
}


a:hover {
  text-decoration: underline;
  text-decoration-style: wavy;
  color: #1b4d3e;
  background: linear-gradient(to top, #66FF00, white);
  transition: background-color 0.3s ease;
  border-radius: 3px; /* abgerundete Ecken */
}

a.active {
  color:#1b4d3e;
  text-decoration: none;
  font-weight: 700;
}

/* Links auf Mobilgeräten */
@media (max-width: 600px) {
a {
  font-size: 1rem;
}
}


header {
  max-width: 830px;
  margin: .3rem auto;
  border-radius: 7px;
  perspective: 830px;
}


/* Bild Styling */
#rotierendesBlatt {
  /* width: 80px;
  height: 90px; */
  display: block;
  transform-origin: center center;
  backface-visibility: hidden;
  max-width: 100%;
  height: auto;
}


/* Sprachwahl */
.lang-switcher {
  display: flex;
  justify-content: flex-end;
  font-size: 1.6rem;
  padding-right: 1rem;
  margin-top: .5rem;
}

.lang-switcher .active {
background: linear-gradient(to top, #66FF00, white);
}

/* Sprachwahl auf Mobilgeräten */
@media (max-width: 600px) {
.lang-switcher {
  font-size: 1rem;
}
}


h1 {
  font-family:'Bellota';
  font-weight: 700;
  font-size: 2rem;
  color:#1b4d3e;
  padding: 0 0 0 .5rem;
  margin-top: .5rem;
}

h2 {
  font-family:'Bellota';
  font-size: 6rem;
  font-weight: 300;
  padding: 0 0 0 .5rem;
}

/* Header h1 und h2 auf Mobilgeräten */
@media (max-width: 600px) {
h1 {
    font-size: 1.5rem; 
  }
h2 {
    font-size: 4rem; 
    margin: 0;
  }
}


/* Standard-Navigation (Desktop) */
nav {
  max-width: 960px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 0 0 .5rem;
  margin-top: .3rem;
  margin-bottom: 1.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.7rem;
  margin: 0;
  padding: 0;
}

nav li {
  list-style: none;
}

nav a {
  font-size: 1.6rem;
  font-weight: 400;
  color: #1b4d3e;
}

nav a.active {
  background: linear-gradient(to top, #66FF00, white);
  transition: background-color 0.3s ease;
  border-radius: 3px; /* abgerundete Ecken */
}

/* Burger-Symbol */
.burger {
  display: none;
  font-size: 2rem;
  padding: .5rem 2rem;
  cursor: pointer;
  color: #1b4d3e;
}

/* Responsive: Burger-Menü ab 768px und kleiner */
@media (max-width: 600px){
  .burger {
    display: block;
    padding-left: 0.5rem;
    margin: 0;   /* weniger Abstand unterhalb */
  }

  /* Navigation verstecken */
  nav {
    display: none;
    flex-direction: column;
    padding-left: 0.5rem
  }

  /* Wenn Checkbox aktiv ist, Navigation zeigen */
  .menu-toggle:checked + .burger + nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* oben ausrichten */
    align-items: flex-start;     /* links ausrichten */
  }

  nav ul {
    flex-direction: column;
    margin: 0;
    gap: 0.2rem; 

  }

 nav li {
    margin: 0; 
    padding: 0;  
  }

  nav a {
    font-size: 1rem;
    line-height: 1.2; 
  }
  }


/* Inhalt */

.content {
  max-width: 830px;
  margin: .3rem auto;
  padding: .5rem;
  font-size:1.6rem;
  line-height: 2rem;
  color:#1b4d3e;
}

.content a {
  font-size:1.6rem;
  font-weight:normal;
  color:#1b4d3e;
}

.content a:hover {
  font-weight:normal;
  color:#1b4d3e;
}

.content h3 {
font-family: 'Quicksand', sans-serif;
font-size: 2rem;
font-weight: 400;
margin-top: 1rem;
margin-bottom: .5rem;
}

.content p {
margin-bottom: 1rem;
}


/* Responsive Content Anpassungen */
@media (max-width: 600px) {
  .content {
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.2rem;
  }
  .content a {
  font-size: 1rem;
}

.content h3 {
  font-size: 1.2rem;
}
}


/* Vorschaubild */
    .thumbnail {
      cursor: pointer;
      border: 2px solid #1b4d3e;
      border-radius: 8px;
      padding: 1rem;
      width: auto;
      height: auto;
      max-width: 100%;
    }

/* Vorschaubild auf Mobilgeräten */
@media (max-width: 600px) {
.thumbnail {
  padding: .3rem;
}
}

    /* Modal-Overlay */
    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.8);
    }

    /* Großes Bild im Modal */
    .modal-content {
      display: block;
      margin: 5% auto;
      max-width: 90%;
      max-height: 90%;
      border: 2px solid #1b4d3e;
      border-radius: 8px;
      padding: 1rem;
      background: white;
    }

    /* Großes Bild auf Mobilgeräten */
@media (max-width: 600px) {
.modal-content {
  padding: .3rem;
}
}

    /* Schließen-Button */
    .close {
      position: absolute;
      top: 20px;
      right: 30px;
      font-size: 30px;
      color: white;
      cursor: pointer;
    }


/* Galerie */
.gallery {
  max-width: 830px;
  display: flex;
  justify-content:flex-start;
  gap: 1.5rem;
  margin: 2rem 0;
  font-family: 'Bellota';
  font-size: 1.2rem;
  line-height: 100%;
}

.gallery a {
  font-size: 1.2rem;
  line-height: 100%;
}

.gallery-item {
  width: 30%;
  padding: .7rem;
  border-radius: 8px;
  border: 2px solid #1b4d3e;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}


/* Galerie auf Mobilgeräten */
@media (max-width: 600px) {
  .gallery {
    flex-direction: column;   /* Bilder untereinander */
    gap: 0.5rem;             /* optional kleiner Abstand zwischen Bildern */
    font-size: 1rem;
  }

  .gallery-item {
    width: 100%;             /* volle Breite */
    padding: 0.3rem;         /* Padding angepasst */
  }

  .gallery a {
    font-size: 1rem;         /* Schriftgröße der Bildlegenden */
    line-height: 1.2;        /* optional, damit Text dichter wird */
  }
}


/* Footer */
footer {
  text-align: center;
  color:#1b4d3e;
  margin-top: 1rem;
  margin-bottom: .3rem;
  font-size: 1rem;
}

footer a {
  font-size: 1rem;
}


/* Blog */

.blog-container {
  font-family: 'Quicksand', sans-serif;
  line-height: 2rem;
}


.blog-entry {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .7rem;
  border-bottom: 2px dotted #1b4d3e; 
}

.blog-entry-content {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: flex-end; /* Hier anpassen! */
  padding-bottom: 0;
}

.blog-text-wrapper {
  flex: 1;
}

.blog-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
}

.blog-date {
  margin-bottom: 2rem;
}

.blog-subtitle {
  font-family: 'Quicksand', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: .5rem;
}

.blog-teaser {
  margin-bottom: 20px;
}

.blog-image-wrapper {
  flex-shrink: 0;
}

.blog-image {
  width: 200px;     /* feste Breite */
  height: auto;     /* Höhe proportional */
  object-fit: cover;
  display: block;
  padding: .7rem;
  border: 2px solid #1b4d3e;
  border-radius: 8px;
  overflow: hidden;
}

.blog-full-text {
  display: none;
}

.blog-full-text.visible {
  display: block;
}

.blog-written-by {
  text-align: right;
}

.read-more-toggle {
  display: inline-block;
  cursor: pointer;
  text-decoration: underline;
  line-height: 2rem;
}



@media (max-width: 600px) {
  .blog-container {
    font-family: 'Quicksand', sans-serif;
    line-height: 1.2rem;
  }

  .blog-entry-content {
    flex-direction: row;      /* Bild rechts vom Text */
    align-items: flex-start;  /* oberkante ausrichten */
    gap: 0.5rem;              /* Abstand zwischen Text und Bild */
    margin-bottom: .5rem;
  }

  .blog-subtitle {
    font-size: 1.2rem;
  }

  .blog-date {
  margin-bottom: 1rem;
}

  .blog-image-wrapper {
    flex-shrink: 0;  /* Bildgröße nicht zu stark schrumpfen */
  }

  .blog-image {
    width: 120px;   /* kleinere Breite */
    height: auto;   /* Höhe bleibt proportional */
    margin-top: 1rem;
    padding: .3rem;
  }

  .blog-teaser {
  margin-bottom: 10px;
}

}
