/* ERGO CI — Primärfarbe Rot #8c0439, klare Typografie, viel Weißraum */
:root {
    --ergo-red: #8c0439;
    --ergo-red-dark: #6e022d;
    --text: #1A1A1A;
    --text-muted: #555;
    --bg: #FFFFFF;
    --bg-soft: #F5F5F5;
    --border: #E5E5E5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "ERGOSans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.header {
    background-color: var(--ergo-red);
    color: #fff;
    padding: 1.25rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 48px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.header-title {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    flex: 1;
}

.header-nav {
    display: flex;
    gap: 1.25rem;
    font-size: 0.95rem;
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.15s;
}

.header-nav a:hover,
.header-nav a:focus,
.header-nav a.active {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Hero */
.hero {
    background-color: var(--bg-soft);
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
    border-bottom: 4px solid var(--ergo-red);
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero .tagline {
    color: var(--ergo-red);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

/* Content */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

main.wide {
    max-width: 960px;
}

section {
    margin-bottom: 2.5rem;
}

section:last-child {
    margin-bottom: 0;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ergo-red);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text);
}

p:last-child {
    margin-bottom: 0;
}

ul {
    margin: 0 0 1rem 1.25rem;
}

ul:last-child {
    margin-bottom: 0;
}

li {
    margin-bottom: 0.35rem;
}

a {
    color: var(--ergo-red);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}

a:hover,
a:focus {
    color: var(--ergo-red-dark);
    text-decoration: none;
}

/* Feature grid (Marketing-Seite) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.feature-card {
    background-color: var(--bg-soft);
    border-left: 4px solid var(--ergo-red);
    padding: 1.25rem;
    border-radius: 4px;
}

.feature-card h3 {
    color: var(--ergo-red);
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.feature-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Screenshot placeholder (Marketing-Seite) */
.screenshot-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.screenshot {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 19;
    object-fit: cover;
    border-radius: 24px;
    background-color: var(--bg-soft);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: block;
}

/* Download buttons (Marketing-Seite) */
.download-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--text);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.15s;
}

.store-btn:hover,
.store-btn:focus {
    background-color: var(--ergo-red);
    color: #fff;
    text-decoration: none;
}

.store-btn-icon {
    width: 28px;
    height: 28px;
    background-color: #fff;
    color: var(--text);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
    /* Platzhalter für Store-Icons */
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.store-btn-text small {
    font-size: 0.7rem;
    opacity: 0.8;
}

.store-btn-text strong {
    font-size: 0.95rem;
    font-weight: 600;
}

/* FAQ (Support-Seite) */
details {
    background-color: var(--bg-soft);
    border-left: 4px solid var(--ergo-red);
    padding: 0.9rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

details[open] {
    padding-bottom: 1rem;
}

summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    padding-right: 1.5rem;
    position: relative;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ergo-red);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

details[open] summary::after {
    content: "–";
}

details p {
    margin-top: 0.75rem;
    color: var(--text-muted);
}

/* Info box */
.info-box {
    background-color: var(--bg-soft);
    border-left: 4px solid var(--ergo-red);
    padding: 1rem 1.25rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--bg-soft);
    color: var(--text-muted);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    border-top: 1px solid var(--border);
}

footer p {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

footer p:last-child {
    margin-bottom: 0;
}

.footer-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 640px) {
    .header {
        padding: 1rem 0;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .header-title {
        font-size: 1rem;
        flex: 1 1 auto;
    }

    .header-nav {
        flex-basis: 100%;
        gap: 1rem;
        font-size: 0.9rem;
    }

    .logo {
        height: 40px;
    }

    .hero {
        padding: 2rem 1.25rem 1.75rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    .hero p {
        font-size: 1rem;
    }

    main {
        padding: 2rem 1.25rem 2.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
