:root {
    --green-primary: #2e7d32;
    --green-light: #e8f5e9;
    --green-mid: #4caf50;
    --text-dark: #1a1a1a;
    --text-muted: #666;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    color: var(--text-dark);
    background: #fff;
}

a { transition: color .2s ease, opacity .2s ease, transform .2s ease; }

/* ── Navbar ── */
.navbar-brand {
    font-size: 1.3rem;
    color: var(--green-primary) !important;
}
.navbar-light .navbar-nav .nav-link {
    color: #212529;
    font-weight: 500;
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active { color: var(--green-primary); }
.navbar-light .navbar-nav .nav-link.active { background: transparent; }
.navbar-light .navbar-nav .btn-success,
.navbar-light .navbar-nav .btn-success:hover { color: #fff !important; }

/* ── Hero (Startseite) ── */
.hero-section {
    min-height: 88vh;
    display: flex;
    align-items: center;
    color: #fff;
}
.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}
.hero-section p {
    font-size: 1.15rem;
    opacity: .92;
}
@media (max-width: 767px) { .hero-section { min-height: 70vh; } }

/* ── Page Hero (Unterseiten) ── */
.page-hero {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 5rem 0 3rem;
    overflow: hidden;
    background: center/cover no-repeat;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,.72), rgba(5,25,8,.78));
    z-index: 0;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1,
.page-hero .lead { text-shadow: 0 2px 12px rgba(0,0,0,.6); letter-spacing: .01em; }

.page-hero-home       { background-image: url('/assets/img/hero-home.webp'); }
.page-hero-ueber-uns  { background-image: url('/assets/img/hero-ueber-uns.webp'); }
.page-hero-leistungen { background-image: url('/assets/img/hero-leistungen.webp'); }
.page-hero-galerie    { background-image: url('/assets/img/hero-galerie.webp'); }
.page-hero-kontakt    { background-image: url('/assets/img/hero-kontakt.webp'); }

/* ── Typografie ── */
.section-title,
.origintitle {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Stacked Images ── */
.stacked-images {
    height: 420px;
    position: relative;
}
.stacked-img-top,
.stacked-img-bottom {
    position: absolute;
    width: 75%;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.stacked-img-top {
    top: 0; left: 0;
    transform: rotate(-3deg);
    z-index: 2;
    animation: fadeInLeft 0.8s ease both;
}

.stacked-img-bottom {
    bottom: 0; right: 0;
    transform: rotate(3deg);
    z-index: 1;
    animation: fadeInRight 0.8s 0.2s ease both;
}

/* Hover NACH der Animation – animation-fill-mode deaktivieren */
.stacked-img-top:hover,
.stacked-img-bottom:hover {
    animation: none;          /* ← Das ist der Fix */
    transform: rotate(0deg) translateY(-6px) scale(1.04);
    box-shadow: 0 20px 40px rgba(0,0,0,.25) !important;
    z-index: 3;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px) rotate(-3deg); }
    to   { opacity: 1; transform: translateX(0) rotate(-3deg); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px) rotate(3deg); }
    to   { opacity: 1; transform: translateX(0) rotate(3deg); }
}
@media (max-width: 575px) {
    .stacked-images { height: 300px; }
    .stacked-img-top,
    .stacked-img-bottom { width: 70%; }
}

/* ── Leistungen ── */
.leistungen-section { background-color: var(--green-light); }
.leistung-origin-card {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}
.leistung-origin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,.12) !important;
}
.leistung-card-img { width: 100%; height: 170px; object-fit: cover; }
.leistung-origin-icon { font-size: 1.5rem; color: var(--text-dark); }
.leistung-origin-title {
    font-size: .95rem; font-weight: 700; color: var(--text-dark);
    text-decoration: underline; text-underline-offset: 3px;
}
.leistung-origin-title:hover { color: var(--green-primary); }
.leistung-detail-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--green-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: var(--green-primary);
}
.leistung-list { list-style: none; padding: 0; margin: 0; }
.leistung-list li {
    padding: .35rem 0; color: #444; font-size: .95rem;
    border-bottom: 1px solid #f0f0f0;
}
.leistung-list li:last-child { border-bottom: none; }
.check-item i { color: var(--green-primary); font-size: 1.3rem; flex-shrink: 0; }

/* ── CTA Banner ── */
.cta-banner {
    background: linear-gradient(135deg, var(--green-primary), #1b5e20);
    color: #fff;
    border-radius: 16px;
}

/* ── Galerie ── */
.galerie-card-img {
    width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 14px;
    transition: transform .25s ease, box-shadow .25s ease; background: #fff;
}
.galerie-card-img:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.14); }

/* ── Kontakt ── */
.contact-page { background: #fff; }
.contact-card {
    border: 1px solid #d9ead3; border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,.06); overflow: hidden;
}
.contact-card .card-body { padding: 2rem; }
.contact-info-box {
    background: #f4fbf4; border: 1px solid #d9ead3;
    border-radius: 14px; padding: 1.25rem;
}
.contact-info-item {
    display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.1rem;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-icon {
    width: 42px; height: 42px; min-width: 42px; border-radius: 12px;
    background: #e8f5e9; display: flex; align-items: center; justify-content: center;
    color: var(--green-primary); font-size: 1.1rem;
}
.contact-info-title { font-size: .9rem; font-weight: 700; color: var(--text-dark); margin-bottom: .15rem; }
.contact-info-text,
.contact-info-text a { font-size: .9rem; color: #555; text-decoration: none; }
.contact-info-text a:hover { color: var(--green-primary); }
.contact-form .form-label { font-weight: 600; color: var(--text-dark); margin-bottom: .4rem; }
.contact-form .form-control,
.contact-form .form-check-input { border-color: #cfe6cf; }
.contact-form .form-control { border-radius: 12px; padding: .8rem 1rem; }
.contact-form .form-control:focus {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 .2rem rgba(46,125,50,.15);
}
.contact-form textarea.form-control { min-height: 180px; resize: vertical; }
.contact-form .btn-success {
    border-radius: 999px; padding: .85rem 1.6rem; font-weight: 700;
}
.contact-form .btn-success:hover { transform: translateY(-1px); }
.turnstile-box {
    background: #f4fbf4; border: 1px solid #d9ead3; border-radius: 14px; padding: 1rem;
}
.contact-form .invalid-feedback { font-size: .85rem; }
.contact-form .is-invalid { border-color: #dc3545; }
.contact-form .is-valid { border-color: var(--green-primary); }
.contact-success {
    background: #f4fbf4; border: 1px solid #d9ead3;
    border-radius: 16px; padding: 2rem; text-align: center;
}
.contact-success i {
    width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #e8f5e9; color: var(--green-primary);
    font-size: 1.7rem; margin-bottom: 1rem;
}

/* ── Über uns ── */
.about-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(46,125,50,.12);
    overflow: hidden;
}
.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,.10);
    border-color: rgba(46,125,50,.28);
}
.about-icon {
    width: 56px; height: 56px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(46,125,50,.13), rgba(76,175,80,.13));
    color: var(--green-primary); font-size: 1.5rem; margin-bottom: 1rem;
    transition: transform 0.3s ease, background 0.3s ease;
}
.about-card:hover .about-icon {
    transform: scale(1.08);
    background: linear-gradient(135deg, rgba(46,125,50,.22), rgba(76,175,80,.22));
}
.about-card h3 {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.about-card h3::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 48px; height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green-primary), var(--green-mid));
}
.about-intro-badge {
    display: inline-block;
    background: var(--green-light);
    color: var(--green-primary);
    font-weight: 700; font-size: .85rem;
    border-radius: 999px; padding: .3rem 1rem;
    margin-bottom: 1rem; letter-spacing: .03em;
}
.about-divider {
    width: 56px; height: 4px; border-radius: 999px;
    background: linear-gradient(90deg, var(--green-primary), var(--green-mid));
    margin: 1rem 0 1.5rem;
}

/* ── Buttons ── */
.btn-outline-success { color: var(--green-primary); border-color: var(--green-primary); }
.btn-outline-success:hover { background-color: var(--green-primary); border-color: var(--green-primary); color: #fff; }
.btn-success { background-color: var(--green-primary); border-color: var(--green-primary); }
.btn-success:hover { background-color: #1b5e20; border-color: #1b5e20; }

/* ── Sonstiges ── */
.object-cover { object-fit: cover; }
.bg-success.text-white { background: var(--green-primary) !important; }
.breadcrumb { display: none !important; }

/* ── Scroll-to-Top ── */
#scrollTop {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    width: 44px; height: 44px; border-radius: 8px;
    background: var(--green-primary); color: #fff; border: none;
    font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s, background .2s; z-index: 999;
}
#scrollTop.visible { opacity: 1; visibility: visible; }
#scrollTop:hover { background: #1b5e20; }

/* ── Footer ── */
.footer-original { background-color: #e8f5e9; border-top: 1px solid #c8e6c9; }
.footer-top { background-color: #e8f5e9; }
.footer-top a { color: #1a1a1a; transition: color .2s; }
.footer-top a:hover { color: var(--green-primary); }
.footer-logo-img { max-width: 280px; width: 100%; height: auto; }
.footer-bottom-bar { background-color: #e8f5e9; border-top: 1px solid #e8f5e9; }
.footer-bottom-bar a:hover { text-decoration: underline !important; }
.img-animated {
    animation: fadeInUp 0.8s ease both;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.img-animated:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}
/* Ken Burns Zoom */
@keyframes kenburns {
    0%   { transform: scale(1.0); }
    100% { transform: scale(1.12); }
}

.hero-img {
    transform-origin: center center;
}

.carousel-item.active .hero-img {
    animation: kenburns 5.5s ease-out forwards;
}
/* Fade statt Slide */
#heroCarousel .carousel-item {
    transition: opacity 0.8s ease-in-out;
}
#heroCarousel.carousel-fade .carousel-item {
    opacity: 0;
}
#heroCarousel.carousel-fade .carousel-item.active {
    opacity: 1;
}