/* ===================================================================
   Vynoh Marketing / Public Pages – Shared Design System
   Used by: index.php, order.html, feedback.php, support.html, devblog.php
   =================================================================== */

:root {
    --bg-0: #08080a;
    --bg-1: #0d0d11;
    --surface: rgba(20, 21, 27, 0.65);
    --surface-solid: #15161c;
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(230, 72, 58, 0.4);
    --red: #e6483a;
    --red-2: #ff6b52;
    --red-dark: #a5271d;
    --gold: #f2b73d;
    --text: #f2f3f5;
    --muted: #9aa0ac;
    --faint: #5b616e;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-0);
    color: var(--text);
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(230, 72, 58, 0.35); color: #fff; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2b33; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-dark); }

/* Ambient background atmosphere: two soft glows, fixed behind content (pure CSS gradients, no images, so it never conflicts with a page's CSP img-src) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 700px 500px at 88% -5%, rgba(230, 72, 58, 0.16), transparent 60%),
        radial-gradient(ellipse 800px 600px at -10% 100%, rgba(165, 39, 29, 0.14), transparent 60%),
        linear-gradient(180deg, #08080a 0%, #0c0c10 40%, #0a0a0d 100%);
}

/* ============================= Header ============================= */
header {
    background: rgba(12, 12, 15, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 0.9rem 2rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: block;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(230, 72, 58, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

/* full logo incl. wordmark (Icon2-header.png, cropped from Icon2.png), used where no separate <h1> text follows */
.brand-mark-wide {
    height: 42px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.header-container h1,
.footer-brand h1 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
    background: linear-gradient(135deg, var(--red-2), var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-buttons { display: flex; align-items: center; gap: 10px; opacity: 0; transition: opacity 0.3s ease; }
.auth-buttons.loaded { opacity: 1; }
.auth-links { display: flex; align-items: center; gap: 10px; }
.auth-buttons a { text-decoration: none; }

.auth-buttons button,
.btn-primary,
.btn-buy,
.btn-submit {
    background: linear-gradient(145deg, var(--red) 0%, var(--red-dark) 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px rgba(230, 72, 58, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    position: relative;
}

.auth-buttons button { padding: 9px 18px; font-size: 0.88rem; }

.auth-buttons button:hover,
.btn-primary:hover,
.btn-buy:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 8px 26px rgba(230, 72, 58, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.auth-buttons button:active, .btn-primary:active, .btn-buy:active, .btn-submit:active { transform: translateY(0); }

.user-pill, .user-link {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.12);
    color: #7db2fb;
    border: 1px solid rgba(59, 130, 246, 0.28);
    transition: all 0.2s;
}
.logout-pill, .logout-link {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.28);
    transition: all 0.2s;
}
.user-pill:hover, .user-link:hover { background: rgba(59, 130, 246, 0.2); }
.logout-pill:hover, .logout-link:hover { background: rgba(239, 68, 68, 0.2); }

/* ============================= Nav ============================= */
nav {
    background: rgba(10, 10, 13, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 0.7rem 1rem;
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
}

nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 0.55rem 1.15rem;
    font-weight: 500;
    font-size: 0.88rem;
    border-radius: 999px;
    transition: all 0.2s ease;
    position: relative;
}

nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }

nav a.active {
    color: #fff;
    background: linear-gradient(145deg, rgba(230, 72, 58, 0.22), rgba(165, 39, 29, 0.18));
    box-shadow: inset 0 0 0 1px rgba(230, 72, 58, 0.35);
}

/* ============================= Hero ============================= */
.hero {
    text-align: center;
    padding: 4.5rem 2rem 2.5rem;
    position: relative;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(230, 72, 58, 0.1);
    border: 1px solid rgba(230, 72, 58, 0.28);
    color: #ff8a75;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.3rem;
}

.eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red-2);
    box-shadow: 0 0 0 3px rgba(230, 72, 58, 0.25);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h2 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.9rem;
    background: linear-gradient(135deg, #fff 0%, #a7abb5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.65;
}

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

.btn-primary, .btn-secondary {
    padding: 13px 30px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); border-color: rgba(255,255,255,0.22); }

/* ============================= Section header pattern ============================= */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
    margin-bottom: 0.6rem;
}
.section-head p { color: var(--muted); font-size: 0.98rem; line-height: 1.6; }

/* ============================= Cards ============================= */
section { padding: 3rem 2rem; max-width: 1100px; margin: 0 auto; }

.card {
    background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)), var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(230, 72, 58, 0.08);
}

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

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.1rem;
    background: radial-gradient(circle at 30% 30%, rgba(230, 72, 58, 0.25), rgba(230, 72, 58, 0.06));
    border: 1px solid rgba(230, 72, 58, 0.18);
}

.card h3 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 0.7rem; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

.card ul { list-style: none; padding: 0; margin: 0; }
.card ul li {
    padding: 0.65rem 0;
    font-size: 0.93rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.card ul li:last-child { border-bottom: none; }
.card ul li .check { color: #4ade80; font-weight: bold; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ============================= Footer ============================= */
footer {
    background: rgba(9, 9, 11, 0.9);
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 1.5rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand .brand { margin-bottom: 0.9rem; }
.footer-brand p { color: var(--faint); font-size: 0.85rem; line-height: 1.6; max-width: 260px; }

.footer-col h4 {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    margin-bottom: 0.65rem;
    transition: color 0.2s;
    width: fit-content;
}
.footer-col a:hover { color: var(--red-2); }

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.3rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.footer-bottom p { color: var(--faint); font-size: 0.82rem; margin: 0; }
.footer-bottom .footer-social { display: flex; gap: 0.9rem; }
.footer-bottom .footer-social a {
    color: var(--faint);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}
.footer-bottom .footer-social a:hover { color: var(--red-2); }

/* Legacy simple footer (kept for pages not yet migrated to footer-inner) */
.footer-content p { color: var(--faint); font-size: 0.9rem; margin-bottom: 1rem; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--red-2); }

/* ============================= Animations ============================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero, .card, .pricing-card, .update-card { animation: fadeInUp 0.6s ease-out both; }
.card:nth-child(2) { animation-delay: 0.08s; }
.card:nth-child(3) { animation-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ============================= Ad slot framing ============================= */
.ad-wrap { max-width: 1200px; margin: 0 auto; padding: 0.5rem 1.5rem; }
.ad-wrap .ad-label {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
    text-align: center;
    margin-bottom: 0.4rem;
}

/* ============================= Legal pages (Impressum/Datenschutz/AGB) ============================= */
/* These pages have no auth-buttons, so center the lone brand logo instead of space-between */
.header-container.header-center { justify-content: center; }

.legal-page { max-width: 780px; margin: 0 auto; padding: 1rem 2rem 4rem; }

.legal-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)), var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 3.2rem;
    animation: fadeInUp 0.6s ease-out both;
}

.legal-card h3 {
    font-size: 1.1rem;
    color: var(--red-2);
    margin: 2.2rem 0 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.legal-card h3:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: var(--muted); line-height: 1.85; margin-bottom: 1rem; font-size: 0.98rem; }
.legal-card ul { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.legal-card ul li { position: relative; padding-left: 1.5rem; }
.legal-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red-2);
    box-shadow: 0 0 0 3px rgba(230, 72, 58, 0.15);
}
.legal-card a { color: var(--red-2); text-decoration: none; border-bottom: 1px solid rgba(255, 107, 82, 0.3); transition: border-color 0.2s; word-break: break-word; }
.legal-card a:hover { border-color: var(--red-2); }
.legal-card strong { color: #d7d9de; font-weight: 600; }

/* Centered "letterhead" block for company address / contact info */
.legal-address {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.6rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}
.legal-address p { margin: 0; }

.legal-notice {
    margin: 0 0 1.4rem;
    padding: 1rem 1.1rem;
    border-left: 3px solid var(--red-2);
    border-radius: 0 6px 6px 0;
    background: rgba(255, 107, 82, 0.08);
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.legal-updated {
    display: block;
    width: fit-content;
    margin: 1.8rem auto 0;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--faint);
    font-size: 0.78rem;
    text-align: center;
}

@media (max-width: 768px) {
    .legal-page { padding: 0.5rem 1rem 3rem; }
    .legal-card { padding: 1.75rem; }
}

/* ============================= Responsive ============================= */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    header { padding: 0.8rem 1rem; }
    .header-container h1 { font-size: 1.15rem; }
    .hero { padding: 3rem 1rem 2rem; }
    .hero h2 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    section { padding: 2rem 1rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .card { padding: 1.5rem; }
    nav a { padding: 0.5rem 0.8rem; font-size: 0.85rem; }
    .footer-inner { grid-template-columns: 1fr; padding: 2.5rem 1.5rem 1rem; gap: 1.6rem; }
    .footer-bottom { flex-direction: column; text-align: center; padding: 1.2rem 1.5rem; }
}

@media (max-width: 480px) {
    .header-container { flex-direction: column; gap: 0.8rem; }
    .hero h2 { font-size: 1.6rem; }
    .hero-buttons { flex-direction: column; width: 100%; padding: 0 1rem; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
}
