/* ============================================
   HOMEPAGE - APPLE STYLE
   ============================================ */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 32px 100px;
    background: linear-gradient(180deg,
        var(--bg-primary) 0%,
        var(--bg-secondary) 50%,
        var(--bg-primary) 100%
    );
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%,
        rgba(124, 58, 237, 0.15) 0%,
        transparent 50%
    );
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

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

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 40px;
    background: linear-gradient(135deg,
        var(--text-primary) 0%,
        var(--accent) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
    opacity: 0;
}

.hero-description {
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 74px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Visual Cards */
.hero-visual {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
}

.visual-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.visual-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.2);
}

.visual-card i {
    font-size: 28px;
    color: var(--accent);
}

.visual-card span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Features Section */
.features {
    padding: 120px 32px;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-primary);
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.section-description {
    font-size: clamp(17px, 2vw, 21px);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 32px;
    transition: var(--transition-smooth);
    opacity: 0;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

.feature-icon i {
    font-size: 28px;
    color: white;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

.feature-list i {
    color: var(--accent);
    font-size: 14px;
}

/* Info Section */
.info-section {
    padding: 120px 32px;
    background: var(--bg-primary);
    width: 100%;
}

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

.info-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.info-header h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text-primary);
    line-height: 1.2;
}

.info-header p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.info-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 0 auto 80px;
    padding: 48px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    max-width: 900px;
}

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

.stat-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
    line-height: 1;
}

.stat-label {
    font-size: 15px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

/* Pillar Display */
.pillar-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

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

/* Flip Card Container */
.pillar-flip-container {
    perspective: 1000px;
    height: 280px;
}

.flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

/* Flip animation für Desktop (hover) und Mobile (active class) */
.flip-card:hover .flip-card-inner,
.flip-card.active .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flip-card-front {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 32px 24px;
    text-align: center;
}

.flip-card-back {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--accent);
    transform: rotateY(180deg);
    padding: 24px;
}

.pillar {
    background: transparent;
    border: none;
    padding: 0;
    text-align: center;
    transition: none;
}

.pillar:hover {
    background: transparent;
    border: none;
    transform: none;
}

.pillar-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.pillar-icon i {
    font-size: 28px;
    color: white;
}

.pillar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pillar-desc {
    font-size: 15px;
    color: var(--text-secondary);
}

.pillar-back-content {
    text-align: center;
    color: var(--text-primary);
}

.pillar-back-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
}

.pillar-back-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 980px) {
    .info-stats {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 32px;
    }

    .stat-value {
        font-size: 42px;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 90vh;
        padding: 100px 24px 60px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .visual-card {
        flex: 1 1 100%;
    }

    .features {
        padding: 80px 24px;
    }

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

    .info-section {
        padding: 80px 24px;
    }

    .info-stats {
        padding: 32px 24px;
    }

    .pillar-display {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pillar-flip-container {
        height: 320px;
        max-width: 100%;
    }

    .pillar-back-content p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Verbesserte Touch-Erkennung auf mobilen Geräten */
    .flip-card {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
    }

    /* Auf mobilen Geräten wird hover deaktiviert, nur active funktioniert */
    .flip-card:hover .flip-card-inner {
        transform: none;
    }

    /* Active Klasse für Touch-Geräte */
    .flip-card.active .flip-card-inner {
        transform: rotateY(180deg);
    }

    .flip-card-front,
    .flip-card-back {
        padding: 24px 20px;
    }
}

/* iPad und Tablets (zwischen 641px und 980px) */
@media (min-width: 641px) and (max-width: 980px) {
    .pillar-display {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pillar-flip-container {
        height: 300px;
    }
}

/* Scroll reveal */
.fade-in-up,
.fade-in {
    opacity: 1 !important;
}

/* ============================================
   MOBILE RECOMMENDATION BANNER
   ============================================ */
.mobile-recommendation-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(17, 24, 39, 0.7));
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeInBanner 0.3s ease-in-out;
    padding: 20px;
}

.mobile-recommendation-banner.show {
    display: flex;
}

.banner-content {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(30, 20, 50, 0.95));
    border: 2px solid rgba(124, 58, 237, 0.5);
    border-radius: 20px;
    padding: 32px 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.4), 0 0 80px rgba(124, 58, 237, 0.2);
    animation: slideInBanner 0.4s ease-out;
}

.banner-icon {
    width: 64px;
    height: 64px;
    background: rgba(124, 58, 237, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.banner-icon i {
    font-size: 32px;
    color: var(--accent);
}

.banner-text {
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 24px 0;
    font-weight: 500;
}

.banner-close {
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.4);
    color: var(--accent);
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    min-width: 120px;
}

.banner-close:hover {
    background: rgba(124, 58, 237, 0.3);
    border-color: rgba(124, 58, 237, 0.6);
    transform: translateY(-2px);
}

.banner-close i {
    font-size: 14px;
}

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

@keyframes slideInBanner {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Hide banner on larger screens */
@media (min-width: 769px) {
    .mobile-recommendation-banner {
        display: none !important;
    }
}

/* Compact banner for small phones */
@media (max-width: 480px) {
    .banner-content {
        padding: 24px 20px;
        max-width: 340px;
    }

    .banner-icon {
        width: 56px;
        height: 56px;
    }

    .banner-icon i {
        font-size: 28px;
    }

    .banner-text {
        font-size: 15px;
        margin: 0 0 20px 0;
    }

    .banner-close {
        padding: 9px 20px;
        font-size: 13px;
        min-width: 110px;
    }
}
