/* === Sonnenmichel Design System === */

:root {
    --primary-blue: #0f172a;
    /* Deep Navy */
    --accent-yellow: #fbbf24;
    /* Golden Yellow */
    --accent-blue: #2563eb;
    /* Bright Blue */
    --text-main: #1e293b;
    --text-light: #64748b;
    --bg-white: #ffffff;
    --bg-cream: #f8fafc;
    --max-width: 1200px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

/* === Preloader === */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-leaf {
    color: #84cc16;
    /* Bio Green */
    width: 60px;
    height: 60px;
    animation: leaf-pulse 2s infinite ease-in-out;
}

.loader-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--primary-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
}

@keyframes leaf-pulse {

    0%,
    100% {
        transform: scale(1) rotate(-5deg);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.15) rotate(5deg);
        opacity: 1;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--bg-cream);
}

/* === Typography === */

.subtitle {
    display: block;
    color: var(--accent-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
}

.text-center {
    text-align: center;
}

.text-center p {
    margin: 0 auto;
}

/* === Buttons === */

.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(251, 191, 36, 0.4);
}

.btn-secondary {
    background-color: #84cc16;
    /* Solar Bio Green */
    color: white;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(132, 204, 22, 0.39);
}

.btn-secondary:hover {
    background-color: #65a30d;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(132, 204, 22, 0.4);
}

.w-full {
    width: 100%;
}

/* === Navigation === */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--accent-yellow);
    font-family: 'Playfair Display', serif;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-blue);
}

/* === Hero === */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.2));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-tagline {
    font-weight: 600;
    color: var(--accent-yellow);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    display: block;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: white;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* === Products === */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 280px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 2rem;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.product-info p {
    color: var(--text-light);
}

/* === Fruit Drop Section === */

.fruit-drop-section {
    min-height: 100vh;
    /* Set to full height for better centering */
    background: radial-gradient(circle at center 60%, #ecfccb 0%, #dcfce7 80%);
    color: var(--text-main);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertically center content */
    align-items: center;
    padding: 0;
}

/* --- Floating Organic Leaves --- */
.leaf {
    position: absolute;
    color: #a3e635;
    /* Fresh bio green */
    opacity: 0.5;
    filter: blur(3px);
    z-index: 1;
    /* Behind the content */
    pointer-events: none;
}

.leaf svg,
.leaf i {
    width: 60px;
    height: 60px;
    stroke-width: 1.5px;
}

.leaf-1 {
    top: 10%;
    left: 15%;
    animation: float-leaf 8s ease-in-out infinite;
    color: #84cc16;
    opacity: 0.6;
}

.leaf-2 {
    top: 25%;
    right: 18%;
    animation: float-leaf 12s ease-in-out infinite reverse;
    filter: blur(5px);
    opacity: 0.3;
}

.leaf-2 svg,
.leaf-2 i {
    width: 90px;
    height: 90px;
}

.leaf-3 {
    bottom: 15%;
    left: 35%;
    animation: float-leaf 9s ease-in-out infinite 1s;
    color: #65a30d;
    z-index: 15;
    /* in front */
}

.leaf-3 svg,
.leaf-3 i {
    width: 50px;
    height: 50px;
}

.leaf-4 {
    top: 40%;
    left: 45%;
    animation: float-leaf 11s ease-in-out infinite 2s reverse;
    filter: blur(6px);
    opacity: 0.2;
}

.leaf-4 svg,
.leaf-4 i {
    width: 120px;
    height: 120px;
}

.leaf-5 {
    bottom: 35%;
    right: 40%;
    animation: float-leaf 7s ease-in-out infinite;
    color: #84cc16;
    opacity: 0.4;
    z-index: 15;
    /* in front */
}

.leaf-6 {
    top: 15%;
    right: 45%;
    animation: float-leaf 14s ease-in-out infinite 3s;
    filter: blur(2px);
    opacity: 0.4;
    z-index: 15;
    /* in front */
}

.leaf-6 svg,
.leaf-6 i {
    width: 40px;
    height: 40px;
}

.leaf-7 {
    bottom: 5%;
    right: 30%;
    animation: float-leaf 10s ease-in-out infinite 1.5s reverse;
    color: #a3e635;
}

.leaf-7 svg,
.leaf-7 i {
    width: 70px;
    height: 70px;
}

.leaf-8 {
    top: 60%;
    right: 20%;
    animation: float-leaf 13s ease-in-out infinite 0.5s;
    filter: blur(8px);
    opacity: 0.3;
    color: #65a30d;
}

.leaf-8 svg,
.leaf-8 i {
    width: 140px;
    height: 140px;
}

@keyframes float-leaf {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) translateX(15px) rotate(15deg);
    }

    66% {
        transform: translateY(10px) translateX(-10px) rotate(-5deg);
    }
}


.drop-text {
    text-align: center;
    margin-bottom: 50px;
}

.drop-text h2 {
    font-size: 3.5rem;
}

.basket-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    height: 600px;
    margin: 0 auto;
    /* Pure horizontal center */
    display: flex;
    justify-content: center;
}

.basket-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/fruitdrop/fruitBasket.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
    z-index: 1;
    /* Back layer */
    pointer-events: none;
}

.basket-front {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/fruitdrop/fruitBasket.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
    z-index: 20;
    /* Front layer (front rim/wall) */
    pointer-events: none;
    /* Hilfslinie - MATHEMATISCHE PRÄZISION: Bézier-Bogen statt Polygon-Segmenten */
    clip-path: url(#basketCurve);
}

.falling-items {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    /* Fruits sit between back and front */
}

.fruit {
    position: absolute;
    opacity: 0;
    transition: transform 0.1s linear, opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

/* --- Photo Cutout Fruit Styles --- */
.fruit img {
    /* Alle Lebensmittel exakt gleich groß! */
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
    transition: transform 0.2s ease;
}

/* --- Individuelle Frucht-Größen zum Anpassen --- */
.fruit.pineapple img {
    width: 270px;
    height: 270px;
}

.fruit.lettuce img {
    width: 170px;
    height: 170px;
}

.fruit.grapes img {
    width: 140px;
    height: 140px;
}

.fruit.banana img {
    width: 130px;
    height: 130px;
}

.fruit.carrot img {
    width: 230px;
    height: 230px;
}

.fruit.broccoli img {
    width: 120px;
    height: 120px;
}

.fruit.onion img {
    width: 120px;
    height: 120px;
}

.fruit.tomato img {
    width: 90px;
    height: 90px;
}




/* Entkommentieren und anpassen für die anderen Früchte:
.fruit.apple img    { width: 90px; height: 90px; }
.fruit.pepper img   { width: 90px; height: 90px; }
*/
/* --- Basket Container Style --- */

/* === Reviews === */
#reviews-slider {
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

#reviews-slider:active {
    cursor: grabbing;
}

.review-box {
    user-select: none;
}

.google-rating-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.star.filled {
    fill: var(--accent-yellow);
    color: var(--accent-yellow);
}

.rating-num {
    font-weight: 700;
    font-size: 1.25rem;
}

.rating-count {
    color: var(--text-light);
}

.reviews-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 4rem auto 0;
}

.reviews-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0 3rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reviews-track::-webkit-scrollbar {
    display: none;
}

.review-box {
    min-width: 340px;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    scroll-snap-align: center;
    transition: var(--transition);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.review-header .reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.reviewer-meta h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.google-badge {
    margin-left: 8px;
    display: inline-flex;
    opacity: 0.5;
}

.google-badge i {
    width: 12px !important;
    height: 12px !important;
}

.stars i.filled,
.star.filled,
[data-lucide="star"].filled,
[data-lucide="star"].filled svg,
[data-lucide="star"].filled path,
[data-lucide="star"].filled polygon {
    color: #fbbc04 !important;
    fill: #fbbc04 !important;
    stroke: #fbbc04 !important;
}

.stars i,
.star,
[data-lucide="star"] {
    width: 14px;
    height: 14px;
    display: inline-flex;
}

.review-text {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-box.expanded .review-text {
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.slider-btn {
    background: white;
    border: 1px solid #e2e8f0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    color: var(--text-main);
}

.slider-btn:hover {
    background: var(--primary-blue);
    color: white;
}

/* === Contact === */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.info-list {
    list-style: none;
    margin: 3rem 0;
}

.info-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.info-list i {
    color: var(--accent-blue);
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-yellow);
}

.contact-form-minimal {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid #f1f5f9;
}

.contact-form-minimal h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form-minimal input,
.contact-form-minimal textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.contact-form-minimal input:focus,
.contact-form-minimal textarea:focus {
    border-color: var(--accent-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.contact-form-minimal textarea {
    margin-bottom: 1.5rem;
    resize: none;
}

.btn.compact {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
}

/* === Footer === */

.footer {
    padding: 4rem 0;
    border-top: 1px solid #e2e8f0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

.built-by {
    font-size: 0.8rem;
    opacity: 0.6;
    transition: var(--transition);
}

.built-by a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.built-by:hover {
    opacity: 1;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
}

/* === Map === */

.map-section {
    padding: 0;
    line-height: 0;
    margin-top: 4rem;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
}

.map-section iframe {
    filter: grayscale(0.2) contrast(1.1);
    transition: var(--transition);
}

.map-section iframe:hover {
    filter: none;
}

/* === Animations === */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Lightbox === */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    background: white;
    padding: 3rem;
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    z-index: 10;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary-blue);
    transform: rotate(90deg);
}

/* === Responsive === */

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* End of file */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero-bg {
        width: 100%;
        opacity: 0.5;
    }

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