/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

.btn-primary.large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-secondary {
    background: transparent;
    color: #1976d2;
    border-color: #1976d2;
}

.btn-secondary:hover {
    background: #1976d2;
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* App Preview */
.app-preview {
    display: flex;
    justify-content: center;
}

.app-screenshot {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-screenshot img {
    max-width: 60%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.app-screenshot img:hover {
    transform: scale(1.02);
}
.phone-frame {
    width: 300px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #333;
    border-radius: 3px;
}

.screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.app-interface {
    padding: 20px;
    height: 100%;
}

.app-header {
    height: 60px;
    background: linear-gradient(135deg, #1976d2, #1565c0);
    border-radius: 8px;
    margin-bottom: 20px;
}

.app-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prompt-card {
    height: 80px;
    background: #f5f5f5;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.prompt-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #1976d2;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

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

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 16px;
    background: #fafafa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card.highlight {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #1976d2;
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* PWA Section */
.what-is-pwa {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.what-is-pwa h2 {
    color: white;
}

.pwa-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.pwa-text ul {
    list-style: none;
    padding-left: 0;
}

.pwa-text li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.pwa-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
    font-size: 1.2rem;
}

.pwa-visual {
    text-align: center;
}

.pwa-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.web-icon,
.mobile-icon,
.pwa-icon {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.plus,
.equals {
    font-size: 2rem;
    opacity: 0.7;
}

.diagram-caption {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Installation Section */
.installation {
    padding: 80px 0;
    background: #f8f9fa;
}

.install-tabs {
    max-width: 800px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    background: #1976d2;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    color: #1976d2;
    margin-bottom: 0.5rem;
}

/* Privacy Section */
.privacy {
    padding: 80px 0;
    background: white;
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.privacy-item {
    text-align: center;
    padding: 30px 20px;
}

.privacy-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.privacy-item h4 {
    color: #1976d2;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #1976d2;
}

/* Legal Links */
.legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 40px 0 20px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.legal-links a {
    color: #1976d2;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.legal-links a:hover {
    color: #42a5f5;
    text-decoration: underline;
}

.legal-links .separator {
    color: #666;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 120px 0 60px 0;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .pwa-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .pwa-diagram {
        flex-wrap: wrap;
        gap: 10px;
    }

    .phone-frame {
        width: 250px;
        height: 500px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

        .legal-links {
            flex-direction: column;
            gap: 10px;
        }
.legal-links .separator {
    display: none;
}
    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 100%;
        max-width: 300px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .btn-primary,
    .btn-secondary {
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 40px 0;
    }

        .app-screenshot img {
            max-width: 90%;
        }
    .phone-frame {
        width: 200px;
        height: 400px;
        padding: 15px;
    }

    .features,
    .installation,
    .privacy,
    .cta-section {
        padding: 60px 0;
    }

    .what-is-pwa {
        padding: 60px 0;
    }

    .pwa-diagram {
        font-size: 2rem;
    }

    .step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.privacy-item {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(2) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(5) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(6) {
    animation-delay: 0.5s;
}

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

/* Focus styles for accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.tab-btn:focus {
    outline: 3px solid rgba(25, 118, 210, 0.3);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border-color: #000;
    }

    .feature-card,
    .privacy-item {
        border: 2px solid #333;
    }
}

/* Language selector styles */
.language-selector {
    position: fixed;
    top: 6px;
    right: 6px;
    z-index: 1000;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: flex;
    gap: 4px;
    padding: 4px;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.language-selector.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.language-selector button {
    padding: 2px 3px;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: all 0.3s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-selector button:hover {
    background: #f5f5f5;
    transform: scale(1.1);
}

.language-selector button.active {
    border-color: #1976d2;
    background: #e3f2fd;
}

.lang-en,
.lang-de {
    display: none;
}

.lang-en.active,
.lang-de.active {
    display: inline;
}

.lang-en.active-block,
.lang-de.active-block {
    display: block;
}