/* ============================================================
   cv-main.css — CannaVape Site Structure
   100% selfmade — kein WordPress, kein Enfold
   ============================================================ */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #10c956; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; padding: 0; margin: 0; }
button { cursor: pointer; border: none; background: none; font: inherit; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: #1a1a2e; }

/* VARIABLES */
:root {
  --cv-green: #10c956;
  --cv-dark: #1a1a2e;
  --cv-text: #333;
  --cv-muted: #666;
  --cv-light: #f8f9fa;
  --cv-border: #e5e7eb;
  --cv-radius: 8px;
  --cv-shadow: 0 2px 12px rgba(0,0,0,.08);
  --cv-max: 1200px;
  --cv-header-h: 64px;
}

/* CONTAINER */
.container { max-width: var(--cv-max); margin: 0 auto; padding: 0 1.25rem; }
.container_wrap { width: 100%; }

/* ===== TOPBAR ===== */
#cvp-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px;
  position: relative;
  font-size: 14px;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease, opacity .2s ease;
}
.cvp-topbar-inner { display: flex; align-items: center; gap: 10px; }
.cvp-topbar-text { color: #fff; font-weight: 500; }
.cvp-topbar-btn {
  background: #fff;
  color: var(--cv-green);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.cvp-topbar-btn:hover { background: #f0fff4; text-decoration: none; }
#cvp-topbar-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.8);
  font-size: 20px;
  line-height: 1;
}

/* ===== HEADER ===== */
#cv-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--cv-border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.cv-header-inner {
  display: flex;
  align-items: center;
  height: var(--cv-header-h);
  max-width: var(--cv-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.cv-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
  text-decoration: none !important;
}
.cv-logo:hover { text-decoration: none !important; }

/* ===== NAV ===== */
.cv-nav { display: flex; align-items: center; }
.cv-nav ul { display: flex; align-items: center; gap: 0; }
.cv-nav ul li a {
  display: block;
  padding: .4rem .75rem;
  font-size: .88rem;
  font-weight: 500;
  color: #333 !important;
  text-decoration: none !important;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.cv-nav ul li a:hover {
  background: #f0fdf4;
  color: var(--cv-green) !important;
  text-decoration: none !important;
}
.cv-nav-cta {
  display: inline-flex !important;
  align-items: center;
  margin-left: .5rem;
  padding: .42rem 1rem !important;
  background: var(--cv-green) !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: .88rem !important;
  transition: background .15s !important;
}
.cv-nav-cta:hover {
  background: #0db84e !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* ===== HAMBURGER ===== */
.cv-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  margin-left: .5rem;
  transition: background .15s;
  flex-shrink: 0;
}
.cv-burger:hover { background: #f5f5f5; }
.cv-burger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #333;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ===== MAIN LAYOUT ===== */
#main { min-height: 60vh; }
#cv-content-wrap { padding: 2rem 0 3rem; }
.template-blog-single { max-width: 860px; margin: 0 auto; }

/* ===== POST HERO ===== */
.cv-post-hero {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.cv-post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.1), rgba(0,0,0,.4));
}

/* ===== BREADCRUMB ===== */
nav.cv-breadcrumb ol,
nav.cv-breadcrumb ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
}
nav.cv-breadcrumb li {
  list-style: none !important;
  display: inline-flex !important;
  align-items: center;
  font-size: .85rem;
  color: #888;
}
nav.cv-breadcrumb li::before { display: none !important; }
nav.cv-breadcrumb li:not(:last-child)::after { content: '›'; margin: 0 .3rem; color: #ccc; font-size: 1rem; }
nav.cv-breadcrumb a { color: #666 !important; text-decoration: none !important; }
nav.cv-breadcrumb a:hover { color: var(--cv-green) !important; }
nav.cv-breadcrumb [aria-current="page"] { color: #999 !important; }

/* ===== MOBILE ===== */
@media (max-width: 960px) {
  .cv-nav { display: none; }
  .cv-burger { display: flex; }
}
@media (max-width: 768px) {
  .cv-post-hero { height: 200px; }
  #cv-content-wrap { padding: 1.25rem 0 2rem; }
}
@media (max-width: 600px) {
  #cvp-topbar { padding: 6px 40px 6px 16px; }
  .cvp-topbar-text { font-size: 14px; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
}
