/* === GRUNDLAYOUT === */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding-top: 110px; /* Platz für fixierten Header */
  font-family: Georgia, serif;
  background-color: #fffaf3;
  color: #2e2e2e;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

.wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2em 1em;
  text-align: center;
  flex: 1;
}

/* === FIXIERTER HEADER === */
header {
  background-color: #3b2f1d;
  color: white;
  padding: 1em;
  text-align: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

nav {
  margin-top: 0.5em;
}

nav a {
  color: #ffdd9e;
  margin: 0 0.6em;
  text-decoration: none;
  font-weight: bold;
}

.languages {
  margin-left: 1em;
  font-size: 0.9em;
}

/* === FOOTER === */
footer {
  background-color: #f6f1e7;
  text-align: center;
  font-style: italic;
  padding: 1em;
  font-size: 0.9em;
  border-top: 1px solid #ccc;
  margin-top: 3em;
}

/* === HERO-BEREICH (Startseite) === */
.hero {
  position: relative;
  text-align: center;
  color: white;
}

.hero img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  opacity: 0.85;
  display: block;
}

.hero-text {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -40%);
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2em;
  border-radius: 10px;
  z-index: 1;
  width: 90%;
  max-width: 700px;
}

.hero-text h1 {
  margin: 0;
  font-size: 1.8em;
}

/* === INHALTSBEREICHE & MODULE === */
.callouts {
  background-color: #fefaf2;
  padding: 1em;
  border-radius: 8px;
  margin-bottom: 1em;
  text-align: center;
}

.callout {
  margin-bottom: 1em;
}

.callout h3 {
  margin-bottom: 0.3em;
}

blockquote {
  font-style: italic;
  margin: 1em 2em;
  color: #555;
}

ul {
  text-align: left;
  max-width: 700px;
  margin: 0 auto 2em;
  padding-left: 1.2em;
}

/* === RESPONSIVE FIXES === */
@media (max-width: 768px) {
  /* Hero-Text auf kleinen Bildschirmen verschiebt sich korrekt */
  .hero-text {
    top: 70%;
    transform: translate(-50%, -55%);
    padding: 1.5em 1em;
    font-size: 0.5em;
  }

  nav {
    font-size: 0.95em;
  }

  .callouts {
    text-align: center;
  }

  blockquote {
    margin: 1em auto;
  }

  /* Zusätzlicher Abstand für <h2>-Überschriften */
  main h2 {
    padding-top: 2em;
    margin-top: 0;
  }
}

/* === SICHERHEIT FÜR GROSSE BILDSCHIRME === */
main h2 {
  padding-top: 1em;
  margin-top: 0;
}

#scrollTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  font-size: 1.5em;
  background-color: #3b2f1d;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.4em 0.6em;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

#scrollTop:hover {
  background-color: #5a412a;
}
nav a:hover {
  text-decoration: underline;
  color: #ffe7b4;
}

/* Markierung für aktiven Menüpunkt */
nav a.active {
  border-bottom: 2px solid #ffdd9e;
}
footer a {
  color: #3b2f1d;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}