/* =========================================================
   Fencing Coach Pro — Marketing Site (Editorial Light)
   DSGVO-freundlich: keine externen Ressourcen, keine Cookies.
   Hohe Kontraste: Reinweiß + Tiefschwarz + Crimson-Akzent.
   ========================================================= */

:root {
    --accent: #DC2626;
    --accent-dark: #B91C1C;
    --accent-darker: #7F1D1D;
    --accent-soft: #FEE2E2;

    --ink: #000000;
    --ink-2: #0A0A0A;
    --ink-3: #171717;
    --muted: #525252;
    --muted-2: #737373;
    --muted-3: #A3A3A3;

    --bg: #FFFFFF;
    --bg-soft: #F5F5F4;
    --bg-softer: #FAFAF9;
    --bg-dark: #0A0A0A;

    --line: #E7E5E4;
    --line-2: #D6D3D1;
    --line-strong: #0A0A0A;

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 18px;
    --max-width: 1240px;
    --transition: 200ms cubic-bezier(0.2, 0.6, 0.2, 1);

    color-scheme: light;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a {
    color: var(--ink);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.02;
    margin: 0 0 .5em;
    color: var(--ink);
}

h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -0.045em; }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; }

p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
}

/* ============= Header ============= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    color: var(--ink);
    font-size: 1.02rem;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--accent);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav a {
    color: var(--muted);
    font-weight: 500;
    font-size: .96rem;
}
.nav a:hover { color: var(--ink); text-decoration: none; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--ink);
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    color: var(--ink);
}

@media (max-width: 820px) {
    .nav {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 64px;
        background: #fff;
        border: 1px solid var(--ink);
        border-radius: var(--radius);
        padding: 14px 18px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    }
    .nav.open { display: flex; }
    .nav-toggle { display: inline-flex; }
}

/* ============= Hero ============= */
.hero {
    position: relative;
    padding: 90px 0 110px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    right: -10%;
    top: -20%;
    width: 60%;
    height: 140%;
    background: radial-gradient(closest-side, rgba(220, 38, 38, 0.06), transparent 70%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 72px;
    align-items: center;
}
@media (max-width: 900px) {
    .hero { padding: 64px 0 80px; }
    .hero-inner { grid-template-columns: 1fr; gap: 56px; }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-size: .74rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 32px;
    font-weight: 700;
    background: #fff;
}
.eyebrow .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
    animation: pulse 1.8s ease-in-out infinite;
}

.hero h1 {
    color: var(--ink);
    margin-bottom: 12px;
}
.hero h1 .accent {
    color: var(--accent);
    position: relative;
    white-space: nowrap;
}
.hero h1 .slash {
    display: inline-block;
    color: var(--accent);
    transform: translateY(-4px);
    margin: 0 4px;
    font-weight: 900;
}

.hero-rule {
    display: block;
    width: 88px;
    height: 6px;
    background: var(--accent);
    margin: 18px 0 28px;
}

.hero-sub {
    font-size: clamp(1.1rem, 1.55vw, 1.25rem);
    color: var(--muted);
    max-width: 580px;
    margin-bottom: 36px;
    line-height: 1.55;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 44px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 24px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.01em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-ghost:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-2);
    border-width: 1px;
}
.btn-outline:hover {
    border-color: var(--ink);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 500;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { color: var(--accent); flex-shrink: 0; }

/* ============= Device mockup ============= */
.hero-visual {
    position: relative;
}
.hero-visual::before {
    content: "";
    position: absolute;
    inset: -40px -20px -40px 20px;
    background: var(--ink);
    border-radius: var(--radius-lg);
    z-index: 0;
}
.hero-visual::after {
    content: "";
    position: absolute;
    top: -20px;
    right: 30px;
    width: 120px;
    height: 6px;
    background: var(--accent);
    z-index: 2;
}

.device-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    border-radius: 40px;
    background: linear-gradient(160deg, #2A2A2A 0%, #000 100%);
    padding: 12px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.device-screen {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background:
        radial-gradient(500px 200px at 70% -20%, rgba(220, 38, 38, 0.22), transparent 60%),
        linear-gradient(160deg, #141414 0%, #050505 100%);
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    color: #fff;
    overflow: hidden;
    position: relative;
}
.device-screen::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 5px;
    background: #000;
    border-radius: 6px;
}

.device-content {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.device-title {
    font-size: .72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.device-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 11px 13px;
    font-size: .86rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.device-card .score {
    color: #fff;
    font-weight: 900;
    font-family: "SF Mono", Menlo, Consolas, monospace;
    letter-spacing: -0.02em;
}
.device-card.is-live {
    background: rgba(220, 38, 38, 0.16);
    border-color: rgba(220, 38, 38, 0.55);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.25);
}
.device-card.is-live .score {
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.device-card.is-live .score::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 1.6s ease-in-out infinite;
}
.device-card .score.dim { color: rgba(255, 255, 255, 0.28); }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .5; transform: scale(.82); }
}

/* ============= Sections ============= */
section { padding: 120px 0; position: relative; }

.features     { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.ablauf       { background: var(--bg); border-bottom: 1px solid var(--line); }
.screenshots  { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.faq-section  { background: var(--bg); border-bottom: 1px solid var(--line); }
#faq          { background: var(--bg); border-bottom: 1px solid var(--line); }

.section-head {
    max-width: 740px;
    margin: 0 auto 72px;
    text-align: center;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
    font-size: .76rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.section-eyebrow::before {
    content: "";
    width: 28px;
    height: 3px;
    background: var(--accent);
}

.section-head p {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.55;
}

/* ============= Features (Bento) ============= */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 20px;
}

.bento-card {
    background: #fff;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
    padding: 30px;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.bento-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 0 var(--ink);
}

.bento-card h3 { margin: 0 0 8px; color: var(--ink); }
.bento-card p { color: var(--muted); margin: 0; font-size: .98rem; line-height: 1.5; }

.bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
}

.bento-card.wide   { grid-column: span 4; }
.bento-card.narrow { grid-column: span 2; }
.bento-card.half   { grid-column: span 3; }

/* Black hero card */
.bento-card.dark {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    grid-column: span 4;
    grid-row: span 2;
    padding: 40px;
    position: relative;
}
.bento-card.dark::after {
    content: "";
    position: absolute;
    top: 40px; right: 40px;
    width: 60px; height: 4px;
    background: var(--accent);
}
.bento-card.dark:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 0 var(--accent);
}
.bento-card.dark h3 { color: #fff; font-size: 2rem; line-height: 1.1; margin-bottom: 14px; letter-spacing: -0.035em; }
.bento-card.dark p { color: rgba(255, 255, 255, 0.7); font-size: 1rem; max-width: 440px; }
.bento-card.dark .bento-icon { background: var(--accent); color: #fff; }

/* Red accent card */
.bento-card.accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    grid-column: span 2;
}
.bento-card.accent:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 0 var(--ink);
}
.bento-card.accent h3 { color: #fff; }
.bento-card.accent p { color: rgba(255, 255, 255, 0.88); }
.bento-card.accent .bento-icon { background: var(--ink); color: #fff; }

@media (max-width: 980px) {
    .bento { grid-template-columns: repeat(4, 1fr); }
    .bento-card.dark { grid-column: span 4; grid-row: auto; }
    .bento-card.wide { grid-column: span 4; }
    .bento-card.half { grid-column: span 2; }
    .bento-card.narrow { grid-column: span 2; }
    .bento-card.accent { grid-column: span 2; }
}
@media (max-width: 600px) {
    .bento { grid-template-columns: 1fr; }
    .bento-card,
    .bento-card.dark,
    .bento-card.wide,
    .bento-card.half,
    .bento-card.narrow,
    .bento-card.accent { grid-column: 1 / -1; }
}

/* ============= How it works ============= */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
    overflow: hidden;
}

.step {
    background: #fff;
    padding: 32px 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background var(--transition);
    position: relative;
}
.step:hover { background: var(--bg-softer); }
.step:hover .step-num { color: var(--accent); }

.step:last-child { border-right: 0; }

.step-num {
    font-size: .76rem;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: 0.16em;
    margin-bottom: 24px;
    display: block;
    text-transform: uppercase;
    transition: color var(--transition);
}

.step h3 { margin: 0 0 6px; font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; line-height: 1.5; }

/* ============= Screenshots ============= */
.shot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 28px;
    max-width: 1160px;
    margin: 0 auto;
}

.shot {
    margin: 0;
    border-radius: 24px;
    background: #0A0A0A;
    border: 1.5px solid var(--ink);
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 10px 10px 0;
}
.shot:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 0 var(--accent);
}
.shot img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 720 / 1560;
    object-fit: cover;
    background: #0A0A0A;
    border-radius: 14px 14px 0 0;
}
.shot figcaption {
    background: var(--ink);
    color: #fff;
    font-weight: 800;
    font-size: .88rem;
    padding: 14px 10px;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 520px) {
    .shot-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

.shot img { cursor: zoom-in; }

/* ============= Lightbox ============= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw;
    cursor: zoom-out;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}
.lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}
.lightbox img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.96);
    transition: transform 220ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.lightbox.is-open img { transform: scale(1); }
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    border: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    font-weight: 900;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.lightbox-close:hover {
    background: var(--accent);
    color: #fff;
    transform: rotate(90deg);
}
body.lightbox-open { overflow: hidden; }

/* ============= CTA Band ============= */
.cta-band {
    background: var(--bg-dark);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 130px 0;
    border-bottom: 1px solid var(--ink);
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(800px 400px at 50% -10%, rgba(220, 38, 38, 0.28), transparent 60%);
    pointer-events: none;
}
.cta-band::after {
    content: "";
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--accent);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto 36px;
}
.cta-band .btn-accent {
    font-size: 1.05rem;
    padding: 17px 32px;
}

/* ============= FAQ ============= */
.faq-list {
    max-width: 860px;
    margin: 0 auto;
    border-top: 1.5px solid var(--ink);
}

details.faq-item {
    border-bottom: 1.5px solid var(--ink);
    padding: 0;
    transition: background var(--transition);
}
details.faq-item[open] { background: var(--bg-softer); }

details.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 26px 20px;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--ink);
    letter-spacing: -0.015em;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
    content: "";
    width: 16px;
    height: 16px;
    background: var(--ink);
    clip-path: polygon(0 42%, 42% 42%, 42% 0, 58% 0, 58% 42%, 100% 42%, 100% 58%, 58% 58%, 58% 100%, 42% 100%, 42% 58%, 0 58%);
    transition: transform var(--transition), background var(--transition);
    flex-shrink: 0;
}
details.faq-item[open] summary::after {
    transform: rotate(45deg);
    background: var(--accent);
}

details.faq-item p {
    color: var(--muted);
    margin: 0 20px 26px;
    max-width: 740px;
    line-height: 1.62;
}

/* ============= Footer ============= */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.7);
    padding: 72px 0 32px;
    font-size: .94rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 44px;
}
@media (max-width: 720px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.site-footer .logo { color: #fff; }
.site-footer .logo-mark { background: #fff; color: var(--ink); }
.site-footer .logo:hover { color: #fff; }

.site-footer h4 {
    color: #fff;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 18px;
    font-weight: 900;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.72);
    display: inline-block;
    padding: 4px 0;
}
.site-footer a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.5);
    font-size: .86rem;
}

/* ============= Legal pages ============= */
.legal {
    max-width: 860px;
    margin: 0 auto;
    padding: 72px 28px 96px;
    color: var(--ink);
}
.legal h1 { margin-bottom: 12px; }
.legal .lead { color: var(--muted); margin-bottom: 48px; font-size: 1.1rem; }
.legal h2 {
    margin-top: 52px;
    font-size: 1.6rem;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--ink);
}
.legal h3 { margin-top: 32px; font-size: 1.15rem; }
.legal p { color: var(--ink-3); }
.legal ul, .legal ol { padding-left: 22px; color: var(--ink-3); }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); font-weight: 500; }
.legal a:hover { color: var(--accent-dark); }
.legal strong { color: var(--ink); }

.legal .box {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-left: 4px solid var(--ink);
    padding: 18px 22px;
    border-radius: 4px;
    margin: 20px 0;
    font-size: .96rem;
}
.legal .placeholder {
    background: #FFF7ED;
    border-color: #FED7AA;
    border-left-color: var(--accent);
    color: #7C2D12;
}
.legal .placeholder strong { color: #431407; }

/* ============= Utilities ============= */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

::selection {
    background: var(--ink);
    color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 500ms ease, transform 500ms ease;
    }
    .reveal.visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .eyebrow .dot,
    .device-card.is-live .score::before { animation: none; }
}
