/* Ancora Speedo — site stylesheet
   Dark Ancora identity (GitHub-style tokens) + Speedo brand blue/cyan.
   App palette: navy #011A58 · blue #0087FA · cyan #00B4D8 */

:root {
    --bg-color: #0d1117;
    --bg-deep: #011a58;
    --card-bg: #161b22;
    --card-bg-hover: #1c2330;
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --accent: #0087fa;
    --accent-hover: #38a3ff;
    --cyan: #00b4d8;
    --border-color: #30363d;
    --danger: #f85149;
    --success: #3fb950;
    --warning: #dbab09;
    --radius: 10px;
    --container: 1080px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
}

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

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; /* German compounds (Reichweiten-
    schätzungen) would otherwise overflow their card instead of wrapping) */
    overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }

.lead { font-size: 1.15rem; color: var(--text-muted); }
.meta { color: var(--text-muted); font-size: .92rem; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--accent); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* --- buttons ------------------------------------------------------------ */
.btn {
    display: inline-block;
    padding: .6rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #04121f; }
.btn-primary:hover { background: var(--accent-hover); color: #04121f; }
.btn-secondary { background: transparent; color: var(--text-main); border-color: var(--border-color); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-hover); }
.btn-lg { padding: .8rem 1.5rem; font-size: 1.05rem; }

/* --- header ------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(13, 17, 23, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
/* The logo asset is a square app icon (1161x1150), so size it by HEIGHT —
   sizing by width would inflate the header to ~150px tall. */
.brand img { display: block; height: 52px; width: auto; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.site-nav ul { display: flex; align-items: center; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--text-main); font-size: .95rem; }
.site-nav a:hover { color: var(--accent-hover); text-decoration: none; }
.site-nav a.is-active { color: var(--accent); }
.nav-cta { margin-left: .25rem; }
.nav-cta .btn { color: #04121f; }
.nav-cta .btn:hover { text-decoration: none; }

.lang-switch {
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: .4rem .6rem;
    font-size: .9rem;
}

.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 860px) {
    .nav-toggle-label {
        display: flex; flex-direction: column; gap: 5px;
        margin-left: auto; padding: 10px; cursor: pointer;
    }
    .nav-toggle-label span {
        width: 24px; height: 2px; background: var(--text-main); display: block;
    }
    .site-nav {
        display: none;
        position: absolute; left: 0; right: 0; top: 68px;
        flex-direction: column; align-items: flex-start;
        background: var(--bg-color);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 1.25rem; gap: .85rem; margin-left: 0;
    }
    .site-nav ul { flex-direction: column; align-items: flex-start; gap: .85rem; }
    .nav-toggle:checked ~ .site-nav { display: flex; }
    .brand { margin-right: auto; }
}

/* --- hero --------------------------------------------------------------- */
.hero {
    background:
        radial-gradient(1100px 480px at 82% -10%, rgba(0, 135, 250, .28), transparent 60%),
        linear-gradient(180deg, #02133f 0%, var(--bg-color) 78%);
    border-bottom: 1px solid var(--border-color);
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
.hero-copy .lead { max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1.25rem; }
.badges { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.badges li {
    font-size: .82rem; color: var(--cyan);
    border: 1px solid rgba(0, 180, 216, .4);
    background: rgba(0, 180, 216, .08);
    padding: .3rem .7rem; border-radius: 999px;
}
.hero-shot { text-align: center; }
.hero-shot img {
    max-height: 460px; width: auto;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-shot { order: -1; }
    .hero-shot img { max-height: 340px; }
}

/* --- sections ----------------------------------------------------------- */
.section { padding: clamp(2.25rem, 5vw, 3.75rem) 0; }
.section-alt { background: #0b1017; border-block: 1px solid var(--border-color); }
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.page-head { padding: clamp(2rem, 5vw, 3.25rem) 0 .5rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.split img { border: 1px solid var(--border-color); border-radius: var(--radius); max-height: 460px; width: auto; justify-self: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* --- cards -------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.15rem; }
.card-grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.35rem;
    transition: border-color .15s ease, background .15s ease;
}
.card:hover { border-color: #3d4654; background: var(--card-bg-hover); }
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; color: var(--text-muted); }

.callout {
    background: rgba(0, 135, 250, .08);
    border: 1px solid rgba(0, 135, 250, .35);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    color: var(--text-main);
}
.table-wrap + .callout { margin-top: 1.25rem; }

.draft-banner {
    background: rgba(219, 171, 9, .1);
    border: 1px solid rgba(219, 171, 9, .45);
    color: var(--warning);
    border-radius: var(--radius);
    padding: .75rem 1rem;
    font-weight: 600;
}

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding-left: 1.6rem; position: relative; margin-bottom: .55rem; }
.checklist li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    color: var(--success); font-weight: 700;
}

/* --- screenshots -------------------------------------------------------- */
.shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.shot-grid img {
    border: 1px solid var(--border-color); border-radius: var(--radius);
    background: var(--card-bg); width: 100%;
}
.shot-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.shot { margin: 0; }
.shot img {
    border: 1px solid var(--border-color); border-radius: var(--radius);
    background: var(--card-bg); width: 100%; display: block;
}
.shot figcaption { color: var(--text-muted); font-size: .9rem; margin-top: .6rem; }

/* --- tables ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare th, .compare td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.compare thead th {
    background: var(--card-bg); color: var(--text-muted);
    font-size: .85rem; text-transform: uppercase; letter-spacing: .04em;
}
.compare tbody th { font-weight: 600; }
.compare td { color: var(--text-muted); }
.compare tbody tr:hover { background: rgba(255, 255, 255, .02); }

/* --- Q&A / legal -------------------------------------------------------- */
.qa { border-bottom: 1px solid var(--border-color); padding-bottom: 1.25rem; margin-bottom: 1.5rem; }
.qa:last-child { border-bottom: 0; }
.legal article { margin-bottom: 1.75rem; }
.legal p { color: var(--text-muted); }
.about-logo { height: 140px; width: auto; margin-bottom: 1.25rem; }

/* --- footer ------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--border-color);
    background: #0b1017;
    padding: 2.5rem 0 1.5rem;
    margin-top: 1rem;
}
.footer-inner {
    display: grid; grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 1.75rem;
}
.footer-brand { font-size: 1.15rem; font-weight: 700; margin-bottom: .35rem; }
.footer-tagline { color: var(--text-muted); font-size: .92rem; }
.footer-heading { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: var(--text-main); font-size: .93rem; }
.footer-col a:hover { color: var(--accent-hover); }
.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 1.75rem; padding-top: 1.1rem;
    color: var(--text-muted); font-size: .87rem;
}
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }
