:root {
    /* TennisFlow Brand Colors - based on app design */
    --primary-color: #0a1929;
    --secondary-color: #1a2f42;
    --accent-color: #4caf50;
    --accent-glow: rgba(76, 175, 80, 0.5);
    --text-color: #e8eef3;
    --heading-color: #ffffff;
    --card-bg: #132333;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --container-width: 1200px;
    --spacing-unit: 1rem;
}

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

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 2rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    background: rgba(10, 25, 41, 0.97);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    isolation: isolate;
    position: relative;
}

/* Nur die Navbar-Marke — nicht mit anderen .logo-Nutzungen vermischen */
header nav a.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    max-width: 100%;
    transform: translateZ(0);
    /* transition: all auf <a> würde sonsten Gradient-Text (Chrome) zerlegen */
    transition: none;
}

header nav a.logo > img {
    display: block;
    flex: 0 0 auto;
    height: 40px !important;
    width: auto !important;
    max-height: 40px !important;
    max-width: 120px !important;
    object-fit: contain !important;
}

/* Wordmark: Verlauf wie Hero-H1 — eigene Flex-Zelle wie Bildhöhe, ohne inherited transition */
header nav a.logo .logo-wordmark {
    display: inline-flex;
    align-items: center;
    align-self: center;
    box-sizing: border-box;
    height: 40px;
    margin: 0;
    padding: 0;
    flex: 0 1 auto;
    line-height: 1;
    min-width: 0;
    color: transparent;
    /* kein background-Shorthand: kann clip-Verhalten in Chrome stören */
    background-image: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Optischer Ausgleich zur Icon-Mitte */
    transform: translate3d(0, -2px, 0);
}

header nav a.logo:hover {
    text-shadow: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(76, 175, 80, 0.6);
    border-radius: 8px;
    background: rgba(10, 25, 41, 0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle-line {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

.lang-switch {
    border: 1px solid var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
}

.hero-content {
    width: min(100%, 900px);
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-actions {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: min(100%, 620px);
    margin: 1rem 0 0;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    background: rgba(19, 35, 51, 0.55);
    box-shadow: 0 18px 40px rgba(5, 15, 25, 0.24);
    backdrop-filter: blur(6px);
}

.hero-actions .btn {
    align-self: flex-start;
    min-width: 215px;
}

.hero-benefits {
    list-style: none;
    width: 100%;
}

.hero-benefits li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 0.85rem;
    align-items: start;
    padding: 0.45rem 0;
}

.hero-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 0.1rem;
    border-radius: 999px;
    background: rgba(76, 175, 80, 0.14);
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 700;
}

.hero-benefit-title {
    display: block;
    font-size: 1.06rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.45;
}

.hero-benefit-detail {
    display: block;
    margin-top: 0.18rem;
    color: #94a3b8;
    font-size: 0.94rem;
    line-height: 1.5;
}

.tagline {
    display: inline-block;
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.slogan {
    max-width: 760px;
    font-size: 1.22rem;
    color: #94a3b8;
    margin: 1rem 0 0;
    font-style: italic;
    line-height: 1.6;
}

/* Download Section */
.download-section {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    text-align: center;
}

.download-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.download-android-note {
    margin-top: 1.5rem;
    color: #94a3b8;
    font-size: 0.95rem;
    text-align: center;
}

.qr-code {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.qr-code img {
    width: 150px;
    height: 150px;
    display: block;
    margin: 0 auto;
}

.qr-code p {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* App Screenshots */
.screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 250px));
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
}

.screenshots-group-title {
    text-align: center;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.screenshots-portrait {
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    justify-content: center;
}

.screenshots-landscape {
    grid-template-columns: repeat(auto-fit, minmax(280px, 420px));
    justify-content: center;
    margin-top: 1rem;
}

.screenshot {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.screenshot-landscape {
    max-width: 100%;
}

.screenshot:hover {
    transform: translateY(-8px);
}

/* Features */
.section {
    padding: 5rem 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.2);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.2);
    transform: translateY(-4px);
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li:before {
    content: "✔";
    color: #6b8f71;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.feature-list.pro li:before {
    content: attr(data-icon);
    font-size: 1.1rem;
}

/* PRO card highlight */
.card.card-pro {
    transform: scale(1.03);
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.2);
    position: relative;
}

.card.card-pro:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.25), 0 12px 32px rgba(0, 0, 0, 0.3);
    transform: scale(1.03) translateY(-4px);
}

.badge-popular {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #1a1a1a;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Testimonials */
.about-story {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.about-story-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-story-content h2 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    line-height: 1.25;
}

.about-story-content p {
    color: #94a3b8;
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 1.35rem;
}

.about-story-content p.about-lead {
    color: var(--text-color);
    font-size: 1.15rem;
}

.about-questions {
    margin: 2rem auto;
    padding: 1.5rem 1.75rem;
    max-width: 560px;
    background: rgba(19, 35, 51, 0.65);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    text-align: left;
    color: var(--text-color) !important;
    font-style: italic;
}

.about-highlight {
    color: var(--accent-color) !important;
    font-weight: 600;
    font-size: 1.12rem !important;
}

.about-closing {
    margin-top: 2rem !important;
    color: var(--text-color) !important;
    font-weight: 600;
    font-size: 1.1rem !important;
}

.testimonials {
    background: var(--secondary-color);
    padding: 4rem 2rem;
    margin: 3rem 0;
    border-radius: 12px;
}

.testimonial {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid var(--accent-color);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.testimonial-author {
    color: var(--accent-color);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.btn:hover:not(:disabled) {
    background: #45a049;
    box-shadow: 0 4px 20px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover:not(:disabled) {
    background: var(--accent-color);
    color: white;
}

.btn-outline:disabled,
.btn-outline[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-outline:disabled:hover,
.btn-outline[disabled]:hover {
    background: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: none;
    transform: none;
}

.btn-android-soon {
    margin-top: 1rem;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Footer */
footer {
    background: var(--secondary-color);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(76, 175, 80, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero {
        min-height: 90vh;
        padding: 6rem 1rem;
    }

    .hero-actions {
        width: 100%;
        padding: 1.2rem 1rem;
        gap: 1.2rem;
    }

    .hero-actions .btn {
        min-width: 0;
        width: 100%;
        text-align: center;
    }

    .hero-benefits li {
        grid-template-columns: 24px 1fr;
        gap: 0.7rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 0.6rem);
        right: 0;
        width: max-content;
        min-width: 180px;
        max-width: min(230px, calc(100vw - 2rem));
        padding: 0.9rem;
        border-radius: 10px;
        border: 1px solid rgba(76, 175, 80, 0.28);
        background: rgba(10, 25, 41, 0.98);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        z-index: 1100;
    }

    .main-nav.nav-open .nav-links {
        display: flex;
    }

    .nav-links li a {
        display: inline-block;
        padding: 0.6rem 0.7rem;
        border-radius: 8px;
        white-space: nowrap;
    }

    .nav-links li a:hover {
        background: rgba(76, 175, 80, 0.12);
        text-shadow: none;
    }

    .lang-switch {
        display: inline-block;
        text-align: center;
        margin-top: 0.2rem;
        padding: 0.2rem 0.65rem;
        font-size: 0.85rem;
    }

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

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

    .screenshots-portrait,
    .screenshots-landscape {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .screenshot {
        max-width: min(100%, 380px);
    }

    .container {
        padding: 0 1rem;
    }

    .about-story-content h2 {
        font-size: 1.75rem;
    }
}

/* Pricing Badge */
.pricing-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pricing-badge.pro {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
}

/* Labels im Kurztext unter FREE/PRO-Karten — gleiche Farben wie die Badges darüber */
.pricing-tagline-label-free {
    color: var(--accent-color);
}

.pricing-tagline-label-pro {
    display: inline-block;
    background-image: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Instagram / Social */
.instagram-section {
    background: linear-gradient(135deg, rgba(131, 58, 180, 0.12) 0%, rgba(253, 29, 29, 0.08) 50%, rgba(252, 176, 69, 0.1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.instagram-card {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.instagram-icon-wrap {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    box-shadow: 0 8px 24px rgba(131, 58, 180, 0.35);
}

.instagram-icon-wrap svg {
    width: 44px;
    height: 44px;
    fill: white;
}

.instagram-content h2 {
    margin-bottom: 0.75rem;
    font-size: 1.85rem;
}

.instagram-handle {
    display: inline-block;
    margin-bottom: 1rem;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 1.05rem;
}

.instagram-content p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    max-width: 520px;
    line-height: 1.7;
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: #cbd5e1;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-weight: 500;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-size: 0.88rem;
    font-family: inherit;
    text-decoration: none;
}

.btn-instagram:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--text-color);
    box-shadow: none;
    transform: none;
    text-shadow: none;
}

.btn-instagram svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.85;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.footer-social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .instagram-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .instagram-content p {
        max-width: none;
    }

    .btn-instagram {
        width: auto;
        justify-content: center;
    }
}
