html {
    scroll-behavior: smooth;
}

@media (min-width: 1025px) {
    html {
        scroll-behavior: auto !important;
    }
}

:root {
    --bg-color: #ffffff;
    --text-primary: #000000;
    --text-secondary: rgba(0, 0, 0, 0.6);
    --blob-indigo: #4f46e5;
    --blob-pink: #ec4899;
    --blob-cyan: #06b6d4;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Background Blobs (Trademark Style) */
.blob {
    position: fixed;
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
    will-change: transform;
    pointer-events: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    /* Force GPU acceleration */
}

.blob-1 {
    top: -25%;
    left: -25%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, var(--blob-indigo) 0%, transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -25%;
    right: -25%;
    width: 65vw;
    height: 65vw;
    background: radial-gradient(circle, var(--blob-pink) 0%, transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 50%;
    left: -15%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--blob-cyan) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10%, 10%) scale(1.1);
    }
}

/* Sticky Navigation (Apple Style) */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--text-primary);
    text-decoration: none;
    font-family: "Century Gothic", "AppleGothic", sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    overflow: hidden;
    /* Stellt sicher, dass das Hintergrundbild nicht über den Hero-Bereich hinausragt */
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    /* Auf dem PC etwas kleiner */
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title-text {
    background: linear-gradient(135deg, #000000 0%, rgba(0, 0, 0, 0.6) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-attachment: fixed;
    display: inline-block;
    /* Sorgt für eine stabilere Darstellung des Verlaufs */
}

.hero-footer {
    position: absolute;
    bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 0 2rem;
    z-index: 5;
}

.hero-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0.6;
    justify-content: center;
}

.hero-tags span {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: var(--glass-bg);
}

.scroll-indicator {
    position: relative;
    flex-shrink: 0;
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    opacity: 0.3;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

.hero p {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: #0071e3;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: #0077ed;
    box-shadow: 0 10px 20px rgba(0, 113, 227, 0.3);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

/* Services Section */
.apple-bg-block {
    width: 100%;
    /* Vignette Effekt: Weißes Zentrum, leicht graue Ränder */
    background: radial-gradient(circle, #ffffff 0%, #f5f5f7 100%);
    position: relative;
}

.apple-bg-block::before,
.apple-bg-block::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--blob-indigo), var(--blob-pink), var(--blob-cyan));
    z-index: 10;
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.3);
}

.apple-bg-block::before {
    top: 0;
}

.apple-bg-block::after {
    bottom: 0;
}

/* Fix für Anker-Links: Versatz für die Sticky-Nav auf allen Geräten */
#services,
#showcase,
#contact {
    scroll-margin-top: 80px;
}

.services {
    padding: 8rem 2rem 4rem;
    width: 100%;
    background-color: transparent;
}

.showcase-section-container {
    padding-bottom: 8rem;
    width: 100%;
    background-color: transparent;
}

.services>* {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Glow colors for each expertise category */
.expertise-item:nth-child(1) {
    --glow-color: rgba(79, 70, 229, 0.3);
}

/* Blue/Indigo */
.expertise-item:nth-child(2) {
    --glow-color: rgba(6, 182, 212, 0.3);
}

/* Cyan (swapped) */
.expertise-item:nth-child(3) {
    --glow-color: rgba(236, 72, 153, 0.3);
}

/* Pink/Magenta (swapped) */
.expertise-item:nth-child(4) {
    --glow-color: rgba(16, 185, 129, 0.3);
}

/* Emerald Green */

/* Glass Cards */
.glass-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 3rem 2rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    backface-visibility: hidden;
    transform: translateZ(0);
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glass shine overlay inside the card */
.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.28) 0%, transparent 60%);
    z-index: 5;
    pointer-events: none;
    opacity: var(--shine-opacity, 0);
    transition: opacity 0.5s ease;
}

.glass-card:hover::after {
    opacity: 1 !important;
}

.glass-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.card-tags span {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.03);
}

@media (min-width: 1025px) {
    .glass-card .card-content {
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .glass-card:hover .card-content {
        transform: translateY(-8px);
    }

    .glass-card .card-tags span {
        transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
    }

    .glass-card:hover .card-tags span {
        background-color: var(--glow-color);
        border-color: transparent;
        color: #000;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }
}

@media (max-width: 1024px) {
    .glass-card .card-tags span {
        /* Permanent category-theme solid glow background and black text */
        background-color: var(--glow-color) !important;
        border-color: transparent !important;
        color: #000 !important;
        font-weight: 500;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
        position: relative;
        overflow: hidden;
    }

}

/* Footer */
.footer {
    text-align: center;
    padding: 8rem 2rem 4rem;
    border-top: 1px solid var(--glass-border);
}

.footer h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.copyright {
    margin-top: 6rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-cinematic {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    filter: blur(10px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.5s ease-out;
    will-change: transform, opacity, filter;
}

.reveal-cinematic.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Staggered Animation for Expertise Items */
.grid-container .expertise-item:nth-child(1) .card {
    transition-delay: 0.1s;
}

.grid-container .expertise-item:nth-child(2) .card {
    transition-delay: 0.25s;
}

.grid-container .expertise-item:nth-child(3) .card {
    transition-delay: 0.4s;
}

/* Detail Button Styling */
.btn-detail {
    background: transparent;
    border: 1px solid #0071e3;
    color: #0071e3;
    padding: 0.6rem 1.8rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-detail::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #0071e3;
    transition: all 0.4s ease;
    border-radius: 50%;
    z-index: -1;
    transform: translate(-50%, -50%);
}

.btn-detail:hover {
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.3);
}

.btn-detail:hover::before {
    width: 300px;
    height: 300px;
}

/* Expertise Focus - Lateral Overlap View */
.grid-container {
    position: relative;
    /* Context for absolute detail views */
}

.services.focus-active .section-header {
    opacity: 0.5;
    filter: blur(5px);
}

/* Expertise Focus - Lateral Overlap View */
.expertise-item {
    position: relative;
    width: 100%;
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, filter, opacity;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Holographic Ambient Glow behind the card */
.expertise-item::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), var(--glow-color, rgba(0, 113, 227, 0.2)) 0%, transparent 60%);
    border-radius: 28px;
    z-index: -1;
    opacity: 0;
    filter: blur(25px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

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

.services.focus-active .section-header {
    opacity: 0.3;
    filter: blur(8px);
    transition: all 0.8s ease;
}

.grid-container.focus-active .expertise-item:not(.is-expanded) {
    opacity: 0.15;
    filter: blur(20px);
    pointer-events: none;
    transform: scale(0.95);
}

.expertise-item.is-expanded {
    z-index: 9999 !important;
}

.expertise-item.is-expanded .card {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Category 2 (Middle) moves left when expanded */
.expertise-item:nth-child(2).is-expanded .card {
    transform: translateX(calc(-100% - 2rem)) scale(1.02);
}

.card-detail-view {
    position: absolute;
    top: 0;
    width: calc(200% + 4rem);
    height: auto;
    min-height: 100%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 28px;
    opacity: 0;
    visibility: hidden;
    filter: blur(10px);
    transform: translateY(10px);
    transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    overflow-y: auto;
    /* Changed from hidden to auto to prevent clipping */
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

/* Fixed positioning for each category - stays here even when closed to prevent teleporting */
.expertise-item:nth-child(1) .card-detail-view,
.expertise-item:nth-child(2) .card-detail-view {
    left: 100%;
    margin-left: 2rem;
}

.expertise-item:nth-child(3) .card-detail-view {
    right: 100%;
    margin-right: 2rem;
}

/* Category 2 (Middle) special position logic - fixed width adjustment */
.expertise-item:nth-child(2) .card-detail-view {
    left: 0;
    margin-left: 0;
    width: calc(200% + 2rem);
}

/* Expansion Fade Logic */
.expertise-item.is-expanded .card-detail-view {
    opacity: 1;
    visibility: visible;
    filter: blur(0);
    transform: translateY(0);
    pointer-events: all;
}

.detail-close {
    order: 3;
    /* At the bottom */
    margin: 0 2rem 2rem;
    width: fit-content;
    align-self: flex-start;
}

.detail-media {
    width: calc(100% - 4rem);
    margin: 0 2rem 2rem;
    height: auto;
    aspect-ratio: 1200 / 600;
    background: #f5f5f7;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    order: 2;
}

.detail-content {
    padding: 2.5rem 2.5rem 1rem;
    text-align: left;
    order: 1;
}

.detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-content h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #000;
}

.detail-content p {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .expertise-item:nth-child(2).is-expanded .card {
        transform: none;
    }

    .card-detail-view {
        position: fixed;
        top: 50%;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -40%) !important;
        /* Starts slightly lower for glide-up effect */
        width: 92vw !important;
        height: auto !important;
        max-height: 88vh;
        /* Slightly taller to stretch up/down */
        margin: 0 !important;
        z-index: 11000;
        border-radius: 32px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
        padding-bottom: 2rem;
        opacity: 0;
        visibility: hidden;
        filter: blur(10px);
        transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
        border: none;
        /* Removed border to fix potential dark line at top */
    }

    /* Reset positioning logic for mobile */
    .expertise-item:nth-child(1) .card-detail-view,
    .expertise-item:nth-child(2) .card-detail-view,
    .expertise-item:nth-child(3) .card-detail-view {
        left: 50%;
        right: auto;
        margin: 0;
        width: 92vw;
    }

    .expertise-item.is-expanded .card-detail-view {
        opacity: 1;
        visibility: visible;
        filter: blur(0);
        transform: translate(-50%, -50%) scale(1.02) !important;
        /* Scale up slightly as requested */
    }

    /* Glide-up when closing: the base state should be slightly higher */
    /* When is-expanded class is removed, it transitions back to this state */
    .card-detail-view {
        transform: translate(-50%, -60%) !important;
        /* Moves up and fades out */
    }

    .detail-content {
        padding: 2.5rem 1.5rem 1rem;
    }

    .detail-content h3 {
        font-size: 1.8rem;
    }

    .detail-media {
        height: auto;
        aspect-ratio: 1200 / 600;
        margin: 0 1.5rem 1rem;
        width: calc(100% - 3rem);
        border-radius: 18px;
    }

    .detail-close {
        align-self: center;
        /* Center button on mobile */
        margin: 0 1.5rem 2rem;
    }
}

/* Contact Form Animation */
.contact-form-container.reveal-cinematic {
    transition-delay: 0.2s;
}

.fade-in {
    animation: fadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Showcase Slider */
.showcase-section {
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
}

.slider-viewport {
    overflow: hidden;
    flex-grow: 1;
    border-radius: 20px;
}

.slider-track {
    display: flex;
    gap: 30px;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-item {
    min-width: 100%;
}

.slider-card {
    display: flex;
    width: 100%;
    height: 450px;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-primary);
    overflow: hidden;
    transform: translateZ(0);
}

.dashboard-preview {
    flex: 1.5;
    height: 100%;
    position: relative;
    border-right: 1px solid var(--glass-border);
    overflow: hidden;
    background: #000;
    border-radius: 20px 0 0 20px;
    transform: translateZ(0);
}

.dashboard-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.slider-btn {
    background: transparent;
    border: 2px solid #0071e3;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #0071e3;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 2rem;
    position: relative;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.15);
    /* Sleek light mode gray marker */
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: rgba(0, 0, 0, 0.3);
}

/* The active indicator that stretches like bubble gum */
.dot-active-indicator {
    position: absolute;
    height: 8px;
    width: 8px;
    background: #0071e3;
    /* Apple premium blue */
    border-radius: 4px;
    left: 0;
    transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

/* 3D Interactive Business Card Room */
.business-card-room {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem;
}

.room-container {
    width: 100%;
    max-width: 900px;
    height: 500px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.02), 0 20px 40px rgba(0, 0, 0, 0.05);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.tilt-card {
    width: 100%;
    max-width: 400px;
    height: 250px;
    border-radius: 20px;
    transform-style: preserve-3d;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    will-change: transform;
    background: transparent;
    border: none;
    box-shadow: none;
}

.card-inner {
    padding: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
}

.card-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #000000;
}

.card-title {
    color: var(--blob-cyan);
    font-size: 1.2rem;
}

.flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.flipper.is-flipped {
    transform: rotateY(180deg) !important;
}

.card-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border-radius: 20px;
}

.tilt-card:hover .card-glow {
    opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .slider-container {
        position: relative;
    }

    .slider-card {
        flex-direction: column;
        height: auto;
    }

    .dashboard-preview {
        flex: none;
        height: 250px;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        border-radius: 20px 20px 0 0;
    }

    .dashboard-content {
        flex: none;
        width: 100%;
        padding: 2rem 1.5rem;
        text-align: center;
        align-items: center;
    }

    .slider-btn {
        position: absolute;
        top: 125px;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        background: rgba(255, 255, 255, 0.2);
        z-index: 10;
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }

    .room-container {
        height: auto;
        padding: 3rem 1.5rem;
    }

    .tilt-card {
        max-width: 100%;
    }

    .card-name {
        font-size: 2rem;
    }

    .contact-form {
        padding: 0 10px;
    }

    #contact {
        padding: 30px 20px !important;
        box-sizing: border-box;
    }

    .showcase-section,
    .business-card-room {
        padding: 4rem 1rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .nav-container {
        padding: 0 1.2rem;
    }

    .nav-links {
        gap: 0.8rem;
        /* Engere Abstände damit es 1zu1 nebeneinander passt */
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .logo {
        font-size: 0.95rem;
    }

    .hero {
        padding: 100px 1.5rem 160px;
        /* Puffer oben für Nav und unten für Footer */
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;

        /* 1zu1 zentriert wie beim PC */
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .hero-footer {
        position: absolute;
        /* Wie am PC absolut unten */
        bottom: 30px;
        gap: 1rem;
        flex-direction: row;
        /* Immer nebeneinander bleiben */
        flex-wrap: wrap;
    }

    /* Mobile Blob Optimierung */
    .blob {
        opacity: 0.8;
    }

    .blob-1 {
        width: 300px;
        height: 300px;
        top: -5%;
        left: -10%;
    }

    .blob-2 {
        width: 320px;
        height: 320px;
        bottom: -5%;
        right: -10%;
    }

    .blob-3 {
        width: 250px;
        height: 250px;
    }
}
