/*
Theme Name: CatValue Deutschland & UK
Theme URI: https://catvalue.de
Author: CatValue Team
Description: Vollstaendiges Katalysator- & DPF-Ankauf-Theme fuer catvalue.de mit 3-Schritte-Foto-Upload, automatischer OCR/Gemini-Erkennung, eigenem WP-Admin Zuordnungs-Portal, Kat-Katalog, PWA, Cookie-Banner sowie Impressum, Datenschutz, AGB & Widerruf.
Version: 1.0.0
Text Domain: catvalue
*/

:root {
  --bg-dark: #0b1220;
  --bg-dark-elev: #111b2e;
  --bg-dark-card: #131f35;
  --border-dark: #23324d;
  --bg-light: #ffffff;
  --bg-light-alt: #f4f7fb;
  --border-light: #e2e8f0;
  --text-light: #f8fafc;
  --text-muted-l: #94a3b8;
  --text-dark: #0f172a;
  --text-muted-d: #475569;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-soft: #34d399;
  --gold: #f59e0b;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg-dark); color: var(--text-dark); line-height: 1.55; }
.mono { font-family: "JetBrains Mono", Consolas, monospace; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* Header */
.cv-header { position: sticky; top: 0; z-index: 50; background: rgba(11,18,32,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(148,163,184,0.14); padding: 14px 0; color: #fff; }
.cv-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cv-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.28rem; letter-spacing: -0.02em; }
.cv-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cv-nav a, .cv-nav button.nav-link { background: none; border: none; color: #cbd5e1; font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.cv-nav a:hover, .cv-nav button.nav-link:hover { color: #fff; }
.cv-pill { background: rgba(16,185,129,0.16); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.5); padding: 7px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; cursor: pointer; display: inline-block; }
.cv-pill:hover { background: var(--emerald); color: #042117; }

/* Hero */
.cv-hero { background: radial-gradient(circle at 15% 0%, #172a46 0%, #0b1220 58%); color: #fff; padding: 46px 0 56px; }
.cv-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: start; }
.cv-hero h1 { font-size: clamp(2rem, 4vw, 3.05rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px; }
.u-bar { position: relative; display: inline-block; }
.u-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 4px; background: linear-gradient(90deg, #10b981, #34d399); border-radius: 99px; }
.card-dark { background: var(--bg-dark-card); border: 1px solid var(--border-dark); border-radius: var(--radius); padding: 22px; }
.badge-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: var(--emerald); color: #042117; font-weight: 800; font-size: 0.78rem; border-radius: 7px; flex-shrink: 0; }
.btn-primary { width: 100%; background: linear-gradient(135deg, #10b981, #059669); color: #fff; border: none; border-radius: 12px; padding: 13px 16px; font-weight: 800; font-size: 0.94rem; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary small { font-size: 0.75rem; font-weight: 500; opacity: 0.92; }
.btn-ghost { background: transparent; color: #cbd5e1; border: 1px solid var(--border-dark); border-radius: 10px; padding: 9px 14px; font-size: 0.84rem; font-weight: 600; cursor: pointer; }
.btn-ghost:hover { border-color: var(--emerald); color: #6ee7b7; }

/* Sections */
.light-sec { background: var(--bg-light); color: var(--text-dark); padding: 64px 0; }
.light-sec.alt { background: var(--bg-light-alt); }
.dark-sec { background: radial-gradient(circle at 80% 10%, #15253e 0%, #0b1220 65%); color: #fff; padding: 68px 0; }
.sec-title { font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wizard-grid { display: grid; grid-template-columns: 0.92fr 1.15fr; gap: 36px; align-items: start; }
.light-card { background: #fff; border: 1px solid var(--border-light); border-radius: 16px; padding: 18px; }

/* Ticker */
.ticker { margin-top: 30px; background: var(--bg-dark-card); border: 1px solid var(--border-dark); border-radius: var(--radius); padding: 16px 18px; }
.ticker-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; margin-top: 12px; }
.ticker-item { min-width: 215px; background: #0f1a2e; border: 1px solid #243552; border-radius: 12px; padding: 12px 14px; flex-shrink: 0; }
.ticker-price { color: var(--emerald-soft); font-weight: 800; font-size: 1.25rem; }

/* Form */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: #e2e8f0; }
.cv-input { width: 100%; background: #fff; color: #0f172a; border: 2px solid transparent; border-radius: 10px; padding: 11px 12px; font-size: 0.91rem; outline: none; }
.cv-input:focus { border-color: var(--emerald); }
.photo-slot { border: 2px dashed #334155; border-radius: 12px; padding: 12px; background: #0c1424; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.photo-slot.done { border-style: solid; border-color: var(--emerald); }
.photo-slot img { width: 100%; height: 105px; object-fit: cover; border-radius: 8px; }
.mini-btn { background: #1e293b; color: #fff; border: 1px solid #334155; border-radius: 8px; padding: 6px 10px; font-size: 0.76rem; font-weight: 600; cursor: pointer; display: inline-block; }
.status-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; background: rgba(16,185,129,0.2); color: #6ee7b7; }

/* Legal */
.legal-box { background: #fff; color: #0f172a; padding: 48px 0 72px; min-height: 70vh; }
.legal-box h1 { font-size: 1.9rem; margin-bottom: 10px; }
.legal-box h3 { font-size: 1.06rem; margin: 20px 0 6px; color: #0b1220; }
.legal-box p { font-size: 0.94rem; color: #334155; line-height: 1.65; }

/* Footer & Cookie */
.cv-footer { background: #080d18; color: #cbd5e1; padding: 48px 0 36px; border-top: 1px solid #1e293b; }
.cv-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; margin-bottom: 24px; }
.cv-footer a:hover { color: #34d399; }
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 680px; margin: 0 auto; z-index: 120; background: #0f172a; color: #f8fafc; border: 1px solid #2b3e5e; border-radius: 16px; padding: 18px 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.55); }
.cv-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.82); z-index: 150; display: flex; align-items: center; justify-content: center; padding: 20px; }

@media (max-width: 900px) { .cv-hero-grid, .wizard-grid, .cv-footer-grid, .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }
