/* ==========================================
   Wordlino Website - Classic Blue Theme
   Based on app colors: Marine + Champagner
   ========================================== */

:root {
    /* Classic Blue Theme Colors */
    --primary-blue: #1A4A8A;
    --deep-blue: #0B1F3A;
    --mid-blue: #2D6FA3;
    --gradient-top: #2D5F9F;
    --gradient-bottom: #071A33;

    --cream: #FFF4DD;
    --card-cream: #FFFBF1;
    --warm-gold: #D8A83F;
    --soft-yellow: #F4D98A;

    --soft-gray: #D8DEE8;
    --text-muted: #5F6D80;
    --surface: #F4F0E7;
    --surface-blue: #E7EEF6;

    --error: #B8504A;
    --success: #2B7A5C;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px;
}

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

body {
    font-family: var(--font-main);
    color: var(--deep-blue);
    background: linear-gradient(180deg, #FFF5E2 0%, var(--surface-blue) 50%, #DCE8F4 100%);
    background-attachment: fixed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   Navigation
   ========================================== */

.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 251, 241, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 74, 138, 0.1);
    padding: 16px 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(11, 31, 58, 0.08);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    /* Ist jetzt ein Link zur Startseite: Farbe und Unterstrich der
       Standard-Verlinkung wuerden das Logo sonst entstellen. */
    color: inherit;
    text-decoration: none;
}

.nav-brand:hover .brand-name {
    text-decoration: underline;
}

.nav-brand:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 4px;
    border-radius: 8px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(26, 74, 138, 0.3);
    overflow: hidden;
    flex-shrink: 0;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-name {
    color: var(--primary-blue);
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    padding: 120px 0 80px;
}

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

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-slogan {
    display: inline-block;
    position: relative;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.1;
    margin-bottom: 26px;
    padding-bottom: 10px;
}

.hero-slogan::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 72px;
    height: 5px;
    background: var(--warm-gold);
    border-radius: 3px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--deep-blue);
}

.highlight {
    color: var(--primary-blue);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    height: 12px;
    background: var(--warm-gold);
    opacity: 0.3;
    z-index: -1;
}

.lead {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--mid-blue));
    color: white;
    box-shadow: 0 4px 16px rgba(26, 74, 138, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 74, 138, 0.4);
}

.btn-secondary {
    background: var(--card-cream);
    color: var(--primary-blue);
    border: 2px solid var(--soft-gray);
}

.btn-secondary:hover {
    border-color: var(--primary-blue);
    background: white;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    text-align: left;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.phone-mockup {
    position: relative;
}

.phone-frame {
    width: 320px;
    height: 640px;
    background: var(--deep-blue);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(11, 31, 58, 0.4);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: var(--deep-blue);
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.screenshot {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    object-fit: cover;
    background: var(--surface);
}

/* ==========================================
   Features Section
   ========================================== */

.features {
    padding: var(--section-padding) 0;
    background: rgba(255, 255, 255, 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 800;
    color: var(--deep-blue);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 20px;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--card-cream);
    padding: 40px 32px;
    border-radius: 20px;
    border: 1px solid rgba(26, 74, 138, 0.1);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(11, 31, 58, 0.12);
    border-color: var(--primary-blue);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 12px;
}

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

/* ==========================================
   Screenshots Section
   ========================================== */

.screenshots {
    padding: var(--section-padding) 0;
}

.screenshots-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    margin: 0 -24px;
    padding-left: 24px;
}

.screenshot-item {
    flex: 0 0 280px;
    scroll-snap-align: center;
    text-align: center;
}

.screenshot-item object,
.screenshot-item img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(11, 31, 58, 0.2);
    margin-bottom: 16px;
    background: var(--surface);
    display: block;
}

.screenshot-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 8px;
}

.screenshot-item p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================
   Testimonials Section
   ========================================== */

.testimonials {
    padding: var(--section-padding) 0;
    background: rgba(255, 255, 255, 0.6);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--card-cream);
    padding: 40px 32px;
    border-radius: 20px;
    border: 1px solid rgba(26, 74, 138, 0.1);
}

.stars {
    color: var(--warm-gold);
    font-size: 20px;
    margin-bottom: 20px;
}

.testimonial-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 16px;
}

.author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author strong {
    color: var(--deep-blue);
    font-weight: 700;
}

.author span {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================
   Download Section
   ========================================== */

.download {
    padding: var(--section-padding) 0;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--mid-blue));
    padding: 80px;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(11, 31, 58, 0.3);
}

.download-text {
    color: white;
}

.download-text h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.download-text p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.download-buttons {
    margin-bottom: 32px;
}

.store-button {
    display: inline-block;
    transition: transform 0.3s;
}

.store-button:hover {
    transform: scale(1.05);
}

.download-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
}

.info-item .icon {
    color: var(--warm-gold);
    font-size: 20px;
}

.phone-mockup-small {
    width: 280px;
    height: 560px;
    background: white;
    border-radius: 32px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.phone-mockup-small img {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    object-fit: cover;
    background: var(--surface);
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    background: var(--deep-blue);
    color: white;
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin: 16px 0 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 16px;
    font-size: 24px;
}

.social-links a {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 1;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 968px) {
    .hero-content,
    .download-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .features-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 60px;
    }

    .hero {
        padding: 80px 0 40px;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .download-content {
        padding: 40px 24px;
    }

    .download-text h2 {
        font-size: 32px;
    }

    .phone-mockup {
        transform: scale(0.85);
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ── Sprach-Umschalter (Flaggen) ───────────────────────────────────── */
.lang-switcher {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: 20px;
}
.lang-btn {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 2px 5px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity .15s ease, border-color .15s ease, transform .1s ease;
}
.lang-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.lang-btn.active {
    opacity: 1;
    border-color: var(--accent-gold, #D8A83F);
    background: rgba(216, 168, 63, 0.12);
}

/* Gruppentitel in der Spielarten-Sektion */
.group-title {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--deep-blue);
    margin: 8px 0 24px;
}
.features-grid + .group-title { margin-top: 48px; }

@media (max-width: 968px) {
    .lang-switcher { margin-left: auto; margin-right: 8px; }
    .lang-btn { font-size: 18px; padding: 2px 3px; }
}

/* App-Icon-Streifen in der Screenshots-Sektion */
.appicon-strip {
    text-align: center;
    margin-top: 56px;
}
.appicon-strip h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--deep-blue);
    margin-bottom: 8px;
}
.appicon-strip p {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.6;
}
.appicon-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.appicon-item {
    margin: 0;
}
.appicon-item img {
    width: 132px;
    height: 132px;
    border-radius: 30px;
    box-shadow: 0 12px 30px rgba(11, 31, 58, 0.25);
}
.appicon-item figcaption {
    margin-top: 10px;
    font-weight: 700;
    color: var(--primary-blue);
}
