/* =========================================
   GLOBAL VARIABLES
========================================= */
:root {
    --accent: #ECAB09;
    --heading: #698F04;
    --text: #526840BF;
    --text-active: #000000;
    --highlight: #ECAB09;
    --button-bg: #ECAB09;
    --radius: 10px;

    --font-heading: "Poppins", sans-serif;
    --font-body: "Inter", sans-serif;

    --max-width: 1200px;
}

::selection {
    background: var(--accent);
    color: #000;
}

::-moz-selection {
    background: var(--accent);
    color: #000;
}

/* Poppins */
@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/poppins/poppins-v24-latin-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/poppins/poppins-v24-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/poppins/poppins-v24-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Inter */
@font-face {
    font-family: 'Inter';
    src: url('../asssets/fonts/inter/inter-v20-latin-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/inter/inter-v20-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/inter/inter-v20-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   GLOBAL RESET
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.7;
    background: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4{
    font-family: var(--font-heading);
    color: var(--heading);
    margin-bottom: 20px;
}

h1 {
    font-size: 2.3rem;
    text-align: center;
    font-weight: 400;
}

h3 {
    font-size: 1.3rem;
    text-align: center;
    font-weight: 500;      /* nicht fett, aber nicht zu dünn */
    line-height: 1.3;      /* angenehme Höhe */
}
h4 {
    font-size: 1.3rem;
    font-weight: 500;      /* nicht fett, aber nicht zu dünn */
    line-height: 1.3;      /* angenehme Höhe */
}
p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}
a {
    text-decoration: none;
}
a:hover {
    text-decoration: none; /* oder auch none */
}

.center-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}
.text {
    text-align: left;
    max-width: 900px;
    /*argin: 0 auto 40px auto;*/
}

.textblock-center {
    /*max-width: 700px;   /* oder jede Breite, die du willst */
    margin: 0 auto;     /* zentriert den Block */
    text-align: left;   /* Text bleibt links */
}
.textblock{
    max-width: 700px;   /* oder jede Breite, die du willst */
    margin: 0 auto;     /* zentriert den Block */
    text-align: left;   /* Text bleibt links */
}
/* =========================================
   BUTTONS
========================================= */
.btn {
    display: block;
    margin: 40px auto 0 auto; /* ← Abstand hier erhöhen */
    width: fit-content;
    padding-left: 30px;
    padding-right: 30px;
    background: var(--button-bg);
    color: #000;
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 400;
    transition: 0.3s ease;
}


.btn:hover {
    background: #d99905;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* =========================================
   SECTIONS
========================================= */
.section-padding {
    padding: 70px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}


.section-contact {
    min-height: 100vh; /* volle Höhe */
    padding: 40px 20px;
    background-image: url("../images/bg_contact.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment:scroll;
    display: flex;
    flex-direction: column; /* Elemente untereinander */
    justify-content: center; /* vertikal zentriert */
    align-items: center;     /* horizontal zentriert */
    text-align: left; /* Text bleibt links */
}

.section-contact h1 {
    color: var(--accent);
}

.section-contact p {
    color: #fff;
}

/* ============================
   HAMBURGER BUTTON (KREIS)
============================ */

.hamburger {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: background 0.3s ease;
}

/* Burger-Linien */
.hamburger span {
    width: 26px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s ease;
}

/* ============================
   X-ANIMATION
============================ */

/* Linie 1 → dreht nach rechts */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

/* Linie 2 → verschwindet */
.hamburger.active span:nth-child(2) {
    opacity: 0;
}

/* Linie 3 → dreht nach links */
.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ============================
   MOBILE NAV
============================ */

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--accent);
    display: flex;
    flex-direction: column;
    padding: 100px 30px;
    gap: 25px;
    transition: right 0.3s ease;
    z-index: 9999;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    color: white;
    font-size: 22px;
    text-decoration: none;
    letter-spacing: 0.5px;
}

/* Desktop Hover */
@media (min-width: 900px) {
    .mobile-nav a:hover {
        opacity: 0.7;
    }
}

/* ============================
   BLUR OVERLAY
============================ */

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9000;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}




/* =========================================
   HOME SECTION
========================================= */

.section-home {
    height: 100vh; /* exakt Bildschirmhöhe */
    min-height: 100vh;
    background-image: url("../images/BG-img-Home.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment:scroll;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 20px; /* damit Text nicht am Rand klebt */
}

.home-content {
    position: relative;
    max-width: 800px;
    padding: 20px;
    max-height: 70vh;   /* verhindert, dass die Sektion größer wird */
    overflow-y: auto;   /* falls Text zu lang ist */
}

.home-logo {
    width: 90%;
    border-radius: var(--radius);
    margin-bottom: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}


.intro-text {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-align: left;
}

/* =========================================
   ÜBER SCHNECKMECK – 3 SPALTEN
========================================= */
.three-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.info-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    margin-bottom: 15px;
}

.info-card p {
    text-align: center;
}

/* =========================================
   2 BILDER UNTERE REIHE
========================================= */
.two-images {
    display: grid;
    margin-bottom: 25px;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.two-images img {
    width: 100%;
    height: 300px;        /* deine gewünschte fixe Höhe */
    object-fit: cover;    /* sorgt für schöne Bildausschnitte */
    border-radius: var(--radius);
    cursor: pointer;
    display: block;
}

/* Mobile: Bilder untereinander */
@media (max-width: 700px) {
    .two-images {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   ANIMAL GRID – Hauptlayout
========================================= */

.animal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

/* Jede Karte */
.animal-card {
    text-align: center;
    cursor: pointer;
}

/* Bilder im Grid */
.animal-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.25s ease;
}

/* Hover-Effekt */
.animal-card:hover img {
    transform: scale(1.04);
}

/* =========================================
   BUTTON – Grüner Button wie dein Beispiel
========================================= */

.animal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f5e9; /* sanftes Grün-Grau */
    color: #2e7d32;      /* sattes Grün */
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 14px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.animal-btn i {
    font-size: 1.1rem;
}

.animal-btn:hover {
    background: #d6edd8;
    transform: translateY(-2px);
}
.lightbox-trigger {
    transition: transform 0.3s ease;
}

.lightbox-trigger:hover {
    transform: scale(1.03);
}

/* =========================================
   MOBILE OPTIMIERUNG
========================================= */

@media (max-width: 900px) {
    .animal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .animal-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .animal-card img {
        height: 220px;
    }
}

/* =========================================
   MODAL – Hintergrund (Overlay)
========================================= */

.animal-modal {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    z-index: 10000;
    padding: 40px 20px;
    overflow-y: auto;
}

.animal-modal.active {
    opacity: 1;
    pointer-events: auto;
}

/* =========================================
   MODAL – Inhalt (Box)
========================================= */

.animal-modal-content {
    background: #fff;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 16px;
    position: relative;

    /* Box-Fade-In bleibt */
    animation: modalFade 0.25s ease;
}

@keyframes modalFade {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   MODAL – Close Button
========================================= */

.animal-modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 32px;
    cursor: pointer;
    color:#ECAB09;
    transition: 0.2s;
}

.animal-modal-close:hover {
    color: #000;
}

/* =========================================
   MODAL – Galerie
========================================= */

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.modal-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.modal-gallery img:hover {
    transform: scale(1.05);
}

/* =========================================
   BILDER – STAGGER FADE-IN
========================================= */

.modal-gallery img {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.modal-gallery img.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {
    .animal-modal-content {
        padding: 20px;
    }

    .modal-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .modal-gallery img {
        height: 120px;
    }
}

/* --- GRID --- */
.gallery-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}


/* --- ITEM WRAPPER --- */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

/* --- BILDER --- */
.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
    cursor: pointer;
    transition: 0.3s ease;
}

/* --- HOVER DARKEN --- */
.gallery-item img:hover {
    filter: brightness(0.6);
}

/* --- OVERLAY (Titel vom IMG lesen!) --- */
.gallery-item::after {
    content: attr(data-title); /* wird dynamisch ersetzt (siehe unten) */
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.6);
    color:#698F04;
    font-size: 1.3rem;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: 0.3s ease;
    border-radius: 0 0 var(--radius) var(--radius);
}

/* --- HOVER OVERLAY --- */
.gallery-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}
/* =========================================
   AUDIO BOX
========================================= */
.audio-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.audio-box img {
    width: 100%;
    border-radius: var(--radius);
}

.audio-box audio {
    width: 100%;
    margin-top: 15px;
}

/* =========================================
   KONTAKT
========================================= */
.legal-links {
    margin-top: 40px;
}

.legal-links a {
    color: var(--accent);
    margin: 0 10px;
}
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.7;
}

.legal-page h2 {
    margin-bottom: 20px;
}

.legal-page h3 {
    margin-top: 30px;
    margin-bottom: 10px;
}

.legal-page p {
    margin: 0 0 15px 0;
}

/* =========================================
   RESPONSIVE TWEAKS
========================================= */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .home-logo {
        width: 80%;
    }
}
/* =========================================
   LIGHTBOX
========================================= */
#lightbox {
    z-index: 10000;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

/* =========================================
   BILD – perfekt zentriert, Animation via JS
========================================= */

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: var(--radius);

    opacity: 0;
    transform: translateX(0); /* Endzustand immer zentriert */
    transition: opacity 0.25s ease, transform 0.25s ease;

    position: relative;
    z-index: 1; /* Bild unter Pfeilen */
}

.lightbox img.visible {
    opacity: 1;
    transform: translateX(0); /* wichtig */
}

/* =========================================
   CLOSE BUTTON
========================================= */

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: var(--accent);
    cursor: pointer;
    z-index: 99999;
}

/* =========================================
   TITEL & UNTERTITEL
========================================= */

#lightbox-title {
    color: #fff;
    margin-top: 20px;
    font-size: 1.2rem;
}

#lightbox-subtitle {
    color: #ddd;
    margin-top: 6px;
    font-size: 1rem;
    padding: 0 20px;
    text-align: center;
}

/* =========================================
   NAVIGATIONSPFEILE
========================================= */

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    opacity: 1;

    font-size: 3rem;
    color: white;
    text-shadow: 0 0 8px rgba(0,0,0,0.6);

    cursor: pointer;
    user-select: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}
.portrait-grid {
    column-count: 3;
    column-gap: 20px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.portrait-grid img {
    width: 100%;
    margin-bottom: 20px;
    border-radius: var(--radius);
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.portrait-grid img:hover {
    transform: scale(1.03);
}
.portrait-preview {
    text-align: center;
    margin: 20px 0;
}

.portrait-preview img {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.portrait-preview img:hover {
    transform: scale(1.03);
}

.portraits-heading {
    margin-top: 60px;
    text-align: center;
}

.portrait-preview-text {
    text-align: center;
    max-width: 600px;
    margin: 10px auto 40px;
}


@media (max-width: 900px) {
    .portrait-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .portrait-grid {
        column-count: 1;
    }
}
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    cursor: pointer;
    padding: 10px;
    user-select: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #ccc;
}
.scroll-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 22px;
    cursor: pointer;
    display: none; /* wird per JS eingeblendet */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}

.scroll-top-btn.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-top-btn.hide {
    opacity: 0;
    transform: translateY(10px);
}
/* ============================
   AKTUELLES SECTION
============================ */

#aktuelles {
    padding: 80px 20px;
}

#aktuelles h2 {
    text-align: center;
    margin-bottom: 40px;
}

.aktuelles-container {
    display: grid;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.aktuelles-item img.cover {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.aktuelles-item .date {
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 10px;
}

/* ============================
   MINI-GALERIE
============================ */

.mini-gallery {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.mini-gallery .mini-thumb {
    width: 120px !important;
    height: auto !important;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}


.mini-gallery .mini-thumb:hover {
    transform: scale(1.05);
}
/* ============================
   COVER KLICKBAR + HOVER
============================ */

.aktuelles-item .cover {
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.aktuelles-item .cover:hover {
    transform: scale(1.02);
    opacity: 0.95;
}
