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

body {
  margin: 0 auto;
  padding: 0;
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  color: #1b4d3e;
  max-width: 830px;
  width: 100%;
}

.leerzeile {
  height: 0.7em;
  width: 100%;
}

.doppelleerzeile {
  height: 1.4em;
  width: 100%;
}

/* Fonts */
@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;
}

/* Links */
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, #f8f9f8);
  transition: background-color 0.3s ease;
  border-radius: 3px;
}

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

/* Header */
header {
  max-width: 830px;
  margin: 0.3rem auto;
  border-radius: 7px;
  perspective: 830px;
  padding: 0 0.5rem;
}

/* Header-inner Container - h1 oben, darunter flex mit h2 und Bild */
.header-inner {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* h1: oben */
.header-inner > h1 {
  font-family: 'Bellota', cursive;
  font-weight: 700;
  font-size: 2rem;
  color: #1b4d3e;
  margin: 0;
  padding-left: 0.5rem;
}

/* h2 und Bild nebeneinander */
.header-sub {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: 0.5rem;
}

/* h2 Styling */
.header-sub h2 {
  font-family: 'Bellota', cursive;
  font-weight: 300;
  font-size: 6rem;
  color: #1b4d3e;
  margin: 0;
}

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

/* Header h1 und h2 und blatt auf Mobilgeräten */
@media (max-width: 600px) {

 .header-inner h1 {
    font-size: 1.5rem; /* etwas größer als vorher */
  }
  
  .header-sub h2 {
    font-size: 4rem; /* etwas größer als vorher */
  }

  #rotierendesBlatt {
    width: 35px; /* kleiner als vorher */
    height: 45px;
  }
}

/* Inhalt */
.content {
  max-width: 830px;
  margin: 0.3rem auto;
  padding: 0.5rem;
  font-size: 1.6rem;
  line-height: 2rem;
  color: #1b4d3e;
}

/* Content Links */
.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: 0.5rem;
}

/* h3 auf Mobilgeräten */
@media (max-width: 600px) {
.content h3 {
  font-size: 1.5rem;
}
}


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

/* 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-color: 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;
}

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

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

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

footer a {
  font-size: 1rem;
}