/* =====================================================
   besimul – Modern Dark/Grey Style v2.0
   ===================================================== */

/* ===== LOADING FIX (nur für index.html) ===== */
body.page-home:not(.content-loaded) .hero {
    opacity: 0;
}

body.page-home.content-loaded .hero {
    opacity: 1;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== CSS VARIABLES ===== */
:root {
    --color-black: #0a0a0a;
    --color-dark: #1a1a1a;
    --color-grey: #2d2d2d;
    --color-mid: #555555;
    --color-light-grey: #888888;
    --color-bg-light: #f5f5f5;
    --color-white: #ffffff;
    --color-accent: #f7ede8;
    
    --color-kinder: #e8894a;
    --color-gruendung: #4a9ee8;
    --color-logistik: #4aae5a;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.16);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-black);
    background: var(--color-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

p { margin-bottom: 1rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: .95rem;
    font-weight: 700;
    font-family: var(--font-sans);
    border: 2px solid;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.btn-primary:hover {
    background: var(--color-mid);
    border-color: var(--color-mid);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255,255,255,.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.8);
}

.btn-outline-dark {
    background: transparent;
    color: var(--color-black);
    border-color: var(--color-black);
}

.btn-outline-dark:hover {
    background: var(--color-black);
    color: var(--color-white);
}

.btn-sm {
    padding: 10px 20px;
    font-size: .875rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    /* NUR spezifische Properties animieren, kein 'all' – das bricht display auf Android */
    transition: padding 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    height: 40px;
}

.nav-logo img {
    height: 100%;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-default { opacity: 1; }
.logo-scrolled { opacity: 0; position: absolute; }

.navbar.scrolled .logo-default { opacity: 0; }
.navbar.scrolled .logo-scrolled { opacity: 1; position: static; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: .95rem;
    font-weight: 600;
    color: var(--color-white);
    position: relative;
    padding: 8px 0;
}

.navbar.scrolled .nav-links a {
    color: var(--color-black);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none; /* Desktop: unsichtbar */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;  /* Höher als alles andere! */
    position: relative;
    transition: none;
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: #ffffff;
    display: block;
    border-radius: 2px;
    transition: background 0.25s ease, transform 0.3s ease, width 0.3s ease;
}

.navbar.scrolled .hamburger span {
    background: #1a1a1a;
}

.hamburger.open span {
    background: #ffffff !important;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(232, 137, 74, 0.15), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 158, 232, 0.15), transparent 50%);
    pointer-events: none;
}

.hero-logo-deco {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    opacity: 0.03;
    pointer-events: none;
}

.hero-logo-deco img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,.2);
}

.hero-title {
    color: var(--color-white);
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--color-kinder), var(--color-gruendung));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tag {
    padding: 8px 16px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    font-size: .85rem;
    color: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.15);
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
    background: var(--color-white);
}

.section-dark {
    background: var(--color-black);
    color: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-bg-light);
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--color-mid);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-label.light {
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.8);
}

.section-title {
    margin-bottom: 16px;
}

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

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-light-grey);
    line-height: 1.7;
}

/* ===== BUSINESS AREAS ===== */
/* ===== BUSINESS AREAS SLIDER ===== */
.business-areas-slider-wrap {
    position: relative;
    overflow: hidden;
    padding: 8px 0 24px;
}

/* Fade-Ränder links/rechts */
.business-areas-slider-wrap::before,
.business-areas-slider-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.business-areas-slider-wrap::before {
    left: 0;
    background: linear-gradient(to right, #0a0a0a, transparent);
}
.business-areas-slider-wrap::after {
    right: 0;
    background: linear-gradient(to left, #0a0a0a, transparent);
}

.business-areas-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 40px 16px;
    scroll-behavior: smooth;
}

.business-areas-grid::-webkit-scrollbar {
    display: none;
}

/* Slider Navigations-Pfeile */
.ba-slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.ba-slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-slider-btn:hover {
    background: rgba(255,255,255,.18);
    color: #fff;
    transform: scale(1.1);
}

.ba-slider-dots {
    display: flex;
    gap: 8px;
}

.ba-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.ba-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* Karten */
.business-area-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    padding: 36px 28px;
    background: rgba(255,255,255,.05);
    border: 2px solid rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

.business-area-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,.09);
    box-shadow: 0 12px 40px rgba(0,0,0,.4);
}

.ba-icon {
    font-size: 2.6rem;
    margin-bottom: 18px;
}

.business-area-card h3 {
    font-size: 1.3rem;
    color: var(--color-white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.ba-subtitle {
    font-size: .88rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 14px;
    font-weight: 600;
}

.business-area-card p {
    color: rgba(255,255,255,.6);
    margin-bottom: 24px;
    font-size: .92rem;
    line-height: 1.6;
    flex: 1;
}

.business-area-card .btn {
    width: 100%;
    border-color: rgba(255,255,255,.3);
    color: var(--color-white);
    margin-top: auto;
}

.business-area-card .btn:hover {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.6);
}

/* ===== KARTEN-GRID (Unterseiten – kein Slider, normales Grid) ===== */
/* Verwendung: class="card-grid" statt class="business-areas-grid" */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 8px 0 16px;
}

/* Karten im card-grid: volle Breite, kein flex-shrink */
.card-grid .business-area-card {
    flex: none;
    width: 100%;
}

@media (max-width: 640px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PRODUCTS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.product-card {
    padding: 32px 28px;
    background: var(--color-white);
    border: 1px solid #e5e5e5;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-black);
}

.product-icon {
    font-size: 2.5rem;
    color: var(--color-black);
    margin-bottom: 16px;
}

.product-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-bg-light);
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 700;
    color: var(--color-mid);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    width: fit-content;
}

.product-card h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.product-subtitle {
    font-size: .9rem;
    color: var(--color-light-grey);
    margin-bottom: 16px;
}

.product-age {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-accent);
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--color-mid);
    margin-bottom: 16px;
}

.product-features {
    list-style: none;
    margin-bottom: 24px;
    flex-grow: 1;
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: .9rem;
    color: var(--color-mid);
}

.product-features li i {
    color: var(--color-logistik);
    margin-top: 2px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-black);
}

/* ===== BLOG ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.blog-card {
    padding: 32px 28px;
    background: var(--color-white);
    border: 1px solid #e5e5e5;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-black);
}

.blog-meta {
    margin-bottom: 16px;
}

.blog-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-bg-light);
    border-radius: 16px;
    font-size: .75rem;
    font-weight: 700;
    color: var(--color-mid);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.blog-card p {
    color: var(--color-light-grey);
    margin-bottom: 20px;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: .9rem;
    color: var(--color-black);
}

.blog-link:hover {
    gap: 12px;
}

/* ===== ABOUT ===== */
.about-section {
    background: var(--color-black);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content p {
    color: rgba(255,255,255,.7);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-values {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.value-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255,255,255,.08);
    border-radius: 24px;
    font-size: .9rem;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.15);
}

.value-chip i {
    color: var(--color-logistik);
}

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

.about-logo-bg {
    padding: 60px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-logo-bg img {
    width: 200px;
    height: auto;
}

/* ===== TESTIMONIALS ===== */
/* ===== TESTIMONIALS 3D KARUSSELL ===== */
.testimonials-grid {
    display: block;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 40px 0 60px;
    overflow: hidden;
}

.carousel-scene {
    perspective: 1200px;
    width: 100%;
    height: 320px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    width: 340px;
    height: 280px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card {
    position: absolute;
    width: 340px;
    padding: 28px 26px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-lg);
    backface-visibility: hidden;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
    cursor: pointer;
    top: 0;
    left: 0;
}

.testimonial-card.active {
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.25);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
    font-size: 1rem;
}

.testimonial-text {
    font-size: .97rem;
    color: rgba(255,255,255,.88);
    line-height: 1.65;
    margin-bottom: 20px;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.08));
    border: 1px solid rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .85rem;
    color: var(--color-white);
}

.testimonial-author strong {
    display: block;
    color: var(--color-white);
    font-size: .95rem;
    margin-bottom: 2px;
}

.testimonial-author span {
    display: block;
    font-size: .8rem;
    color: rgba(255,255,255,.55);
}

/* Karussell Navigation */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255,255,255,.18);
    color: #fff;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ===== CONTACT ===== */
.contact {
    background: var(--color-black);
    color: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.contact-info p {
    color: rgba(255,255,255,.7);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-item i {
    font-size: 1.5rem;
    color: rgba(255,255,255,.5);
    margin-top: 4px;
}

.contact-item strong {
    display: block;
    color: var(--color-white);
    margin-bottom: 4px;
    font-size: .9rem;
}

.contact-item span,
.contact-item a {
    display: block;
    color: rgba(255,255,255,.7);
    font-size: .95rem;
}

.contact-item a:hover {
    color: var(--color-white);
}

.contact-form-wrapper {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 8px;
    color: rgba(255,255,255,.9);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: .95rem;
    color: var(--color-white);
    transition: all 0.3s ease;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
    cursor: pointer;
}

.form-group select option {
    background: #1a1a1a;
    color: #fff;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,.4);
}

.contact-form .btn {
    width: 100%;
    margin-top: 8px;
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
}

.contact-form .btn:hover {
    background: rgba(255,255,255,.9);
}

.btn-loading {
    display: none;
}

.contact-form .btn.loading .btn-text {
    display: none;
}

.contact-form .btn.loading .btn-loading {
    display: inline-flex;
}

.form-success {
    margin-top: 16px;
    padding: 16px;
    background: rgba(74, 174, 90, 0.2);
    border: 1px solid rgba(74, 174, 90, 0.4);
    border-radius: var(--radius-sm);
    color: #8ef3a4;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-dark);
    color: rgba(255,255,255,.7);
    padding: 80px 0 0;
}

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

.footer-brand {
    padding-right: 40px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: .95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 40px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: .95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    flex-shrink: 0;
}

.social-links a:hover {
    background: rgba(255,255,255,.15);
    color: var(--color-white);
    border-color: rgba(255,255,255,.3);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 1rem;
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    font-size: .9rem;
    color: rgba(255,255,255,.6);
    transition: all 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--color-white);
    padding-left: 4px;
}

.footer-bottom {
    padding: 32px 0;
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .85rem;
    color: rgba(255,255,255,.5);
}

.footer-bottom i {
    color: #e74c3c;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Overlay: auf Desktop niemals sichtbar */
.nav-overlay { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    /* Dunkles Overlay wenn Menü offen */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,.55);
        z-index: 998;
    }
    .nav-overlay.visible {
        display: block;
    }

    /* ── Menü-Panel: von rechts einfahren ── */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: #111111;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 28px 40px;
        gap: 0;
        z-index: 1000;   /* gleich wie Navbar */
        /* Versteckt: komplett rechts außerhalb */
        transform: translateX(100%);
        -webkit-transform: translateX(100%);
        transition: transform 0.3s ease;
        -webkit-transition: -webkit-transform 0.3s ease;
        box-shadow: none;
        overflow-y: auto;
        pointer-events: none;  /* Kein Abfangen von Klicks wenn geschlossen */
    }

    .nav-links.open {
        transform: translateX(0);
        -webkit-transform: translateX(0);
        box-shadow: -4px 0 24px rgba(0,0,0,.5);
        pointer-events: auto;
    }

    .nav-links a {
        color: #ffffff !important;
        font-size: 1.05rem;
        font-weight: 600;
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,.1);
        display: block;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* ── Hamburger-Button ── */
    .hamburger {
        display: flex;
        z-index: 1002;   /* ÜBER allem – auch über .nav-links */
        position: relative;
        transition: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* X-Animation wenn offen */
    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        -webkit-transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.open span:nth-child(2) {
        opacity: 0;
        width: 0;
    }
    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        -webkit-transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .business-areas-grid {
        padding: 8px 20px 16px;
    }

    .business-area-card {
        flex: 0 0 270px;
    }

    .products-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .carousel-scene {
        height: 360px;
    }

    .carousel-track,
    .testimonial-card {
        width: 290px;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
