/* ========================================================
   NATURE & LANDSCAPE – Modern Nature-Inspired Design
   Organized: Variables → Reset → Utilities → Layout →
   Components → Sections → Animations → Responsive
   ======================================================== */


/* ==================== 1. CSS VARIABLES ==================== */
:root {
    /* Nature palette */
    --color-primary: #2d5016;
    --color-primary-light: #3d6b1e;
    --color-primary-dark: #1e3a0e;
    --color-accent: #c8a951;
    --color-accent-light: #dcc06e;
    --color-earth: #5c3d2e;
    --color-earth-light: #8b6952;
    --color-bark: #3e2723;

    /* Surfaces */
    --color-bg: #faf9f6;
    --color-bg-warm: #f5f0e8;
    --color-section-alt: #f0ebe2;
    --color-white: #ffffff;
    --color-dark: #1a1a1a;

    /* Text */
    --color-text: #2c2c2c;
    --color-text-light: #6b6b6b;
    --color-text-on-dark: #f0ebe2;

    /* Semantic feedback */
    --color-error: #c83232;
    --color-error-bg: rgba(200, 50, 50, 0.08);
    --color-success-bg: rgba(45, 80, 22, 0.08);

    /* Repeated alpha tints – DRY for rgba used across components */
    --tint-primary-06: rgba(45, 80, 22, 0.06);
    --tint-primary-08: rgba(45, 80, 22, 0.08);
    --tint-primary-10: rgba(45, 80, 22, 0.10);
    --tint-primary-12: rgba(45, 80, 22, 0.12);
    --tint-primary-15: rgba(45, 80, 22, 0.15);
    --tint-white-10: rgba(255, 255, 255, 0.1);
    --tint-white-15: rgba(255, 255, 255, 0.15);
    --tint-white-20: rgba(255, 255, 255, 0.2);
    --tint-white-40: rgba(255, 255, 255, 0.4);
    --tint-white-60: rgba(255, 255, 255, 0.6);

    /* Fonts */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-accent: 'Caveat', cursive;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1280px;
    --container-padding: 24px;
    --gap-sm: 12px;
    --gap-md: 32px;
    --gap-lg: 64px;
    --gap-xl: 80px;

    /* Transitions */
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
}


/* ==================== 2. RESET & BASE ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-smooth);
}

a:hover { color: var(--color-accent); }

::selection {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Accessibility: keyboard focus ring */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}


/* ==================== 3. LAYOUT UTILITIES ==================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Reusable grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-xl);
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-md);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ==================== 4. SHARED COMPONENT: CARD ==================== */
/* Base card pattern – extended by service-card, team-card, blog-card */
.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--tint-primary-06);
    transition: all var(--transition-smooth);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Shared heading inside any card */
.card h3 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    margin-bottom: 12px;
}

/* Image zoom effect – apply .card-img-zoom to any card img */
.card-img-zoom { transition: transform 0.6s ease; }
.card:hover .card-img-zoom { transform: scale(1.08); }


/* ==================== 5. SHARED COMPONENT: BUTTON ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(45, 80, 22, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--tint-white-40);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1rem;
}

.btn-loader svg { animation: spin 1s linear infinite; }


/* ==================== 6. SHARED COMPONENT: SECTION ==================== */
.section {
    position: relative;
    padding: var(--section-padding) 0;
}

.section-alt { background: var(--color-section-alt); }
.section-has-divider { padding-bottom: calc(var(--section-padding) + 60px); }

.section-header {
    text-align: center;
    margin-bottom: var(--gap-lg);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-bottom: var(--gap-sm);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.2;
}

.section-desc {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.section-divider.flip { transform: scaleX(-1); }
.section-divider svg  { width: 100%; height: 80px; }


/* ==================== 7. SHARED COMPONENT: GLASS PILL ==================== */
/* Reused by nav-phone, lang-toggle – assigned via HTML class */
.glass-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    background: var(--tint-white-10);
    backdrop-filter: blur(10px);
    border: 1px solid var(--tint-white-20);
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.navbar.scrolled .glass-pill {
    background: var(--tint-primary-06);
    border-color: var(--tint-primary-15);
    color: var(--color-primary);
}


/* ==================== 8. SHARED COMPONENT: DOT LIST ==================== */
/* Reusable bullet list – used in service features */
.dot-list {
    list-style: none;
    margin-bottom: 28px;
}

.dot-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--color-text);
}

.dot-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
}


/* ==================== 9. SHARED COMPONENT: LINK UNDERLINE ==================== */
.link-underline {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    position: relative;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-smooth);
}

.link-underline:hover::after { width: 100%; }


/* ==================== 10. SHARED COMPONENT: ICON CIRCLE ==================== */
/* Reusable circle icon container */
.icon-circle {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--tint-primary-06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}


/* ==================== 11. FALLING LEAVES CANVAS ==================== */
#leaves-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
}


/* ==================== 12. NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    text-decoration: none;
    color: var(--color-white);
    transition: color var(--transition-smooth);
}

.navbar.scrolled .nav-logo { color: var(--color-primary-dark); }

.nav-logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: transform var(--transition-bounce);
}

.nav-logo:hover .nav-logo-img { transform: rotate(15deg) scale(1.1); }

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-logo-text .amp {
    font-family: var(--font-accent);
    font-size: 1.6rem;
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    transition: all var(--transition-smooth);
}

.navbar.scrolled .nav-links a { color: var(--color-text); }

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
    background: var(--tint-primary-08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Phone extends .glass-pill */
.nav-phone {
    gap: 8px;
    padding: 8px 18px;
    font-size: 0.9rem;
}

.nav-phone:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Language toggle extends .glass-pill */
.lang-toggle:hover {
    background: var(--color-accent);
    color: var(--color-dark);
    border-color: var(--color-accent);
}

.lang-flag { font-size: 1.1rem; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar.scrolled .hamburger span { background: var(--color-dark); }

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ==================== 13. HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-parallax {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    inset: -20%;
    background: url('https://images.unsplash.com/photo-1448375240586-882707db888b?w=1920&q=85') center/cover no-repeat;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 30, 8, 0.65) 0%,
        rgba(20, 40, 12, 0.50) 40%,
        rgba(30, 50, 15, 0.70) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 0 var(--container-padding);
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: 1.3rem;
    color: var(--color-accent-light);
    margin-bottom: 16px;
    padding: 6px 24px;
    border: 1px solid rgba(200, 169, 81, 0.4);
    border-radius: var(--radius-xl);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.3s forwards;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s 0.5s forwards;
}

.hero-line-accent {
    color: var(--color-accent-light);
    font-style: italic;
    animation-delay: 0.7s;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s 0.9s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s 1.1s forwards;
}

.hero-regions {
    display: flex;
    gap: var(--gap-sm);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s 1.3s forwards;
}

.hero-regions span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    letter-spacing: 0.5px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    width: 28px;
    height: 44px;
    border: 2px solid var(--tint-white-40);
    border-radius: 14px;
    position: relative;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--color-accent-light);
    border-radius: 4px;
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    animation: scrollPulse 2s infinite;
}


/* ==================== 14. ABOUT SECTION ==================== */
.about-text p {
    font-size: 1.08rem;
    color: var(--color-text);
    margin-bottom: 24px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--tint-primary-12);
}

.stat { text-align: center; }

.stat-highlight {
    position: relative;
    background: var(--tint-primary-06, rgba(45, 90, 39, 0.06));
    border-radius: var(--radius-md, 12px);
    padding: 20px 24px 16px;
    box-shadow: 0 2px 12px rgba(45, 90, 39, 0.10);
    transform: scale(1.08);
}

.stat-highlight .stat-number {
    font-size: 3.2rem;
}

.stat-highlight .stat-plus {
    font-size: 2.4rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-accent);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-frame img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.image-frame:hover img { transform: scale(1.05); }

.image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 3px solid var(--color-accent);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.5;
}


/* ==================== 15. SERVICES SECTION ==================== */
/* .service-card extends .card */
.service-card {
    padding: 48px 36px;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.service-card:hover { transform: translateY(-8px); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 80px;
    height: 80px;
    color: var(--color-primary);
    margin-bottom: 28px;
    transition: transform var(--transition-bounce);
}

.service-card:hover .service-icon { transform: scale(1.1) rotate(-5deg); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 16px; }

.service-card > p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-link {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-smooth);
}

.service-link:hover { color: var(--color-accent); gap: 10px; }


/* ==================== 16. BAUMPICKERL SECTION ==================== */
.baumpickerl { overflow: hidden; }

.baumpickerl-stamp {
    display: flex;
    justify-content: center;
    align-items: center;
}

.baumpickerl-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-primary-dark);
    margin-bottom: 24px;
}

.baumpickerl-content p {
    font-size: 1.05rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: var(--gap-md);
}

.pickerl-benefits {
    list-style: none;
    margin-bottom: 36px;
}

.pickerl-benefits li {
    font-size: 1rem;
    color: var(--color-primary-dark);
    margin-bottom: var(--gap-sm);
    font-weight: 500;
}

/* Glass card container for Baumpickerl */
.glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    box-shadow:
        0 8px 32px rgba(45, 80, 22, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
    max-width: 400px;
}

/* Decorative dots top-right */
.glass-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(200, 169, 81, 0.15) 1px, transparent 1px);
    background-size: 12px 12px;
    border-radius: 50%;
}

/* Decorative dots bottom-left */
.glass-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(45, 80, 22, 0.1) 1px, transparent 1px);
    background-size: 10px 10px;
    border-radius: 50%;
}

.glass-card .stamp-wrapper {
    margin: 0 auto 24px;
    filter: drop-shadow(0 6px 24px rgba(45, 80, 22, 0.2));
}

.glass-card .stamp-wrapper .stamp-svg,
.glass-card .stamp-wrapper .stamp-img {
    transition: transform var(--transition-bounce);
}

.glass-card:hover .stamp-wrapper .stamp-svg,
.glass-card:hover .stamp-wrapper .stamp-img {
    transform: rotate(-5deg) scale(1.06);
}

.glass-card-label {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.glass-card-sublabel {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    font-weight: 600;
}

.stamp-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    animation: stampFloat 4s ease-in-out infinite;
}

.stamp-svg,
.stamp-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 4px 20px rgba(45, 80, 22, 0.2));
    transform: rotate(-8deg);
    transition: transform var(--transition-bounce);
}

.stamp-wrapper:hover .stamp-svg,
.stamp-wrapper:hover .stamp-img { transform: rotate(0deg) scale(1.05); }

.stamp-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(58, 140, 40, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}


/* ==================== 17. TEAM SECTION ==================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--gap-md);
}

/* .team-card extends .card */
.team-card {
    padding: 40px 28px;
    text-align: center;
}

.team-photo {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.6s ease;
    /* Comic/poster effect: bold contrast + vivid colors */
    filter: contrast(1.5) saturate(0) brightness(1.2) contrast(1.3);
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
    filter: contrast(1) saturate(1) brightness(1);
}

.team-photo-border {
    position: absolute;
    inset: -4px;
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.team-card:hover .team-photo-border { opacity: 1; }
.team-card h3 { font-size: 1.15rem; margin-bottom: 6px; }

.team-role {
    display: block;
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-quals {
    list-style: none;
    text-align: left;
    margin-bottom: 16px;
}

.team-quals li {
    font-size: 0.8rem;
    color: var(--color-text-light);
    padding: 4px 0 4px 16px;
    position: relative;
}

.team-quals li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.team-expertise {
    font-size: 0.82rem;
    color: var(--color-primary);
    font-weight: 600;
    font-style: italic;
    padding-top: 12px;
    border-top: 1px solid var(--tint-primary-10);
}


/* ==================== 18. BLOG SECTION ==================== */
/* .blog-card extends .card */
.blog-card { overflow: hidden; }

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    margin: 16px 16px 0 16px;
    border-radius: var(--radius-md);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-date {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    text-align: center;
    line-height: 1.1;
}

.blog-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.blog-date .month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
}

.blog-date .year {
    display: block;
    font-size: 0.65rem;
    opacity: 0.65;
}

.blog-body { padding: 28px; }

.blog-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: var(--gap-sm);
}

.blog-card h3 { font-size: 1.2rem; line-height: 1.3; }

.blog-body > p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}


/* ==================== 19. CONTACT SECTION ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--gap-lg);
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.contact-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contact-item a,
.contact-item span {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.5;
}

.contact-socials {
    display: flex;
    gap: var(--gap-sm);
    margin-top: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--tint-primary-06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: all var(--transition-smooth);
}

.social-link:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}


/* ---- Contact form disabled overlay ---- */
.contact-form {
    position: relative;
}

.form-disabled-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-lg);
    text-align: center;
    padding: 40px;
}

.form-disabled-content {
    max-width: 360px;
}

.form-disabled-content svg {
    color: var(--color-primary);
    margin-bottom: 16px;
}

.form-disabled-content p {
    font-size: 1rem;
    color: var(--color-text);
    margin: 0 0 6px;
    line-height: 1.5;
}

.form-disabled-phone {
    display: inline-block;
    margin-top: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.form-disabled-phone:hover {
    color: var(--color-accent);
}

/* ---- Honeypot (bot trap – invisible to humans) ---- */
.form-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ==================== 20. CONTACT FORM ==================== */
.contact-form {
    background: var(--color-white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--tint-primary-06);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group { margin-bottom: 20px; }
.form-row .form-group { margin-bottom: 0; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--tint-primary-10);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-bg);
    transition: all var(--transition-smooth);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--tint-primary-08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-privacy { margin-bottom: 24px; }

.checkbox-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--color-text-light);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--color-primary);
}

.form-status {
    margin-top: 16px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    display: block;
    background: var(--color-success-bg);
    color: var(--color-primary);
    border: 1px solid rgba(45, 80, 22, 0.2);
}

.form-status.error {
    display: block;
    background: var(--color-error-bg);
    color: var(--color-error);
    border: 1px solid rgba(200, 50, 50, 0.2);
}

.btn-cooldown {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==================== 20b. PRIVACY MODAL ==================== */
.privacy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.privacy-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.privacy-modal {
    background: var(--color-white);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.privacy-modal-overlay.active .privacy-modal {
    transform: translateY(0) scale(1);
}

.privacy-modal-close {
    position: sticky;
    top: 0;
    float: right;
    background: var(--color-section-alt);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text);
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 1;
}

.privacy-modal-close:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.privacy-modal h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    padding-right: 50px;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--color-text);
}

.privacy-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--color-accent);
}

.privacy-content h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
}

.privacy-content p {
    margin-bottom: 0.8rem;
}

.privacy-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.3rem;
}

.privacy-content a {
    color: var(--color-accent);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.privacy-content a:hover {
    color: var(--color-primary-dark);
}

.privacy-link {
    color: var(--color-accent);
    text-decoration: underline;
    cursor: pointer;
}

.privacy-link:hover {
    color: var(--color-primary-dark);
}

.form-privacy .privacy-link {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .privacy-modal {
        padding: 24px;
        max-height: 90vh;
        border-radius: 12px;
    }

    .privacy-modal h2 {
        font-size: 1.3rem;
        padding-right: 40px;
    }
}


/* ==================== 21. FOOTER ==================== */
.footer {
    background: var(--color-bark);
    color: var(--color-text-on-dark);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--tint-white-10);
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 16px;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--color-white);
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--tint-white-60);
    line-height: 1.6;
}

.footer h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--color-accent-light);
    margin-bottom: 20px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: var(--tint-white-60);
    font-size: 0.9rem;
    transition: color var(--transition-smooth);
}

.footer-links a:hover { color: var(--color-white); }

.legal-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}

.legal-info a { color: var(--color-accent-light); }

.footer-contact p {
    font-size: 0.85rem;
    color: var(--tint-white-60);
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-contact a { color: rgba(255, 255, 255, 0.7); }
.footer-contact a:hover { color: var(--color-accent-light); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: var(--gap-sm);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--tint-white-40);
}


/* ==================== 22. BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-md);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}


/* ==================== 23. SCROLL REVEAL ==================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.45s; }
.reveal:nth-child(5) { transition-delay: 0.6s; }


/* ==================== 24. KEYFRAMES ==================== */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; top: 8px; }
    50%      { opacity: 0.3; top: 24px; }
}

@keyframes stampFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ==================== 25. ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }

    .reveal,
    .hero-badge,
    .hero-line,
    .hero-sub,
    .hero-actions,
    .hero-regions {
        opacity: 1;
        transform: none;
    }

    .stamp-wrapper { animation: none; }
}


/* ==================== 26. RESPONSIVE – 1024px ==================== */
@media (max-width: 1024px) {
    :root { --section-padding: 80px; }

    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(250, 249, 246, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        z-index: 999;
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        color: var(--color-text);
        font-size: 1.3rem;
        padding: 12px 24px;
    }

    .hamburger { display: flex; }
    .nav-phone span { display: none; }

    .grid-2 { grid-template-columns: 1fr; gap: 48px; }
    .grid-3 { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }

    .about-image { order: -1; }
    .image-frame img { height: 350px; }
    .baumpickerl .grid-2 { text-align: center; }

    .pickerl-benefits {
        text-align: left;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .team-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ==================== 27. RESPONSIVE – 768px ==================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --container-padding: 20px;
    }

    .about-stats { flex-direction: column; gap: 24px; }
    .stat-highlight { transform: scale(1); }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 32px 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-regions { display: none; }
    .stamp-wrapper { width: 220px; height: 220px; }
    .glass-card { padding: 32px 24px; max-width: 320px; margin: 0 auto; }
    .glass-card .stamp-wrapper { width: 200px; height: 200px; }
    .glass-card-label { font-size: 1.1rem; }
}

/* ==================== 28. RESPONSIVE – 480px ==================== */
@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-sub { font-size: 0.95rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .team-grid { grid-template-columns: 1fr; }
}


/* ==================== 29. PRINT ==================== */
@media print {
    .navbar, .hero-scroll, .back-to-top, #leaves-canvas,
    .section-divider, .hero-parallax, .fx-panel, .scroll-tree,
    #cursor-canvas, .daynight-overlay {
        display: none;
    }

    .hero { min-height: auto; padding: 40px 0; }
    .hero-content { color: var(--color-dark); }
    .section { padding: 40px 0; }

    .reveal, .hero-badge, .hero-line, .hero-sub,
    .hero-actions, .hero-regions {
        opacity: 1;
        transform: none;
    }
}


/* ==================== 30. FEATURE TOGGLE PANEL ==================== */
.fx-panel {
    position: fixed;
    top: 130px;
    right: 24px;
    z-index: 9998;
}

.fx-panel-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 16px;
    min-width: 120px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    color: #2c5f7c;
    border: none;
    cursor: pointer;
    font-family: var(--font-accent);
    font-size: 0.95rem;
    font-weight: 700;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    opacity: 0.85;
}

.fx-panel-toggle:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.fx-panel-toggle svg {
    animation: spin 8s linear infinite;
}

.fx-panel-body {
    position: absolute;
    top: 52px;
    right: 0;
    background: rgba(250, 249, 246, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: 24px;
    min-width: 260px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--tint-primary-10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.96);
    transition: all 0.3s ease;
    pointer-events: none;
}

.fx-panel-body.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.fx-panel-body h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-primary-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--tint-primary-10);
}

/* Toggle switch */
.fx-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    cursor: pointer;
    user-select: none;
}

.fx-switch input {
    display: none;
}

.fx-slider {
    position: relative;
    width: 40px;
    height: 22px;
    background: #ccc;
    border-radius: 11px;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.fx-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: var(--color-white);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.fx-switch input:checked + .fx-slider {
    background: var(--color-primary);
}

.fx-switch input:checked + .fx-slider::after {
    transform: translateX(18px);
}

.fx-label {
    font-size: 0.88rem;
    color: var(--color-text);
    font-weight: 500;
}


/* ==================== 31. SCROLL TREE GROWTH ==================== */
.scroll-tree {
    position: fixed;
    left: -20px;
    bottom: 0;
    width: 380px;
    height: 100vh;
    max-height: 950px;
    z-index: 50;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.25));
}

.scroll-tree.visible {
    opacity: 1;
}

.scroll-tree svg {
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

/* Interactive hover effects on tree elements (pointer-events stays none to not block page) */
.tree-leaf.grown:hover {
    filter: brightness(1.2) drop-shadow(0 0 3px rgba(100, 180, 60, 0.4));
    transform: scale(1.15);
}

.tree-branch.grown:hover {
    filter: brightness(1.15);
}

/* Shake animation triggered by click */
@keyframes tree-shake {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(2deg); }
    20% { transform: rotate(-2.5deg); }
    30% { transform: rotate(2deg); }
    40% { transform: rotate(-1.5deg); }
    50% { transform: rotate(1deg); }
    60% { transform: rotate(-0.5deg); }
    70% { transform: rotate(0.3deg); }
    80% { transform: rotate(0deg); }
}

.tree-leaf.shaking {
    animation: tree-shake 0.6s ease-out !important;
}

/* Scroll progress label */
.scroll-tree::after {
    content: attr(data-pct);
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.6;
}

.tree-trunk {
    transition: stroke-dashoffset 0.3s ease;
}

/* Roots grow with trunk */
.tree-root {
    transition: opacity 0.6s ease;
}

.tree-root.grown {
    opacity: 1;
}

/* Bark texture appears with trunk */
.tree-bark-detail {
    transition: opacity 0.8s ease 0.3s;
}

.tree-bark-detail.grown {
    opacity: 1;
}

.tree-trunk-upper {
    transition: opacity 0.5s ease, stroke-dashoffset 0.3s ease;
}

.tree-branch {
    transition: opacity 0.6s ease, stroke-dashoffset 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tree-branch.grown {
    opacity: 1;
}

.tree-leaf {
    transition: opacity 0.8s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(0);
    transform-origin: center;
}

.tree-leaf.grown {
    opacity: 0.85;
    transform: scale(1);
}

.tree-seed {
    transition: opacity 0.3s ease;
}

/* Seasonal tree leaf variations */
.season-spring .tree-leaf.grown {
    opacity: 0.9;
    filter: drop-shadow(0 1px 2px rgba(255, 180, 200, 0.3));
}

.season-autumn .tree-leaf.grown {
    opacity: 0.88;
    filter: drop-shadow(0 1px 3px rgba(200, 100, 20, 0.25));
}

.season-winter .tree-leaf.grown {
    opacity: 0.95;
    filter: drop-shadow(0 1px 4px rgba(200, 220, 240, 0.4));
}

/* Wind animation for branches and leaves */
@keyframes tree-wind-sway {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1.2deg); }
    50% { transform: rotate(-0.8deg); }
    75% { transform: rotate(0.6deg); }
}

@keyframes tree-wind-sway-alt {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-1deg); }
    40% { transform: rotate(1.4deg); }
    60% { transform: rotate(-0.6deg); }
    80% { transform: rotate(0.8deg); }
}

@keyframes leaf-flutter {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.05) rotate(3deg); }
    50% { transform: scale(0.95) rotate(-2deg); }
    75% { transform: scale(1.02) rotate(1.5deg); }
}

/* Apply wind to branches when grown */
.tree-branch.grown.tree-branch-level-1 {
    transform-origin: var(--branch-origin-x, 0%) var(--branch-origin-y, 0%);
    animation: tree-wind-sway 6s ease-in-out infinite;
}

.tree-branch.grown.tree-branch-level-2 {
    transform-origin: var(--branch-origin-x, 0%) var(--branch-origin-y, 0%);
    animation: tree-wind-sway-alt 4.5s ease-in-out infinite;
    animation-delay: -1.5s;
}

.tree-branch.grown.tree-branch-level-3 {
    transform-origin: var(--branch-origin-x, 0%) var(--branch-origin-y, 0%);
    animation: tree-wind-sway 3.8s ease-in-out infinite;
    animation-delay: -2.2s;
}

/* Leaf flutter in wind */
.tree-leaf.grown {
    animation: leaf-flutter 4s ease-in-out infinite;
    animation-delay: calc(var(--leaf-delay, 0) * 0.3s);
}

/* Reduce wind motion for prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .tree-branch.grown,
    .tree-leaf.grown,
    .tree-bird {
        animation: none !important;
    }
}

/* Birdhouse appears with tree growth */
.tree-birdhouse {
    transition: opacity 0.8s ease;
}

/* Bird flight animation */
@keyframes bird-fly {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(8px, -6px); }
    50% { transform: translate(16px, -2px); }
    75% { transform: translate(8px, 4px); }
}

@keyframes bird-wing-flap {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(-0.6); }
}

.tree-bird {
    animation: bird-fly 5s ease-in-out infinite, bird-wing-flap 0.8s ease-in-out infinite;
    animation-delay: calc(var(--bird-delay, 0) * 1.2s);
    transition: opacity 0.6s ease;
}

/* Owl on branch (winter) */
.tree-owl {
    transition: opacity 1s ease 0.5s;
}

/* Owl eye blink animation */
@keyframes owl-blink {
    0%, 92%, 100% { ry: 0; }
    95%, 97% { ry: 3.8; }
}

.owl-eyelid {
    animation: owl-blink 4s ease-in-out infinite;
    animation-delay: 1s;
}

@media (prefers-reduced-motion: reduce) {
    .owl-eyelid {
        animation: none !important;
    }
}

/* Night mode: darken the tree */
.scroll-tree.tree-night {
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.25)) brightness(0.7);
}

/* Fireflies glow animation */
@keyframes firefly-glow {
    0%, 100% { opacity: 0; transform: translate(0, 0); }
    15% { opacity: 0.9; }
    50% { opacity: 0.5; transform: translate(6px, -4px); }
    85% { opacity: 0.8; }
}

.tree-firefly {
    animation: firefly-glow 3s ease-in-out infinite;
    animation-delay: calc(var(--firefly-delay, 0) * 0.7s);
    filter: drop-shadow(0 0 4px #ffe066) drop-shadow(0 0 8px rgba(255,224,102,0.5));
}


/* ==================== 32. NATURE CURSOR ==================== */
#cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
}


/* ==================== 33. DAY/NIGHT OVERLAY ==================== */
.daynight-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    transition: background 1s ease;
}

/* Hero must let overlay sit inside */
.hero { position: relative; }


/* ==================== 34. MAGNETIC BUTTONS ==================== */
.btn.magnetic-active {
    transition: transform 0.12s ease-out;
    box-shadow: 0 8px 30px rgba(45, 80, 22, 0.2);
}


/* ==================== 35. SEASONAL THEME VARIANTS ==================== */
/* Spring – fresh greens & cherry blossom pinks */
.season-spring {
    --color-primary: #3d8b37;
    --color-primary-light: #52a34a;
    --color-primary-dark: #2a6d24;
    --color-accent: #e87da0;
    --color-accent-light: #f5a0c0;
    --color-earth: #6b4e3d;
    --color-bark: #4a3228;
    --color-bg: #faf9f4;
    --color-section-alt: #f0ede4;
    --tint-primary-06: rgba(61, 139, 55, 0.06);
    --tint-primary-08: rgba(61, 139, 55, 0.08);
    --tint-primary-10: rgba(61, 139, 55, 0.10);
    --tint-primary-12: rgba(61, 139, 55, 0.12);
    --tint-primary-15: rgba(61, 139, 55, 0.15);
}

/* Summer (default is already green – slightly warmer) */
.season-summer {
    --color-primary: #2d5016;
    --color-primary-light: #3d6b1e;
    --color-primary-dark: #1e3a0e;
    --color-accent: #c8a951;
    --color-accent-light: #dcc06e;
}

/* Autumn – warm oranges, reds & golds */
.season-autumn {
    --color-primary: #8b4513;
    --color-primary-light: #a0522d;
    --color-primary-dark: #6b3410;
    --color-accent: #d4730a;
    --color-accent-light: #e8943a;
    --color-earth: #5c3d2e;
    --color-bark: #3e2218;
    --color-bg: #fdf8f2;
    --color-section-alt: #f5ebe0;
    --tint-primary-06: rgba(139, 69, 19, 0.06);
    --tint-primary-08: rgba(139, 69, 19, 0.08);
    --tint-primary-10: rgba(139, 69, 19, 0.10);
    --tint-primary-12: rgba(139, 69, 19, 0.12);
    --tint-primary-15: rgba(139, 69, 19, 0.15);
}

/* Winter – cool blues, frost & silver */
.season-winter {
    --color-primary: #2c5f7c;
    --color-primary-light: #3d7a9c;
    --color-primary-dark: #1e4a5e;
    --color-accent: #7ab0d0;
    --color-accent-light: #a0ccdf;
    --color-earth: #4a5560;
    --color-bark: #2c3540;
    --color-bg: #f4f7fa;
    --color-section-alt: #e8eef4;
    --tint-primary-06: rgba(44, 95, 124, 0.06);
    --tint-primary-08: rgba(44, 95, 124, 0.08);
    --tint-primary-10: rgba(44, 95, 124, 0.10);
    --tint-primary-12: rgba(44, 95, 124, 0.12);
    --tint-primary-15: rgba(44, 95, 124, 0.15);
}

/* Season indicator badge */
.season-badge {
    position: fixed;
    top: 90px;
    right: 24px;
    padding: 6px 16px;
    min-width: 120px;
    text-align: center;
    border-radius: var(--radius-xl);
    font-family: var(--font-accent);
    font-size: 0.95rem;
    font-weight: 700;
    z-index: 999;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s ease;
    pointer-events: none;
    box-shadow: var(--shadow-sm);
}

.season-badge.visible {
    opacity: 0.85;
    transform: translateY(0);
}

.season-badge.spring {
    background: linear-gradient(135deg, #e8f5e9, #fce4ec);
    color: #2e7d32;
}

.season-badge.summer {
    background: linear-gradient(135deg, #e8f5e9, #fff8e1);
    color: #2d5016;
}

.season-badge.autumn {
    background: linear-gradient(135deg, #fff3e0, #fbe9e7);
    color: #8b4513;
}

.season-badge.winter {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    color: #2c5f7c;
}


/* ==================== RESPONSIVE: FEATURE PANEL ==================== */
@media (max-width: 768px) {
    .fx-panel { top: 130px; right: 16px; }
    .fx-panel-toggle span { display: none; }
    .fx-panel-toggle { padding: 10px 12px; }
    .scroll-tree { 
        right: -30px; 
        width: 100px; 
        opacity: 0.5; 
    }
}

@media (max-width: 480px) {
    .fx-panel-body { min-width: 220px; padding: 18px; }
}


/* ==================== BLOG + FACEBOOK COMBINED LAYOUT ==================== */
.blog-fb-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: var(--gap-lg);
    align-items: stretch;
}

/* Left sidebar: Facebook widget */
.blog-fb-sidebar {
    position: sticky;
    top: 100px;
    min-width: 0;
    z-index: 2;
}

.blog-fb-sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: var(--gap-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-fb-sidebar-title::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #1877F2;
    border-radius: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.facebook-widget-container {
    padding: 16px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
}

.facebook-widget-container .fb-page {
    display: flex;
    justify-content: center;
}

.facebook-widget-container iframe {
    border: none !important;
    max-width: 100% !important;
    border-radius: 12px !important;
}

/* ============ Seasonal Animals (all positions) ============ */

/* Base style for ALL seasonal animals */
.seasonal-animal {
    position: absolute;
    pointer-events: none;
    z-index: 50;
    transition: opacity 0.6s ease, transform 0.6s ease;
    opacity: 0;
    transform: scale(0.5);
}

.seasonal-animal.visible {
    opacity: 1;
    transform: scale(1);
}

/* ---- Position 1: FB Widget (covers Seite-folgen button) ---- */
.fb-seasonal-animal {
    top: 28px;
    right: 4px;
    width: 90px;
    height: 65px;
    z-index: 9999;
}

/* ---- Position 2: About section image ---- */
.seasonal-animal-about {
    top: -8px;
    right: -5px;
    width: 72px;
    height: 60px;
}

/* ---- Position 3: Services section header ---- */
.seasonal-animal-services {
    top: -10px;
    right: 0;
    width: 72px;
    height: 60px;
}

/* ---- Position 4: Baumpickerl section ---- */
.seasonal-animal-baumpickerl {
    top: -8px;
    right: -5px;
    width: 72px;
    height: 72px;
}

/* ---- Position 5: Contact section header ---- */
.seasonal-animal-contact {
    top: -10px;
    right: 0;
    width: 72px;
    height: 60px;
}

/* ---- Position 6: Cat sitting on contact form ---- */
.seasonal-animal-cat {
    top: -35px;
    right: 20px;
    width: 70px;
    height: 70px;
    z-index: 10;
}

/* Cat idle animation: slow tail sway + subtle breathing */
.seasonal-animal-cat svg {
    animation: catIdle 5s ease-in-out infinite;
}

@keyframes catIdle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    30% { transform: translateY(-1px) rotate(0.5deg); }
    60% { transform: translateY(0) rotate(-0.5deg); }
}

/* ============ Seasonal Animations ============ */

/* Generic: Gentle float (butterflies, birds in nest) */
@keyframes butterflyFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-4px) rotate(3deg); }
}

/* Buzzing (bee, dragonfly) */
@keyframes beeBuzz {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(1px) translateY(-1px); }
    50% { transform: translateX(-1px) translateY(1px); }
    75% { transform: translateX(1px) translateY(0); }
}

/* Idle sway (squirrel, fox, hedgehog) */
@keyframes squirrelIdle {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
}

/* Head bob (robin, chickadee, sparrow, snowbird) */
@keyframes robinBob {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-2px); }
    60% { transform: translateY(0); }
}

/* Frog breathing */
@keyframes frogBreathe {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.06); }
}

/* Slow crawl (caterpillar, snail) */
@keyframes crawl {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

/* Nose twitch (bunny, ermine) */
@keyframes noseTwitch {
    0%, 100% { transform: translateY(0) scale(1); }
    15% { transform: translateY(-1px) scale(1.02); }
    30% { transform: translateY(0) scale(1); }
}

/* Flying arc (swallow) */
@keyframes flyArc {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-3deg); }
    75% { transform: translateY(3px) rotate(2deg); }
}

/* ---- Season → animation mapping (all positions) ---- */

/* Spring animals */
.seasonal-animal.spring svg { animation: butterflyFloat 3s ease-in-out infinite; }
.seasonal-animal-about.spring svg { animation: frogBreathe 3.5s ease-in-out infinite; }
.seasonal-animal-services.spring svg { animation: crawl 5s ease-in-out infinite; }
.seasonal-animal-baumpickerl.spring svg { animation: noseTwitch 2.5s ease-in-out infinite; }
.seasonal-animal-contact.spring svg { animation: robinBob 3s ease-in-out infinite; }

/* Summer animals */
.seasonal-animal.summer svg { animation: beeBuzz 0.8s ease-in-out infinite; }
.seasonal-animal-about.summer svg { animation: crawl 6s ease-in-out infinite; }
.seasonal-animal-services.summer svg { animation: beeBuzz 1.2s ease-in-out infinite; }
.seasonal-animal-baumpickerl.summer svg { animation: butterflyFloat 3.5s ease-in-out infinite; }
.seasonal-animal-contact.summer svg { animation: flyArc 4s ease-in-out infinite; }

/* Autumn animals */
.seasonal-animal.autumn svg { animation: squirrelIdle 4s ease-in-out infinite; }
.seasonal-animal-about.autumn svg { animation: noseTwitch 3s ease-in-out infinite; }
.seasonal-animal-services.autumn svg { animation: crawl 7s ease-in-out infinite; }
.seasonal-animal-baumpickerl.autumn svg { animation: squirrelIdle 3.5s ease-in-out infinite; }
.seasonal-animal-contact.autumn svg { animation: squirrelIdle 4s ease-in-out infinite; }

/* Winter animals */
.seasonal-animal.winter svg { animation: robinBob 3s ease-in-out infinite; }
.seasonal-animal-about.winter svg { animation: robinBob 3.5s ease-in-out infinite; }
.seasonal-animal-services.winter svg { animation: robinBob 3s ease-in-out infinite; }
.seasonal-animal-baumpickerl.winter svg { animation: noseTwitch 4s ease-in-out infinite; }
.seasonal-animal-contact.winter svg { animation: robinBob 3.5s ease-in-out infinite; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .seasonal-animal svg { animation: none !important; }
}

/* Hide on very small screens to avoid clutter */
@media (max-width: 480px) {
    .seasonal-animal-about,
    .seasonal-animal-services,
    .seasonal-animal-baumpickerl,
    .seasonal-animal-contact {
        display: none;
    }
}

/* Right: Blog posts grid */
.blog-fb-posts {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-md);
    flex: 1;
}

.blog-grid .blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-grid .blog-card .blog-image {
    flex: 1;
    min-height: 180px;
}

.blog-grid .blog-card .blog-body {
    flex-shrink: 0;
}

/* Responsive: tablet – stack vertically */
@media (max-width: 768px) {
    .blog-fb-layout {
        grid-template-columns: 1fr;
        gap: var(--gap-md);
    }

    .blog-fb-sidebar {
        position: static;
        order: 2;
    }

    .blog-fb-posts {
        order: 1;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .facebook-widget-container {
        max-width: 500px;
        margin: 0 auto;
        padding: 12px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .facebook-widget-container {
        padding: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    }
}
