/* --- Globale Stile & Farbpalette --- */
:root {
    --primary-color: #0A192F; /* Dunkelblau */
    --secondary-color: #CCD6F6; /* Helles Graublau */
    --accent-color: #64FFDA; /* Mintgrün */
    --background-color: #FFFFFF; /* Weiß */
    --text-color: #333;
    --light-text-color: #f8f9fa;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
}

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Navigation --- */
.navbar {
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease-in-out;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar .navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--light-text-color);
    font-size: 1.5rem; /* Increased font size */
}

.navbar .logo {
    height: 50px; /* Increased logo height */
    margin-right: 15px; /* Increased margin */
}

.navbar .nav-link {
    color: var(--secondary-color);
    transition: color 0.3s;
    font-family: 'Poppins', sans-serif; /* Added font */
    font-size: 1rem; /* Added font size */
}

.navbar .nav-link:hover, .navbar .nav-link.active {
    color: var(--accent-color);
}

/* --- Hero Section --- */
.hero-section {
    position: relative; /* Needed for video positioning */
    color: var(--light-text-color);
    height: 100vh;
    padding: 0 15px;
    overflow: hidden; /* Hide video overflow */
}

.hero-video-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    z-index: -2;
    transform: translate(-50%, -50%);
}

#heroVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.7);
    z-index: -1;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--light-text-color);
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 1rem auto 2rem;
}

.btn-cta {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 5px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-cta:hover {
    background-color: var(--light-text-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.2);
}
/* --- Interactive Readiness Animation --- */
.readiness-animation {
    margin: 3rem 0 2rem 0;
    position: relative;
    z-index: 5;
}

.readiness-container {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 3rem 2rem;
    text-align: center;
    overflow: hidden;
}

.readiness-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(100, 255, 218, 0.3);
}

.particle-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: particleFloat 8s infinite linear;
    box-shadow: 0 0 10px var(--accent-color);
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 6s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 8s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; animation-duration: 7s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; animation-duration: 9s; }
.particle:nth-child(5) { left: 60%; animation-delay: 1.5s; animation-duration: 6.5s; }
.particle:nth-child(6) { left: 70%; animation-delay: 2.5s; animation-duration: 7.5s; }
.particle:nth-child(7) { left: 80%; animation-delay: 4s; animation-duration: 8.5s; }
.particle:nth-child(8) { left: 90%; animation-delay: 0.5s; animation-duration: 9.5s; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

.glow-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: glowPulse 3s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes glowPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

.readiness-text {
    position: relative;
    z-index: 10;
    font-size: 1.3rem;
    color: white;
    min-height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.typing-text {
    font-weight: 500;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.cursor {
    animation: blink 1s infinite;
    font-weight: bold;
    color: var(--accent-color);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
/* --- Model Earnings Calculator --- */
.earnings-calculator {
    margin: 3rem 0 2rem 0;
    position: relative;
    z-index: 5;
}

.calculator-container {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 3rem 2rem;
    color: white;
}

.calculator-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 0.5rem;
}

.calculator-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.calculator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
    font-size: 1.1rem;
}

.input-group input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.input-group input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

.input-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.slider-container {
    margin-top: 1rem;
}

.custom-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.custom-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.platform-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
}

.results-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.annual-revenue h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.revenue-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(100, 255, 218, 0.3);
}

.revenue-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.breakdown {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-bottom: 2rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.breakdown-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.breakdown-value {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.cta-section h5 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.calc-cta-btn {
    background: linear-gradient(135deg, var(--accent-color), #4ecdc4);
    color: var(--primary-color);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1.5rem;
}

.calc-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 255, 218, 0.4);
}

.trust-indicators {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.stars {
    color: #ffd700;
    font-size: 1.2rem;
}

.rating-text {
    color: white;
    font-weight: 600;
}

.trust-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .platform-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .revenue-amount {
        font-size: 2.5rem;
    }
}

/* --- Services Section --- */
#services {
    background: rgba(10, 25, 47, 0.85);
    position: relative;
    color: white;
}

#services .section-title {
    color: white;
}

#services h3 {
    color: white;
}

#services p {
    color: rgba(255, 255, 255, 0.9);
}

.service-card {
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: none;
}

.service-card .icon-3d {
    height: 80px;
    width: 80px;
    margin: 0 auto;
    perspective: 1000px;
}

.service-card .cube {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1s ease-in-out;
}

@keyframes flipToBottom {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    25% {
        transform: rotateY(180deg) rotateX(-180deg);
    }
    50% {
        transform: rotateY(360deg) rotateX(-360deg);
    }
    75% {
        transform: rotateY(540deg) rotateX(-450deg);
    }
    100% {
        transform: rotateY(720deg) rotateX(-450deg);
    }
}

@keyframes flipToFront {
    0% {
        transform: rotateY(720deg) rotateX(-450deg);
    }
    25% {
        transform: rotateY(540deg) rotateX(-270deg);
    }
    50% {
        transform: rotateY(360deg) rotateX(-180deg);
    }
    75% {
        transform: rotateY(180deg) rotateX(-90deg);
    }
    100% {
        transform: rotateY(0deg) rotateX(0deg);
    }
}

.service-card .cube.flip-to-bottom {
    animation: flipToBottom 1.2s ease-in-out forwards;
}

.service-card .cube.flip-to-front {
    animation: flipToFront 1.2s ease-in-out forwards;
}

.service-card .face {
    position: absolute;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4));
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.service-card .face.front {
    transform: rotateY(0deg) translateZ(40px);
}

.service-card .face.back {
    transform: rotateY(180deg) translateZ(40px);
}

.service-card .face.right {
    transform: rotateY(90deg) translateZ(40px);
}

.service-card .face.left {
    transform: rotateY(-90deg) translateZ(40px);
}

.service-card .face.top {
    transform: rotateX(90deg) translateZ(40px);
}

.service-card .face.bottom {
    transform: rotateX(-90deg) translateZ(40px);
}

/* M's auf Würfeln schwarz machen */
.service-card .face.back,
.service-card .face.right,
.service-card .face.left,
.service-card .face.top,
.service-card .face.bottom {
    color: black;
    font-weight: bold;
}

/* --- 3D Logo Model --- */
.logo-3d-scene {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    perspective: 1200px;
    height: 150px;
}

.logo-3d-model {
    position: relative;
    width: 140px;
    height: 100px;
    transform-style: preserve-3d;
    animation: logoSpin 12s infinite linear;
}

@keyframes logoSpin {
    from {
        transform: rotateY(0deg) rotateX(10deg);
    }
    to {
        transform: rotateY(360deg) rotateX(10deg);
    }
}

.logo-side {
    position: absolute;
    width: 140px;
    height: 100px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.logo-side.logo-front {
    transform: translateZ(20px);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-color);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-side.logo-back {
    transform: translateZ(-20px) rotateY(180deg);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-color);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-side.logo-top {
    transform: rotateX(90deg) translateZ(50px);
    background: linear-gradient(135deg, var(--accent-color), rgba(100, 255, 218, 0.7));
    border: 2px solid var(--primary-color);
}

.logo-side.logo-bottom {
    transform: rotateX(-90deg) translateZ(50px);
    background: linear-gradient(135deg, var(--accent-color), rgba(100, 255, 218, 0.7));
    border: 2px solid var(--primary-color);
}

.logo-side.logo-left {
    transform: rotateY(-90deg) translateZ(70px);
    background: linear-gradient(135deg, var(--primary-color), rgba(10, 25, 47, 0.8));
    width: 40px;
}

.logo-side.logo-right {
    transform: rotateY(90deg) translateZ(70px);
    background: linear-gradient(135deg, var(--primary-color), rgba(10, 25, 47, 0.8));
    width: 40px;
}

.logo-image {
    width: 100%;
    height: auto;
    max-width: 120px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* --- 3D Logo (funktionierend) --- */
.logo-3d-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    perspective: 1000px;
    height: 150px;
}

.logo-3d-box {
    position: relative;
    width: 150px;
    height: 100px;
    transform-style: preserve-3d;
    animation: logoRotate3D 8s infinite linear;
}

@keyframes logoRotate3D {
    from {
        transform: rotateY(0deg) rotateX(5deg);
    }
    to {
        transform: rotateY(360deg) rotateX(5deg);
    }
}

.logo-face {
    position: absolute;
    width: 150px;
    height: 100px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.logo-face.logo-front {
    transform: translateZ(25px);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-color);
    padding: 15px;
}

.logo-face.logo-back {
    transform: translateZ(-25px) rotateY(180deg);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-color);
    padding: 15px;
}

.logo-face.logo-top {
    transform: rotateX(90deg) translateZ(50px);
    background: linear-gradient(135deg, var(--accent-color), rgba(100, 255, 218, 0.8));
    border: 2px solid var(--primary-color);
}

.logo-face.logo-bottom {
    transform: rotateX(-90deg) translateZ(50px);
    background: linear-gradient(135deg, var(--accent-color), rgba(100, 255, 218, 0.8));
    border: 2px solid var(--primary-color);
}

.logo-face.logo-left {
    transform: rotateY(-90deg) translateZ(75px);
    background: linear-gradient(135deg, var(--primary-color), rgba(10, 25, 47, 0.9));
    width: 50px;
}

.logo-face.logo-right {
    transform: rotateY(90deg) translateZ(75px);
    background: linear-gradient(135deg, var(--primary-color), rgba(10, 25, 47, 0.9));
    width: 50px;
}

.logo-face img {
    width: 100%;
    height: auto;
    max-width: 120px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

/* --- Platforms Section --- */
.platforms-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 80px;
    height: 280px;
}

.platforms-container {
    position: relative;
    width: 100%;
    height: 200px;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25%;
    max-width: 200px;
    transform-origin: center center;
    transform-style: preserve-3d;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-left: -12.5%;
    margin-top: -80px;
}

.platform-slide.active {
    transform: translateZ(100px) rotateY(0deg) scale(1.1);
    opacity: 1;
    z-index: 10;
}

.platform-slide.next {
    transform: translateX(120%) translateZ(50px) rotateY(-25deg) scale(0.9);
    opacity: 1;
    z-index: 5;
}

.platform-slide.prev {
    transform: translateX(-120%) translateZ(50px) rotateY(25deg) scale(0.9);
    opacity: 1;
    z-index: 5;
}

.platform-slide.far-next {
    transform: translateX(60%) translateZ(-50px) rotateY(-45deg) scale(0.7);
    opacity: 0.6;
    z-index: 2;
}

.platform-slide.far-prev {
    transform: translateX(-60%) translateZ(-50px) rotateY(45deg) scale(0.7);
    opacity: 0.6;
    z-index: 2;
}

.platform-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.85));
    padding: 2rem 1.5rem;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.platform-slide.active .platform-content {
    cursor: default;
}

.platform-slide:not(.active) .platform-content:hover {
    transform: translateY(-5px);
}

.platform-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.platform-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.platforms-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 15;
}

.platforms-nav .nav-btn {
    pointer-events: all;
}

.platforms-dots {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 10px;
    position: relative;
    z-index: 10;
    padding-bottom: 20px;
}

/* --- Why Us Section --- */
#why-us ul {
    padding-left: 1.5rem;
}

#why-us li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* --- Portfolio Section --- */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.portfolio-item img {
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.7);
    color: var(--light-text-color);
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-caption {
    transform: translateY(0);
}

/* --- Testimonials Section - Compact --- */
#testimonials {
    padding: 30px 0 60px 0 !important;
    margin-bottom: 10px;
}

.testimonials-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 80px;
    height: 320px;
}

.testimonials-container {
    position: relative;
    height: 350px;
    perspective: 1200px;
    overflow: visible; /* Schatten nicht abschneiden */
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 85%;
    max-width: 650px;
    transform-origin: center center;
    transform-style: preserve-3d;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-left: -42.5%;
    margin-top: -90px;
}

.testimonial-slide.active {
    transform: translateZ(250px) rotateY(0deg) scale(1);
    opacity: 1;
    z-index: 10;
}

.testimonial-slide.next {
    transform: translateZ(150px) rotateY(-45deg) translateX(200px) scale(0.8);
    opacity: 0.6;
    z-index: 5;
}

.testimonial-slide.prev {
    transform: translateZ(150px) rotateY(45deg) translateX(-200px) scale(0.8);
    opacity: 0.6;
    z-index: 5;
}

.testimonial-slide.far-next {
    transform: translateZ(50px) rotateY(-80deg) translateX(300px) scale(0.6);
    opacity: 0.3;
    z-index: 2;
}

.testimonial-slide.far-prev {
    transform: translateZ(50px) rotateY(80deg) translateX(-300px) scale(0.6);
    opacity: 0.3;
    z-index: 2;
}

.testimonial-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.85));
    padding: 1.8rem 2.2rem;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-slide.active .testimonial-content {
    cursor: default;
}

.testimonial-slide:not(.active) .testimonial-content:hover {
    transform: translateY(-5px);
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.5;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1rem;
    quotes: '"' '"';
}

.testimonial-content p::before {
    content: open-quote;
    font-size: 2rem;
    color: var(--accent-color);
    vertical-align: top;
    line-height: 0;
}

.testimonial-content p::after {
    content: close-quote;
    font-size: 2rem;
    color: var(--accent-color);
    vertical-align: top;
    line-height: 0;
}

.author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.testimonials-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 15;
}

.nav-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(10, 25, 47, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.nav-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(100, 255, 218, 0.4);
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    gap: 10px;
    position: relative;
    z-index: 10;
    padding-bottom: 20px;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: rgba(10, 25, 47, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.dot.active {
    background-color: var(--accent-color);
    transform: scale(1.3);
    border-color: var(--primary-color);
}

.dot:hover:not(.active) {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

/* --- Contact Section --- */
.form-control {
    border-radius: 5px;
    padding: 12px;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(100, 255, 218, 0.25);
}

.btn-cta-dark {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 5px;
    text-transform: uppercase;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
}

.btn-cta-dark:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

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

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--accent-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-subheadline {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .btn-cta {
        font-size: 1.1rem;
        padding: 15px 35px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .service-card .icon-3d {
        height: 70px;
        width: 70px;
    }
    
    .service-card .face {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.5));
        border: 2px solid rgba(255, 255, 255, 0.7);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .portfolio-item {
        margin-bottom: 1.5rem;
    }
    
    .testimonials-wrapper {
        padding: 0 40px;
    }
    
    .testimonials-container {
        height: 250px;
        perspective: 800px;
    }
    
    .testimonial-slide.active {
        transform: translateZ(150px) rotateY(0deg);
    }
    
    .testimonial-slide.next {
        transform: translateZ(75px) rotateY(-25deg) translateX(50%);
        opacity: 0.5;
    }
    
    .testimonial-slide.prev {
        transform: translateZ(75px) rotateY(25deg) translateX(-50%);
        opacity: 0.5;
    }
    
    .testimonial-content {
        padding: 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .author {
        font-size: 0.9rem;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .dot {
        height: 10px;
        width: 10px;
    }
    
    .form-control {
        font-size: 1rem;
        padding: 15px;
    }
    
    .btn-cta-dark {
        font-size: 1.1rem;
        padding: 15px 40px;
        width: 100%;
        margin-top: 1rem;
    }
    
    .navbar .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar .logo {
        height: 35px;
        margin-right: 10px;
    }
    
    #why-us li {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-subheadline {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card .icon-3d {
        height: 60px;
        width: 60px;
    }
    
    .service-card .face {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.45));
        border: 2px solid rgba(255, 255, 255, 0.65);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .testimonial-card {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* --- Scroll-triggered animations --- */
.service-card {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Mobile-only scroll animations */
@media (max-width: 768px) {
    .service-card {
        opacity: 0;
        transform: translateY(50px);
    }
}

.portfolio-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.portfolio-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-card.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* --- Touch-friendly hover effects for mobile --- */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }
    
    .portfolio-item:hover img {
        transform: none;
    }
    
    .portfolio-item:hover .portfolio-caption {
        transform: translateY(0);
    }
    
    .portfolio-caption {
        transform: translateY(0);
        background: rgba(10, 25, 47, 0.8);
    }
}

/* --- Einkommenrechner --- */
#earnings-calculator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

#earnings-calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.earnings-calculator {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.earnings-calculator .section-title {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.earnings-calculator .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 0;
}

.calculator-content {
    margin-top: 2rem;
}

.calculator-inputs .form-label {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.calculator-input {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.calculator-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(100, 255, 218, 0.25);
    color: #fff;
}

.calculator-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.calculator-btn {
    background: linear-gradient(135deg, var(--accent-color), #4ecdc4);
    border: none;
    border-radius: 12px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.875rem 2rem;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

.calculator-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 255, 218, 0.4);
    background: linear-gradient(135deg, #4ecdc4, var(--accent-color));
}

.calculator-results {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 300px;
}

.result-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.result-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.result-amount {
    color: var(--accent-color);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.result-breakdown {
    margin-bottom: 1.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.breakdown-value {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

.result-note {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 1rem;
}

/* Responsive Design für Rechner */
@media (max-width: 768px) {
    .earnings-calculator {
        padding: 2rem 1.5rem;
    }
    
    .earnings-calculator .section-title {
        font-size: 2rem;
    }
    
    .result-amount {
        font-size: 2.5rem;
    }
    
    .calculator-results {
        margin-top: 2rem;
        min-height: auto;
    }
}
