/* Timing Trainer – Landing Page
   Farben und Formen angelehnt an die App im Dunkelmodus. */

:root {
    --bg: #000;
    --card: #1c1c1e;
    --card-2: #2c2c2e;
    --line: #38383a;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --blue: #0a84ff;
    --green: #30d158;
    --orange: #ff9f0a;
    --red: #ff6961;
    --cyan: #40c8e0;
    --magenta: #bf5af2;
    --radius: 28px;
    --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.2rem; }

.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--text-2); }
.muted { color: var(--text-2); }
.center { text-align: center; }

/* Kopfzeile */
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-header nav { display: flex; gap: 22px; font-size: 0.9rem; }
.site-header nav a { color: var(--text-2); }
.site-header nav a:hover { color: var(--text); text-decoration: none; }
.site-header nav:not(.lang-switch) { margin-left: auto; margin-right: 24px; }

/* Sprachauswahl */
.site-header .lang-switch {
    display: flex; gap: 2px; padding: 3px;
    background: var(--card); border: 1px solid var(--line); border-radius: 999px;
    font-size: 0.8rem; font-weight: 600;
}
.site-header .lang-switch a { padding: 4px 10px; border-radius: 999px; color: var(--text-2); }
.site-header .lang-switch a[aria-current="page"] { background: var(--card-2); color: var(--text); }

/* Hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 24px; box-shadow: 0 10px 40px rgba(10, 132, 255, 0.35); }
.hero .lead { margin-bottom: 28px; max-width: 34em; }
.hero-note { font-size: 0.9rem; color: var(--text-2); margin-top: 14px; }

/* App-Store-Link mit offiziellem Apple-Badge (img/<sprache>/appstore-badge.svg) */
.store-button {
    display: inline-block; line-height: 0;
    transition: transform 0.15s ease;
}
.store-button img { height: 54px; width: auto; }
.store-button:hover { text-decoration: none; transform: translateY(-2px); }

/* Gerätebilder */
.device {
    border-radius: 44px;
    border: 3px solid #3a3a3c;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px #000 inset;
    overflow: hidden;
    background: #000;
}
.device.small { border-radius: 30px; border-width: 2px; }
.device.duo { border-radius: 30px; }
.hero-device { max-width: 340px; margin: 0 auto; transform: rotate(2deg); }

/* Dekorative Timeline wie in der App */
.timeline {
    display: flex; align-items: center; justify-content: space-between;
    height: 90px; margin: 0 auto; max-width: 560px;
    padding: 0 18px;
    background: var(--card); border: 1px solid var(--line); border-radius: 22px;
    position: relative;
}
.timeline::before {
    content: ""; position: absolute; left: 0; right: 0; top: 50%;
    height: 1px; background: var(--line);
}
.timeline i { display: block; width: 4px; height: 52px; border-radius: 2px; background: var(--green); position: relative; }
.timeline i.beat { background: var(--blue); height: 72px; }
.timeline i.grid { background: #48484a; width: 2px; height: 40px; }
.timeline i.o { background: var(--orange); }
.timeline i.r { background: var(--red); }
.timeline i.c { background: var(--cyan); }
.timeline i.m { background: var(--magenta); }
@media (prefers-reduced-motion: no-preference) {
    .timeline i:not(.grid) { animation: pulse 2.4s ease-in-out infinite; }
    .timeline i:nth-child(3n) { animation-delay: 0.6s; }
    .timeline i:nth-child(3n+1) { animation-delay: 1.2s; }
}
@keyframes pulse { 50% { opacity: 0.55; } }

/* Abschnitte */
section { padding: 88px 0; }
section.alt { background: #0b0b0c; border-top: 1px solid #161618; border-bottom: 1px solid #161618; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }

/* Schritte */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--card); border-radius: var(--radius); padding: 28px; }
.step::before {
    counter-increment: step; content: counter(step);
    display: inline-grid; place-items: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--blue); color: #fff; font-weight: 700; margin-bottom: 16px;
}
.step p { margin: 0; color: var(--text-2); }

/* Farblegende */
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 36px; font-size: 0.95rem; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend b { width: 6px; height: 22px; border-radius: 3px; display: inline-block; }

/* Funktionen */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 28px; }
.feature .ico {
    width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
    display: grid; place-items: center; background: var(--card-2); color: var(--blue);
}
.feature .ico svg { width: 24px; height: 24px; }
.feature p { margin: 0; color: var(--text-2); font-size: 0.98rem; }

/* Zielgruppen */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-weight: 500; }
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.audience { background: var(--card); border-radius: var(--radius); padding: 28px; }
.audience p { margin: 0; color: var(--text-2); }

/* Screenshot-Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.gallery figure { margin: 0; }
.gallery figcaption { text-align: center; margin-top: 14px; font-size: 0.95rem; color: var(--text-2); }
.gallery figcaption strong { display: block; color: var(--text); }

/* Große Displays */
.big-screens { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

/* Preis */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto; }
.plan { background: var(--card); border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.plan.full { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 20px 60px rgba(10, 132, 255, 0.18); }
.plan .tag { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); }
.plan.full .tag { color: var(--blue); }
.plan ul { padding: 0; margin: 18px 0 0; list-style: none; }
.plan li { padding: 6px 0 6px 30px; position: relative; color: var(--text-2); }
.plan li::before {
    content: ""; position: absolute; left: 4px; top: 13px;
    width: 12px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green);
    transform: rotate(-45deg);
}

/* Tipps */
.tips { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.tip { background: var(--card); border-radius: 20px; padding: 20px 24px; color: var(--text-2); }
.tip strong { color: var(--text); }

/* Abschluss */
.cta { text-align: center; }
.cta .wrap > img { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 24px; }

/* Fußzeile */
.site-footer { border-top: 1px solid #161618; padding: 40px 0 56px; font-size: 0.88rem; color: var(--text-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }

/* Impressum */
.legal { padding: 64px 0 88px; }
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal p { color: var(--text-2); margin: 0 0 1em; }

/* Responsiv */
@media (max-width: 980px) {
    .features, .audiences { grid-template-columns: 1fr 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    body { font-size: 17px; }
    section { padding: 64px 0; }
    .hero { padding-top: 40px; }
    .hero .wrap { grid-template-columns: 1fr; text-align: center; }
    .hero-icon { margin-left: auto; margin-right: auto; }
    .hero .lead { margin-left: auto; margin-right: auto; }
    .hero-device { max-width: 280px; transform: none; }
    .site-header nav:not(.lang-switch) { display: none; }
    .steps, .features, .audiences, .pricing, .big-screens { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; gap: 16px; }
    .timeline { height: 70px; }
    .timeline i { height: 40px; }
    .timeline i.beat { height: 56px; }
    .timeline i.grid { height: 30px; }
    .timeline i:nth-child(n+19) { display: none; }
}
