/* Reset and Base Styles */
:root {
    /* QRlinC Color Scheme - Blue Palette */
    --color-primary: #3C74A6;        /* Primary blue */
    --color-primary-dark: #224573;   /* Dark blue */
    --color-primary-light: #4B93BF;  /* Light blue */
    --color-accent: #77C3F2;         /* Accent blue */
    --color-accent-light: #91D7F2;   /* Light accent */

    /* Neutral Colors */
    --color-dark: #1f2937;
    --color-gray: #64748b;
    --color-light-gray: #e2e8f0;
    --color-bg: #f8fafc;
    --color-white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3C74A6 0%, #4B93BF 100%);
    --gradient-accent: linear-gradient(135deg, #4B93BF 0%, #77C3F2 100%);
    --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #e8f4fb 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-primary-dark);
    overflow-x: hidden;
}

/* Icons (self-hosted Font Awesome SVGs, see icons/LICENSE.txt) */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    vertical-align: -0.125em;
}

.icon-instagram { -webkit-mask-image: url('icons/instagram.svg'); mask-image: url('icons/instagram.svg'); }
.icon-apple { -webkit-mask-image: url('icons/apple.svg'); mask-image: url('icons/apple.svg'); }
.icon-google-play { -webkit-mask-image: url('icons/google-play.svg'); mask-image: url('icons/google-play.svg'); }
.icon-download { -webkit-mask-image: url('icons/download.svg'); mask-image: url('icons/download.svg'); }
.icon-play { -webkit-mask-image: url('icons/play.svg'); mask-image: url('icons/play.svg'); }
.icon-star { -webkit-mask-image: url('icons/star.svg'); mask-image: url('icons/star.svg'); }
.icon-qrcode { -webkit-mask-image: url('icons/qrcode.svg'); mask-image: url('icons/qrcode.svg'); }
.icon-shield-alt { -webkit-mask-image: url('icons/shield-alt.svg'); mask-image: url('icons/shield-alt.svg'); }
.icon-camera { -webkit-mask-image: url('icons/camera.svg'); mask-image: url('icons/camera.svg'); }
.icon-cloud { -webkit-mask-image: url('icons/cloud.svg'); mask-image: url('icons/cloud.svg'); }
.icon-bell { -webkit-mask-image: url('icons/bell.svg'); mask-image: url('icons/bell.svg'); }
.icon-lock { -webkit-mask-image: url('icons/lock.svg'); mask-image: url('icons/lock.svg'); }
.icon-arrow-right { -webkit-mask-image: url('icons/arrow-right.svg'); mask-image: url('icons/arrow-right.svg'); }
.icon-check-circle { -webkit-mask-image: url('icons/check-circle.svg'); mask-image: url('icons/check-circle.svg'); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    gap: 8px;
}

.logo {
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-primary-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(60, 116, 166, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(60, 116, 166, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--color-primary-dark);
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 25px 50px rgba(34, 69, 115, 0.3);
    margin: 0 auto;
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    border-radius: 20px;
    overflow: hidden;
}

.app-preview {
    padding: 20px;
    height: 100%;
}

.app-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.app-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.status-bar {
    height: 20px;
    background: var(--gradient-accent);
    border-radius: 10px;
    margin-bottom: 10px;
}

.app-header h3 {
    color: var(--color-primary);
    font-weight: 700;
}

.invoice-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.qr-code {
    width: 60px;
    height: 60px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f3f4f6"/><rect x="10" y="10" width="80" height="80" fill="none" stroke="%23374151" stroke-width="2"/><rect x="20" y="20" width="15" height="15" fill="%23374151"/><rect x="65" y="20" width="15" height="15" fill="%23374151"/><rect x="20" y="65" width="15" height="15" fill="%23374151"/></svg>');
    background-size: cover;
    border-radius: 8px;
}

.invoice-info h4 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 5px;
}

.invoice-info p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: white;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-primary-dark);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--color-light-gray);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(60, 116, 166, 0.15);
    border-color: var(--color-primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-primary-dark);
}

.feature-card p {
    color: var(--color-gray);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: #f8fafc;
    position: relative;
    z-index: 1;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
    flex: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-primary-dark);
}

.step p {
    color: var(--color-gray);
    line-height: 1.6;
}

.step-arrow {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin: 0 20px;
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background: white;
    position: relative;
    z-index: 1;
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

.benefits-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--color-primary-dark);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.benefit-item i {
    color: var(--color-accent);
    font-size: 1.5rem;
    margin-top: 5px;
}

.benefit-item h4 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--color-primary-dark);
}

.benefit-item p {
    color: var(--color-gray);
    line-height: 1.6;
}

/* Download Section */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

.download h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.download p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.download-btn i {
    font-size: 2rem;
}

.download-btn .small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.download-btn .large {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--color-primary-dark);
    color: white;
    padding: 60px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.footer-brand .brand .logo {
    height: 40px;
    width: auto;
}

.footer-brand p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

.link-group a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.6;
}

.footer-bottom .attribution {
    margin-top: 8px;
    font-size: 0.85rem;
}

.footer-bottom .attribution a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-bottom .attribution a:hover {
    color: white;
}

/* Legal Pages (Datenschutz etc.) */
.legal-page {
    padding: 120px 0 80px;
}

.legal-content {
    max-width: 800px;
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 30px;
}

.legal-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-top: 50px;
    margin-bottom: 20px;
}

.legal-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 30px;
    margin-bottom: 12px;
}

.legal-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-content p {
    color: var(--color-gray);
    margin-bottom: 15px;
}

.legal-content ul {
    color: var(--color-gray);
    margin: 0 0 15px 20px;
}

.legal-content li {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .benefits-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }


    .steps-container {
        flex-direction: column;
        gap: 30px;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container,
    .hero-container,
    .nav-container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.step,
.benefit-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
