/* Organic Flowing Design for respivia - No Boxes, Just Flow */

/* TEMPORARY: Hide testimonials section until client has actual testimonials */
.testimonials {
    display: none !important;
}

:root {
    /* Earthy Color Palette - Based on Natural Tones */
    --color-umbra-braun: #76594e;      /* Darkest brown - main text */
    --color-terracotta: #b86a5d;        /* Warm terracotta - accents */
    --color-ocker: #e5bd7a;             /* Ocker/ochre - highlights */
    --color-sand: #d8d2a5;              /* Sand - soft backgrounds */
    --color-ecru: #c9c1a4;              /* Ecru - neutral tone */
    --color-taupe: #f1efe6;             /* Taupe - subtle accents */

    /* Green Accents - Complementary */
    --color-forest-green: #5a7a52;
    --color-nature-green: #6b8e5f;
    --color-light-green: #8da883;
    --color-soft-green: #a8c0a0;

    /* Whites and Subtle Variations */
    --color-pure-white: #ffffff;
    --color-off-white: #faf8f5;
    --color-cream: #f5f3ee;
    --color-warm-white: #f0ede6;
    --color-cool-white: #f8f9fa;
    --color-sage-white: #f6f8f6;

    /* Legacy Color Mappings - for backward compatibility */
    --color-dark-brown: var(--color-umbra-braun);
    --color-medium-brown: var(--color-terracotta);
    --color-light-brown: var(--color-ocker);
    --color-warm-brown: var(--color-taupe);
    --color-accent-brown: var(--color-ecru);

    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Crimson Text', serif;

    /* Organic Spacing System */
    --flow-xs: 0.618rem;    /* Golden ratio based */
    --flow-sm: 1rem;
    --flow-md: 1.618rem;
    --flow-lg: 2.618rem;
    --flow-xl: 4.236rem;
    --flow-2xl: 6.854rem;
    --flow-3xl: 11.09rem;

    /* Layout */
    --container-max-width: 1200px;
    --content-max-width: 800px;

    /* Organic Effects - No harsh shadows */
    --glow-soft: 0 0 20px rgba(45, 24, 16, 0.03);
    --glow-warm: 0 0 40px rgba(76, 175, 80, 0.05);
    --transition-organic: 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-flow: 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-gentle: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-dark-brown);
    background: #e8e2d4;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-dark-brown);
    margin-bottom: var(--flow-md);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.8rem); }

p {
    margin-bottom: var(--flow-md);
    max-width: 65ch;
}

a {
    color: var(--color-dark-brown);
    text-decoration-color: var(--color-accent-brown);
    transition: var(--transition-gentle);
}

a:hover {
    color: var(--color-dark-brown);
    text-decoration-color: var(--color-dark-brown);
}

/* Utility Classes */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--flow-lg);
}

/* Section Spacing with Organic Flow */
.section-spacing {
    padding: var(--flow-xl) 0;
    position: relative;
}

/* Organic Section Backgrounds with Truly Flowing Borders */
.section-spacing:nth-child(even) {
    background: var(--color-off-white);
    padding: var(--flow-3xl) 0;
    position: relative;
    overflow: visible;
    margin: 50px 0;
    border-radius: 50% 50% 50% 50% / 100px 100px 100px 100px;
}

.section-spacing:nth-child(odd) {
    padding: var(--flow-xl) 0;
    position: relative;
}

/* Enhanced Floating Elements Throughout */
.section-spacing {
    overflow: visible;
}

.section-spacing:nth-child(odd)::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 90px;
    background: conic-gradient(from 45deg, rgba(76, 175, 80, 0.04), transparent, rgba(45, 24, 16, 0.02), transparent);
    border-radius: 70% 30% 60% 40%;
    top: 8%;
    right: 3%;
    animation: float-organic-slow 20s infinite ease-in-out;
    animation-delay: -5s;
    pointer-events: none;
    z-index: 0;
}

.section-spacing:nth-child(odd)::after {
    content: '';
    position: absolute;
    width: 90px;
    height: 120px;
    background: radial-gradient(ellipse, rgba(45, 24, 16, 0.04), rgba(76, 175, 80, 0.03), transparent);
    border-radius: 50% 70% 60% 80%;
    bottom: 12%;
    left: 5%;
    animation: float-organic-slow 25s infinite ease-in-out reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(180deg) scale(1.2); opacity: 0.6; }
}

@keyframes float-organic-slow {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.4;
        border-radius: 60% 40% 70% 50%;
    }
    25% {
        transform: translateY(-15px) translateX(10px) rotate(90deg) scale(1.1);
        opacity: 0.7;
        border-radius: 50% 70% 40% 60%;
    }
    50% {
        transform: translateY(-8px) translateX(-5px) rotate(180deg) scale(0.9);
        opacity: 0.8;
        border-radius: 70% 50% 60% 40%;
    }
    75% {
        transform: translateY(12px) translateX(-8px) rotate(270deg) scale(1.2);
        opacity: 0.5;
        border-radius: 40% 80% 50% 60%;
    }
}

.skip-nav {
    position: absolute;
    top: -40px;
    left: var(--flow-md);
    background: var(--color-dark-brown);
    color: var(--color-pure-white);
    padding: var(--flow-sm) var(--flow-md);
    text-decoration: none;
    clip-path: ellipse(80% 60% at 50% 50%);
    z-index: 1000;
    font-weight: 500;
}

.skip-nav:focus {
    top: var(--flow-md);
}

/* Header - Organic */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #d3c9b1;
    backdrop-filter: blur(20px);
    z-index: 1500;
    padding: var(--flow-md) 0;
    transition: var(--transition-organic);
    border-bottom: 1px solid rgba(45, 24, 16, 0.05);
}

.header.scrolled {
    filter: drop-shadow(var(--glow-soft));
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    img {
        width: auto;
        height: 4rem;
    }
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--flow-xs);
}

.nav-link {
    font-weight: 500;
    padding: var(--flow-sm) var(--flow-md);
    transition: var(--transition-organic);
    position: relative;
    text-decoration: none;
    border-radius: 60% 70% 55% 65%;
    overflow: visible;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -6px;
    right: -6px;
    bottom: -4px;
    background: rgb(188 180 160);
    border-radius: 70% 50% 65% 80%;
    opacity: 0;
    transition: var(--transition-organic);
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    transition: var(--transition-organic);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::before {
    opacity: 1;
    transform: scale(1.02) rotate(1deg);
    border-radius: 55% 75% 60% 70%;
}

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

.nav-link:hover {
    color: var(--color-dark-brown);
    transform: translateY(-1px);
    border-radius: 80% 60% 70% 55%;
}

/* Unique variations for each nav item */
.nav-link:nth-child(1):hover {
    border-radius: 75% 55% 65% 80%;
}

.nav-link:nth-child(1):hover::before {
    border-radius: 65% 80% 50% 75%;
    transform: scale(1.03) rotate(-1deg);
}

.nav-link:nth-child(2):hover {
    border-radius: 60% 85% 40% 70%;
}

.nav-link:nth-child(2):hover::before {
    border-radius: 80% 45% 70% 60%;
    transform: scale(1.01) rotate(2deg);
}

.nav-link:nth-child(3):hover {
    border-radius: 85% 50% 75% 60%;
}

.nav-link:nth-child(3):hover::before {
    border-radius: 50% 70% 80% 55%;
    transform: scale(1.04) rotate(-2deg);
}

.nav-link:nth-child(4):hover {
    border-radius: 70% 80% 55% 75%;
}

.nav-link:nth-child(4):hover::before {
    border-radius: 60% 55% 85% 70%;
    transform: scale(1.02) rotate(1.5deg);
}

.nav-link:nth-child(5):hover {
    border-radius: 55% 70% 80% 65%;
}

.nav-link:nth-child(5):hover::before {
    border-radius: 75% 60% 55% 85%;
    transform: scale(1.03) rotate(-1.5deg);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--flow-sm);
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-dark-brown);
    border-radius: 2px;
    transition: var(--transition-organic);
}

/* Hero Section - Organic */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.float-element {
    position: absolute;
    border-radius: 50% 70% 60% 40%;
    background: radial-gradient(circle, rgba(150, 130, 100, 0.12), rgba(180, 160, 130, 0.15));
    opacity: 0.3;
    transform: translateY(0px) rotate(0deg) scale(1);
    will-change: transform, opacity, border-radius;
    animation: float-organic 25s infinite ease-in-out;
}

.float-element:nth-child(1) {
    width: 300px;
    height: 200px;
    top: 15%;
    right: 8%;
    animation-delay: -2s;
}

.float-element:nth-child(2) {
    width: 200px;
    height: 250px;
    bottom: 25%;
    left: 3%;
    animation-delay: -10s;
}

.float-element:nth-child(3) {
    width: 150px;
    height: 180px;
    top: 55%;
    right: 25%;
    animation-delay: -18s;
}

@keyframes float-organic {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.3;
        border-radius: 50% 70% 60% 40%;
    }
    25% {
        transform: translateY(-40px) rotate(90deg) scale(1.1);
        opacity: 0.6;
        border-radius: 60% 40% 80% 50%;
    }
    50% {
        transform: translateY(-20px) rotate(180deg) scale(0.9);
        opacity: 0.8;
        border-radius: 70% 30% 50% 60%;
    }
    75% {
        transform: translateY(30px) rotate(270deg) scale(1.2);
        opacity: 0.4;
        border-radius: 40% 60% 70% 50%;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--flow-3xl) 0;
}

.hero-content .container {
    width: 100%;
}

.hero-text {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: var(--flow-lg);
    background: linear-gradient(135deg, var(--color-dark-brown), var(--color-nature-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(45, 24, 16, 0.1);
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-style: italic;
    color: var(--color-medium-brown);
    margin-bottom: var(--flow-xl);
}

.hero-description {
    margin-bottom: var(--flow-xl);
}

.hero-description p {
    font-size: 1.1rem;
    color: var(--color-dark-brown);
    max-width: 60ch;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--flow-sm);
    background: var(--color-dark-brown);
    color: var(--color-pure-white);
    padding: var(--flow-md) var(--flow-xl);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-organic);
    border-radius: 60% 80% 55% 75%;
    position: relative;
    overflow: visible;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: rgba(76, 175, 80, 0.15);
    border-radius: 70% 60% 65% 55%;
    opacity: 0.6;
    transition: var(--transition-organic);
    z-index: -1;
}

.hero-cta:hover {
    background: var(--color-medium-brown);
    transform: translateY(-3px) scale(1.02);
    border-radius: 80% 60% 70% 65%;
    color: var(--color-pure-white);
}

.hero-cta:hover::before {
    opacity: 0.9;
    transform: scale(1.05) rotate(2deg);
    border-radius: 55% 85% 60% 70%;
}

.cta-arrow {
    transition: var(--transition-organic);
}

.hero-cta:hover .cta-arrow {
    transform: translate(4px, -4px) rotate(15deg);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--flow-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--flow-sm);
    color: var(--color-medium-brown);
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-medium-brown), transparent);
    border-radius: 2px;
    animation: scroll-pulse 3s infinite;
}

.scroll-text {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.3); }
}

/* Section Headers - Organic */
.section-header {
    text-align: center;
    margin-bottom: var(--flow-xl);
    position: relative;
    z-index: 2;
}

.section-title {
    margin-bottom: var(--flow-md);
}

.section-ornament {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-nature-green), var(--color-medium-brown), var(--color-nature-green), transparent);
    margin: 0 auto;
    border-radius: 3px;
    position: relative;
}

.section-ornament::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--color-nature-green);
    border-radius: 50%;
    animation: pulse-gentle 2s infinite;
}

@keyframes pulse-gentle {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
}

/* Parallax Section Base Styles - From Rejected Design */
.parallax-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    --parallax-offset: 0px;
    margin: var(--flow-2xl) 0;
    padding: var(--flow-md) 0;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 0;
    right: 0;
    bottom: -20%;
    background-image: url('images/Redwood.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transform: translateY(calc(var(--parallax-offset) * -0.333));
    will-change: transform;
    z-index: 0;
}

.parallax-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(45, 24, 16, 0.25) 50%,
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    padding: var(--flow-3xl) 0;
}

/* Organic breathing animation for parallax section */
@keyframes breathe-shape {
    0%, 100% {
        border-radius: 45% 55% 52% 48% / 38% 42% 58% 62%;
    }
    25% {
        border-radius: 52% 48% 45% 55% / 45% 35% 65% 55%;
    }
    50% {
        border-radius: 48% 52% 55% 45% / 40% 48% 52% 60%;
    }
    75% {
        border-radius: 55% 45% 48% 52% / 35% 50% 50% 65%;
    }
}

/* Company Section - Parallax Styles */
.unternehmen-section {
    min-height: 40vh;
    /* Organic kidney shape with smooth border-radius */
    border-radius: 45% 55% 52% 48% / 38% 42% 58% 62%;
    overflow: hidden;
    width: 200vw;
    transform: translateX(-50vw);
    animation: breathe-shape 28s ease-in-out infinite;
}

.unternehmen-section .section-title,
.unternehmen-section h3,
.unternehmen-section p {
    color: var(--color-pure-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}


.unternehmen-section .section-ornament::before {
    background: var(--color-ocker);
}

/* Mobile: disable parallax */
@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
        min-height: auto;
    }

    .parallax-content {
        padding: var(--flow-2xl) 0;
    }
}

.content-flow {
    display: flex;
    flex-direction: column;
    gap: var(--flow-xl);
}

.company-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--flow-md);
    column-gap: var(--flow-xl);
    justify-content: center;
}

/* Organic Cards - Fluid Shaped Backgrounds */
.company-card {
    background: transparent;
    padding: var(--flow-xl) var(--flow-lg);
    position: relative;
    overflow: visible;
    flex: 0 0 calc(50% - var(--flow-xl) / 2);
    min-width: 350px;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Main readable background */
.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 60% 70% 55% 65%;
    z-index: -1;
    transition: border-radius 0.8s ease, background 0.4s ease;
}

/* Outer glow/shape effect */
.company-card::after {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    background: linear-gradient(135deg, rgba(229, 189, 122, 0.15), rgba(76, 175, 80, 0.1));
    border-radius: 70% 50% 65% 80%;
    opacity: 0.6;
    z-index: -2;
    transition: border-radius 0.8s ease, opacity 0.4s ease;
}

/* Unique static shapes for each card */
.company-card:nth-child(1)::before {
    border-radius: 65% 55% 75% 60%;
}

.company-card:nth-child(1)::after {
    border-radius: 55% 75% 60% 70%;
}

.company-card:nth-child(2)::before {
    border-radius: 70% 60% 65% 55%;
}

.company-card:nth-child(2)::after {
    border-radius: 60% 70% 55% 75%;
}

.company-card:nth-child(3)::before {
    border-radius: 55% 75% 60% 70%;
}

.company-card:nth-child(3)::after {
    border-radius: 75% 55% 70% 60%;
}

/* Hover effects - shape-morphing with floating */
.company-card:hover::before {
    background: rgba(255, 255, 255, 0.95);
}

.company-card:hover::after {
    opacity: 0.8;
}

.company-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Shape morphing on hover for each card */
.company-card:nth-child(1):hover::before {
    border-radius: 55% 75% 60% 70%;
}

.company-card:nth-child(1):hover::after {
    border-radius: 75% 55% 70% 60%;
}

.company-card:nth-child(2):hover::before {
    border-radius: 60% 70% 55% 75%;
}

.company-card:nth-child(2):hover::after {
    border-radius: 70% 60% 75% 55%;
}

.company-card:nth-child(3):hover::before {
    border-radius: 75% 55% 70% 60%;
}

.company-card:nth-child(3):hover::after {
    border-radius: 55% 75% 60% 70%;
}

.card-number {
    position: absolute;
    top: var(--flow-sm);
    right: var(--flow-sm);
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 200;
    color: var(--color-nature-green);
    opacity: 0.15;
    transform: rotate(15deg);
}

.company-card h3 {
    color: var(--color-dark-brown) !important;
    text-shadow: none !important;
    margin-bottom: var(--flow-md);
    position: relative;
    text-align: center;
    max-width: 100%;
}

.company-card p {
    color: var(--color-dark-brown) !important;
    text-shadow: none !important;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.6;
}

.company-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-nature-green), var(--color-nature-green));
    transition: var(--transition-organic);
    border-radius: 2px;
}

.company-card:hover h3::after {
    width: 60%;
}

.company-values {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--flow-xl);
    align-items: center;
    background: transparent;
    padding: var(--flow-3xl);
    position: relative;
    overflow: visible;
}

.company-values::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -40px;
    background: radial-gradient(ellipse at center, var(--color-sage-white), transparent 70%);
    border-radius: 60% 40% 70% 50%;
    z-index: -1;
}

.values-content h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: var(--flow-lg);
    color: var(--color-dark-brown);
}

.breath-animation {
    width: 120px;
    height: 120px;
    border: 3px solid rgba(76, 175, 80, 0.3);
    border-radius: 60% 70% 55% 65%;
    position: relative;
    animation: breathe-organic 5s infinite ease-in-out;
}

.breath-animation::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    background: rgba(76, 175, 80, 0.15);
    border-radius: 50% 70% 60% 80%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    animation: breathe-inner-organic 5s infinite ease-in-out;
}

@keyframes breathe-organic {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        border-color: rgba(76, 175, 80, 0.3);
        border-radius: 60% 70% 55% 65%;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        border-color: rgba(76, 175, 80, 0.5);
        border-radius: 70% 50% 65% 55%;
    }
}

@keyframes breathe-inner-organic {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.7) rotate(-180deg);
    }
}

/* USP Section - Enhanced Floating */
.usp-section {
    position: relative;
}

.usp-section::before {
    content: '';
    position: absolute;
    width: 110px;
    height: 140px;
    background: linear-gradient(45deg, rgba(76, 175, 80, 0.05), transparent, rgba(45, 24, 16, 0.03));
    border-radius: 60% 40% 50% 80%;
    top: 15%;
    left: 5%;
    animation: float-organic-slow 24s infinite ease-in-out;
    pointer-events: none;
    z-index: 0;
}

.usp-section::after {
    content: '';
    position: absolute;
    width: 95px;
    height: 95px;
    background: radial-gradient(circle at 70% 30%, rgba(76, 175, 80, 0.06), transparent 70%);
    border-radius: 80% 50% 60% 70%;
    bottom: 18%;
    right: 10%;
    animation: float-organic-slow 26s infinite ease-in-out reverse;
    pointer-events: none;
    z-index: 0;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--flow-xl);
}

.usp-card {
    text-align: center;
    padding: var(--flow-xl);
    background: transparent;
    position: relative;
    transition: var(--transition-organic);
    overflow: visible;
}

.usp-card::before {
    content: '';
    position: absolute;
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;
    background: rgba(161, 136, 127, 0.1);
    border-radius: 60% 80% 55% 70%;
    opacity: 0.6;
    transition: var(--transition-organic);
    z-index: -1;
}

.usp-card:nth-child(1)::before {
    border-radius: 75% 45% 65% 80%;
    background: rgba(161, 136, 127, 0.1);
    opacity: 0.6;
}

.usp-card:nth-child(2)::before {
    border-radius: 50% 85% 40% 90%;
    background: rgba(161, 136, 127, 0.1);
    opacity: 0.6;
}

.usp-card:nth-child(3)::before {
    border-radius: 90% 60% 75% 50%;
    background: rgba(161, 136, 127, 0.1);
    opacity: 0.6;
}

.usp-card:hover::before {
    opacity: 0.8;
    transform: scale(1.03) rotate(2deg);
}

.usp-card:nth-child(1):hover::before {
    border-radius: 65% 55% 75% 70%;
    opacity: 0.7;
}

.usp-card:nth-child(2):hover::before {
    border-radius: 60% 75% 50% 80%;
    opacity: 0.8;
}

.usp-card:nth-child(3):hover::before {
    border-radius: 80% 70% 65% 60%;
    opacity: 0.9;
}

.usp-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.usp-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--flow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* About Section - Enhanced Organic Flow */
.about {
    background: var(--color-sage-white);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    width: 130px;
    height: 85px;
    background: radial-gradient(ellipse at top, rgba(45, 24, 16, 0.04), rgba(76, 175, 80, 0.02), transparent);
    border-radius: 40% 70% 60% 30%;
    top: 25%;
    right: 6%;
    animation: float-organic-slow 30s infinite ease-in-out;
    pointer-events: none;
    z-index: 0;
}

.about::after {
    content: '';
    position: absolute;
    width: 75px;
    height: 110px;
    background: conic-gradient(from 270deg, rgba(76, 175, 80, 0.05), transparent, rgba(45, 24, 16, 0.02));
    border-radius: 70% 50% 40% 80%;
    bottom: 20%;
    left: 8%;
    animation: float-organic-slow 18s infinite ease-in-out reverse;
    pointer-events: none;
    z-index: 0;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--flow-xl);
}

.about-intro-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--flow-3xl);
    align-items: start;
}

.about-intro {
    display: flex;
    flex-direction: column;
    gap: var(--flow-lg);
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.experience-title {
    color: var(--color-dark-brown);
    font-size: 1.5rem;
    margin-bottom: var(--flow-lg);
    position: relative;
}

.experience-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 18.3%;
    height: 2px;
    background: var(--color-nature-green);
    border-radius: 2px;
}

.experience-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--flow-md);
    margin-top: var(--flow-lg);
    justify-content: center;
}

.experience-item {
    display: flex;
    align-items: center;
    gap: var(--flow-md);
    padding: var(--flow-md) var(--flow-sm);
    background: transparent;
    position: relative;
    transition: var(--transition-organic);
    overflow: visible;
    flex: 0 0 calc(50% - var(--flow-md) / 2);
    min-width: 300px;
}

.experience-item p {
    margin: 0;
    line-height: 1.4;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -12px;
    right: -12px;
    bottom: -8px;
    background: rgba(161, 136, 127, 0.06);
    border-radius: 60% 70% 55% 65%;
    opacity: 0.4;
    transition: var(--transition-organic);
    z-index: -1;
}

.experience-item:nth-child(odd)::before {
    border-radius: 65% 55% 70% 60%;
    background: rgba(161, 136, 127, 0.05);
}

.experience-item:nth-child(even)::before {
    border-radius: 55% 75% 60% 70%;
    background: rgba(161, 136, 127, 0.07);
}

.experience-item:nth-child(3n)::before {
    border-radius: 70% 60% 65% 55%;
    background: rgba(161, 136, 127, 0.06);
}

.experience-item:hover::before {
    opacity: 0.7;
    transform: scale(1.02) rotate(1deg);
}

.experience-item:nth-child(odd):hover::before {
    border-radius: 70% 50% 65% 75%;
}

.experience-item:nth-child(even):hover::before {
    border-radius: 50% 80% 55% 65%;
}

.experience-item:nth-child(3n):hover::before {
    border-radius: 75% 55% 70% 50%;
}

.experience-item:hover {
    transform: translateY(-2px) scale(1.01);
}

.exp-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.profile-card {
    background: transparent;
    text-align: center;
    position: sticky;
    top: var(--flow-3xl);
    overflow: visible;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -40px;
    background: radial-gradient(ellipse at center, var(--color-cream), transparent 60%);
    border-radius: 50% 60% 70% 40%;
    z-index: -1;
}

.profile-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: var(--flow-lg);
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 60% 70% 55% 65%;
    object-fit: cover;
    border: 4px solid rgba(76, 175, 80, 0.12);
    z-index: 2;
    position: relative;
    transition: var(--transition-organic);
}

.profile-img:hover {
    border-radius: 70% 55% 65% 60%;
    border-color: rgba(76, 175, 80, 0.18);
    transform: scale(1.02) rotate(1deg);
}

.profile-frame {
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    background: rgba(161, 136, 127, 0.06);
    border-radius: 55% 75% 60% 70%;
    opacity: 0.4;
    transition: var(--transition-organic);
    z-index: 1;
}

.profile-img:hover + .profile-frame {
    opacity: 0.7;
    transform: scale(1.05) rotate(-2deg);
    border-radius: 75% 55% 70% 65%;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-name {
    font-size: 1.5rem;
    margin-bottom: var(--flow-sm);
}

.profile-title {
    color: var(--color-medium-brown);
    font-style: italic;
}

/* Services Section - Enhanced Organic Flow */
.angebot-section {
    position: relative;
}

.angebot-section::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 95px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.04), transparent, rgba(45, 24, 16, 0.03));
    border-radius: 50% 60% 80% 40%;
    top: 12%;
    right: 4%;
    animation: float-organic-slow 32s infinite ease-in-out;
    pointer-events: none;
    z-index: 0;
}

.angebot-section::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 125px;
    background: radial-gradient(ellipse at bottom, rgba(76, 175, 80, 0.05), transparent 80%);
    border-radius: 60% 80% 50% 70%;
    bottom: 15%;
    left: 7%;
    animation: float-organic-slow 20s infinite ease-in-out reverse;
    pointer-events: none;
    z-index: 0;
}

.services-flow {
    display: flex;
    flex-direction: column;
    gap: var(--flow-3xl);
}

.service-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--flow-2xl);
    align-items: center;
    padding: var(--flow-2xl);
    background: transparent;
    position: relative;
    transition: var(--transition-organic);
    overflow: visible;
}

.service-item::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -40px;
    background: radial-gradient(ellipse at left, rgba(76, 175, 80, 0.03), transparent 60%);
    border-radius: 50% 80% 60% 70%;
    opacity: 0;
    transition: var(--transition-organic);
    z-index: -1;
}

.service-item:nth-child(even)::before {
    background: radial-gradient(ellipse at right, rgba(45, 24, 16, 0.03), transparent 60%);
    border-radius: 80% 50% 70% 60%;
}

.service-item:hover::before {
    opacity: 1;
    transform: scale(1.05) rotate(5deg);
}

.service-item:hover {
    transform: scale(1.01);
}

.service-item:nth-child(even) {
    grid-template-columns: 1fr 200px;
}

.service-item:nth-child(even) .service-visual {
    order: 2;
}

.service-item:nth-child(even) .service-content {
    order: 1;
}

.service-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-content h3 {
    font-size: 2rem;
    margin-bottom: var(--flow-md);
    color: var(--color-dark-brown);
}

.service-intro {
    font-size: 0.9rem;
    margin-bottom: var(--flow-lg);
    color: var(--color-dark-brown);
    line-height: 1.7;
}

.service-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--flow-lg);
    margin-top: var(--flow-lg);
}

.detail-section {
    background: transparent;
    padding: var(--flow-md);
    position: relative;
    overflow: visible;
}

.detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-nature-green), transparent);
    border-radius: 2px;
}

.detail-section h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark-brown);
    margin-bottom: var(--flow-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-left: var(--flow-md);
}

.detail-section ul {
    list-style: none;
    padding-left: var(--flow-md);
}

.detail-section li {
    padding: var(--flow-xs) 0 var(--flow-xs) var(--flow-md);
    position: relative;
    color: var(--color-dark-brown);
    font-size: 0.95rem;
}

.detail-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--color-nature-green);
    border-radius: 50%;
    transform: translateY(-50%);
}

/* Testimonials Section - Enhanced Organic */
.testimonials {
    background: var(--color-warm-white);
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    width: 105px;
    height: 135px;
    background: conic-gradient(from 60deg, rgba(45, 24, 16, 0.04), transparent, rgba(76, 175, 80, 0.05));
    border-radius: 70% 40% 60% 50%;
    top: 18%;
    left: 6%;
    animation: float-organic-slow 25s infinite ease-in-out;
    pointer-events: none;
    z-index: 0;
}

.testimonials::after {
    content: '';
    position: absolute;
    width: 115px;
    height: 80px;
    background: radial-gradient(ellipse at right, rgba(76, 175, 80, 0.04), transparent 75%);
    border-radius: 50% 70% 40% 60%;
    bottom: 22%;
    right: 9%;
    animation: float-organic-slow 27s infinite ease-in-out reverse;
    pointer-events: none;
    z-index: 0;
}

.testimonials-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--flow-xl);
}

.testimonial-item {
    background: transparent;
    padding: var(--flow-2xl);
    position: relative;
    transition: var(--transition-organic);
    overflow: visible;
}

.testimonial-item::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: radial-gradient(ellipse at top left, rgba(76, 175, 80, 0.04), transparent 70%);
    border-radius: 60% 70% 50% 80%;
    opacity: 0;
    transition: var(--transition-organic);
    z-index: -1;
}

.testimonial-item:hover::before {
    opacity: 1;
    transform: scale(1.1) rotate(-5deg);
}

.testimonial-item:hover {
    transform: translateY(-8px);
}

.testimonial-quote {
    position: absolute;
    top: var(--flow-sm);
    left: var(--flow-sm);
    opacity: 0.08;
    z-index: -1;
}

.quote-mark {
    fill: var(--color-nature-green);
    width: 60px;
    height: 45px;
}

.testimonial-content {
    margin: var(--flow-lg) 0 var(--flow-xl) 0;
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--flow-md);
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.author-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(76, 175, 80, 0.08);
    border-radius: 60% 70% 55% 65%;
    padding: 2px;
}

.author-avatar::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--color-cream);
    border-radius: 50%;
    z-index: -1;
}

.avatar-icon {
    width: 30px;
    height: 30px;
    z-index: 1;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--color-medium-brown);
    margin: 0;
}

/* Partner Section - Enhanced Organic */
.partner-section {
    position: relative;
}

.partner-section::before {
    content: '';
    position: absolute;
    width: 125px;
    height: 105px;
    background: linear-gradient(225deg, rgba(76, 175, 80, 0.05), transparent, rgba(45, 24, 16, 0.03));
    border-radius: 80% 50% 70% 60%;
    top: 20%;
    right: 7%;
    animation: float-organic-slow 29s infinite ease-in-out;
    pointer-events: none;
    z-index: 0;
}

.partner-section::after {
    content: '';
    position: absolute;
    width: 90px;
    height: 115px;
    background: radial-gradient(ellipse at left, rgba(76, 175, 80, 0.04), transparent 85%);
    border-radius: 60% 70% 50% 80%;
    bottom: 25%;
    left: 10%;
    animation: float-organic-slow 23s infinite ease-in-out reverse;
    pointer-events: none;
    z-index: 0;
}

.partner-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--flow-xl);
}

.partner-card {
    background: transparent;
    position: relative;
    transition: var(--transition-organic);
    overflow: visible;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -40px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.03), transparent, rgba(45, 24, 16, 0.02));
    border-radius: 50% 60% 70% 40%;
    opacity: 0;
    transition: var(--transition-organic);
    z-index: -1;
}

.partner-card:hover::before {
    opacity: 1;
    transform: scale(1.05) rotate(3deg);
}

.partner-card:hover {
    transform: translateY(-5px);
}

.partner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--flow-xl);
    background: transparent;
    position: relative;
}

.partner-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-nature-green), transparent);
}

.partner-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    width: auto;
    height: 5.333rem;
    object-fit: contain;
}

.partner-content {
    padding: var(--flow-xl);
}

.partner-motto {
    font-family: var(--font-accent);
    font-size: 1.1rem;
    color: var(--color-medium-brown);
    margin-bottom: var(--flow-lg);
    position: relative;
    padding-left: var(--flow-md);
}

.partner-motto::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--color-nature-green), transparent);
    border-radius: 2px;
}

.partner-contact {
    background: transparent;
    padding: var(--flow-lg) var(--flow-md);
    margin-top: var(--flow-lg);
    position: relative;
    transition: var(--transition-organic);
    overflow: visible;
}

.partner-contact::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -12px;
    right: -12px;
    bottom: -8px;
    background: rgba(161, 136, 127, 0.06);
    border-radius: 60% 80% 50% 70%;
    opacity: 0.5;
    transition: var(--transition-organic);
    z-index: -1;
}

.partner-contact:hover::before {
    opacity: 0.8;
    transform: scale(1.02) rotate(1deg);
    border-radius: 70% 60% 65% 55%;
}

/* Contact Section - Enhanced Organic */
.kontakt {
    background: var(--color-pure-white);
    position: relative;
}

.kontakt::before {
    content: '';
    position: absolute;
    width: 135px;
    height: 90px;
    background: conic-gradient(from 120deg, rgba(76, 175, 80, 0.04), transparent, rgba(45, 24, 16, 0.03));
    border-radius: 50% 80% 60% 40%;
    top: 16%;
    left: 4%;
    animation: float-organic-slow 31s infinite ease-in-out;
    pointer-events: none;
    z-index: 0;
}

.kontakt::after {
    content: '';
    position: absolute;
    width: 85px;
    height: 120px;
    background: radial-gradient(ellipse at top right, rgba(76, 175, 80, 0.05), transparent 80%);
    border-radius: 70% 60% 50% 80%;
    bottom: 20%;
    right: 8%;
    animation: float-organic-slow 21s infinite ease-in-out reverse;
    pointer-events: none;
    z-index: 0;
}

.contact-flow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--flow-md);
}

.contact-info {
    background: transparent;
    padding: var(--flow-md) var(--flow-2xl);
    position: relative;
    overflow: visible;
}

.unternehmen.section-spacing {
    margin-top: 0!important;
    border-top-left-radius: 0!important;
    border-top-right-radius: 0!important;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -40px;
    background: radial-gradient(ellipse at center, var(--color-cream), transparent 60%);
    border-radius: 70% 50% 60% 80%;
    z-index: -1;
}

.contact-header {
    margin-bottom: var(--flow-xl);
    text-align: center;
}

.contact-header h3 {
    font-size: 2rem;
    margin-bottom: var(--flow-sm);
}

.contact-subtitle {
    color: var(--color-medium-brown);
    font-style: italic;
    margin: 0;
}

.contact-grid {
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--flow-md);
    padding: var(--flow-md);
    transition: var(--transition-organic);
    position: relative;
    overflow: visible;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -20px;
    right: -20px;
    bottom: -10px;
    background: radial-gradient(ellipse at left, rgba(76, 175, 80, 0.05), transparent);
    border-radius: 50% 80% 50% 20%;
    opacity: 0;
    transition: var(--transition-organic);
    z-index: -1;
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-item:hover {
    transform: translateX(8px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(76, 175, 80, 0.08);
    color: var(--color-medium-brown);
    border-radius: 60% 70% 50% 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
    transition: var(--transition-organic);
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: rgba(161, 136, 127, 0.04);
    border-radius: 70% 50% 80% 60%;
    opacity: 0.5;
    transition: var(--transition-organic);
    z-index: -1;
}

.contact-icon:hover {
    background: rgba(76, 175, 80, 0.12);
    border-radius: 50% 80% 60% 70%;
    transform: scale(1.05) rotate(2deg);
}

.contact-icon:hover::before {
    opacity: 0.8;
    transform: scale(1.1) rotate(-3deg);
    border-radius: 80% 60% 70% 50%;
}

.contact-icon .icon {
    width: 24px;
    height: 24px;
    z-index: 1;
}

.contact-details strong {
    display: block;
    margin-bottom: var(--flow-xs);
    color: var(--color-dark-brown);
    font-weight: 600;
}

.contact-details p {
    margin: 0;
    color: var(--color-dark-brown);
}

.contact-map {
    overflow: hidden;
    position: relative;
    iframe {
        max-width: 100%;
    }
}



/* Footer - Organic */
.footer {
    background: #4a6741;
    color: var(--color-pure-white);
    padding: 0 0 var(--flow-md);
    position: relative;
    overflow: visible;
    margin-top: 0;
}

.footer-tree {
    position: relative;
    height: 80px;
    z-index: 0;
    transition: var(--transition-organic);
    margin-top: -14rem;
}

.footer-tree::before {
    content: '';
    position: absolute;
    top: 60%;
    left: calc(-50vw + 50%);
    right: calc(-50vw + 50%);
    bottom: -20px;
    background: #4a6741;
    border-radius: 50% 50% 50% 50% / 60px 60px 40px 40px;
    z-index: -1;
}

.footer-tree img {
    width: auto;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
    margin-left: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--flow-md);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
}

.footer-tagline {
    font-style: italic;
    color: var(--color-soft-green);
    margin: var(--flow-sm) 0 0 0;
}

.footer-links {
    display: flex;
    gap: var(--flow-lg);
}

.footer-link {
    color: var(--color-soft-green);
    text-decoration: none;
    transition: var(--transition-gentle);
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-pure-white);
    transition: var(--transition-gentle);
}

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

.footer-link:hover {
    color: var(--color-pure-white);
}

.footer-bottom {
    padding-top: var(--flow-lg);
    border-top: 1px solid rgba(129, 199, 132, 0.3);
    font-size: 0.9rem;
    color: var(--color-soft-green);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--flow-md);
    }

    .section-spacing {
        padding: var(--flow-2xl) 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 7rem;
        left: -100%;
        width: 100%;
        background: var(--color-pure-white);
        flex-direction: column;
        padding: var(--flow-lg);
        padding-bottom: 5rem;
        transition: var(--transition-organic);
        z-index: 999;
        clip-path: ellipse(100% 90% at 50% 0%);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        min-height: 90vh;
        text-align: center;
    }

    .hero-text {
        max-width: none;
    }

    .company-grid,
    .usp-grid,
    .testimonials-flow,
    .partner-flow {
        grid-template-columns: 1fr;
    }

    /* Fix company-grid for mobile - override flex to grid */
    .company-grid {
        display: grid !important;
        gap: var(--flow-md);
    }

    .company-card {
        min-width: 90vw;
        width: 90vw;
        margin-inline: auto;
        padding: var(--flow-xl) var(--flow-xl);
    }

    .company-values {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-intro-section {
        grid-template-columns: 1fr;
        gap: var(--flow-xl);
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .service-item,
    .service-item:nth-child(even) {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-item:nth-child(even) .service-visual {
        order: 1;
    }

    .service-item:nth-child(even) .service-content {
        order: 2;
    }

    .contact-flow {
        grid-template-columns: 1fr;
        gap: var(--flow-md);
    }

    .footer-content {
        flex-direction: column;
        gap: var(--flow-lg);
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --flow-xs: 0.5rem;
        --flow-sm: 0.8rem;
        --flow-md: 1.2rem;
        --flow-lg: 2rem;
        --flow-xl: 3rem;
        --flow-2xl: 1rem;
        --flow-3xl: 6rem;
    }

    .container {
        padding: 0 var(--flow-sm);
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .service-details {
        grid-template-columns: 1fr;
    }
}

/* Legal Pages Styling */
.legal-page {
    min-height: 100vh;
    padding-top: 100px;
}

.legal-content {
    background: var(--color-pure-white);
}

.text-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--flow-xs);
    padding-bottom: var(--flow-3xl);
    line-height: 1.8;
}

.text-content h2 {
    font-size: 1.8rem;
    color: var(--color-dark-brown);
    margin-top: var(--flow-xl);
    margin-bottom: var(--flow-lg);
    position: relative;
    padding-bottom: var(--flow-sm);
}

.text-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 33%;
    height: 2px;
    background: var(--color-nature-green);
    border-radius: 2px;
}

.text-content h3 {
    font-size: 1.3rem;
    color: var(--color-medium-brown);
    margin-top: var(--flow-xl);
    margin-bottom: var(--flow-md);
}

.text-content p {
    margin-bottom: var(--flow-md);
    color: var(--color-dark-brown);
    max-width: none;
}

.text-content a {
    color: var(--color-medium-brown);
    font-weight: 500;
}

.text-content a:hover {
    color: var(--color-dark-brown);
}

.text-content ul,
.text-content ol {
    margin: var(--flow-md) 0 var(--flow-lg) var(--flow-xl);
    color: var(--color-dark-brown);
}

.text-content li {
    margin-bottom: var(--flow-sm);
    line-height: 1.7;
}

/* Service Card Styles - Interactive Card Flip & Expand */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
}

.services-grid:has(.shrinking) {
    pointer-events: none;
}

.services-grid.has-expanded {
    position: relative;
}

.services-grid.has-expanded .service-card:not(.expanded) {
    opacity: 0.3;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Service Card */
.service-card {
    height: 450px;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    perspective: 1000px;
    /* Width and positioning will be set by JavaScript */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-card.loaded {
    opacity: 1;
    transform: translateY(0);
}

.service-card.flipped {
    transform: rotateY(180deg) !important;
}

.service-card.loaded.flipped {
    transform: rotateY(180deg) translateY(0) !important;
}

.service-card.expanded {
    cursor: default;
    transform: rotateY(180deg) !important;
    max-width: 100%;
    transition: width 0.8s ease-in-out, height 0.8s ease-in-out;
}

.service-card.shrinking {
    transition: width 0.8s ease-in-out, height 0.8s ease-in-out;
}

/* Card Faces */
.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: var(--color-pure-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-front {
    background: linear-gradient(135deg, var(--color-pure-white), var(--color-off-white));
}

.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--color-pure-white), var(--color-cream));
    padding: 2.5rem;
    position: relative;
}

/* Front Content (default state) */
.front-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Back Content States */
.compact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    height: 100%;
    position: absolute;
    top: 1rem;
    left: 2.5rem;
    right: 2.5rem;
    bottom: 2.5rem;
    padding-top: 1rem;
}

.service-card.expanded .compact-content {
    /* Position is set by JavaScript with fixed pixel dimensions */
    position: absolute;
    top: 1rem;
    left: 2.5rem;
    right: auto;
    bottom: auto;
    /* Keep all other styles exactly the same */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding-top: 1rem;
}

.expanded-content {
    display: none;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    bottom: 2.5rem;
    /* left position set dynamically by JavaScript */
}

/* Expanded State */
.service-card.expanded .compact-content .click-hint {
    display: none;
}

.service-card.expanded .expanded-content {
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.service-card.expanded.show-content .expanded-content {
    opacity: 1;
}

/* Card Icons */
.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-icon svg {
    fill: var(--color-terracotta);
    transition: fill 0.3s ease;
}

.service-icon.small {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Service Titles */
.service-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-dark-brown);
    margin-bottom: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-title.small {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Service Intro */
.service-intro {
    font-size: 0.9rem;
    color: var(--color-umbra-braun);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    line-height: 1.6;
    margin-top: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    will-change: opacity, transform;
}

.service-intro.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Left Content (Icon + Title + Intro) */
.left-content {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Right Content (Detailed Info) */
.right-content {
    flex: 1;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.3s;
}

.service-card.expanded .right-content {
    opacity: 1;
    transform: translateX(0);
}

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-section {
    background: var(--color-taupe);
    padding: 2rem;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    will-change: opacity, transform;
}

.content-section:nth-child(1) {
    animation-delay: 0.4s;
}

.content-section:nth-child(2) {
    animation-delay: 0.5s;
}

.content-section:nth-child(3) {
    animation-delay: 0.6s;
}

.content-section h3 {
    font-family: var(--font-display);
    color: var(--color-dark-brown);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.content-section ul {
    list-style: none;
    margin: 0;
}

.content-section li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--color-umbra-braun);
}

.content-section li::before {
    content: '→';
    color: var(--color-terracotta);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Click Hint */
.click-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: var(--color-terracotta);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    width: fit-content;
    white-space: nowrap;
}

.service-card.flipped .compact-content .click-hint {
    opacity: 1;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--color-pure-white);
    border: 2px solid var(--color-terracotta);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-dark-brown);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
}

.service-card.expanded .expanded-content .close-btn {
    display: flex;
}

.close-btn:hover {
    background: var(--color-terracotta);
    color: var(--color-pure-white);
    transform: scale(1.1);
}

/* Hover Effects */
.service-card:not(.expanded):not(.expanding):not(.flipped):hover {
    transform: translateY(-5px);
}

.service-card:not(.expanded):not(.expanding):not(.flipped):hover .card-front {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

/* Focus Styles */
.service-card:focus {
    outline: none;
}

.close-btn:focus {
    outline: 3px solid var(--color-terracotta);
    outline-offset: 2px;
}

/* Responsive Design for Service Cards */
@media (max-width: 768px) {
    .services-grid {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .service-card {
        max-width: 90vw;
        width: 90vw;
        height: 400px;
        margin-inline: auto;
    }

    /* Expanded state on mobile - full height to show all content */
    .service-card.expanded {
        height: auto !important;
        min-height: 90vh;
        max-height: none !important;
        width: 90vw !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
    }

    /* Card face adjustments for mobile expanded state */
    .service-card.expanded .card-face {
        height: auto !important;
        min-height: 90vh;
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center;
        gap: 0 !important;
        padding: 1.5rem !important;
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Compact content on mobile - show at top when expanded */
    .service-card.expanded .compact-content {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        height: auto !important;
        flex: none !important;
        margin-bottom: 2rem;
        padding: 0 !important;
    }

    /* Expanded content on mobile - show below compact content */
    .service-card.expanded .expanded-content {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        padding: 0 !important;
        flex: 1;
    }

    /* Content grid stacks vertically on mobile */
    .content-grid {
        gap: 1.5rem;
        width: 100%;
    }

    /* Content sections full width on mobile */
    .content-section {
        width: 100%;
        padding: 1.5rem;
    }

    .service-card.expanded .content-section {
        text-align: left;
    }

    .service-card.expanded .content-section h3 {
        text-align: left;
    }

    .service-card.expanded .content-section ul {
        text-align: left;
    }

    .service-card.expanded .content-section li {
        text-align: left;
    }

    /* Hide service intro on mobile when expanded to save space */
    .service-card.expanded .service-intro {
        display: none;
    }

    /* Make icons smaller on mobile */
    .service-card.expanded .service-icon.small {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .service-card.expanded .service-icon.small svg {
        width: 60px;
        height: 60px;
    }

    /* Adjust title size on mobile */
    .service-card.expanded .service-title.small {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    /* Close button positioning for mobile */
    .service-card.expanded .close-btn {
        position: fixed !important;
        top: 1rem;
        right: 1rem;
        z-index: 1000;
    }
}

@media (max-width: 480px) {
    .service-card {
        height: 350px;
        max-width: 95vw;
        width: 95vw;
    }

    .service-card.expanded {
        width: 95vw !important;
        min-height: 95vh;
    }

    .service-card.expanded .card-face {
        min-height: 95vh;
        padding: 1rem !important;
    }

    .content-section {
        padding: 1rem;
    }

    .content-section h3 {
        font-size: 1.1rem;
    }

    .content-section li {
        font-size: 0.9rem;
        padding: 0.4rem 0 0.4rem 1.2rem;
    }
}

    .service-card.expanded .card-face {
        padding: 1.5rem;
    }

    .content-section {
        padding: 1.5rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .float-element,
    .breath-animation,
    .scroll-line {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-dark-brown: #000000;
        --color-medium-brown: #333333;
        --color-light-brown: #666666;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-background,
    .floating-elements,
    .scroll-indicator,
    .footer {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: var(--flow-lg) 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .section-spacing {
        padding: var(--flow-lg) 0;
        break-inside: avoid;
    }
}
