/* Grundeinstellungen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: rgb(17, 30, 2);
    scroll-behavior: smooth;
}

/* Farben aus dem Logo */
:root {
    --primary-green: #0e6b5e; /* Das Grün aus dem Logo-Hintergrund */
    --accent-gold: #d4af37;   /* Das Gold der Schrift */
    --light-bg: #f4f7f6;
    --white: #ffffff;
}



.logo-link {
    text-decoration: none; /* Entfernt Unterstreichung vom Link */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    height: 60px; /* Größe des Bildes im Header */
    width: auto;
    display: block;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-line-1 {
    color: #ffffff; /* Weißer Text */
    font-family: 'Newsreader', serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
}

.logo-line-2 {
    color: #ffffff; /* Weißer Text */
    font-family: 'Newsreader', serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-top: 2px;
}

/* Navigations-Leiste */
nav {
    background-color: #0e6b5e; /* Das dunkle Grün aus deinem Logo */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Newsreader', serif;
    font-weight: 400;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #d4af37; /* Gold beim Drüberfahren */
}

/* Hero Bereich */
.hero {
    background: linear-gradient(rgba(14, 107, 94, 0.7), rgba(14, 107, 94, 0.7)), 
                url('https://images.unsplash.com/photo-1553284965-83fd3e82fa5a?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80'); /* Platzhalterbild Pferd */
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background: var(--accent-gold);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: transform 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}

/* Sektionen */
.container {
    padding: 4rem 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-green);
    font-size: 2rem;
}

.bg-light {
    background: var(--light-bg);
    padding: 4rem 10%;
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 5px solid var(--accent-gold);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.grid {
    display: grid;
    /* Dies erzwingt 3 Spalten auf dem Desktop, wechselt aber bei kleinen Schirmen automatisch */
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem;
}

/* Responsive Anpassung für Tablets und Handys */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr); /* 2 pro Reihe auf Tablets */
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr; /* 1 pro Reihe auf dem Handy */
    }
}

/* Der Rest (Hover-Effekt etc.) bleibt gleich: */
.card-link:hover .card {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Diese Regel entfernt das Blau und die Unterstreichung für alle Links in den Karten */
.card-link {
    text-decoration: none; /* Entfernt die Unterstreichung */
    color: inherit;       /* Verhindert das Standard-Link-Blau */
    display: block;       /* Sorgt dafür, dass der Link die volle Breite/Höhe einnimmt */
}

/* Falls du sichergehen willst, dass auch die Überschriften in der Karte nicht blau werden */
.card-link h3 {
    text-decoration: none;
    color: var(--primary-green); /* Deine gewählte Logo-Farbe */
}

/* Der Text in der Karte soll ebenfalls seine normale Farbe behalten */
.card-link p {
    text-decoration: none;
    color: #333; /* Oder deine Standard-Textfarbe */
}

/* Optional: Nur der "Mehr erfahren" Link darf beim Hover eine Unterstreichung bekommen, wenn du das magst */
.card-link:hover .read-more {
    text-decoration: underline;
    color: var(--accent-gold);
}

/* Kontakt */
.contact-box {
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border: 1px solid #ddd;
}

/* Footer */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 2rem;
}

footer a {
    color: var(--accent-gold);
    text-decoration: none;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.contact-form input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.contact-form .btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}


/* Update der Schriftart im CSS */
:root {
    --primary-green: #0e6b5e; 
    --accent-gold: #d4af37;   
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --font-main: 'Newsreader', serif; /* Newsreader als Hauptschrift */
}

body {
    font-family: var(--font-main);
    font-weight: 400; /* Normale Lesestärke */
    font-size: 1.1rem; /* Newsreader wirkt oft etwas kleiner, daher leicht vergrößert */
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

h1, h2, h3, .logo-text {
    font-family: var(--font-main);
    font-weight: 700; /* Fett für Überschriften */
    color: var(--primary-green);
}

.hero-content h1 {
    font-style: italic; /* Kursiv sieht bei der Newsreader besonders elegant aus */
    font-size: 3.5rem;
    color: var(--white);
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
 
nav ul li {
    position: relative;
    float: left;
}
 
nav ul li a {
    display: block;
    padding: 10px 20px;
    
    
}
 
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0e6b5e;
    z-index: 1;
}
 
nav ul li:hover ul {
    display: block;
}

.detail-page h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-green);
}

.detail-page .intro {
    font-style: italic;
    font-size: 1.4rem;
    color: var(--accent-gold);
    margin-bottom: 40px;
}

.detail-page .content {
    max-width: 800px;
    margin-bottom: 50px;
}

.detail-page ul {
    margin-top: 20px;
    padding-left: 20px;
}

.detail-page ul li {
    margin-bottom: 10px;
}
/* Button Styling */
.menu-toggle {
    display: none; /* Auf Desktop versteckt */
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* Galerie Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden; /* Wichtig für den Zoom-Effekt */
    border-radius: 10px;
    height: 250px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Schneidet Bilder passend zu */
    transition: transform 0.5s ease; /* Sanfter Zoom */
}

/* Overlay für die Bildunterschrift */
.gallery-overlay {
    position: absolute;
    bottom: -100%; /* Startet außerhalb des Sichtfelds */
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 107, 94, 0.8); /* Dein Logo-Grün mit Transparenz */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: bottom 0.4s ease;
    padding: 20px;
    text-align: center;
}

.gallery-overlay p {
    font-family: 'Newsreader', serif;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Hover-Effekte */
.gallery-item:hover img {
    transform: scale(1.1); /* Bild vergrößert sich */
}

.gallery-item:hover .gallery-overlay {
    bottom: 0; /* Text fährt hoch */
}

/* Responsive Anpassung */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Ein Bild pro Reihe auf dem Handy */
    }
}
/* X-Animation wenn aktiv */
.menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }
    nav ul {
        margin-top: 1rem;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .two-col {
        grid-template-columns: 1fr;
    }
}
/* --- RESPONSIVE BEREICH --- */

@media (max-width: 768px) {
    .menu-toggle { display: flex; } /* Button auf Handy zeigen */

    nav ul {
        position: fixed;
        left: -100%; /* Startet außerhalb des Bildschirms */
        top: 0;
        flex-direction: column;
        background-color: var(--primary-green);
        width: 80%; /* Breite des herausfahrenden Menüs */
        height: 100vh;
        padding-top: 80px;
        transition: 0.4s; /* Geschwindigkeit des Herausfahrens */
        box-shadow: 5px 0 15px rgba(0,0,0,0.3);
    }

    nav ul.active {
        left: 0; /* Fährt rein */
    }

    /* Dropdown Logik auf Mobile */
    .dropdown-menu {
        display: none; /* Unterpunkte versteckt */
        background: rgba(0,0,0,0.2);
    }

    .has-dropdown.open .dropdown-menu {
        display: block; /* Zeigt Unterpunkte wenn "open" */
    }
}

@media (max-width: 768px) {
    /* Das Hauptmenü, das von links einfährt */
    nav ul {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--primary-green);
        width: 80%;
        height: 100vh;
        padding-top: 80px;
        transition: 0.4s ease-in-out;
        box-shadow: 5px 0 15px rgba(0,0,0,0.3);
        overflow-y: auto; /* Erlaubt Scrollen, falls das Menü sehr lang wird */
        display: flex;
        gap: 0; /* Wir regeln Abstände über Padding */
    }

    nav ul.active {
        left: 0;
    }

    /* Die einzelnen Listenpunkte */
    nav ul li {
        width: 100%;
        display: block;
    }

    nav ul li a {
        padding: 15px 25px;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        width: 100%;
    }

    /* DAS UNTERMENÜ (Leistungen) */
    .dropdown-menu {
        display: block; /* Wir nutzen max-height für das Ein-/Ausfahren */
        max-height: 0;  /* Standardmäßig geschlossen */
        overflow: hidden;
        background: rgba(0,0,0,0.2);
        transition: max-height 0.4s ease-out; /* Schiebt andere Punkte sanft nach unten */
    }

    /* Wenn die Klasse .open am übergeordneten <li> gesetzt ist */
    .has-dropdown.open .dropdown-menu {
        max-height: 500px; /* Groß genug für alle 6 Punkte */
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .dropdown-menu li a {
        padding-left: 45px; /* Einrücken der Unterpunkte */
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
}
/* --- Native Lightbox Styles --- */

/* Verhindert Scrollen, wenn Lightbox offen ist (Klasse wird per JS gesetzt) */
body.lightbox-open {
    overflow: hidden;
}

.lightbox {
    border: none;
    border-radius: 12px;
    padding: 0;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    background: transparent; /* Verhindert weißen Rand um das Bild */
}

/* Der gedimmte Hintergrund (nativ unterstützt) */
.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px); /* Optional: Hintergrund leicht weichzeichnen */
}

.lightbox img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(90vh - 60px); /* Platz für Unterschrift */
    object-fit: contain; /* Bild wird nicht beschnitten */
    border-radius: 8px 8px 0 0;
}

.lightbox-caption {
    background: #fff;
    padding: 15px;
    margin: 0;
    text-align: center;
    font-family: 'Newsreader', serif;
    font-size: 1.2rem;
    font-weight: 500;
    border-radius: 0 0 8px 8px;
    color: var(--primary-green);
}

/* Schließen Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(255,255,255,0.7);
    color: #333;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 10;
}

.close-btn:hover {
    background: #fff;
    color: var(--accent-gold);
}