/* =====================
   Hero Section
   ===================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
            radial-gradient(ellipse 80% 50% at 20% 80%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
            radial-gradient(ellipse 60% 40% at 80% 20%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
            radial-gradient(ellipse 50% 30% at 50% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 6s ease-in-out infinite;
}

.hero-bg-shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(37, 99, 235, 0.15);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-bg-shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(249, 115, 22, 0.1);
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

.hero-bg-shape-3 {
    width: 200px;
    height: 200px;
    background: rgba(37, 99, 235, 0.1);
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-logo {
    width: 400px;
    height: auto;
    flex-shrink: 0;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #60a5fa, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray-400);
    max-width: 520px;
    margin-bottom: 44px;
    line-height: 1.7;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.8s both;
}

.hero-scroll-hint:hover {
    color: rgba(255, 255, 255, 0.9);
}

.hero-scroll-hint svg {
    width: 28px;
    height: 28px;
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* =========================================================
   Section Background System (modern / abstract / clean)
   - 1x Base-Klasse + pro Sektion nur Variablen (kein 40x div)
   - Top/Bottom SVG-Waves als Separator
   - Jede Sektion bekommt ein eigenes Pattern
   ========================================================= */
:root {
    --wave-h: 200px;

    /* Shared waves (light) */
    --wave-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 150' preserveAspectRatio='none'%3E%3Cpath fill='%2393c5fd' fill-opacity='0.30' d='M0,78 C220,18 460,122 700,76 C940,30 1120,118 1320,88 C1380,80 1410,76 1440,84 L1440,150 L0,150 Z'/%3E%3Cpath fill='%2360a5fa' fill-opacity='0.22' d='M0,96 C200,136 420,44 640,92 C860,140 1020,62 1220,98 C1320,116 1400,126 1440,112 L1440,150 L0,150 Z'/%3E%3Cpath fill='%23bfdbfe' fill-opacity='0.22' d='M0,114 C240,154 520,70 780,110 C1040,150 1220,154 1440,126 L1440,150 L0,150 Z'/%3E%3Cpath d='M0,78 C220,18 460,122 700,76 C940,30 1120,118 1320,88 C1380,80 1410,76 1440,84' fill='none' stroke='%233b82f6' stroke-opacity='0.28' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    --wave-svg-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 150' preserveAspectRatio='none'%3E%3Cg transform='translate(0,150) scale(1,-1)'%3E%3Cpath fill='%2393c5fd' fill-opacity='0.30' d='M0,78 C220,18 460,122 700,76 C940,30 1120,118 1320,88 C1380,80 1410,76 1440,84 L1440,150 L0,150 Z'/%3E%3Cpath fill='%2360a5fa' fill-opacity='0.22' d='M0,96 C200,136 420,44 640,92 C860,140 1020,62 1220,98 C1320,116 1400,126 1440,112 L1440,150 L0,150 Z'/%3E%3Cpath fill='%23bfdbfe' fill-opacity='0.22' d='M0,114 C240,154 520,70 780,110 C1040,150 1220,154 1440,126 L1440,150 L0,150 Z'/%3E%3Cpath d='M0,78 C220,18 460,122 700,76 C940,30 1120,118 1320,88 C1380,80 1410,76 1440,84' fill='none' stroke='%233b82f6' stroke-opacity='0.28' stroke-width='2' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");

    /* Shared waves (dark) – etwas softer */
    --wave-svg-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 150' preserveAspectRatio='none'%3E%3Cpath fill='%233b82f6' fill-opacity='0.18' d='M0,78 C220,18 460,122 700,76 C940,30 1120,118 1320,88 C1380,80 1410,76 1440,84 L1440,150 L0,150 Z'/%3E%3Cpath fill='%2393c5fd' fill-opacity='0.10' d='M0,96 C200,136 420,44 640,92 C860,140 1020,62 1220,98 C1320,116 1400,126 1440,112 L1440,150 L0,150 Z'/%3E%3Cpath d='M0,78 C220,18 460,122 700,76 C940,30 1120,118 1320,88 C1380,80 1410,76 1440,84' fill='none' stroke='%2393c5fd' stroke-opacity='0.16' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    --wave-svg-top-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 150' preserveAspectRatio='none'%3E%3Cg transform='translate(0,150) scale(1,-1)'%3E%3Cpath fill='%233b82f6' fill-opacity='0.18' d='M0,78 C220,18 460,122 700,76 C940,30 1120,118 1320,88 C1380,80 1410,76 1440,84 L1440,150 L0,150 Z'/%3E%3Cpath fill='%2393c5fd' fill-opacity='0.10' d='M0,96 C200,136 420,44 640,92 C860,140 1020,62 1220,98 C1320,116 1400,126 1440,112 L1440,150 L0,150 Z'/%3E%3Cpath d='M0,78 C220,18 460,122 700,76 C940,30 1120,118 1320,88 C1380,80 1410,76 1440,84' fill='none' stroke='%2393c5fd' stroke-opacity='0.16' stroke-width='2' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
}

/* Common layout for sections */
.features, .services, .about, .reviews, .contact {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Keep content above patterns + waves */
.features .container,
.services .container,
.about .container,
.reviews .container,
.contact .container {
    position: relative;
    z-index: 2;
}

/* ---------- Base: Section Background Renderer ---------- */
.features,
.services,
.about,
.contact,
.reviews {
    /* Fallbacks */
    --sec-bg: var(--bg-base);
    --sec-top-wave: var(--wave-svg-top);
    --sec-bottom-wave: var(--wave-svg);

    /* Pattern-layer default (kann pro Sektion überschrieben werden) */
    --sec-pattern:
            radial-gradient(560px 320px at 18% 16%, rgba(59,130,246,0.10), transparent 70%),
            radial-gradient(760px 420px at 82% 26%, rgba(249,115,22,0.08), transparent 72%),
            linear-gradient(to right, rgba(148,163,184,0.08) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(148,163,184,0.08) 1px, transparent 1px);

    /* Größen/Positions-Defaults */
    --sec-pattern-size: auto, auto, 56px 56px, 56px 56px;
    --sec-pattern-pos: 18% 16%, 82% 26%, 0 0, 0 0;
    --sec-pattern-repeat: no-repeat, no-repeat, repeat, repeat;

    background-color: var(--sec-bg);
    background-image:
            var(--sec-top-wave),
            var(--sec-bottom-wave),
            var(--sec-pattern);

    background-size:
            100% var(--wave-h),
            100% var(--wave-h),
            var(--sec-pattern-size);

    background-position:
            top center,
            bottom center,
            var(--sec-pattern-pos);

    background-repeat:
            no-repeat,
            no-repeat,
            var(--sec-pattern-repeat);
}

/* =========================================================
   Unified Pattern everywhere (Unser Angebot) + fixed waves
   - 3 wave colors but ONLY blue family
   - more transparent waves
   - padding uses variables so it cannot be overridden later
   ========================================================= */
:root {
    --wave-h: 200px;

    /* extra safe space so content never touches waves */
    --wave-safe: 110px; /* ~10% more feel; adjust if needed */

    /* 3-wave-color layered svg (BLUE ONLY) + more transparent */
    --wave-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 150' preserveAspectRatio='none'%3E%3Cpath fill='%23bfdbfe' fill-opacity='0.18' d='M0,78 C220,18 460,122 700,76 C940,30 1120,118 1320,88 C1380,80 1410,76 1440,84 L1440,150 L0,150 Z'/%3E%3Cpath fill='%2393c5fd' fill-opacity='0.14' d='M0,96 C200,136 420,44 640,92 C860,140 1020,62 1220,98 C1320,116 1400,126 1440,112 L1440,150 L0,150 Z'/%3E%3Cpath fill='%2360a5fa' fill-opacity='0.10' d='M0,114 C240,154 520,70 780,110 C1040,150 1220,154 1440,126 L1440,150 L0,150 Z'/%3E%3Cpath d='M0,78 C220,18 460,122 700,76 C940,30 1120,118 1320,88 C1380,80 1410,76 1440,84' fill='none' stroke='%233b82f6' stroke-opacity='0.14' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    --wave-svg-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 150' preserveAspectRatio='none'%3E%3Cg transform='translate(0,150) scale(1,-1)'%3E%3Cpath fill='%23bfdbfe' fill-opacity='0.18' d='M0,78 C220,18 460,122 700,76 C940,30 1120,118 1320,88 C1380,80 1410,76 1440,84 L1440,150 L0,150 Z'/%3E%3Cpath fill='%2393c5fd' fill-opacity='0.14' d='M0,96 C200,136 420,44 640,92 C860,140 1020,62 1220,98 C1320,116 1400,126 1440,112 L1440,150 L0,150 Z'/%3E%3Cpath fill='%2360a5fa' fill-opacity='0.10' d='M0,114 C240,154 520,70 780,110 C1040,150 1220,154 1440,126 L1440,150 L0,150 Z'/%3E%3Cpath d='M0,78 C220,18 460,122 700,76 C940,30 1120,118 1320,88 C1380,80 1410,76 1440,84' fill='none' stroke='%233b82f6' stroke-opacity='0.14' stroke-width='2' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
}

/* Common layout for sections */
.features, .services, .about, .reviews, .contact {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Keep content above background + waves */
.features .container,
.services .container,
.about .container,
.reviews .container,
.contact .container {
    position: relative;
    z-index: 2;
}

/* =========================================================
   ONE unified pattern everywhere (from "Unser Angebot")
   - keeps dot raster
   - removes ONLY the blue glow blobs ("Flecken")
   ========================================================= */
.features,
.services,
.about,
.contact {
    background-image:
            var(--wave-svg-top),
            var(--wave-svg),

                /* diagonal beam (stays) */
            linear-gradient(135deg, rgba(148,163,184,0.08), transparent 55%),

                /* dot matrix (stays) */
            radial-gradient(circle at 1px 1px, rgba(148,163,184,0.18) 1px, transparent 1px);

    background-size:
            100% var(--wave-h),
            100% var(--wave-h),
            auto,
            18px 18px;

    background-position:
            top center,
            bottom center,
            0 0,
            0 0;

    background-repeat:
            no-repeat,
            no-repeat,
            no-repeat,
            repeat;
}

/* Reviews stays dark but uses the same unified pattern + waves */
.reviews {
    background:
            linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

    background-image:
            linear-gradient(135deg, #0f172a 0%, #1e293b 100%),
            var(--wave-svg-top),
            var(--wave-svg),
            radial-gradient(520px 300px at 20% 18%, rgba(249,115,22,0.10), transparent 70%),
            radial-gradient(720px 420px at 86% 28%, rgba(96,165,250,0.10), transparent 72%),
            linear-gradient(135deg, rgba(255,255,255,0.06), transparent 55%),
            radial-gradient(circle at 1px 1px, rgba(255,255,255,0.10) 1px, transparent 1px);

    background-size:
            auto,
            100% var(--wave-h),
            100% var(--wave-h),
            auto,
            auto,
            auto,
            18px 18px;

    background-position:
            0 0,
            top center,
            bottom center,
            20% 18%,
            86% 28%,
            0 0,
            0 0;

    background-repeat:
            no-repeat,
            no-repeat,
            no-repeat,
            no-repeat,
            no-repeat,
            no-repeat,
            repeat;
}

/* =========================================================
   Padding fix that WILL work:
   - We keep your original paddings via variables
   - and add wave-safe space on top/bottom
   ========================================================= */
.features { --pad-top: 80px; --pad-bot: 80px; padding: calc(var(--pad-top) + var(--wave-safe)) 0 calc(var(--pad-bot) + var(--wave-safe)); }
.services { --pad-top: 80px; --pad-bot: 80px; padding: calc(var(--pad-top) + var(--wave-safe)) 0 calc(var(--pad-bot) + var(--wave-safe)); }
.about    { --pad-top: 80px; --pad-bot: 80px; padding: calc(var(--pad-top) + var(--wave-safe)) 0 calc(var(--pad-bot) + var(--wave-safe)); }
.reviews  { --pad-top: 0px; --pad-bot: 0px; padding: calc(var(--pad-top) + var(--wave-safe)) 0 calc(var(--pad-bot) + var(--wave-safe)); }
.contact  { --pad-top: 80px; --pad-bot: 80px; padding: calc(var(--pad-top) + var(--wave-safe)) 0 calc(var(--pad-bot) + var(--wave-safe)); }

/* =====================
   Features Section
   ===================== */
.features {
    background-color: var(--bg-base);
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* =====================
   Services/Products Section
   ===================== */
.services {
    background-color: var(--bg-soft);
}

/* Category Headers */
.category-header {
    margin-top: 70px;
    margin-bottom: 36px;
}

.category-header:first-of-type {
    margin-top: 0;
}

.category-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-gray-800);
    display: flex;
    align-items: center;
    gap: 14px;
}

.category-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-primary-light));
    border-radius: 2px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.products-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* =====================
   About Section
   ===================== */
.about {
    background-color: var(--bg-base);
}

.about-content-centered {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 3;
}

.about-content-centered .section-title {
    margin-bottom: 36px;
}

.about-text {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    margin-bottom: 24px;
    line-height: 1.85;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--color-gray-100);
}

/* =====================
   Reviews Section
   ===================== */
.reviews {
    background-color: transparent; /* keep your existing dark gradient below */
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.reviews-content {
    position: relative;
    text-align: center;
    z-index: 3;
}

.reviews .section-header {
    margin-bottom: 50px;
}

.reviews .section-title {
    color: var(--color-white);
}

.reviews .section-subtitle {
    color: var(--color-gray-400);
}

/* Reviews Carousel */
.reviews-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-track {
    overflow: hidden;
}

.reviews-slides {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-slide {
    flex: 0 0 33.333%;
    padding: 0 10px;
}

.review-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-stars {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 16px;
}

.review-stars svg {
    width: 18px;
    height: 18px;
    fill: #fbbf24;
}

.review-text {
    font-size: 0.9rem;
    color: var(--color-gray-300);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
    flex: 1;
}

.review-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.review-author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-white);
}

.review-date {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

/* Carousel Navigation */
.reviews-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.reviews-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.reviews-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
}

.reviews-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.reviews-nav-btn svg {
    width: 20px;
    height: 20px;
}

/* Carousel Dots */
.reviews-dots {
    display: flex;
    gap: 8px;
}

.reviews-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.reviews-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.reviews-dot.active {
    background: var(--color-primary-light);
    width: 28px;
    border-radius: 5px;
}

/* Erento Link */
.reviews-source {
    margin-top: 40px;
}

.reviews-source a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gray-400);
    font-size: 0.875rem;
    transition: var(--transition);
}

.reviews-source a:hover {
    color: var(--color-white);
}

.reviews-source svg {
    width: 16px;
    height: 16px;
}

/* =====================
   Contact Section
   ===================== */
.contact {
    background-color: var(--bg-soft);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-map {
    min-height: 400px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* =====================
   Footer
   ===================== */
.footer {
    background: var(--color-gray-900);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-img {
    height: 120px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: var(--color-gray-400);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: var(--color-gray-400);
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--color-white);
    transform: translateX(4px);
}

.footer-contact p {
    color: var(--color-gray-400);
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-contact a {
    color: var(--color-primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
}

.footer-bottom p {
    color: var(--color-gray-500);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 32px;
}

.footer-legal a {
    color: var(--color-gray-500);
    font-size: 0.85rem;
}

.footer-legal a:hover {
    color: var(--color-gray-300);
}

/* =========================================================
   Responsive wave height (smaller on small screens)
   - overrides CSS variables only
   ========================================================= */


/* Tablets / kleinere Laptops */
@media (max-width: 1024px) {
    :root {
        --wave-h: 160px;
        --wave-safe: 90px;
    }
}


/* Mobile */
@media (max-width: 768px) {
    :root {
        --wave-h: 100px;
        --wave-safe: 80px;
    }
}


/* Small mobile */
@media (max-width: 480px) {
    :root {
        --wave-h: 75px;
        --wave-safe: 56px;
    }
}