/* =========================================
   GRUNDLEGENDE RESET & BODY STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================
   HEADER - DESKTOP STANDARD (Original)
   ========================================= */

header {
    background-color: white;
    color: #f69324;
    padding: 20px;
    text-align: center;
    position: relative; /* Für absolute Positionierung des Burgers auf Mobile */
}

/* Header Content Container */
.header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    gap: 40px;
    margin-bottom: 2px;
    min-height: 120px;
}

/* Text-Block absolut zentrieren (Desktop) */
.header-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: auto;
    z-index: 10;
}

.header-text h1 {
    line-height: 1.1;
    font-size: 2rem;
    margin-bottom: 1px;
    padding: 0;
}

.header-text h2 {
    line-height: 1.1;
    font-size: 2rem;
    color: #8bc641;
    margin-bottom: 1px;
    padding: 0;
}

.text-line {
    font-size: 1rem;
    color: black;
    margin: 1px 0;
    opacity: 0.9;
    white-space: nowrap; /* Verhindert den Umbruch der Textzeile */
}

/* Bild nach rechts schieben (Desktop) */
.header-logo {
    margin-left: auto;
    flex-shrink: 0;
    z-index: 5;
}

.header-photo {
    width: 330px;
    height: 120px;
    object-fit: scale-down;
    border-radius: 5%;
    border: 1px solid white;
}

/* Desktop Navigation (Original Formatierung) */
.header-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 5px;
    margin-bottom: 5px;
    border-bottom: 3px solid #8bc641;
    border-top: 3px solid #8bc641;
}

.header-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-btn {
    background-color: #8bc641;
    color: white;
    padding: 10px 25px;
    border: 6px solid white;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s;
    font-weight: bold;
}

.nav-btn:hover {
   background-color: rgba(236, 137, 56, 0.5); 
} 

.nav-btn.active {
    background-color: #f69324;
}

/* Burger Button standardmäßig auf Desktop AUSGEBLENDET */
.burger-btn {
    display: none;
}

/* Mobile Navigation standardmäßig AUSGEBLENDET */
.mobile-nav {
    display: none;
}

/* =========================================
   MAIN CONTENT (Original)
   ========================================= */
main {
    flex: 1;
    padding: 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.content {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 10px;
}

.content h2 {
    margin-bottom: 2px;
    color: #2c3e50;
}

.main-photo {
    width: 350px;
    height: 457px;
    object-fit: cover;
    border-radius: 5%;
    border: 3px solid white;
}

/* =========================================
   FOOTER (Original)
   ========================================= */
footer {
    background-color: #8bc641;
    color: white;
    padding: 20px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid white;
    border-radius: 5px;
    transition: all 0.3s;
}

.footer-nav a:hover {
    background-color: white;
    color: #2c3e50;
}

/* =========================================
   TWO-COLUMN LAYOUT (Original)
   ========================================= */
.two-column-layout {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    background-color: #ecf0f1;
    padding: 30px;
    border-radius: 10px;
    margin-top: 20px;
}

.text-column {
    flex: 1;
    min-width: 300px;
}

.text-column h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.8rem;
}

.text-column p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #444;
}

.image-column {
    flex-shrink: 0;
    width: 350px;
    height: 460px;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;
}

/* =========================================
   SERVICES/THEMES LAYOUT (Original)
   ========================================= */
.services-layout {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
    background-color: #ecf0f1;
    padding: 30px;
    border-radius: 10px;
    margin-top: 20px;
}

.service-image-col {
    flex-shrink: 0;
    width: 160px;
    height: 172px;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: block;
}

.service-text-col {
    flex: 1;
    min-width: 250px;
}

.service-text-col h2 {
    margin-bottom: 5px;
    color: #2c3e50;
    font-size: 1.6rem;
    margin-top: 0;
}

.service-text-col p {
    margin-bottom: 5px;
    line-height: 1.2;
    color: #444;
    margin-top: 0;
}

/* =========================================
   ABOUT LAYOUT (Original)
   ========================================= */
.about-image-col {
    flex-shrink: 0;
    width: 350px;
    height: 457px;
}
  
/* =========================================
   MOBILE RESPONSIVE DESIGN (< 1024px)
   ========================================= */
@media screen and (max-width: 1023px) {

    /* Burger Button sichtbar machen */
    .burger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 100;
        position: absolute;
        left: 30px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Burger Balken */
    .burger-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #8bc641;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Burger Animation beim Öffnen */
    .burger-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .burger-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Header Content auf Mobile anpassen */
    .header-content {
        display: flex;
        flex-direction: row;
        justify-content: center; /* Text mittig */
        align-items: center;
        padding: 35px 5px; /* Platz für Burger links und Bild rechts */
        gap: 10px;
        min-height: 60px;
        border-bottom: 3px solid #8bc641;
    }

    /* Text auf Mobile etwas kleiner */
    .header-text {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        width: auto;
        z-index: 10;
        font-size: 0.85rem;
        min-width: 290px;
        max-height: 80px;
    }

    .header-text h1 {
        font-size: 1.4rem;
        margin-bottom: 0;
    }

    .header-text h2 {
        font-size: 1.4rem;
        margin-bottom: 0;
    }

    /* Bild auf Mobile skalieren */
    .header-logo {
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
    }

    .header-photo {
        width: 100px;
        height: auto;
        border-radius: 4px;
    }

    /* Desktop Navigation ausblenden */
    .desktop-nav {
        display: none !important;
    }

    /* Mobile Navigation (Overlay) */
    .mobile-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        z-index: 99;
        padding-top: 60px;
    }

    .mobile-nav.open {
        display: flex;
    }

    .mobile-nav .nav-btn {
        width: 80%;
        text-align: center;
        font-size: 1.3rem;
        padding: 15px;
        background-color: #8bc641;
        color: white;
        border-radius: 8px;
        text-decoration: none;
        display: block;
        border: 6px solid white; /* Original Formatierung übernehmen */
    }

    .mobile-nav .nav-btn:hover {
        background-color: #f69324;
    }

    /* Two-Column Layout auf Mobile */
    .two-column-layout {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .image-column {
        width: 100%;
        height: auto;
        max-width: 350px;
        margin: 0 auto;
    }

    .profile-photo {
        height: auto;
        aspect-ratio: 2/3;
    }

    .text-column h2 {
        font-size: 1.5rem;
    }

    .content {
        background-color: #ecf0f1;
        padding: 20px;
        border-radius: 10px;
    }

    .content h2 {
        margin-bottom: 2px;
        color: #2c3e50;
        font-size:medium;
    }

    /* Services Layout auf Mobile */
    .services-layout {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        align-items: center;
    }

    .service-image-col {
        width: 160px;
        height: 172px;
        margin-bottom: 10px;
    }

    .service-text-col {
        width: 100%;
        text-align: left;
    }

    .service-text-col h2 {
        font-size: 1.4rem;
        margin-top: 0;
    }

    /* Footer Navigation auf Mobile */
    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }

    .footer-nav a {
        width: 100%;
        text-align: center;
        padding: 15px;
    }
}