/* =========================
   RESET
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   BASIS
   ========================= */
body {
    font-family: Arial, Helvetica, sans-serif;
}
/* =========================
   CONTAINER
   ========================= */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

/* =========================
   HERO
   ========================= */
.hero {
    background-color: #2e3b2f;
    background-image: url("./../images/background.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;

    display: flex;
    flex-direction: column;
}

/* index.php */
.hero.full {
    min-height: 100vh;
}

/* alle anderen Seiten */
.hero.half {
    min-height: 50vh;
}

/* =========================
   HEADER (STICKY)
   ========================= */
.header-content {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: transparent;
    transition: all 0.3s ease;
}

/* HEADER INHALT */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================
   LOGO
   ========================= */
.logo img {
    height: 300px;
    transition: height 0.3s ease;
}

.header-content.scrolled .logo img {
    height: 200px;
}

/* =========================
   NAVIGATION
   ========================= */
.navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navigation a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

.navigation a:hover {
    opacity: 0.7;
}

/* =========================
   HERO TEXT
   ========================= */
.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.hero-text h1 {
    font-size: 3rem;
}

.hero-text p {
    font-size: 1.3rem;
    margin-top: 10px;
}

/* =========================
   MAIN
   ========================= */
main {
    background: #f5f5f5;
    color: #333;
    line-height: 1.5;
    text-align: justify;
}

main h1 {
    margin-top: 10px;
    color: #3E2D26
}

main h2 {
    margin-top: 10px;
    color: #523B24;
}

p {
  margin: 1em 0;
}

ul {
  list-style: disc;
  padding-left: 40px;
}

ol {
  list-style: decimal;
  padding-left: 40px;
}

a {
  color: #CB9357;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
}

/* =========================
   FOOTER
   ========================= */
.footer {
    background-color: #2e3b2f;
    background-image: url("./../images/background.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;

    color: #fff;
}

.footer-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 60px 20px;
}

.footer-column h3,
.footer-column h4 {
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #fff;
    text-decoration: none;
}

.footer-column a:hover {
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {

    .header-inner {
        flex-direction: column;
        text-align: center;
    }

    .logo img {
        height: 120px;
        margin-bottom: 10px;
    }

    .navigation ul {
        flex-direction: column;
        gap: 12px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
        text-align: center;
    }

    .hero-text p {
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
/*=================================================================*/
p.back {
  clear: both;
}
/*=================================================================*/
.image-container {
  width: 100%;        /* volle Breite */
  height: 200px;      /* maximale Höhe */
}
.image-container-2 {
  width: 32%;       /* maximale Breite */
  height: auto;       /* volle Höhe */
  max-height: 200px;
  float: left;
  margin: 0 15px 15px 0; /* Abstand rechts und unten */
}
@media (max-width: 999px) {
  .image-container {
    width: 100%;        /* volle Breite */
    height: 300px;      /* maximale Höhe */
  }
  .image-container-2 {
    width: 100%;       /* maximale Breite */
    height: auto;       /* volle Höhe */
    max-height: 300px;
    float: left;
    margin: 0 15px 15px 0; /* Abstand rechts und unten */
  }
}
.image-container, .image-container-2 {
  overflow: hidden;    /* alles, was über 200px hinausgeht, ausblenden */
  display: flex;
  justify-content: center;
  align-items: center;  /* Bild wird mittig angezeigt */
}
.image-container img, .image-container-2 img {
  width: 100%;         /* Bild füllt die Breite */
  height: 100%;        /* Bild füllt die Höhe */
  object-fit: cover;   /* skaliert das Bild, behält Seitenverhältnis, mittig zentriert */
  object-position: center; /* zeigt die Bildmitte, wenn abgeschnitten wird */
  transition: transform 0.5s ease;  /* sanfte Animation beim Zoomen */
}
.image-container:hover img, .image-container-2:hover img {
  transform: scale(1.1);   /* Zoom um 10% beim Hover */
}
/*-----------------------------------------------------------------*/
.text-block {
    overflow: hidden; /* sorgt dafür, dass der Container die floated Bilder umfasst */
    text-align: justify;
}
.pagination {
  text-align: center;
}
/*======================= Formular ================================*/
form {
  max-width: 1200px;
  margin: auto;
}
label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}
input, textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  box-sizing: border-box;
}
.error { color: red; }
.hidden { display: none; }
button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #005d8d;
  border: 0;
  color: white;
  font-size: 1em;
}
/*=================================================================*/
#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #CB9357;
  color: #3E2D26;
  cursor: pointer;
  padding: 15px;
  border-radius: 5px;
}
#myBtn:hover {
  background-color: #F0CB78;
}