/* ============================================================
   Shopping Manager Classic — shared site design
   Used by index.html, both manuals, privacy and terms pages.
   Upload this file together with any page that links it.
   ============================================================ */

:root {
    --bg-deep: #08090d;
    --bg-primary: #0e1017;
    --bg-secondary: #141620;
    --bg-card: #1a1d2b;
    --bg-card-hover: #1f2336;
    --text-primary: #eef0f6;
    --text-secondary: #8a8fa8;
    --text-muted: #565b73;
    --accent: #1565C0;
    --accent-glow: #1565C040;
    --accent-light: #5E92F3;
    --warm: #26A69A;
    --warm-glow: #26A69A30;
    --success: #3dd68c;
    --border: #1e2235;
    --border-hover: #2d3350;
    --glass: rgba(20, 22, 32, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
}

/* Fine film grain over the whole page */
body::before {
    content: '';
    position: fixed; inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- HEADER (all pages) ---- */
header {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(8, 9, 13, 0.85);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 24px; max-width: 1200px; margin: 0 auto;
}

.logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em;
    color: var(--text-primary); text-decoration: none;
}

.logo-icon {
    width: 34px; height: 34px; border-radius: 9px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3); flex-shrink: 0;
}

.logo-icon img { width: 100%; height: 100%; object-fit: cover; }

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-links a {
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.9rem; font-weight: 500; transition: color 0.25s;
}

.nav-links a:hover { color: var(--text-primary); }

.lang-switch {
    display: flex; background: var(--bg-card); border-radius: 10px;
    border: 1px solid var(--border); overflow: hidden;
}

.lang-switch button, .lang-switch a {
    padding: 7px 13px; border: none; background: transparent;
    color: var(--text-muted); cursor: pointer; font-size: 0.8rem;
    font-weight: 600; transition: all 0.25s; font-family: inherit;
    letter-spacing: 0.04em; text-decoration: none; line-height: 1.5;
}

.lang-switch button.active, .lang-switch a.active { background: var(--accent); color: white; }
.lang-switch button:hover:not(.active), .lang-switch a:hover:not(.active) { color: var(--text-secondary); }

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 26px; border-radius: 14px; font-weight: 600;
    text-decoration: none; transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    font-size: 0.95rem; font-family: inherit;
}

.btn-primary {
    background: var(--accent); color: white;
    box-shadow: 0 4px 20px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.12);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.12);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--bg-card); color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

/* ---- SCROLL ANIMATIONS ---- */
.reveal {
    opacity: 0; transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   LANDING PAGE (index.html)
   ============================================================ */

.hero { padding: 160px 0 100px; position: relative; overflow: hidden; }

.hero::before {
    content: '';
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 900px; height: 600px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute; top: 0; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(ellipse, var(--warm-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
    position: relative; z-index: 1;
}

.hero-text { max-width: 560px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 100px;
    font-size: 0.8rem; color: var(--text-secondary);
    margin-bottom: 28px; font-weight: 500;
}

.hero-badge::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--success); box-shadow: 0 0 8px var(--success);
}

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    font-weight: 800; line-height: 1.15;
    margin-bottom: 22px; letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--warm) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem; color: var(--text-secondary);
    margin-bottom: 36px; line-height: 1.7; max-width: 480px;
}

.cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }

.hero-visual img {
    width: 100%; max-width: 540px; border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-visual:hover img { transform: translateY(-6px) scale(1.01); }

.features { padding: 100px 0; position: relative; }

.features::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-label {
    font-size: 0.78rem; font-weight: 600;
    color: var(--accent-light); text-transform: uppercase;
    letter-spacing: 0.14em; margin-bottom: 12px;
}

.section-header { text-align: center; margin-bottom: 64px; }

.section-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700; margin-bottom: 14px; letter-spacing: -0.02em;
    border: none; padding: 0;
}

.section-header p { color: var(--text-secondary); font-size: 1.05rem; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 18px; padding: 30px;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative; overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--warm));
    opacity: 0; transition: opacity 0.35s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover); background: var(--bg-card-hover);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px; font-size: 1.35rem;
    background: var(--bg-secondary); border: 1px solid var(--border);
}

.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 600; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

.how-it-works { padding: 100px 0; background: var(--bg-primary); position: relative; }

.how-it-works::before, .how-it-works::after {
    content: '';
    position: absolute; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.how-it-works::before { top: 0; }
.how-it-works::after { bottom: 0; }

.steps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; max-width: 960px; margin: 0 auto;
}

.step-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 18px; padding: 32px; text-align: center;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.step-number {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px; font-size: 1.1rem; font-weight: 700;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.step-card h3 { font-size: 1.05rem; margin-bottom: 10px; font-weight: 600; }
.step-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ============================================================
   DOCUMENT PAGES (manual, privacy, terms)
   ============================================================ */

.doc {
    max-width: 880px;
    padding-top: 118px;
    padding-bottom: 80px;
}

.doc-header { margin-bottom: 40px; }

.doc h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800; line-height: 1.15;
    letter-spacing: -0.02em; margin-bottom: 14px;
}

.doc h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem; font-weight: 700;
    letter-spacing: -0.01em;
    margin: 56px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 90px;
}

.doc h3 {
    font-size: 1.12rem; font-weight: 600;
    margin: 32px 0 10px;
    color: var(--text-primary);
    scroll-margin-top: 90px;
}

.doc h4 { font-size: 1rem; font-weight: 600; margin: 22px 0 8px; }

.doc p { margin: 14px 0; color: var(--text-secondary); }
.doc strong { color: var(--text-primary); font-weight: 600; }
.doc em { color: var(--text-primary); font-style: italic; }

.doc ul { margin: 14px 0 20px; padding-left: 22px; color: var(--text-secondary); }
.doc ul ul { margin: 6px 0 8px; }
.doc li { margin: 7px 0; }
.doc li::marker { color: var(--accent-light); }

.doc a { color: var(--accent-light); text-decoration: none; transition: color 0.25s; }
.doc a:hover { color: var(--text-primary); text-decoration: underline; }

.doc code {
    font-family: 'Consolas', 'SF Mono', 'Courier New', monospace;
    background: var(--bg-secondary); border: 1px solid var(--border);
    padding: 1px 6px; border-radius: 6px; font-size: 0.88em;
    color: var(--text-primary);
}

.doc pre {
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px 18px; overflow-x: auto;
    font-family: 'Consolas', 'SF Mono', 'Courier New', monospace;
    font-size: 0.88rem; line-height: 1.55; margin: 16px 0;
}

.doc pre code { background: none; border: none; padding: 0; }

.doc hr { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

/* Subtitle under the document title */
.version { color: var(--text-secondary); font-size: 1.02rem; }
.doc .meta { color: var(--text-muted); font-size: 0.92rem; }

/* Table of contents */
.toc {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 18px; padding: 26px 30px; margin: 36px 0 8px;
}

.toc h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem; font-weight: 600;
    color: var(--accent-light); text-transform: uppercase;
    letter-spacing: 0.14em;
    border: none; padding: 0; margin: 0 0 16px;
}

.toc ul { list-style: none; margin: 0; padding-left: 0; column-gap: 40px; }
.toc ul ul { margin: 4px 0 8px 16px; }
.toc li { margin: 5px 0; }
.toc a { color: var(--text-secondary); }
.toc a:hover { color: var(--accent-light); text-decoration: none; }
.toc ul ul a { font-size: 0.92rem; color: var(--text-muted); }

@media (min-width: 760px) {
    .toc > ul { columns: 2; }
    .toc > ul > li { break-inside: avoid; }
}

/* Callout */
.note {
    border-left: 3px solid var(--accent);
    background: var(--bg-card);
    border-radius: 0 12px 12px 0;
    padding: 14px 18px; margin: 22px 0;
    color: var(--text-secondary);
}

.note strong { color: var(--accent-light); }

/* Tables */
.doc table {
    border-collapse: collapse; width: 100%;
    margin: 18px 0 26px; font-size: 0.94rem;
    border: 1px solid var(--border); border-radius: 12px;
    overflow: hidden;
}

.doc th, .doc td {
    border-bottom: 1px solid var(--border);
    padding: 11px 16px; text-align: left; vertical-align: top;
    color: var(--text-secondary);
}

.doc th {
    background: var(--bg-secondary); color: var(--text-primary);
    font-weight: 600; font-size: 0.88rem;
    text-transform: uppercase; letter-spacing: 0.06em;
}

.doc tr:last-child td { border-bottom: none; }
.doc tbody tr:hover td { background: var(--bg-card); }

/* Wide tables must scroll inside their own box, never the page */
.table-scroll { overflow-x: auto; }

/* Numbered sections in privacy / terms */
.doc section { margin-bottom: 8px; }

/* ---- FOOTER (all pages) ---- */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-links {
    display: flex; gap: 32px; justify-content: center;
    margin-bottom: 20px; flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted); text-decoration: none;
    font-size: 0.88rem; font-weight: 500; transition: color 0.25s;
}

.footer-links a:hover { color: var(--text-secondary); }
.copyright { color: var(--text-muted); font-size: 0.82rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; max-width: 400px; }
}

@media (max-width: 768px) {
    .nav-links a { display: none; }
    .hero { padding: 120px 0 60px; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-text { max-width: 100%; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .cta-buttons { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-visual img { max-width: 420px; }
    .features-grid { grid-template-columns: 1fr; }
    .feature-card, .step-card { padding: 24px; }
    .features, .how-it-works { padding: 70px 0; }
    .doc { padding-top: 100px; }
    .doc h2 { margin-top: 42px; }
    .toc { padding: 20px 22px; }
}

@media (max-width: 480px) {
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .logo { font-size: 1rem; }
}

/* ---- LANGUAGE TOGGLE (index.html only) ---- */
[data-lang] { display: none; }
html[lang="en"] [data-lang="en"] { display: block; }
html[lang="en"] span[data-lang="en"] { display: inline; }
html[lang="de"] [data-lang="de"] { display: block; }
html[lang="de"] span[data-lang="de"] { display: inline; }

.btn span[data-lang], .hero-badge span[data-lang], .logo span[data-lang],
.nav-links span[data-lang], .footer-links span[data-lang] {
    display: none !important;
}
html[lang="en"] .btn span[data-lang="en"],
html[lang="en"] .hero-badge span[data-lang="en"],
html[lang="en"] .logo span[data-lang="en"],
html[lang="en"] .nav-links span[data-lang="en"],
html[lang="en"] .footer-links span[data-lang="en"] { display: inline !important; }
html[lang="de"] .btn span[data-lang="de"],
html[lang="de"] .hero-badge span[data-lang="de"],
html[lang="de"] .logo span[data-lang="de"],
html[lang="de"] .nav-links span[data-lang="de"],
html[lang="de"] .footer-links span[data-lang="de"] { display: inline !important; }

.section-label span[data-lang] { display: none !important; }
html[lang="en"] .section-label span[data-lang="en"] { display: inline !important; }
html[lang="de"] .section-label span[data-lang="de"] { display: inline !important; }
