/* ============================================
   KAPY DESIGN SYSTEM - Premium & Seriös
   ============================================ */

:root {
    /* ========== DESIGN TOKENS ========== */
    
    /* Radii - Kontrolliert, nicht verspielt */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 10px;
    
    /* Spacing - Konsistentes System */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 80px;
    
    /* Max Content Width */
    --max-width: 1140px;
    --max-width-narrow: 720px;
    
    /* Primary Blue */
    --kapi-orange: #ea580c;
    --kapi-orange-light: #f97316;
    --kapi-orange-dark: #c2410c;
    --kapi-orange-ultralight: #fff7ed;

    /* Neutrals - Subtiler */
    --kapi-bg: #FFFFFF;
    --kapi-bg-secondary: #FAFAFA;
    --kapi-bg-tertiary: #F5F5F5;
    --kapi-text: #111827;
    --kapi-text-secondary: #4B5563;
    --kapi-text-muted: #9CA3AF;
    --kapi-border: #E5E7EB;
    --kapi-border-light: #F3F4F6;

    /* Accents */
    --kapi-success: #059669;
    --kapi-warning: #D97706;
    --kapi-error: #DC2626;

    /* Shadows - Minimal & Subtil */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-nav: 0 1px 3px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--kapi-bg);
    color: var(--kapi-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== TOPBAR ========== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: 36px;
    background: var(--kapi-text);
    color: #FFFFFF;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.topbar-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.topbar-left a,
.topbar-left span {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.topbar-left a:hover {
    color: #FFFFFF;
}

.topbar-left svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.topbar-right a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.topbar-right a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.topbar-lang {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: var(--space-sm);
    padding-left: var(--space-md);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.topbar-lang a {
    padding: 4px 8px;
    font-weight: 500;
}

.topbar-lang a.active {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .topbar {
        display: none;
    }
}

/* ========== NAVIGATION - FLOATING APPLE STYLE ========== */
.nav {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 0;
    width: calc(100% - 80px);
    max-width: 1320px;
    height: 68px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px rgba(30, 64, 175, 0.04), 0 2px 8px rgba(0, 0, 0, 0.03);
}

.nav.scrolled {
    top: 48px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .nav {
        top: 12px;
        width: calc(100% - 24px);
        height: 56px;
        border-radius: 12px;
    }
    .nav.scrolled {
        top: 8px;
    }
}

.nav-inner {
    width: 100%;
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 968px) {
    .nav-menu { display: none; }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--kapi-text);
}

.nav-logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* Kapy Brand Logo Styles */
.kapy-brand {
    display: flex !important;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}

.kapy-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(37, 99, 235, 0.25));
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.kapy-brand:hover .kapy-icon {
    transform: scale(1.05) rotate(-3deg);
    filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.4));
}

.kapy-brand:active .kapy-icon {
    transform: scale(0.95);
}

.kapy-text {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
}

.footer .kapy-text {
    font-size: 1.5rem;
}

.nav-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-menu li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--kapi-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--kapi-orange);
}

.nav-menu a:active {
    transform: translateY(0) scale(0.98);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-actions .btn-primary {
    padding: 10px 22px;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: 10px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow:
        0 2px 8px rgba(37, 99, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(30, 64, 175, 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(30, 64, 175, 0.4);
}

.nav-actions .btn-primary:active {
    transform: translateY(0);
    box-shadow:
        0 2px 6px rgba(37, 99, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Mobile Menu Toggle Button */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
    position: relative;
    z-index: 1001;
}

.nav-mobile-toggle:hover {
    background: var(--kapi-bg-tertiary);
}

.nav-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--kapi-text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-mobile-toggle span:nth-child(1) {
    margin-bottom: 5px;
}

.nav-mobile-toggle span:nth-child(3) {
    margin-top: 5px;
}

.nav-mobile-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    margin-bottom: 0;
}

.nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    margin-top: 0;
}

@media (max-width: 968px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 90px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 24px);
        max-width: 400px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--kapi-border);
        border-radius: var(--radius-lg);
        padding: 16px;
        flex-direction: column;
        gap: 4px;
        box-shadow: var(--shadow-xl);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        width: 100%;
        padding: 14px 16px;
        justify-content: flex-start;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .nav-actions .btn-primary {
        display: none;
    }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
    background: var(--kapi-orange);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--kapi-orange-dark);
}

.btn-outline {
    background: transparent;
    color: var(--kapi-orange);
    border: 1.5px solid var(--kapi-orange);
}

.btn-outline:hover {
    background: var(--kapi-orange);
    color: #FFFFFF;
}

.btn-tertiary {
    background: transparent;
    color: var(--kapi-orange);
    padding: 14px 16px;
}

.btn-tertiary:hover {
    opacity: 0.7;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-white {
    background: #FFFFFF;
    color: var(--kapi-text);
}

.btn-white:hover {
    background: var(--kapi-bg-secondary);
}

.btn-outline-white {
    background: transparent;
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
}

/* ========== HERO SECTION ========== */
.hero {
    padding: 160px 2rem 80px;
    background: var(--gradient-subtle);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: var(--gradient-glow);
    pointer-events: none;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--kapi-text);
}

.hero h1 .highlight {
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--kapi-text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== SECTIONS ========== */
.section {
    padding: 100px 2rem;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--kapi-text);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--kapi-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== FEATURE CARDS ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #FFFFFF;
    border: 1px solid var(--kapi-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: border-color 0.2s ease;
}

.feature-card:hover {
    border-color: var(--kapi-orange-light);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--kapi-orange-ultralight);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--kapi-orange);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--kapi-text);
}

.feature-card p {
    color: var(--kapi-text-secondary);
    line-height: 1.7;
}

/* ========== PRICING ========== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: #FFFFFF;
    border: 1px solid var(--kapi-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    transition: border-color 0.2s ease;
}

.pricing-card.featured {
    border-color: var(--kapi-orange);
    box-shadow: var(--shadow-blue);
}

.pricing-card.featured::before {
    content: 'Beliebt';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--kapi-orange);
    color: #FFFFFF;
    padding: 4px 16px;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-card:hover {
    border-color: var(--kapi-orange-light);
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--kapi-orange);
    margin: 1rem 0;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--kapi-text-muted);
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--kapi-border-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--kapi-text-secondary);
}

.pricing-features li::before {
    content: '✓';
    color: var(--kapi-success);
    font-weight: 600;
}

/* ========== FOOTER ========== */
.footer {
    padding: 5rem 2rem 3rem;
    background: #FFFFFF;
    border-top: 1px solid var(--kapi-border);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--kapi-text-secondary);
    font-size: 0.95rem;
    margin-top: 1.25rem;
    max-width: 300px;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--kapi-text-muted);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.85rem;
}

.footer-col a {
    color: var(--kapi-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.footer-col a:hover {
    color: var(--kapi-orange);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--kapi-border);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--kapi-text-muted);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--kapi-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.footer-legal a:hover {
    color: var(--kapi-orange);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-brand {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ========== CONTENT PAGES ========== */
.content-page {
    padding: 160px 2rem 100px;
    min-height: 100vh;
}

.content-inner {
    max-width: 900px;
    margin: 0 auto;
}

.content-inner h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--kapi-text);
    letter-spacing: -0.03em;
}

.content-inner h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--kapi-text);
}

.content-inner p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--kapi-text-secondary);
}

.content-inner ul, .content-inner ol {
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
    color: var(--kapi-text-secondary);
}

.content-inner li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.content-inner a {
    color: var(--kapi-orange);
    text-decoration: none;
    font-weight: 500;
}

.content-inner a:hover {
    text-decoration: underline;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: var(--gradient-orange);
    padding: 80px 2rem;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-section .btn-white {
    font-size: 1rem;
    padding: 16px 32px;
}

/* ========== STATS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--kapi-orange);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--kapi-text-secondary);
    font-size: 1rem;
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
    background: #FFFFFF;
    border: 1px solid var(--kapi-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.testimonial-card p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--kapi-text);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    font-weight: 600;
    color: var(--kapi-text);
}

.testimonial-author-info span {
    font-size: 0.875rem;
    color: var(--kapi-text-muted);
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero {
        padding: 140px 1.5rem 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 60px 1.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .content-page {
        padding: 120px 1.5rem 60px;
    }

    .content-inner h1 {
        font-size: 2rem;
    }
}
