/* ============================================================================
   FABLETRACK LANDING PAGE - Styles
   ============================================================================ */

/* ----------------------------------------------------------------------------
   Local Fonts
   ---------------------------------------------------------------------------- */
@font-face {
    font-family: 'Cinzel';
    src: url('../fonts/Cinzel-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Sans 3';
    src: url('../fonts/SourceSans3-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 600;
    font-style: normal;
    font-display: swap;
}

/* ----------------------------------------------------------------------------
   CSS Variables
   ---------------------------------------------------------------------------- */
:root {
    /* Colors - Background */
    --color-bg-dark: #0f1419;
    --color-bg-card: #1a1f2e;
    --color-bg-elevated: #232936;
    --color-border: #2d3548;
    
    /* Colors - Text */
    --color-text: #e8eaed;
    --color-text-muted: #9ca3af;
    
    /* Colors - Accent */
    --color-accent-gold: #f5c842;
    --color-accent-purple: #a855f7;
    --color-accent-cyan: #22d3ee;
    --color-accent-green: #4ade80;
    
    /* Typography */
    --font-display: 'Cinzel', serif;
    --font-body: 'Source Sans 3', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 5rem;
    
    /* Layout */
    --max-width: 1200px;
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
}

/* Subtle background texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(ellipse at 20% 20%, rgba(168, 85, 247, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(245, 200, 66, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ----------------------------------------------------------------------------
   Navigation - Großes Logo (200px)
   ---------------------------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-xs) var(--spacing-lg);
    background: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-mascot {
    width: 200px;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.logo:hover .logo-mascot {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* ----------------------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, #e5a820 100%);
    color: var(--color-bg-dark);
    box-shadow: 0 4px 20px rgba(245, 200, 66, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(245, 200, 66, 0.4);
}

.btn-secondary {
    background: var(--color-bg-elevated);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-card);
    border-color: var(--color-accent-gold);
}

/* ----------------------------------------------------------------------------
   Floating Companions - Animated Design Elements
   ---------------------------------------------------------------------------- */
.companion-float {
    position: absolute;
    z-index: 5;
    pointer-events: none;
}

.companion-float img {
    width: 100%;
    height: auto;
    opacity: 0.9;
}

/* Hero Companions */
.companion-hero-1 {
    width: 120px;
    top: 180px;
    left: 5%;
    animation: floatBounce 4s ease-in-out infinite;
}

.companion-hero-2 {
    width: 100px;
    bottom: 15%;
    right: 3%;
    animation: floatRotate 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Features Companions */
.companion-features-1 {
    width: 130px;
    top: 100px;
    right: 5%;
    animation: floatBounce 4.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.companion-features-2 {
    width: 100px;
    bottom: 80px;
    left: 3%;
    animation: floatSway 5s ease-in-out infinite;
}

/* Preview Companion */
.companion-preview-1 {
    width: 140px;
    top: 50px;
    right: 8%;
    animation: floatRotate 5s ease-in-out infinite;
    animation-delay: 0.3s;
}

/* FAQ Companion */
.companion-faq-1 {
    width: 100px;
    top: 120px;
    left: 5%;
    animation: floatBounce 4s ease-in-out infinite;
    animation-delay: 0.8s;
}

/* CTA Companions */
.companion-cta-1 {
    width: 120px;
    top: 30%;
    left: 8%;
    animation: floatSway 4.5s ease-in-out infinite;
}

.companion-cta-2 {
    width: 100px;
    top: 40%;
    right: 8%;
    animation: floatBounce 5s ease-in-out infinite;
    animation-delay: 1.2s;
}

/* Companion Animations */
@keyframes floatBounce {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% {
        transform: translateY(-12px) rotate(2deg);
    }
    50% { 
        transform: translateY(-20px) rotate(0deg); 
    }
    75% {
        transform: translateY(-12px) rotate(-2deg);
    }
}

@keyframes floatRotate {
    0%, 100% { 
        transform: translateY(0) rotate(-5deg); 
    }
    50% { 
        transform: translateY(-15px) rotate(5deg); 
    }
}

@keyframes floatSway {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
    }
    25% {
        transform: translate(5px, -10px) rotate(3deg);
    }
    50% { 
        transform: translate(0, -18px) rotate(0deg); 
    }
    75% {
        transform: translate(-5px, -10px) rotate(-3deg);
    }
}

/* ----------------------------------------------------------------------------
   Hero Section
   ---------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(120px + var(--spacing-2xl)) var(--spacing-lg) var(--spacing-2xl);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.4rem 1rem;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent-purple);
    margin-bottom: var(--spacing-md);
}

.hero-badge::before {
    content: '✨';
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent-gold);
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-mockup {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: visible;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-mockup > img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

/* ----------------------------------------------------------------------------
   Mascot "Sitting" Styles - OHNE Schatten
   ---------------------------------------------------------------------------- */

/* Hero: Mascot sitzt auf dem Screenshot */
.mascot-sitting {
    position: absolute;
    width: 160px;
    right: 60px;
    bottom: 100%;
    z-index: 10;
    /* Kein drop-shadow */
}

.mascot-sitting img {
    width: 100%;
    height: auto;
    display: block;
}

/* Feature Card: Mascot sitzt auf der Karte */
.mascot-sitting-card {
    position: absolute;
    width: 110px;
    right: 20px;
    bottom: 100%;
    z-index: 10;
    /* Kein drop-shadow */
}

.mascot-sitting-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA: Mascot sitzt auf der Box */
.mascot-sitting-cta {
    position: absolute;
    width: 200px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%;
    z-index: 10;
    /* Kein drop-shadow */
}

.mascot-sitting-cta img {
    width: 100%;
    height: auto;
    display: block;
}

/* ----------------------------------------------------------------------------
   Section Styles (shared)
   ---------------------------------------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ----------------------------------------------------------------------------
   Features Section
   ---------------------------------------------------------------------------- */
.features {
    padding: var(--spacing-2xl) var(--spacing-lg);
    padding-top: calc(var(--spacing-2xl) + 60px);
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.features-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card-mascot {
    position: relative;
    overflow: visible;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(245, 200, 66, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ----------------------------------------------------------------------------
   Preview Section
   ---------------------------------------------------------------------------- */
.preview {
    padding: var(--spacing-2xl) var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.preview-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.preview-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xl);
}

.preview-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.preview-tab:hover {
    background: var(--color-bg-card);
    color: var(--color-text);
}

.preview-tab.active {
    background: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
    color: var(--color-bg-dark);
}

.preview-showcase {
    position: relative;
}

.preview-screen {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 
        0 25px 80px -20px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    position: relative;
}

.preview-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

.preview-caption {
    text-align: center;
    margin-top: var(--spacing-lg);
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ----------------------------------------------------------------------------
   FAQ Section
   ---------------------------------------------------------------------------- */
.faq {
    padding: var(--spacing-2xl) var(--spacing-lg);
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.faq-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.faq-item {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--color-accent-gold);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-accent-gold);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 var(--spacing-lg) var(--spacing-md);
    color: var(--color-text-muted);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ----------------------------------------------------------------------------
   CTA Section
   ---------------------------------------------------------------------------- */
.cta {
    padding: var(--spacing-2xl) var(--spacing-lg);
    padding-top: calc(var(--spacing-2xl) + 100px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.cta-box {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--spacing-2xl) var(--spacing-xl);
    position: relative;
    overflow: visible;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

/* ----------------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------------- */
.footer {
    padding: var(--spacing-lg) var(--spacing-lg);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ----------------------------------------------------------------------------
   Animations
   ---------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------------------------------------------
   Responsive - Tablet
   ---------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        max-width: 800px;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
        margin: 0 auto;
        margin-top: 80px;
    }
    
    .mascot-sitting {
        width: 130px;
        right: 50px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .feature-card-mascot {
        margin-top: 60px;
    }
    
    .mascot-sitting-card {
        width: 90px;
    }
    
    .nav-links {
        display: none;
    }
    
    .logo-mascot {
        width: 160px;
    }
    
    .cta-inner {
        margin-top: 50px;
    }
    
    .mascot-sitting-cta {
        width: 160px;
    }
    
    /* Hide some companions on tablet */
    .companion-hero-1,
    .companion-features-2,
    .companion-cta-2 {
        display: none;
    }
    
    .companion-float {
        opacity: 0.7;
    }
}

/* ----------------------------------------------------------------------------
   Responsive - Mobile
   ---------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .hero {
        padding-top: calc(100px + var(--spacing-xl));
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .preview-tabs {
        flex-wrap: wrap;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .mascot-sitting {
        width: 100px;
        right: 30px;
    }
    
    .mascot-sitting-card {
        width: 70px;
        right: 15px;
    }
    
    .mascot-sitting-cta {
        width: 130px;
    }
    
    .cta-box {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .logo-mascot {
        width: 120px;
    }
    
    .features {
        padding-top: calc(var(--spacing-2xl) + 40px);
    }
    
    .cta {
        padding-top: calc(var(--spacing-2xl) + 70px);
    }
    
    /* Hide all companions on mobile */
    .companion-float {
        display: none;
    }
}
