:root {
    --bg-primary: #fafaf9;
    --bg-secondary: #f5f5f4;
    --text-primary: #1c1917;
    --text-secondary: #57534e;
    --accent: #4fc9c8;
    --accent-hover: #3aa8a7;
    --accent-light: #e6f7f7;
    --border: #e7e5e4;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Noise texture overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 250, 249, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    color: var(--accent);
    font-weight: 900;
    width: 28px;
    height: 28px;
    display: block;
    flex-shrink: 0;
}

.logo-icon path {
    stroke: var(--accent);
    stroke-width: 70;
}

.logo-text {
    color: var(--text-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
    width: 100%;
    justify-content: center;
}

.btn-primary {
    background: var(--text-primary);
    color: white;
}

.btn-primary:hover {
    background: #000;
}

.arrow {
    transition: transform 0.2s ease;
}

.btn:hover .arrow {
    transform: translateX(4px);
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

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

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--accent-light);
    color: #2d8d8c;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    margin-bottom: 24px;
    border: 1px solid #b2e8e7;
}

.headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.highlight {
    color: #2d8d8c;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: var(--accent-light);
    z-index: -1;
    transform: skewX(-12deg);
}

.subheadline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.trial-note {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    width: 280px;
    border: 1px solid var(--border);
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.alert-title {
    font-weight: 700;
    font-size: 0.875rem;
    flex: 1;
}

.time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.alert-line {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    margin-bottom: 8px;
}

.alert-line-1 {
    width: 100%;
}

.alert-line-2 {
    width: 70%;
}

.alert-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-hover);
}

.grid-pattern {
    position: absolute;
    width: 300px;
    height: 300px;
    background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 1;
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Features */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 64px;
    text-align: center;
}

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

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-number {
    font-size: 3rem;
    font-weight: 800;
    color: #e6f7f7;
    line-height: 1;
    margin-bottom: 16px;
    -webkit-text-stroke: 2px var(--accent);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How it Works */
.how-it-works {
    padding: 100px 0;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-marker {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 16px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(79, 201, 200, 0.3);
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.step-connector {
    width: 80px;
    height: 2px;
    background: var(--border);
    margin-top: 24px;
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 0;
    height: 0;
    border-left: 8px solid var(--border);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

/* FAQ */
.faq {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.faq-item h4 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Pricing */
.pricing {
    padding: 100px 0;
}

.pricing-card {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border: 2px solid var(--text-primary);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    box-shadow: 12px 12px 0 var(--text-primary);
    transition: all 0.2s ease;
}

.pricing-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 16px 16px 0 var(--text-primary);
}

.pricing-header {
    margin-bottom: 32px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    color: var(--text-primary);
}

.currency {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 8px;
}

.amount {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--accent-hover);
}

.period {
    font-size: 1rem;
    color: var(--text-secondary);
    align-self: flex-end;
    margin-bottom: 8px;
}

.pricing-features {
    margin-bottom: 32px;
    text-align: left;
}

.pricing-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.pricing-row:last-child {
    border-bottom: none;
}

.check {
    color: var(--accent);
    font-weight: 700;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 64px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-brand .logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.footer-brand p {
    color: #a8a29e;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid #44403c;
    text-align: center;
    color: #78716c;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-visual {
        order: 1;
        height: 300px;
    }
    
    .subheadline {
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-group {
        justify-content: center;
    }
    
    .steps {
        flex-direction: column;
        gap: 48px;
    }
    
    .step-connector {
        width: 2px;
        height: 40px;
        margin-top: 0;
    }
    
    .step-connector::after {
        right: -4px;
        top: auto;
        bottom: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 8px solid var(--border);
        border-bottom: none;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        margin: 0 16px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .headline {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        padding: 32px 24px;
    }
}

/* Language switching styles */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.lang-switcher:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.lang-option {
    opacity: 0.5;
    transition: opacity 0.2s;
}

.lang-option.active {
    opacity: 1;
    color: var(--accent);
}

.lang-divider {
    opacity: 0.3;
}

/* Default visibility handled by JS, but provide fallback */
.lang-de {
    display: none;
}

/* Ensure proper display for block elements */
h1 .lang-en, h1 .lang-de,
h2 .lang-en, h2 .lang-de,
h3 .lang-en, h3 .lang-de,
h4 .lang-en, h4 .lang-de,
p .lang-en, p .lang-de,
span .lang-en, span .lang-de,
a .lang-en, a .lang-de {
    display: inline;
}

/* Hero headline needs special handling */
.headline .lang-en,
.headline .lang-de {
    display: block;
}

/* When German is active */
body[data-lang="de"] .lang-en {
    display: none !important;
}

body[data-lang="de"] .lang-de {
    display: inline;
}

body[data-lang="de"] .headline .lang-de {
    display: block;
}

/* Hide inactive schema data */
body[data-lang="en"] .schema-lang-de,
body[data-lang="de"] .schema-lang-en {
    display: none;
}

/* Mobile responsive for language switcher */
@media (max-width: 480px) {
    .lang-switcher {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .nav-controls {
        gap: 8px;
    }
}
