/* ──────────────────────────────────────────────────────────
   Voloop – Info-Site (voloop.de)
   Brand palette synced with PWA css/app.css
   ────────────────────────────────────────────────────────── */

:root {
    --voloop-primary: #1b4332;
    --voloop-primary-light: #2d6a4f;
    --voloop-primary-dark: #132a21;
    --voloop-accent: #f4a012;
    --voloop-accent-light: #f6b342;
    --voloop-success: #28a745;

    --surface-bg: #ffffff;
    --surface-bg-elevated: #f8f9fa;
    --surface-border: #e9ecef;

    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);

    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --container: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
    color: var(--text-primary);
    background: var(--surface-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--voloop-primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Top bar ───────────────────────────────────────────── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--surface-border);
}

.topbar-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar-brand img { height: 36px; width: auto; }

.topbar-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.topbar-nav a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.topbar-nav a:hover { color: var(--voloop-primary); text-decoration: none; }

@media (max-width: 640px) {
    .topbar-nav a:not(.btn) { display: none; }
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.btn-primary {
    background: var(--voloop-accent);
    color: var(--voloop-primary-dark);
    box-shadow: 0 4px 14px rgba(244, 160, 18, 0.35);
}
.btn-primary:hover {
    background: var(--voloop-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(244, 160, 18, 0.45);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--voloop-primary);
    border: 2px solid var(--voloop-primary);
}
.btn-outline:hover {
    background: var(--voloop-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--voloop-primary-dark) 0%, var(--voloop-primary) 50%, var(--voloop-primary-light) 100%);
    color: #fff;
    padding: 6rem 1.25rem 7rem;
    text-align: center;
    isolation: isolate;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.hero .deco-dots {
    position: absolute;
    width: 200px;
    opacity: 0.18;
    pointer-events: none;
    z-index: -1;
    color: #fff;
}
.hero .deco-dots-tr { top: 80px; right: 8%; }
.hero .deco-dots-bl { bottom: 80px; left: 8%; }

.hero-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--voloop-accent-light);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 auto 1.25rem;
    max-width: 820px;
}

.hero-title .highlight {
    position: relative;
    display: inline-block;
    color: var(--voloop-accent);
}
.hero-title .highlight::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.2em;
    height: 0.45em;
    background-image: url('img/deco/brush-underline.svg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0.85;
    filter: invert(72%) sepia(58%) saturate(900%) hue-rotate(354deg) brightness(101%) contrast(96%);
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    opacity: 0.92;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* ── Section base ──────────────────────────────────────── */
section { padding: 5rem 1.25rem; }

.container {
    max-width: var(--container);
    margin: 0 auto;
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--voloop-primary-light);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--voloop-primary-dark);
    margin: 0 0 1rem;
    letter-spacing: -0.015em;
}

.section-lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 680px;
}

.section-head {
    text-align: center;
    margin: 0 auto 3rem;
}
.section-head .section-lead { margin: 0 auto; }

/* ── Features grid ─────────────────────────────────────── */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature {
    background: var(--surface-bg);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--voloop-primary-light);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(27, 67, 50, 0.08);
    color: var(--voloop-primary);
    margin-bottom: 1rem;
}
.feature-icon svg { width: 26px; height: 26px; }

.feature h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    color: var(--voloop-primary-dark);
}
.feature p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ── How it works ──────────────────────────────────────── */
.how {
    background: var(--surface-bg-elevated);
    position: relative;
    overflow: hidden;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}

.step {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem 1.75rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -1.25rem;
    left: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--voloop-accent);
    color: var(--voloop-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
}

.step h3 {
    margin: 0.5rem 0 0.5rem;
    font-size: 1.1rem;
    color: var(--voloop-primary-dark);
}
.step p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }

/* ── Audience ──────────────────────────────────────────── */
.audience {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.audience-card {
    background: linear-gradient(160deg, var(--voloop-primary) 0%, var(--voloop-primary-light) 100%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 2.25rem 1.75rem;
    box-shadow: var(--shadow-md);
}
.audience-card.alt {
    background: linear-gradient(160deg, var(--voloop-accent) 0%, var(--voloop-accent-light) 100%);
    color: var(--voloop-primary-dark);
}
.audience-card h3 { margin: 0 0 0.75rem; font-size: 1.35rem; }
.audience-card ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.audience-card li {
    padding: 0.4rem 0 0.4rem 1.6rem;
    position: relative;
    font-size: 0.97rem;
}
.audience-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* ── CTA banner ────────────────────────────────────────── */
.cta-banner {
    position: relative;
    text-align: center;
    background: linear-gradient(135deg, var(--voloop-primary-dark) 0%, var(--voloop-primary) 100%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 3.5rem 1.5rem;
    overflow: hidden;
    isolation: isolate;
}
.cta-banner h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    margin: 0 0 0.75rem;
}
.cta-banner p {
    margin: 0 auto 2rem;
    max-width: 520px;
    opacity: 0.92;
}

/* ── Footer ────────────────────────────────────────────── */
footer {
    background: var(--voloop-primary-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 1.25rem 2rem;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand img { height: 32px; margin-bottom: 0.75rem; }
.footer-brand p { margin: 0; font-size: 0.9rem; max-width: 320px; }

.footer-links {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.footer-col h4 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 0.75rem;
}
.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    padding: 0.25rem 0;
    font-size: 0.92rem;
}
.footer-col a:hover { color: var(--voloop-accent-light); text-decoration: none; }

.footer-bottom {
    max-width: var(--container);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
}

/* ── Beta / development notice ────────────────────────── */
.announcement-bar {
    background: linear-gradient(90deg, var(--voloop-accent) 0%, var(--voloop-accent-light, #f4c75c) 100%);
    color: #2a1a00;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.announcement-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
    text-align: center;
}
.announcement-badge {
    background: #2a1a00;
    color: var(--voloop-accent-light, #f4c75c);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}
.announcement-text strong { font-weight: 700; }

.hero-note {
    margin: 1.75rem auto 0;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
}
.hero-note strong { color: #fff; font-weight: 600; }
.hero-note-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--voloop-accent);
    box-shadow: 0 0 0 0 rgba(244, 199, 92, 0.8);
    animation: voloop-pulse 2s ease-out infinite;
}
@keyframes voloop-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(244, 199, 92, 0.7); }
    70%  { box-shadow: 0 0 0 0.6rem rgba(244, 199, 92, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 199, 92, 0); }
}

.cta-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

/* ── Privacy notice (no-tracking info banner) ─────────── */
.privacy-notice {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1000;
    background: #fff;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    max-width: 720px;
    margin: 0 auto;
}
.privacy-notice[hidden] { display: none !important; }
.privacy-notice-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    flex-wrap: wrap;
}
.privacy-notice-text {
    margin: 0;
    flex: 1 1 280px;
    font-size: 0.92rem;
    line-height: 1.5;
}
.privacy-notice-text a {
    color: var(--voloop-primary);
    font-weight: 600;
}
.btn.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}
@media (max-width: 480px) {
    .privacy-notice { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; }
    .privacy-notice-inner { padding: 0.8rem; }
}

/* ── Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
