html {
    scroll-behavior: smooth;
}

body {
    background-color: rgb(180, 190, 182);
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif
}

#hauptlayout {
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
    line-height: 1.6;   /* Erhöht den Abstand zwischen den Textzeilen */
    color: #333;
}

.seiten-ueberschrift {
    text-align: center;
    background-color: rgb(221, 219, 205);
    border-radius: 10px;
    padding: 15px;      /* Etwas mehr Innenabstand */
    margin-top: 80px;   /* Deutlicher Abstand zur Sektion darüber */
    margin-bottom: 30px; /* Abstand zum folgenden Text/Bild */
}

#menu {
    position: fixed;
    top: 0;
    left: -240px; /* Verschiebt das Menü komplett nach links aus dem Bild (200px Breite + Padding) */
    background-color: rgb(221, 219, 205);
    width: 200px;
    height: 100vh;
    z-index: 200; /* Höher als das Burger-Icon */
    padding: 20px;
    display: block; /* Muss auf block stehen, damit GSAP es bewegen kann */
    transition: none; /* Deaktiviere CSS-Transitions, da GSAP das übernimmt */
}

#menu-oeffnen {
    width: 40px;
    position: fixed; /* Fixiert das Icon am Bildschirmrand */
    top: 20px;       /* Abstand von oben */
    left: 20px;      /* Abstand von links */
    z-index: 100;    /* Sorgt dafür, dass es über allem anderen liegt */
    cursor: pointer;
    background-color: rgba(221, 219, 205, 0.7); /* Optional: Leichter Hintergrund für Sichtbarkeit */
    padding: 5px;
    border-radius: 5px;
}

/* Verhindert, dass das Titelbild unter das fixierte Icon rutscht */
body {
    padding-top: 10px; 
}

#menu img {
    width: 30px;
    cursor: pointer;
    position: absolute; /* Absolut innerhalb des Menüs */
    top: 20px;
    left: 20px;
}

/* index */

#titelbild {
    width: 100%;
    border-radius: 10px;
    border-bottom-left-radius: 0%;
    border-bottom-right-radius: 0%;
}

.box {
    background-color: rgb(36, 116, 116);
    padding: 2%;
    border-radius: 10px;
    text-align: center;
    color: rgb(221, 219, 205);
}

.links-black {
    text-decoration: none;
    color: black
}

.links-white {
    text-decoration: none;
    color: rgb(221, 219, 205);
}

.links-kontaktformular {
    color: rgb(221, 219, 205);
}

/* fusszeile */
#fusszeile {
    position: relative;
    background-color: rgb(180, 190, 182);
    padding: 5px;
    border-radius: 5px;
    margin-top: 50px;
    font-size: small;
}

/* Container für die Kontakt-Links */
.kontakt-links {
    text-align: left; /* Richtet Text und Icons links aus */
    display: inline-block; /* Sorgt dafür, dass der Block sich wie Text verhält */
    width: 100%; /* Nimmt die volle Breite ein, um links zu starten */
    margin-bottom: 20px;
}

/* Entfernt die Unterstreichung bei den neuen Klick-Links */
.kontakt-links a {
    text-decoration: none;
    color: inherit; /* Übernimmt die Textfarbe der Umgebung */
}

.kontakt-links a:hover {
    opacity: 0.7; /* Kleiner Effekt beim Drüberfahren */
}

/* Icons in der Fußzeile besser ausrichten */
#mail-icon, #icon-phone {
    width: 20px;
    vertical-align: middle;
    margin-right: 10px;
}

/* angebot */

.bild-angebot {
    border-radius: 10px;
}

.bild {
    border-radius: 10px;
    height: 395px;
}

/* über mich */
.bild-ueber-mich {
    width: auto;
}

.vorstellungstext {
    border-radius: 10px;
    text-align: left;
}

#grid-ueber-mich {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 20px;
}

/* angebote */
.terminbox {
    background-color: rgb(36, 116, 116);
    padding: 30px;      /* Mehr Platz im Inneren */
    border-radius: 10px;
    text-align: center;
    color: rgb(221, 219, 205);
    margin-top: 40px;   /* Abstand nach oben */
    margin-bottom: 60px; /* Abstand nach unten zum nächsten Element */
}

.text-links {
    text-align: center;
}

.text-rechts {
    text-align: right;
}

#grid-seiten {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 20px;
    text-align: left;
}

/* kontakt */
input[type=text],
[type=email],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid lightgrey;
    border-radius: 4px;
    margin-top: 6px;
    box-sizing: border-box;
    margin-bottom: 16px;
}


.open-button {
    background-color: rgb(36, 116, 116);
    color: rgb(221, 219, 205);
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    width: 200px;
    border-radius: 10px;
}

.alles-klar-button {
    background-color: rgb(221, 219, 205);
    color: rgb(36, 116, 116);
    padding: 16px;
    width: 200px;
    border: none;
    border-radius: 10px;
    margin-left: 30px;
}

.popup {
    display: none;
    z-index: 9;
    background-color: rgb(36, 116, 116);
    border-radius: 10px;
    position: absolute;
    top: 20%;
    left: 30%;
    bottom: 20%;
    right: 30%;
}

#text-nachricht {
    color: rgb(221, 219, 205);
    text-align: center;
    margin-top: 20%;
    margin-left: 2%;
    margin-right: 2%;
}

/* --- NEUES LAYOUT FÜR DIE ANGEBOTS-BOXEN --- */

/* Container für die 3 Spalten am Desktop */
#boxen {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; 
    gap: 20px;
    margin-bottom: 30px;
}

/* Gruppierung von Kasten und Bild */
.box-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Einheitliches Format für alle Angebotsbilder */
.bild-angebot {
    width: 100%;
    height: 395px;      /* Fixe Höhe für den einheitlichen Look */
    object-fit: cover;  /* Schneidet Bilder perfekt zu ohne zu quetschen */
    object-position: center;
    border-radius: 10px;
    display: block;
}

/* --- RESPONSIVE ANPASSUNGEN (Handy & Tablet) --- */
@media screen and (max-width: 768px) {
    
    /* 1. Alles untereinander stapeln */
    #boxen, #grid-seiten, #grid-ueber-mich {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* 2. Bilder auf Mobile flexibel machen */
    .bild-angebot, .bild {
        height: auto; 
        width: 100%;
    }

    /* 3. Header & Logo fixen */
    #ueberschrift {
        padding: 40px 10px;
    }

    #logo {
        position: static;
        width: 150px;
        margin: 0 auto 10px auto;
        display: block;
    }

    /* 4. Footer-Icons untereinander */
    #instagram, [id^="instagram-"] {
        position: static;
        display: block;
        margin: 10px auto;
    }

    /* 5. Kontakt-Popup für kleine Bildschirme */
    .popup {
        left: 5%;
        right: 5%;
        width: 90%;
        top: 10%;
        bottom: 10%;
    }
}

/* --- HEADER & LOGO OPTIMIERUNG --- */
#ueberschrift {
    text-align: center;
    background-color: rgb(221, 219, 205);
    border-radius: 0 0 10px 10px;
    padding: 85px; /* Dein Original-Padding */
    margin-bottom: 5px;
    margin-top: -2%;
    position: relative; /* Bezugspunkt für das Logo */
}

#logo {
    width: 300px;
    position: absolute;
    /* Zentrierung basierend auf der Mitte der Überschrift */
    left: 50%;
    /* Verschiebung nach rechts, damit es auf dem 'r' sitzt */
    /* Der Wert 60px ist ein Schätzwert - passe ihn leicht an, bis es perfekt sitzt */
    transform: translateX(54px); 
    /* Zieht das Logo nach oben aus der Box heraus */
    top: -103px; 
    z-index: 5;
}

/* Mobile Anpassung: Logo wandert mit dem Text mit */
@media screen and (max-width: 468px) {
    #logo {
        width: 180px; /* Kleiner auf dem Handy */
        top: 17px;   /* Etwas tiefer, da die Schrift kleiner ist */
        transform: translateX(2px); /* Versatz anpassen für schmale Screens */
    }
}

/* --- ICONS IN DER FUSSZEILE --- */
#fusszeile {
    background-color: rgb(180, 190, 182);
    padding: 20px;
    border-radius: 5px;
    margin-top: 50px;
    text-align: center; /* Zentriert den gesamten Inhalt */
    position: relative; /* Wichtig für das Instagram Icon */
}

/* Mail & Telefon Icons mittig vor dem Text */
#mail-icon, #icon-phone {
    width: 20px;
    vertical-align: middle; /* Richtet Icon an der Texthöhe aus */
    margin-right: 8px;      /* Abstand zum Text */
}

/* Instagram Logo unten rechts im Hauptlayout */
#instagram {
    width: 30px;
    position: absolute;
    right: 15px;
    bottom: 15px;
}

/* --- MOBILE ANPASSUNG (Media Query) --- */
@media screen and (max-width: 768px) {
    #ueberschrift h1 {
        font-size: 1.5rem;
    }

    #instagram {
        position: absolute;
        right: 15px;
        bottom: 15px;
        width: 25px;
        display: block;
        margin: 0;
    }

    .dropdown-content {
        display: block; 
        padding-left: 25px;
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .dropdown-content a {
        padding: 10px 0;
        font-size: 1rem;
        color: rgb(36, 116, 116);
    }
} /* <--- HIER muss die Klammer der Media-Query enden! */

/* Erzeugt einen Puffer beim Scrollen zu einer ID */
#seiten-ueberschrift, #grid-ueber-mich, #fusszeile {
    scroll-margin-top: 100px; 
}

/* Styling für das Dropdown-Menü */
.nav-item {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-content {
    display: none; /* Standardmäßig unsichtbar */
    background-color: rgba(221, 219, 205, 0.8);
    padding-left: 15px;
    margin-bottom: 10px;
}

.dropdown-content a {
    display: block;
    color: black;
    text-decoration: none;
    font-size: 0.9em;
    padding: 5px 0;
}

/* Der Mouse-Over Effekt */
.nav-item:hover .dropdown-content {
    display: block; /* Zeigt die Links beim Drüberfahren an */
}

#seiten-ueberschrift, #grid-ueber-mich, #fusszeile, 
#yoga-sektion, #reiki-sektion, #meditation-sektion, #boxen {
    scroll-margin-top: 120px; 
}

/* Initialzustand für die GSAP Animation */
/* Wir setzen hier NUR die Sektionen auf 0, die auch im JS animiert werden */
.seiten-ueberschrift, 
#boxen {
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
}

.standort-abschnitt {
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.standort-abschnitt h3 {
    margin-bottom: 20px;
    color: #333;
}

.map-container {
    width: 100%;
    max-width: 700px; /* Begrenzt die Breite auf dem Desktop */
    margin: 0 auto;   /* Zentriert die Karte */
    border-radius: 15px;
    overflow: hidden; /* Sorgt dafür, dass die Ecken der Karte abgerundet sind */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Sorgt dafür, dass die Karte auf kleinen Bildschirmen schmaler wird */
@media screen and (max-width: 800px) {
    .map-container {
        height: 250px;
        width: 300px;
    }
}

/* Erzeugt das zweispaltige Layout im Footer */
#footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Zwei gleich große Spalten */
    gap: 40px;
    text-align: left; /* Text in den Spalten linksbündig */
    align-items: start;
}

.footer-links h2 {
    margin-top: 20px;
}

/* Die Karte soll die volle Höhe nutzen */
.map-container iframe {
    border-radius: 10px;
    display: block;
}

.standort-abschnitt h3 {
    margin-top: 0;
}

/* Instagram Icon Fix: Es soll absolut im Footer bleiben */
#fusszeile {
    position: relative;
    padding-bottom: 60px; /* Platz für das Instagram Icon unten */
}

/* Handy-Anpassung: Spalten untereinander */
@media screen and (max-width: 768px) {
    #footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .kontakt-links {
        text-align: center;
    }
}

/* Layout für den oberen Bereich (Kontakt & Karte) */
.footer-kontakt-bereich {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-kontakt-links, .footer-kontakt-rechts {
    flex: 1; /* Beide Hälften sind gleich breit */
}

/* Karte Styling */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    height: 300px;
}

/* Formular Bereich zentriert und volle Breite */
.footer-formular-bereich {
    width: 100%;
    margin-top: 20px;
}

.footer-formular-bereich input, 
.footer-formular-bereich textarea {
    width: 90%; /* Etwas schmaler als 100% für schöneren Look */
    margin: 10px auto;
    display: block;
}

/* Handy-Optimierung */
@media screen and (max-width: 768px) {
    .footer-kontakt-bereich {
        flex-direction: column; /* Stapelt Kontakt und Karte auf Handys */
        text-align: center;
    }
    .footer-kontakt-links p {
        justify-content: center;
        display: flex;
        gap: 10px;
    }
    .map-container {
        max-width: 400px;
    }
}

.honeypot {
    display: none !important;
}

.heilversprechen {
    font-style: italic;
    font-size: 10px;
}