/* === BASIS === */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* === LOGO-KOPF (nicht sticky) === */
.logo-container {
    background-color: #BCC87F;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    text-align: center;
}
.logo-container img {
    height: 100px;
    width: auto;
    margin: 0.5rem 1.0rem;  /*Rand um die Bilder, oben/unten und links/rechts*/
}
.logo_2 {
    height: 110px;
    /*margin-right: 50px;*/
}
.logo-container h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #595f3a;
}

/* === STICKY-MENÜLEISTE === */
.menu-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #BCC87F;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 5px 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    /*position: relative; /* damit .menu-toggle sich relativ dazu positioniert */
}

/* === HAMBURGER BUTTON === */

.menu-toggle {
    /*position: absolute;*/
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001; /* über dem Menü */
}

/* === NAVIGATION === */
.nav {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    background-color: #BCC87F;
    width: 100%;
    padding: 10px 0;
    z-index: 999;
}
.nav.show {
    display: flex;
}
.nav ul {
    list-style: none;
    margin: 0;
    padding: 0 30px 0 0;
}
.nav ul li {
    margin-bottom: 0.5rem;
}
.nav ul li a {
    color: #686f44;
    text-decoration: none;
    display: block;
    padding: 5px 0;
}
.nav ul li a:hover {
    text-decoration: underline;
}

/* === INHALTSBEREICH === */
main {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* === TYPOGRAFIE === */
h1, h2, h3, h4 {
    margin-top: 30px;
    margin-bottom: 10px;
}
h1 { color: #595f3a; }
h2, h3, h4 { color: #767e4e; }
p {
    margin-bottom: 1.5rem;
}
ul {
    margin-left: 20px;
    margin-bottom: 1.5rem;
}
ul li {
    margin-bottom: 0.5rem;
}
a {
    color: #686f44;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* === CODE-DARSTELLUNG === */
pre {
    background-color: #f4f4f4;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
code {
    background-color: #eee;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.95em;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    background-color: #BCC87F;
    color: black;
    padding: 10px 20px;
    margin-top: 10px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
}
.btn:hover {
    background-color: #0056b3;
    color: white;
}

/* === FOOTER === */
footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px 0;
    background-color: #BCC87F;
    color: black;
}
footer a {
    color: black;  
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* === ABSTAND === */
.spacer {
    margin-top: 50px;
}
.spacer_20 {
    margin-top: 20px;
}

/* === FAQ === */
.accordion {
    width: 100%;
    max-width: 800px;
    margin: auto;
}
.accordion-item {
    border-bottom: 1px solid #ccc;
}
.accordion-header {
    background: #eee;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1em;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}
.accordion-header:hover {
    background: #ddd;
}
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1em;
}
.accordion-item.active .accordion-body {
    padding: 1em;
    max-height: 500px; /* ausreichend für meisten Inhalt */
}

/* === Modal (Impressum) === */
/* Modal-Grund */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
/* Modal-Inhalt */
.modal-content {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  position: relative;
}
.modal-content h4 {
  margin-bottom: 6px;
}
.modal-content h4 + p {
  margin-top: 0;
  margin-bottom: 1rem;
}
/* Schließen-Knopf */
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

/* === RESPONSIVE DESIGN === */
/*Handy*/
@media (max-width: 1024px) {
    .logo-container h1 {
        font-size: 1.2rem;
    }
    
    .logo_1 {
        margin-right: 50px;
        margin-bottom: 50px;
    }

    .menu-bar {
        align-items: center; /* zentriert Button & Menü */
        text-align: center;
        padding: 10px 20px;
    }

    .menu-toggle {
        align-self: center; /* zentriert Button unter Logos */
    }
    
    .nav {
        align-items: center;
    }

    .nav ul {
        padding-left: 10px;
    }

    .nav ul li {
        width: 100%;
    }

    .nav ul li a {
        width: 100%;
    }
}
/*große Bildschirme*/
@media (min-width: 1025px) {
    .logo-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center; /* Logos & Text mittig */
        position: relative;      /* für Button-Platzierung */
        gap: 20px;               /* reduziert Abstand */
        padding: 10px 20px;
        text-align: left;
    }

    .logo_1, .logo_2 {
        height: 80px;
        margin: 0;
    }

    .logo-container h1 {
        font-size: 1.5rem;
        margin: 0 10px;
    }

    .menu-toggle {
        position: absolute;
        right: 20px;
        top: -100%;
        transform: translateY(-50%);
        font-size: 1.5rem;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }
}
