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

:root {
    --primary: #0052cc;
    --primary-dark: #003d9d;
    --primary-light: #e6f0ff;
    --secondary: #ff5722;
    --accent: #1dd1a1;
    --dark: #0f1419;
    --light: #f5f6f8;
    --gray: #5a6c7d;
    --gray-light: #e1e8f0;
    --bg-alt: #fafbfc;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark);
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle background pattern for data/content feel */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(0, 82, 204, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(0, 82, 204, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

/* Navigation */
navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid var(--gray-light);
}

.logo {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo::before {
    content: '📰';
    font-size: 20px;
    background: none;
    -webkit-text-fill-color: unset;
}

.logo:hover {
    transform: scale(1.05);
}

nav-menu {
    display: flex;
    gap: 24px;
    align-items: center;
}

nav-item {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

nav-item:hover {
    color: var(--primary);
}

nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav-item:hover::after {
    width: 100%;
}

.lang-toggle {
    display: flex;
    gap: 6px;
    background: transparent;
    padding: 4px 8px;
    border-radius: 18px;
}

.lang-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 11px;
    transition: var(--transition);
    color: var(--gray);
    letter-spacing: 0.5px;
}

.lang-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero {
    margin-top: 60px;
    min-height: 320px;
    background: linear-gradient(135deg, #e6f0ff 0%, #ffe6e6 100%),
        radial-gradient(circle at 60% 40%, #cce6ff 0%, transparent 70%),
        radial-gradient(circle at 20% 80%, #ffd6d6 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,82,204,0.07);
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 82, 204, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    animation: float 22s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    animation: float 28s ease-in-out infinite reverse;
}

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

.hero-content {
    max-width: 520px;
    text-align: center;
    position: relative;
    z-index: 10;
    animation: slideInUp 0.8s ease-out;
    background: rgba(255,255,255,0.85);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,82,204,0.08);
    padding: 18px 12px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(28px, 5vw, 38px);
    line-height: 1.15;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -1.2px;
}

.hero p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 12px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    font-weight: 500;
}

.hero-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 18px;
}

.hero-weather {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 87, 34, 0.08);
    border: 1px solid rgba(255, 87, 34, 0.15);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--dark);
    max-width: 260px;
    width: 100%;
    justify-content: center;
}

.weather-icon {
    font-size: 16px;
}

.weather-text {
    min-height: 18px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.9;
}

.ticker-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 87, 34, 0);
    }
}

.ticker-label {
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary);
}

.ticker-text {
    min-height: 18px;
    display: inline-block;
    max-width: 280px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: 0.85;
}

.ticker-animate {
    animation: tickerFade 0.8s ease-in-out;
}

@keyframes tickerFade {
    0% { opacity: 0; transform: translateY(4px); }
    60% { opacity: 1; transform: translateY(0); }
    100% { opacity: 1; }
}

.hero-cta {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.3px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.qr-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-light);
}

.qr-label {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.qr-codes {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qr-code canvas {
    width: 160px;
    height: 160px;
    padding: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.qr-code label {
    font-size: 12px;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    letter-spacing: 0.3px;
}

/* Sections */
section {
    padding: 40px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.8px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 18px;
    text-align: center;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 500;
}

/* What is Kiezlink Section */
.what-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.feature-card {
    background: white;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--gray-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

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

.feature-icon {
    font-size: 28px;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 700;
}

.feature-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

/* How it works */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 24px;
    position: relative;
}

.step-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--gray-light);
    text-align: center;
    transition: var(--transition);
    position: relative;
    z-index: 10;
}

.step-number {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 16px;
    filter: drop-shadow(0 2px 4px rgba(0, 82, 204, 0.2));
}

.step-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 700;
}

.step-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

.step-card:hover {
    transform: translateY(-7px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* For Readers/Publishers */
.alternating-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
    margin: 24px 0;
}

.alternating-section.reverse {
    grid-template-columns: 1fr 1fr;
}

.alternating-section.reverse > div:first-child {
    order: 2;
}

.alternating-content h3 {
    font-size: 26px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -0.6px;
}

.alternating-content ul {
    list-style: none;
}

.alternating-content li {
    font-size: 15px;
    color: var(--gray);
    margin-bottom: 18px;
    padding-left: 28px;
    position: relative;
    line-height: 1.7;
    font-weight: 500;
}

.alternating-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 18px;
}

.alternating-visual {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255, 87, 34, 0.05) 100%);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border: 1px solid var(--gray-light);
}

.alternating-visual svg {
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* About Section */
.about-content {
    max-width: 680px;
    margin: 0 auto;
    background: white;
    padding: 22px;
    border-radius: 12px;
    border: 1px solid var(--gray-light);
    text-align: center;
}

.about-content p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 28px;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
    font-weight: 700;
}

.social-link:hover {
    background: var(--secondary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
    border-radius: 12px;
    padding: 22px 18px;
    margin: 22px 0;
}

.contact-section h3 {
    font-size: 28px;
    margin-bottom: 16px;
    font-weight: 900;
    letter-spacing: -0.6px;
}

.contact-section p {
    font-size: 15px;
    margin-bottom: 28px;
    opacity: 0.95;
    font-weight: 500;
}

.contact-email {
    font-size: 18px;
    font-weight: 700;
    word-break: break-all;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--light);
    padding: 18px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Enhanced visual elements for data/news platform */
section::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-light), transparent);
    margin-bottom: 0;
    margin-top: 0;
}

.feature-card, .step-card {
    transition: var(--transition), box-shadow 0.3s ease;
    position: relative;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

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

/* Responsive */
@media (max-width: 768px) {
    navbar {
        padding: 0 18px;
        height: 56px;
    }

    nav-menu {
        display: none;
    }

    .logo {
        font-size: 20px;
    }

    section {
        padding: 56px 20px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 28px;
    }

    .hero {
        padding: 36px 20px;
        margin-top: 56px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .hero-cta {
        flex-direction: column;
        margin-bottom: 36px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .qr-codes {
        flex-direction: column;
        gap: 24px;
    }

    .alternating-section {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .alternating-section.reverse > div:first-child {
        order: unset;
    }

    .alternating-visual {
        min-height: 280px;
    }

    .what-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .about-content {
        padding: 28px;
    }

    .contact-section {
        padding: 36px 20px;
    }

    footer {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    navbar {
        height: 54px;
        padding: 0 12px;
    }

    .logo {
        font-size: 18px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .section-title {
        font-size: 22px;
    }

    .btn {
        padding: 11px 22px;
        font-size: 13px;
    }

    .qr-code canvas {
        width: 140px;
        height: 140px;
    }

    .alternating-content h3 {
        font-size: 22px;
    }

    .about-content {
        padding: 20px;
    }
}

/* Data & News Visual Hints */
.data-sparkline {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--accent);
    margin-left: 4px;
}

.news-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.1) 0%, rgba(255, 87, 34, 0.1) 100%);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 4px;
    letter-spacing: 0.3px;
}

/* Content flow indicators */
.flow-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    margin: 0 8px;
}

/* Language switching */
span[data-lang="de"], span[data-lang="en"] {
    display: none;
}

html[lang="de"] span[data-lang="de"],
html[lang="en"] span[data-lang="en"] {
    display: inline;
}
