/* Globale Farbvariablen */
:root {
    --primary-bg-color: #fff;
    --gold-bg-color: #d0bc84;
    --primary-text-color: #406043;
    --link-hover-color: #dbc58d; /* 828282 */
    --hover-active-gold: #d0bc84; /* dbc58d */
    --burger-bg-color: #dbc58d;
}

/* Hauptbereich mit maximaler Breite und zentriertem Inhalt */
main, body, header, footer {
    max-width: 80%; /* Setzt die maximale Breite des Inhalts */
    margin-left: auto; /* Zentriert den Inhalt auf der linken Seite */
    margin-right: auto; /* Zentriert den Inhalt auf der rechten Seite */
    padding: 0 20px; /* Fügt auf beiden Seiten einen Abstand von 20px hinzu */
    margin: 0;

    font-family: Avenir, Verdana, sans-serif;
    background: var(--primary-bg-color);
    color: var(--primary-text-color);
    /* padding-left: 10px; */

    display: flex;
    flex-direction: column; /* Logo und Menü untereinander */
    justify-content: flex-start; /* Menü links ausrichten */
    align-items: flex-start;
    text-align: left;

    padding: 0 2%; /* Fügt auf beiden Seiten einen Abstand von 2% hinzu */

}

/* Begrenzte Textbreite für Absätze (p) */
main p {
    line-height: 1.2; /* Optional: Zeilenhöhe für bessere Lesbarkeit */
    padding: 0px; /* Optional: Abstand innerhalb des Textbereichs */
    text-align: left;
    /*background: #fff;*/
}

a:link, a:visited {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover, a:focus, a:active {
    color: var(--hover-color);
    text-decoration: underline;
}

/* Logo */
.logo-desktop img {
    height: 40px; 
}

.logo-mobile img {
    height: 40px;
}

/* Für die Standardansicht */
.logo-print {
    display: none;  /* Versteckt das Drucklogo standardmäßig */
}

/* Desktop Menü */
.menu-desktop {
    display: none; /* Standardmäßig ausgeblendet */
}

.menu-desktop li {
    display: inline;
    margin-right: 15px;
}

.menu-desktop li a {
    color: var(--primary-text-color);
    text-decoration: none;
}

.menu-desktop li a.focus,
.menu-desktop li a.active {
    color: var(--hover-active-gold);
    font-weight: bold;
}

.menu-desktop li a:hover {
    color: var(--link-hover-color);
}

/* Mobile Menü */
.menu-mobile {
    display: none; /* Standardmäßig ausgeblendet */
    list-style-type: none;
    padding: 0;
    margin-top: 10px;
}

.menu-mobile.show {
    display: block; /* Wird angezeigt, wenn das Burger-Menü aktiviert wird */
}

.menu-mobile li {
    margin-bottom: 10px;
}

.menu-mobile li a {
    color: var(--primary-text-color);
    text-decoration: none;
    display: block;
    padding: 10px 15px;
}

.menu-mobile li a:hover {
    color: var(--link-hover-color);
}

/* Burger-Menü */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    position: absolute; /* Falls nötig */
    top: 15px;
    left: 15px; /* Verschiebt das Burger-Menü nach links */
}


.burger div {
    width: 35px;
    height: 5px;
    background-color: var(--primary-text-color);
}


/* Für große Bildschirme (ab 769px) */
@media (min-width: 769px) {
    /* Desktop-Logo und Menü anzeigen */
    .logo-desktop {
        display: block;
    }

    .menu-desktop {
        display: block; /* Menü für große Bildschirme */
    }

    .burger {
        display: none; /* Burger-Menü für Desktop ausblenden */
    }

    /* Mobile-Logo und Menü ausblenden */
    .logo-mobile {
        display: none;
    }

    /* Style für das Kontaktbild */
    .kontaktbild {
        width: 350px;  /* Setzt die Breite des Bildes auf 150px */
        height: auto;  /* Beibehaltung des Seitenverhältnisses */
        border-radius: 8px;  /* Optional: Runde Ecken für das Bild */
        margin-bottom: 20px;  /* Fügt einen Abstand unter dem Bild hinzu */
    }

    .indexbild {
        width: 300px;  /* Setzt die Breite des Bildes auf 150px */
        height: auto;  /* Beibehaltung des Seitenverhältnisses */
        border-radius: 8px;  /* Optional: Runde Ecken für das Bild */
        margin-bottom: 20px;  /* Fügt einen Abstand unter dem Bild hinzu */
    }
}

/* Für kleine Bildschirme (bis 768px) */
@media (max-width: 768px) {
    /* Mobile Logo anzeigen */
    .logo-mobile {
        display: block;
        max-width: 110%;
    }

    /* Desktop-Logo ausblenden */
    .logo-desktop {
        display: none;
    }

    /* Horizontales Menü ausblenden */
    .menu-desktop {
        display: none;
    }

    /* Burger-Menü anzeigen */
    .burger {
        display: flex;
    }

    /* Mobile Menü wird angezeigt, wenn Burger angeklickt wird */
    .menu-mobile {
        display: none;
        position: absolute;
        top: 35px;
        left: 0;
        background-color: var(--primary-bg-color);
        width: 100%;
        padding: 10px 0px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    }

    /* Stile für das Kontaktbild */
    .kontaktbild {
        padding: 20px 0px;
        width: 350px;  /* Setzt die Breite des Bildes auf 350px */
        height: auto;  /* Beibehaltung des Seitenverhältnisses */
        border-radius: 8px;  /* Optional: Runde Ecken für das Bild */
        margin-bottom: 20px;  /* Fügt einen Abstand unter dem Bild hinzu */
    }

    .indexbild {
        width: 300px;  /* Setzt die Breite des Bildes auf 150px */
        height: auto;  /* Beibehaltung des Seitenverhältnisses */
        border-radius: 8px;  /* Optional: Runde Ecken für das Bild */
        margin-bottom: 20px;  /* Fügt einen Abstand unter dem Bild hinzu */
    }

    header {
        display: block;
        justify-content: left;
        align-items: left;
        text-align: left;
    }

    main, body, footer {
        max-width: 95%; /* Setzt die maximale Breite des Inhalts */
        font-family: Avenir, Verdana, sans-serif;
        background: var(--primary-bg-color);
        color: var(--primary-text-color);
        display: flex; /* Ermöglicht Flexbox */
        justify-content: center; /* Zentriert horizontal */
        align-items: center; /* Zentriert vertikal (falls nötig) */
        text-align: center; /* Stellt sicher, dass Text zentriert bleibt */
        padding: 0px 0px;
    }

    footer {
        font-size: 10pt;
    }

    main p {
        text-align: center;
        max-width: 95%; /* Setzt die maximale Breite des Inhalts */
    }
}

@media print {

    /* Alle Navigationselemente im Druckmodus ausblenden */
    .burger, .menu-mobile, .menu-desktop {
        display: none;
    }

    .logo-mobile {
        display: none;
    }

    .logo-print {
        display: block;  /* Macht das Drucklogo sichtbar */
        max-width: 500px; /* Maximalbreite des Logos */
        margin: 0 auto;    /* Zentriert das Logo im Druckbereich */
    }

    /* Der Rest des Layouts für den Druckmodus */
    body,footer {
        padding-top: 5px;
    }

    main {
        font-size: 12pt;
        text-align: left;
        margin-left: auto;
        margin-right: auto;
        padding: 20px;
    }

    
