/* --- 1. GRUNDEINSTELLUNGEN & FARBVARIABLEN --- */

:root {
    --primary-green: #2A4E3B;  /* Ein tiefes, professionelles Waldgrün */
    --accent-green: #4A7C59;   /* Ein helleres Grün für Hover-Effekte */
    --light-bg: #F9F8F4;      /* Ein sehr helles, warmes Beige/Creme */
    --text-dark: #333333;     /* Dunkles Grau statt reinem Schwarz für Text */
    --text-light: #555555;    /* Helleres Grau für sekundären Text */
    --border-color: #686868;  /* Helle Trennlinie */
    --white: #FFFFFF;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 6px 16px rgba(0, 0, 0, 0.08);
}

* {
    font-display: swap;
    box-sizing: border-box; /* Sorgt für ein konsistenteres Box-Modell */
}

@import url('https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&family=Muli:wght@300;400;600;700&display=swap');

html,
body {
    font-family: 'Muli', sans-serif;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    background-color: var(--light-bg); /* Heller Creme-Hintergrund für die ganze Seite */
    overflow-x: hidden;
    width: 100vw;
    line-height: 1.6;
}

/* --- 2. HEADER & NAVIGATION --- */

#header {
    box-sizing: border-box;
    position: sticky;
    background-color: var(--white);
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    box-shadow: none; /* Schatten entfernt, stattdessen eine feine Linie */
    border-bottom: 1px solid var(--border-color);
    z-index: 99;
}

#header .branding {
    padding: 1.5rem 0;
}

#header .branding a {
    font-weight: 700; /* Stärker hervorgehoben */
    text-decoration: none;
    color: var(--primary-green);
    font-size: 1.25rem;
}

#header .nav-content {
    padding: 1.5rem 0;
}

#header .nav-content a {
    padding: 1.5rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

#header .nav-content a:hover {
    background-color: transparent; /* Alter Hover-Effekt entfernt */
    color: var(--primary-green);
}

#header .nav-content a.current_page {
    color: var(--primary-green) !important;
    font-weight: 700;
}

/* Moderner Indikator für die aktuelle Seite */
#header .nav-content a.current_page::after {
    content: '';
    position: absolute;
    bottom: calc(1.5rem - 4px); /* Positioniert am unteren Rand des Paddings */
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: var(--primary-green);
}

#header .mobile {
    display: none;
}

/* --- 3. HOMEPAGE SPEZIFISCH (.midheader) --- */

.midheader {
    height: auto; /* Höhe flexibel machen */
    background-color: #edebe1; /* Heller Hintergrund */
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 4rem 2rem; /* Deutlich mehr Abstand */
}

.midlogo {
    width: 90%;
    max-width: 350px;
    padding: 10px;
    border-radius: 8px; /* Logo leicht abrunden */
}

.social {
    font-size: 35px; /* Etwas kleiner */
    padding: 20px;
}

.social a i {
    color: var(--text-light);
    padding: 0 0.5rem;
    transition: color 0.3s ease;
}

.social a:hover i {
    color: var(--primary-green);
}

/* --- 4. TYPOGRAPHIE (h, p Tags) --- */

a {
    color: var(--primary-green);
    text-decoration: none; /* Unterstreichung standardmäßig weg */
    font-weight: 600;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

h1, h2, h5, h6 {
    font-weight: 700;
    color: var(--primary-green);
    margin-top: 0;
    line-height: 1.3;
}

h1 {
    font-size: 2.8rem; /* 30px -> 2.8rem */
}

h2 {
    font-size: 2.2rem; /* 35px -> 2.2rem */
}

/* Haupt-Seitentitel (z.B. "Unsere Leistungen", "Kontakt") */
h5 {
    font-size: 2.8rem;
    padding-top: 40px;
    padding-bottom: 20px; /* Mehr Abstand nach unten */
    text-decoration: none; /* Unterstreichung entfernt */
    text-align: center;
    font-weight: 700;
}

/* Titel in den Leistungskarten */
h6 {
    font-size: 1.5rem; /* 30px -> 1.5rem */
    margin: 1.5rem 1rem 1rem 1rem;
    color: var(--text-dark);
}

p1, p2, p4, p6, p8 {
    font-weight: 400; /* Standard-Schriftstärke */
    color: var(--text-light);
}

p1 {
    font-size: 1.4rem; /* 26px -> 1.4rem */
    line-height: 1.7;
}

p2 {
    font-size: 1.1rem; /* 18px -> 1.1rem */
    font-weight: 400;
    color: var(--text-dark);
}

/* Link-Button in den Leistungskarten */
p4 {
    font-size: 1rem; /* 25px -> 1rem */
    display: inline-block;
    margin-bottom: 1.5rem;
}

p4 a {
    background-color: var(--primary-green);
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

p4 a:hover {
    background-color: var(--accent-green);
    color: var(--white);
    text-decoration: none;
}

p6 {
    font-size: 1.1rem;
    padding: 10px;
    position: absolute;
}

p8 { /* Der "Anfragen zur Webseite" Text */
    font-size: 0.9rem;
    font-style: italic;
}

hr {
    width: 90%;
    color: var(--border-color);
    border: none;
    border-bottom: 1px solid var(--border-color);
    margin: 2rem auto;
}

/* --- 5. LAYOUT & KARTEN-DESIGN (Leistungen) --- */

.leistung-container {
    padding: 20px;
    padding-bottom: 40px;
    max-width: 1400px; /* Maximale Breite für bessere Lesbarkeit */
    margin: 0 auto;
}

/* "Zurück"-Link auf Unterseiten */
.back {
    display: inline-flex;
    align-items: center;
    padding: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-green);
    margin-left: 1.5rem;
    margin-top: 1.5rem;
}

.back i {
    margin-right: 0.5rem;
    font-size: 1.3rem;
}

.back:hover {
    color: var(--primary-green);
    text-decoration: none;
}

/* WICHTIG: Das alte Box-Design entfernen */
.leistung-row > div {
    border: none;
}

/* Das neue Karten-Design (.A1content ist die Eltern-Klasse) */
.A1content {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Stellt sicher, dass das Bild die Ecken nicht bricht */
    height: 100%; /* Sorgt für gleiche Höhe bei Bedarf */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.A1content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* Bilder in den Karten (Leistungsübersicht) */
.imgA1 {
    width: 100%;
    max-width: 100%; /* Überschreibt alte max-width */
    height: 220px; /* FIXE HÖHE für einheitliches Grid */
    object-fit: cover; /* Stellt sicher, dass das Bild den Raum füllt, ohne sich zu verzerren */
    display: block;
}

/* Bilder auf den Detail-Seiten (Galerie) */
.imgA2 {
    width: 100%; /* Volle Breite der Spalte */
    max-width: 750px;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

/* Abstandshalter für die Galerie-Bilder */
.Extra-Bilder {
    margin-bottom: 1.5rem;
}

/* "Coming Soon" Seite */
.workingimg {
    max-width: 100%;
    height: 350px;
    opacity: 0.8;
}

.cscontent {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 2rem 10%;
    max-width: 1200px;
    margin: 2rem auto;
    background: var(--white);
    border-radius: 8px;
}

/* --- 6. FOOTER --- */

#footer {
    height: auto; /* Flexible Höhe */
    margin: 0;
    padding: 3rem 1rem; /* Mehr Abstand */
    background-color: var(--text-dark); /* Dunkler Footer */
    color: var(--white);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 3rem;
}

.footercont {
    padding-left: 0;
    padding-right: 0;
}

#footer ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex; /* Flexbox statt float */
    flex-wrap: wrap; /* Zeilenumbruch auf kleinen Geräten */
    justify-content: center;
    align-items: center;
}

#footer li {
    float: none; /* Float überschreiben */
    text-decoration: none;
    display: block;
    text-align: center;
    margin: 0.25rem 0;
}

#footer li a {
    display: block;
    color: var(--white);
    text-align: center;
    padding: 0.5rem;
    text-decoration: none;
    font-weight: 400; /* Nicht so fett */
    font-size: 1rem; /* 18px -> 1rem */
}

/* Der .afooter-Stil wird nun von 'li a' übernommen */
.afooter {
    font-size: 1rem;
    font-weight: 400;
    color: var(--white);
    text-decoration: none;
}

#footer li a:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

.fftr {
    padding: 0px;
    margin-right: 0.5rem; /* Etwas Abstand */
}


/* --- 7. MOBILE STYLES & RESPONSIVENESS --- */

/* Farben für Burger-Icon (Dieser Block war schon da) */
#header .mobile span,
#header .mobile span::before,
#header .mobile span::after {
    background-color: var(--text-dark);
}

#header.open .mobile span {
    background-color: transparent;
}

#header.open .mobile span::before,
#header.open .mobile span::after {
    background-color: var(--text-dark);
}

@media only screen and (max-width: 600px) {

    #header {
        padding: 0 2rem;
    }

    /* --- KORREKTUR HINZUGEFÜGT (2/2) --- */
    /* Stile für das Burger-Icon (Positionierung & Aussehen) */
    #header .mobile {
        position: absolute;
        top: 50%;
        right: 2rem;
        display: block;
        height: 24px;
        width: 34px;
        transform: translateY(-50%);
        cursor: pointer;
    }

    #header .mobile span {
        position: absolute;
        display: block;
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        /* Farbe kommt von oben (var(--text-dark)) */
        transform: translateY(-50%);
        transition: .2s ease;
    }

    #header .mobile span::before,
    #header .mobile span::after {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        /* Farbe kommt von oben (var(--text-dark)) */
        transition: .2s ease;
    }

    #header .mobile span::before {
        bottom: 8px; /* Besserer Abstand */
    }

    #header .mobile span::after {
        top: 8px; /* Besserer Abstand */
    }
    /* --- ENDE KORREKTUR --- */


    /* Mobile Nav Anpassungen) */
    #header .nav-content {
        height: 100vh;
        width: 100vw;
        position: fixed; 
        top: 0;
        left: 100%;
        background-color: var(--white);
        z-index: -1;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
        transition: .2s ease;
        padding: 7rem 2rem 2rem 2rem;
    }

    #header.open .nav-content {
        left: 0;
    }

    #header .nav-content a {
        display: block;
        padding: 1.5rem 0;
        font-size: 1.5rem; 
    }

    #header .nav-content a:hover {
        background-color: transparent;
    }

    /* Indikator-Linie im Mobile-Menü entfernen */
    #header .nav-content a.current_page::after {
        display: none;
    }

    /* Homepage Hero mobil */
    .midheader {
        flex-direction: column; /* Untereinander stapeln */
        padding: 2rem 1rem;
    }

    .midheader .c6 {
        text-align: center;
    }

    h1 {
        font-size: 2rem; /* Schrift verkleinern */
        margin-top: 1.5rem;
    }

    h5 { /* Seitentitel mobil */
        font-size: 2.2rem;
    }
    
    .cscontent { /* Coming Soon mobil */
        flex-direction: column;
    }
}

/* --- 8. OLD --- */

.row.gap.unterseite {
    padding: 20px;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

li {
    font-family: 'Muli', sans-serif;
    float: left;
    text-decoration: none;
    display: block;
    color: var(--text-dark);
    text-align: center;
    text-decoration: none;
    font-weight: 900;
    font-size: 18px;
}

li a {
    display: block;
    color: var(--text-dark);
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-weight: 900;
    font-size: 18px;
}

.classbox {
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
}

.tbtr {
    float: right;
    margin: 0;
    padding: 0;
}

.background-container {
    background-attachment: fixed;
    background-position-x: 1;
    background-repeat: no-repeat;
    background-size: cover;
}
