/* RefStats – Website-Styles */

/* ---------- Fonts ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('../fonts/inter-v12-latin-regular.woff2') format('woff2'), url('../fonts/inter-v12-latin-regular.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('../fonts/inter-v12-latin-500.woff2') format('woff2'), url('../fonts/inter-v12-latin-500.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('../fonts/inter-v12-latin-700.woff2') format('woff2'), url('../fonts/inter-v12-latin-700.woff') format('woff'); }

/* ---------- Tokens ---------- */
:root {
    --bg: #0b0b0c;
    --tile: #18181a;
    --text: #f2f2f2;
    --muted: #a0a0a5;
    --line: rgba(255, 255, 255, .09);
    --accent: #ff9f0a;
    --radius: 24px;
    --wrap: 1200px;
    --gutter: clamp(20px, 4vw, 32px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.h2 { font-size: clamp(36px, 4.6vw, 56px); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 12px;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-accent { background: var(--accent); color: #000; }
.btn-accent:hover { background: #ffb23f; }
.btn-light { background: rgba(255, 255, 255, .1); color: var(--text); }
.btn-light:hover { background: rgba(255, 255, 255, .16); }
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: #1a1a1a; }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 11, 12, .85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-icon { width: 28px; height: 28px; border-radius: 7px; background: #fff; }
.nav-links { display: flex; gap: 26px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav .btn { margin-left: auto; }
}

/* ---------- Foto + überlappender Screenshot (Grundbaustein) ---------- */
.visual { position: relative; padding: 0 0 56px 56px; }
.visual .photo { border-radius: var(--radius); overflow: hidden; }
.visual .photo img { width: 100%; height: 100%; object-fit: cover; }
.visual .shot {
    position: absolute;
    left: 0; bottom: 0;
    width: 58%;
    border-radius: 18px;
    overflow: hidden;
    border: 6px solid var(--bg);
    background: #000;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .45);
}
.visual .tag {
    position: absolute;
    right: 18px; top: 18px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 14px;
    padding: 7px 13px;
    border-radius: 10px;
}
/* gespiegelt: Screenshot rechts unten */
.visual.flip { padding: 0 56px 56px 0; }
.visual.flip .shot { left: auto; right: 0; }
.visual.flip .tag { right: auto; left: 18px; }
@media (max-width: 560px) {
    .visual, .visual.flip { padding: 0 0 40px 24px; }
    .visual.flip .shot { right: auto; left: 0; }
    .visual .shot { width: 66%; border-width: 4px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(44px, 5.8vw, 72px); }
.hero-text p { margin-top: 24px; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 44ch; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hero-actions small { font-size: 14px; color: var(--muted); }
.hero .photo { aspect-ratio: 4 / 5; }
.hero .photo img { object-position: 50% 20%; }
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero .visual { max-width: 520px; }
}

/* ---------- Funktionen ---------- */
.features-head { max-width: 640px; margin-bottom: clamp(48px, 7vw, 88px); }
.features-head p { margin-top: 18px; color: var(--muted); font-size: 18px; }
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.showcase + .showcase { margin-top: clamp(72px, 9vw, 120px); }
.showcase .photo { aspect-ratio: 4 / 3; }
.showcase-text .num { font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.showcase-text h3 { margin-top: 12px; font-size: clamp(30px, 3.4vw, 42px); }
.showcase-text > p { margin-top: 18px; color: var(--muted); max-width: 44ch; }
.points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 14px; padding: 16px 18px; background: var(--tile); border: 1px solid var(--line); border-radius: 14px; }
.points b { display: block; font-weight: 500; }
.points span { display: block; margin-top: 2px; color: var(--muted); font-size: 15px; }
.points .dot { flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--accent); }
@media (min-width: 901px) {
    .showcase.reverse .showcase-text { order: 2; }
}
@media (max-width: 900px) {
    .showcase { grid-template-columns: 1fr; }
    .showcase .visual { max-width: 560px; }
}

/* ---------- Zitat ---------- */
.quote {
    display: grid;
    grid-template-columns: 340px 1fr;
    background: var(--tile);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 0;
}
.quote img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; min-height: 300px; }
.quote-body { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.4; letter-spacing: -0.015em; font-weight: 500; }
.quote blockquote p::before { content: "„"; color: var(--accent); }
.quote blockquote p::after { content: "“"; color: var(--accent); }
.quote figcaption { margin-top: 24px; color: var(--muted); font-size: 15px; }
.quote figcaption strong { color: var(--text); font-weight: 500; }
@media (max-width: 760px) {
    .quote { grid-template-columns: 1fr; }
    .quote img { aspect-ratio: 3 / 2; min-height: 0; }
}

/* ---------- Preise ---------- */
.pricing-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.perks { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.perks li { padding: 8px 14px; border-radius: 10px; background: var(--tile); border: 1px solid var(--line); font-size: 15px; }
.perks li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.plan {
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-radius: 20px;
    background: var(--tile);
    border: 1px solid var(--line);
}
.plan-name { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan-price { margin-top: 12px; font-size: 52px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.plan-price small { font-size: 20px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.plan-sub { margin-top: 10px; font-size: 15px; color: var(--muted); }
.plan-desc { margin-top: 20px; font-size: 15px; color: var(--muted); flex: 1; }
.plan .btn { margin-top: 28px; }
.plans-2 { grid-template-columns: repeat(2, 1fr); }
.plan-list li.no { color: var(--muted); }
.plan-list li.no::before { content: "–"; color: var(--muted); }
.pricing-note { max-width: 420px; color: var(--muted); }
.plan-list { list-style: none; margin: 24px 0 0; padding: 0; flex: 1; }
.plan-list li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.plan-list li::before { content: "✓"; font-weight: 700; color: var(--accent); margin-right: 10px; }
.plan-hl .plan-list li { border-top-color: rgba(0, 0, 0, .15); }
.plan-hl .plan-list li::before { color: #000; }
.plan-hl { background: var(--accent); border-color: var(--accent); color: #000; }
.plan-hl .plan-name, .plan-hl .plan-sub, .plan-hl .plan-desc, .plan-hl .plan-price small { color: rgba(0, 0, 0, .68); }
.fineprint { margin-top: 24px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
    .plans { grid-template-columns: 1fr; max-width: 460px; }
    .plan-hl { order: -1; }
}

/* ---------- Abschluss ---------- */
.cta {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: center;
    background: var(--accent);
    color: #000;
    border-radius: var(--radius);
    padding: clamp(32px, 5vw, 64px);
}
.cta h2 { font-size: clamp(32px, 4vw, 52px); }
.cta p { margin-top: 14px; font-size: 18px; color: rgba(0, 0, 0, .7); }
.cta-side { justify-self: end; }
@media (max-width: 760px) {
    .cta { grid-template-columns: 1fr; }
    .cta-side { justify-self: start; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------- Rechtstexte (Impressum, Datenschutz, AGB) ---------- */
.legal { padding: clamp(48px, 8vw, 96px) 0; }
.legal .wrap { max-width: 800px; }
.legal h2.display-4 { font-size: clamp(34px, 5vw, 52px); }
.legal h3 { font-size: 21px; letter-spacing: -0.015em; margin-top: 40px; margin-bottom: 10px; }
.legal p, .legal li { color: var(--muted); }
.legal .lead { margin-top: 20px; color: var(--text); font-size: 19px; }
.legal ul { padding-left: 22px; margin: 8px 0 0; }
.legal li + li { margin-top: 4px; }
.legal strong { color: var(--text); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
}
