/* =========================
   VARIABLES
========================= */
:root {
    --green-dark: #4a7a14;
    --green-main: #82d225;
    --green-mid: #a0e040;
    --green-light: #c2f07a;
    --green-pale: #eefad0;
    --green-mist: #f6fde8;

    --beige: #f8f5f0;
    --cream: #fdfbf8;
    --anthracite: #1e2a25;
    --gray-mid: #6b7c74;
    --gray-light: #e8ede9;
    --white: #ffffff;

    --shadow-md: 0 8px 32px rgba(29, 58, 40, 0.12);

    --radius-md: 16px;
    --radius-lg: 24px;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', 'Segoe UI', sans-serif;

    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =========================
   GLOBAL LAYOUT + UTILITIES
========================= */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 96px 0;
}

.text-center {
    text-align: center;
}

.bg-white {
    background: var(--white);
}

/* =========================
   TYPOGRAPHY
========================= */
body {
    font-family: var(--font-body);
    color: var(--anthracite);
    background: var(--cream);
    font-size: 16px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

h4 {
    font-size: 1.1rem;
}

p {
    color: var(--gray-mid);
    line-height: 1.75;
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
    font-family: var(--font-body);
}

.btn-white {
    background: var(--white);
    color: var(--green-dark);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: var(--green-pale);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
}

.btn-phone {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-family: var(--font-body);
}

.btn-phone:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}


/* =========================
   Galerie page sections
========================= */
.page-hero {
    padding: 140px 0 72px;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    color: white;
    position: relative;
    margin: 16px 0px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid var(--gray-light);
    background: transparent;
    color: var(--gray-mid);
    transition: var(--transition);
    font-family: var(--font-body);
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--green-main);
    background: var(--green-main);
    color: white;
}

.full-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    grid-auto-flow: dense;
}

.gallery-full-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 320px;
    background: var(--green-mist);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-full-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.gallery-full-item.span2 {
    grid-column: span 2;
}

.gallery-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.before-after-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    min-height: 320px;
    overflow: hidden;
    border-radius: inherit;
}

.before-after-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.before-side,
.after-side {
    position: relative;
}

.before-side span,
.after-side span {
    position: absolute;
    left: 12px;
    bottom: 12px;

    background: rgba(0, 0, 0, 0.6);
    color: white;

    padding: 6px 12px;
    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 600;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.after-side {
    border-left: 2px solid white;
}

.gallery-full-item:hover .gallery-image {
    transform: scale(1.06);
}

.gallery-preview-hecken {
    background: linear-gradient(135deg, #d8f3dc, #40916c);
}

.gallery-preview-rasen {
    background: linear-gradient(135deg, #c7f9cc, #1b4332);
}

.gallery-preview-pflaster {
    background: linear-gradient(135deg, #e8ede9, #6b7c74);
}

.gallery-preview-zaun {
    background: linear-gradient(135deg, #f1f8e9, #558b2f);
}

.gallery-preview-reinigung {
    background: linear-gradient(135deg, #e0f7fa, #006064);
}

.gallery-preview-aussenanlage {
    background: linear-gradient(135deg, #f0f7f3, #2d6a4f);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(26, 58, 42, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-full-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.cta-section {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section h2 {
    color: white;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.75);
    max-width: 500px;
    margin: 0 auto 40px;
}

.cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.whatsapp-fixed {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--green-dark);
    color: var(--green-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    z-index: 999;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-fixed:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    color: var(--green-light);
}

.whatsapp-fixed svg {
    width: 30px;
    height: 30px;
    display: block;
}

/* =========================
   RESPONSIVE MEDIA QUERIES
========================= */
@media(max-width:1024px) {
    .full-gallery {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:768px) {
    section {
        padding: 64px 0;
    }

    .full-gallery {
        grid-template-columns: 1fr;
    }

    .whatsapp-fixed {
        display: none;
    }
}

@media(max-width:700px) {
    .full-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-full-item.span2 {
        grid-column: span 1;
    }
}