/* Lightbox über alles legen */
#lightbox {
    position: fixed;
    inset: 0;               /* oben, rechts, unten, links = 0 */
    background: rgba(0,0,0,0.85);
    display: none;          /* nur wenn aktiv */
    justify-content: center;
    align-items: center;
    z-index: 9999;          /* immer im Vordergrund */
}

/* Bild in voller Größe, max 90% der Fensterhöhe/breite */
#lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 20px;
    object-fit: contain;     /* Bild proportional skalieren */
}

/* Wenn aktiv */
#lightbox.show {
    display: flex;
}

/* ===============================
   GRUNDSTILE
=============================== */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

/* ===============================
   NAVBAR
=============================== */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Brand: Logo + Text */
.navbar-brand {
    font-weight: 600;
    color: #2e7d32 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

/* Logo */
.nav-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Links */
.nav-link {
    position: relative;
    color: #333 !important;
    font-weight: 500;
    margin-left: 20px;
    padding: 0.35rem 0;
    transition: color 0.4s ease;
}

.nav-link:hover {
    color: #2e7d32 !important;
}

/* Unterstrich-Animation */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background-color: #2e7d32;
    transition: width 0.4s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Toggler (Burger) */
.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}
/* ===============================
   NAVBAR – MOBILE FEINTUNING
=============================== */

/* Tablet & kleineres Laptop (Burger aktiv) */
@media (max-width: 991px) {
    .nav-logo {
        height: 38px;
    }

    .navbar-brand span {
        font-size: 0.9rem;
        line-height: 1.2;
    }
}

/* Handy, inkl. iPhone SE / normale iPhones */
@media (max-width: 576px) {

    .navbar {
        padding: 0.3rem 0.75rem;
    }

    /* Brand darf schrumpfen, damit alles in eine Zeile passt */
    .navbar-brand {
        max-width: 80%;
        flex-shrink: 1;
        min-width: 0;
    }

    .navbar-brand span {
        font-size: 0.8rem;
        line-height: 1.2;
        white-space: normal;     /* darf umbrechen, aber bleibt beim Logo */
    }

    .nav-logo {
        height: 34px;
    }

    /* Toggler bleibt immer rechts und in derselben Zeile */
    .navbar-toggler {
        margin-left: auto;
        flex-shrink: 0;
    }

    /* Ausklappmenü optisch wie eine Karte */
    .navbar .navbar-collapse {
        background: #ffffff;
        margin-top: 0.25rem;
        padding: 0.5rem 0.75rem 0.75rem;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 0.35rem 0;
        text-align: left;
    }

    /* Unterstreich-Effekt auf Handy aus, wirkt ruhiger */
    .navbar-nav .nav-link::after {
        display: none;
    }
}

/* ===============================
   HERO SECTION
=============================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to right, #e8f5e9, #e3f2fd);
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: #555;
    margin: 0;
}

/* Fade-in Animation */
.fade-text {
    font-weight: 700;
    font-size: 4rem;
    color: #2e7d32;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s ease forwards;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===============================
   SECTIONS
=============================== */
section {
    padding: 100px 0;
}

.section-title {
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 30px;
}

/* ===============================
   SERVICE BOXES
=============================== */
.service-box {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 25px;
    min-height: 280px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.service-box h3 {
    color: #2e7d32;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.5rem;
    line-height: 1.3;
}

.service-box p {
    color: #333;
    line-height: 1.8;
    font-size: 1rem;
}

.service-box p::before {
    content: "• ";
    color: #2e7d32;
    font-weight: bold;
}

.service-box p + p {
    margin-top: 15px;
}

/* ===============================
   GALERIE
=============================== */
.gallery-slider {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
}

.gallery-track img {
    height: 350px;
    width: auto;
    max-width: 100%;
    border-radius: 20px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-track img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Galerie-Text Animation */
.gallery-title-wrapper {
    margin-bottom: 30px;
    overflow: hidden;
    text-align: center;
}

.gallery-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2e7d32;
    display: inline-block;
    transform: translateX(-100%);
    opacity: 0;
    animation: slideInLeft 2.5s ease forwards;
}

@keyframes slideInLeft {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* ===============================
   KONTAKTBEREICH
=============================== */
.contact-section {
    background-color: #f5f7fa;
    padding: 100px 20px;
}

.contact-flex {
    display: flex;
    justify-content: center;   /* horizontale Zentrierung */
    align-items: stretch;      /* Blöcke gleiche Höhe */
    gap: 60px;
    flex-wrap: wrap;
    text-align: center;
}

.contact-block,
.contact-image {
    background-color: #ffffff;
    padding: 30px 40px;        /* gleiche Höhe wie Kontaktblock */
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    max-width: 400px;
    flex: 1 1 400px;           /* gleiche Breite */
    display: flex;
    flex-direction: column;
    justify-content: center;    /* vertikal zentriert */
    align-items: center;        /* horizontal zentriert */
}

/* Icon selbst */
.contact-image img.contact-icon {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    padding: 0;                /* entfernt extra padding, damit Blockhöhe stimmt */
}

/* Responsive für Handy/Tablet */
@media (max-width: 768px) {
    .contact-flex {
        flex-direction: column;
        align-items: center;   /* GANZ wichtig */
        gap: 30px;
    }

    .contact-block,
    .contact-image {
        max-width: 350px;
        width: 100%;
    }
}




/* ===============================
   FOOTER
=============================== */
footer {
    background-color: #2e7d32;
    color: white;
    padding: 20px;
    text-align: center;
}

footer a, footer a:visited, footer a:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

footer a:hover {
    opacity: 0.8;
}

/* ===============================
   RESPONSIVE
=============================== */
/* ===============================
   RESPONSIVE – TABLET
   (bis 991px Breite)
=============================== */
@media (max-width: 991px) {

    /* Navbar etwas kompakter */
    .nav-link {
        margin-left: 12px;
        font-size: 0.95rem;
    }

    .navbar-brand span {
        font-size: 0.95rem;
    }

    .nav-logo {
        height: 45px;
    }

    /* Hero-Schrift auf Tablet etwas kleiner */
    .hero h1 {
        font-size: 3rem;
    }
}

/* ===============================
   RESPONSIVE – HANDY / KLEINE TABLETS
   (bis 768px Breite)
=============================== */
@media (max-width: 768px) {

    /* ===== HERO ===== */
    .hero {
        min-height: auto;             /* kein 100vh auf Handy */
        padding: 120px 20px 80px;     /* genug Abstand unter Navbar */
    }

    .hero h1 {
        font-size: 2.1rem;            /* deutlich kleiner, aber noch präsent */
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1rem;
    }

    /* ===== SECTIONS ===== */
    section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    /* ===== SERVICE BOXEN ===== */
    .service-box {
        padding: 25px 20px;
        min-height: auto;             /* keine erzwungene Höhe auf Handy */
    }

    .service-box h3 {
        font-size: 1.25rem;
    }

    .service-box p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* ===== GALERIE ===== */
    .gallery-title {
        font-size: 1.6rem;
    }

    .gallery-track {
        gap: 15px;
        padding: 5px 0;
    }

    .gallery-track img {
        height: 220px;
        border-radius: 18px;
    }

    /* ===== KONTAKT ===== */
    .contact-section {
        padding: 70px 20px;
    }

    .contact-flex {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .contact-block,
    .contact-image {
        max-width: 360px;
        width: 100%;
        padding: 25px 20px;
        border-radius: 18px;
    }

    .contact-image img.contact-icon {
        max-width: 120px;
    }
}

/* ===============================
   RESPONSIVE – KLEINE HANDYS
   (bis 480px Breite)
=============================== */
@media (max-width: 480px) {

    .hero {
        padding: 110px 16px 60px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .gallery-title {
        font-size: 1.4rem;
    }

    .gallery-track img {
        height: 200px;
    }

    .service-box {
        padding: 20px 16px;
    }
}
@media (max-width: 360px) {

    .hero {
        padding: 100px 14px 50px;
    }

    .hero h1 {
        font-size: 1.65rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .gallery-title {
        font-size: 1.25rem;
    }

    .gallery-track img {
        height: 180px;
    }

    .service-box {
        padding: 18px 14px;
    }

    /* Kontakt */
    .contact-block,
    .contact-image {
        max-width: 300px;
        padding: 20px 16px;
    }

    .contact-image img.contact-icon {
        max-width: 110px;
    }
}
/* ===============================
   NAVBAR – MOBILE FEINTUNING
=============================== */

/* Tablet & kleines Laptop (Burger-Menü aktiv, bis 991px) */
@media (max-width: 991px) {
    .navbar {
        padding: 0.4rem 1rem;
    }

    .nav-logo {
        height: 42px;          /* Logo etwas kleiner */
    }

    .navbar-brand span {
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .nav-link {
        margin-left: 12px;
        font-size: 0.95rem;
    }
}

/* Handy / kleines Tablet (bis 768px) */
@media (max-width: 768px) {
    .navbar {
        padding: 0.4rem 0.75rem;   /* weniger Rand, wirkt kompakter */
    }

    .navbar-brand {
        flex-grow: 1;
        justify-content: flex-start;  /* Logo + Text linksbündig */
    }

    .navbar-brand span {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .nav-logo {
        height: 36px;              /* noch etwas kleiner auf Handy */
    }

    /* Ausklapp-Menü Hintergrund & Karteffekt */
    .navbar .navbar-collapse {
        background: #ffffff;
        padding: 0.5rem 0.75rem 0.75rem;
        margin-top: 0.25rem;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    }

    /* Links im ausgeklappten Menü: schön untereinander */
    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 0.35rem 0;
        text-align: left;          /* gut lesbar, nicht gequetscht */
    }

    /* Unterstreich-Animation auf Handy ausblenden – wirkt ruhiger */
    .navbar-nav .nav-link::after {
        display: none;
    }
}
/* TEXT IMMER EINZEILIG – NIE UMBRECHEN */
.navbar-brand span {
    white-space: nowrap !important;
}
.navbar-brand {
    display: flex !important;
    align-items: center !important;   /* perfekte vertikale Zentrierung */
    gap: 10px;
}
@media (max-width: 576px) {

    /* Brand darf schrumpfen, bricht aber NICHT um */
    .navbar-brand {
        max-width: 75%;
        flex-shrink: 1;
        min-width: 0;
    }

    /* Text etwas kleiner, aber EINZEILIG */
    .navbar-brand span {
        font-size: 0.78rem;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;  /* falls SE V1 zu schmal ist → kürzt elegant */
    }

    /* Logo etwas kleiner für perfekte eine Zeile */
    .nav-logo {
        height: 32px;
    }

    /* Burger bleibt IMMER ganz rechts */
    .navbar-toggler {
        margin-left: auto;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
