/* CannaPreis /copy/ — Design System */

/* === WP THEME COMPAT VARS (used in REST-API rendered WP content) === */
:root {
  --zen-font: 'Inter', sans-serif;
  --zen-text: #111827;
  --zen-text-muted: #6b7280;
  --zen-text-light: #9ca3af;
  --zen-border: #e5e7eb;
  --zen-border-dark: #d1d5db;
  --zen-bg: #fff;
  --zen-bg-light: #f9fafb;
  --zen-surface: #fff;
  --zen-primary: #10c956;
  --zen-success: #10b981;
  --zen-cta: #10c956;
  --zen-gap: 16px;
  --zen-radius-sm: 8px;
  --zen-max-width: 820px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.cp-body { margin: 0; font-family: 'Inter', sans-serif; background: #fff; color: #111827; }

/* === HEADER === */
.cp-header {
  position: sticky; top: 0; z-index: 200;
  background: #fff; border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.cp-header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 20px; height: 64px;
  display: flex; align-items: center; gap: 20px;
}
.cp-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0; cursor: pointer;
}
.cp-logo:hover img { opacity: .88; }
.cp-logo img { height: 38px; width: auto; display: block; }
.cp-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.cp-nav-link {
  text-decoration: none; color: #4b5563; font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: 8px; transition: all .18s; white-space: nowrap;
}
.cp-nav-link:hover { background: #ecfdf3; color: #059669; }
.cp-nav-link.active { background: #ecfdf3; color: #059669; font-weight: 600; }
.cp-nav-zen { color: #10c956 !important; font-weight: 600; }

/* === NAV DROPDOWN (Markt → Apotheken / Hersteller / Städte) === */
.cp-nav-group { position: relative; }
.cp-nav-subnav {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.13);
  padding: 6px; min-width: 168px; z-index: 300;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  pointer-events: none;
}
.cp-nav-group:hover .cp-nav-subnav,
.cp-nav-group:focus-within .cp-nav-subnav {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.cp-nav-sub-link {
  display: block; padding: 8px 12px; border-radius: 7px;
  font-size: 13.5px; font-weight: 500; color: #374151;
  text-decoration: none; white-space: nowrap;
}
.cp-nav-sub-link:hover { background: #ecfdf3; color: #059669; }
.cp-nav-sub-divider { height: 1px; background: #f3f4f6; margin: 4px 6px; }
.cp-nav-sub-overview { font-size: 12.5px; color: #9ca3af !important; }
.cp-nav-sub-overview:hover { color: #6b7280 !important; background: #f9fafb !important; }

.cp-hamburger {
  display: none; flex-direction: column; justify-content: space-around;
  width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 4px;
}
.cp-hamburger span { display: block; width: 100%; height: 2px; background: #4b5563; border-radius: 2px; transition: all .2s; }

@media (max-width: 900px) {
  .cp-hamburger { display: flex; margin-left: auto; }
  .cp-nav { display: none !important; }
}

/* =============================================
   MOBILE MENU DRAWER
   ============================================= */
.cp-menu-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 500;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.cp-menu-overlay.open { display: block; }

.cp-menu-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 92vw); background: #fff; z-index: 600;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.32,.72,0,1);
  display: flex; flex-direction: column; overflow: hidden;
}
.cp-menu-drawer.open { transform: translateX(0); }

/* Head */
.cp-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #f3f4f6; flex-shrink: 0;
}
.cp-menu-logo { display: flex; align-items: center; text-decoration: none; }
.cp-menu-logo img { height: 30px; width: auto; }
.cp-menu-close {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid #e5e7eb;
  background: #f9fafb; cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: #4b5563; transition: all .2s; flex-shrink: 0;
}
.cp-menu-close:hover { background: #f3f4f6; color: #111827; }

/* Search */
.cp-menu-search {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 20px; padding: 12px 16px;
  background: #f3f4f6; border-radius: 50px;
}
.cp-menu-search input {
  border: none; background: transparent; outline: none;
  font-size: 14px; font-family: inherit; color: #111827; flex: 1; min-width: 0;
}
.cp-menu-search input::placeholder { color: #9ca3af; }

/* Body */
.cp-menu-body { flex: 1; overflow-y: auto; padding: 4px 0 8px; }
.cp-menu-section-label {
  font-size: 11px; font-weight: 700; color: #9ca3af; letter-spacing: .1em;
  padding: 12px 20px 8px;
}

/* Menu Items */
.cp-menu-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px; text-decoration: none; color: inherit;
  transition: background .15s; border-bottom: 1px solid #f9fafb;
}
.cp-menu-item:hover { background: #f9fafb; }
.cp-menu-item:active { background: #f3f4f6; }
.cp-menu-icon {
  width: 50px; height: 50px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.cp-menu-item-text { flex: 1; min-width: 0; }
.cp-menu-item-title { display: block; font-size: 16px; font-weight: 600; color: #111827; line-height: 1.3; }
.cp-menu-item-sub   { display: block; font-size: 12px; color: #9ca3af; margin-top: 1px; }
.cp-menu-chevron { flex-shrink: 0; }

/* Footer CTAs */
.cp-menu-footer {
  padding: 16px 20px; border-top: 1px solid #f3f4f6;
  display: flex; flex-direction: column; gap: 10px; flex-shrink: 0;
}
.cp-menu-cta-outline {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 10px; border: 1.5px solid #e5e7eb;
  text-decoration: none; font-size: 15px; font-weight: 600; color: #374151;
  background: #fff; transition: all .2s;
}
.cp-menu-cta-outline:hover { border-color: #10c956; color: #059669; }
.cp-menu-cta-primary {
  display: block; text-align: center;
  padding: 14px 20px; border-radius: 10px;
  background: #10c956; color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 700; transition: background .2s;
}
.cp-menu-cta-primary:hover { background: #0daa48; }

/* === MAIN === */
.cp-main { min-height: 70vh; }
.cp-container { max-width: 1200px; margin: 0 auto; padding: 32px 20px; }

/* === HERO === */
.cp-home-hero {
  background: linear-gradient(160deg, #0a1628 0%, #0f2318 50%, #0a1628 100%);
  padding: 64px 20px 56px;
}
.cp-hero-content { max-width: 700px; margin: 0 auto; text-align: center; }
.cp-hero-badge {
  display: inline-block; background: rgba(16,201,86,.12); border: 1px solid rgba(16,201,86,.35);
  border-radius: 4px; padding: 5px 16px; font-size: 11px; font-weight: 700;
  color: #10c956; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px;
}
.cp-hero-h1 {
  position: relative; font-size: clamp(26px, 4vw, 40px); font-weight: 900;
  color: #fff; margin: 0 0 16px; line-height: 1.15; letter-spacing: -.02em;
  min-height: 1.3em;
}
.cp-hero-line {
  position: absolute; left: 0; right: 0;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.cp-hero-line.active { position: relative; opacity: 1; transform: translateY(0); }
.cp-hero-sub { font-size: clamp(14px, 1.8vw, 17px); color: rgba(255,255,255,.92); margin: 0 0 32px; line-height: 1.6; }
.cp-search-bar {
  max-width: 560px; margin: 0 auto; display: flex; gap: 0;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.cp-search-bar input {
  flex: 1; border: none; padding: 16px 20px; font-size: 16px;
  font-family: inherit; outline: none; color: #111827;
}
.cp-search-bar button {
  background: #059669; color: #fff; border: none; padding: 16px 24px;
  font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background .2s; white-space: nowrap;
}
.cp-search-bar button:hover { background: #047857; }
.cp-hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.cp-hero-cta-link {
  display: inline-block; padding: 9px 18px; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.4); border-radius: 8px;
  color: #fff; font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background .18s;
}
.cp-hero-cta-link:hover { background: rgba(255,255,255,.25); }

/* === TICKER === */
.cp-ticker {
  background: #f8f9fa; border-bottom: 1px solid #e5e7eb;
}
.cp-ticker-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; overflow-x: auto; scrollbar-width: none;
}
.cp-ticker-inner::-webkit-scrollbar { display: none; }
.cp-ticker-item {
  flex: 1 0 auto; padding: 12px 24px;
  border-right: 1px solid #e5e7eb;
  display: flex; flex-direction: column; gap: 2px;
  align-items: center; min-width: 120px;
}
.cp-ticker-item:last-child { border-right: none; }
.cp-ticker-label { font-size: 10px; font-weight: 700; color: #9ca3af; letter-spacing: .08em; }
.cp-ticker-val { font-size: 15px; font-weight: 800; color: #111827; }
.cp-ticker-green { color: #059669; }

/* === USP FEATURE BAR === */
.cp-usp-bar {
  background: #fff; border-bottom: 1px solid #e5e7eb;
  padding: 14px 20px;
}
.cp-usp-bar { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 28px; max-width: 1200px; margin: 0 auto; }
.cp-usp-item { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #374151; white-space: nowrap; }
.cp-usp-item svg { flex-shrink: 0; }

/* === BREADCRUMB === */
.cp-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #9ca3af; margin-bottom: 20px; flex-wrap: wrap;
}
.cp-breadcrumb a { color: #6b7280; text-decoration: none; }
.cp-breadcrumb a:hover { color: #10c956; }
.cp-breadcrumb span { color: #d1d5db; }

/* === SECTION TITLE === */
.cp-section-title {
  font-size: 20px; font-weight: 800; color: #111827;
  margin: 0 0 20px; padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
}
.cp-section-title span { color: #10c956; }

/* === PRODUCT GRID === */
.cp-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 16px;
}
.cp-product-card {
  border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden;
  background: #fff; transition: all .22s; display: flex; flex-direction: column;
}
.cp-product-card:hover { border-color: #10c956; box-shadow: 0 4px 20px rgba(16,201,86,.13); transform: translateY(-2px); }
.cp-product-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.cp-card-img { width: 100%; height: 140px; object-fit: cover; display: block; transition: transform .3s; }
.cp-product-card:hover .cp-card-img { transform: scale(1.04); }
.cp-card-body { padding: 14px; flex-grow: 1; }
.cp-card-title { font-size: 14px; font-weight: 700; margin: 0 0 4px; color: #111827; line-height: 1.3; }
.cp-card-sub { font-size: 12px; color: #6b7280; margin: 0; }
.cp-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-top: 1px solid #f3f4f6; background: #f9fafb;
}
.cp-card-price { font-size: 15px; font-weight: 800; color: #059669; }
.cp-card-link {
  font-size: 12px; font-weight: 600; color: #4b5563;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 6px;
  padding: 4px 10px; transition: all .2s;
}
.cp-product-card:hover .cp-card-link { background: #10c956; color: #fff; border-color: #10c956; }

/* === MORE LINK === */
.cp-more-link {
  color: #059669; font-weight: 700; text-decoration: none; font-size: 14px;
  padding: 8px 20px; border: 2px solid #10c956; border-radius: 8px;
  display: inline-block; transition: all .2s;
}
.cp-more-link:hover { background: #10c956; color: #fff; }

/* === SKELETON LOADER === */
.cp-skeleton {
  background: linear-gradient(90deg,#f3f4f6 25%,#e9ecef 50%,#f3f4f6 75%);
  background-size: 200% 100%;
  animation: cp-shimmer 1.4s infinite;
  display: inline-block;
}
@keyframes cp-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.cp-skeleton-row { pointer-events: none; }

/* === ANALYTICS GRID (Marktanalyse-Abschnitt Homepage) === */
.cp-markt-grid {
  display: grid; grid-template-columns: 220px 1fr; gap: 20px;
  margin-bottom: 40px;
}
@media (max-width: 800px) { .cp-markt-grid { grid-template-columns: 1fr; } }
.cp-markt-right { display: flex; flex-direction: column; gap: 20px; }
.cp-analytics-box {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 20px; height: 100%;
}
.cp-analytics-title { font-size: 15px; font-weight: 700; color: #111827; margin-bottom: 2px; }
.cp-analytics-sub { font-size: 12px; color: #9ca3af; margin-bottom: 16px; }

/* Hersteller Bars */
.cp-hersteller-bars { display: flex; flex-direction: column; gap: 8px; }
.cp-hbar { display: flex; align-items: center; gap: 8px; }
.cp-hbar-label {
  width: 80px; font-size: 12px; font-weight: 600; color: #374151;
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex-shrink: 0;
}
.cp-hbar-label:hover { color: #10c956; }
.cp-hbar-wrap { flex: 1; height: 12px; background: #f3f4f6; border-radius: 6px; overflow: hidden; }
.cp-hbar-fill { height: 100%; background: linear-gradient(90deg, #10c956, #34d375); border-radius: 6px; transition: width .6s ease; }
.cp-hbar-val { font-size: 11px; font-weight: 700; color: #6b7280; width: 28px; text-align: right; flex-shrink: 0; }

/* Genetics Bars */
.cp-genetics-bars { display: flex; flex-direction: column; gap: 12px; }
.cp-gen-bar { display: flex; align-items: center; gap: 10px; }
.cp-gen-label { width: 50px; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.cp-gen-label.sativa { color: #10c956; }
.cp-gen-label.indica { color: #059669; }
.cp-gen-label.hybrid { color: #34d375; }
.cp-gen-track { flex: 1; height: 14px; background: #f3f4f6; border-radius: 7px; overflow: hidden; }
.cp-gen-fill { height: 100%; border-radius: 7px; transition: width .6s ease; }
.cp-gen-fill.sativa { background: #10c956; }
.cp-gen-fill.indica { background: #059669; }
.cp-gen-fill.hybrid { background: #34d375; }
.cp-gen-pct { font-size: 12px; font-weight: 700; color: #6b7280; width: 34px; text-align: right; flex-shrink: 0; }

/* === CTA BANNER === */
.cp-cta-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(135deg, #ecfdf3, #d1fae5); border: 1px solid #a7f3d0;
  border-radius: 12px; padding: 20px 24px; margin: 40px 0 0;
}
.cp-cta-text { font-size: 15px; color: #065f46; line-height: 1.5; }
.cp-cta-text strong { display: block; font-size: 17px; font-weight: 800; color: #064e3b; margin-bottom: 2px; }
.cp-cta-btn {
  background: #10c956; color: #fff; text-decoration: none;
  padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 700;
  white-space: nowrap; transition: background .2s; flex-shrink: 0;
}
.cp-cta-btn:hover { background: #0daa48; }
@media (max-width: 600px) { .cp-cta-banner { flex-direction: column; text-align: center; } }

/* === STATS ROW === */
.cp-stats-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.cp-stat-box {
  flex: 1; min-width: 140px;
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 16px 20px; text-align: center;
}
.cp-stat-box .v { font-size: 24px; font-weight: 800; color: #111827; }
.cp-stat-box .l { font-size: 11px; color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

/* === HERO PRODUCT === */
.cp-product-hero {
  background: linear-gradient(135deg, #f9fafb 0%, #ecfdf3 100%);
  border: 1px solid #e5e7eb; border-radius: 16px;
  padding: 32px; margin-bottom: 32px; overflow: hidden;
}
.cp-product-hero-img {
  width: calc(100% + 64px); height: 260px; object-fit: cover; display: block;
  margin: -32px -32px 24px; border-radius: 0;
}
.cp-product-hero h1 { font-size: 28px; font-weight: 800; margin: 0 0 6px; color: #111827; }
.cp-product-hero .cp-handelsname { font-size: 15px; color: #6b7280; margin: 0 0 16px; }
.cp-hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.cp-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid transparent;
}
.cp-badge-green  { background: #ecfdf3; color: #059669; border-color: #a7f3d0; }
.cp-badge-blue   { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.cp-badge-amber  { background: #fffbeb; color: #d97706; border-color: #fde68a; }
.cp-badge-purple { background: #f5f3ff; color: #7c3aed; border-color: #ddd6fe; }
.cp-badge-gray   { background: #f9fafb; color: #4b5563; border-color: #e5e7eb; }
.cp-price-summary { display: flex; gap: 24px; flex-wrap: wrap; }
.cp-price-stat { text-align: center; }
.cp-price-stat .val { font-size: 22px; font-weight: 800; color: #059669; }
.cp-price-stat .lbl { font-size: 11px; color: #9ca3af; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }

/* === PRICE TABLE === */
.cp-price-table-wrap { overflow-x: auto; margin-bottom: 32px; }
.cp-price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cp-price-table th {
  background: #f9fafb; padding: 10px 14px; text-align: left;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: #6b7280; border-bottom: 2px solid #e5e7eb; white-space: nowrap;
}
.cp-price-table td { padding: 12px 14px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.cp-price-table tr:hover td { background: #f9fafb; }
.cp-price-table .cp-rank { font-weight: 700; color: #9ca3af; font-size: 12px; }
.cp-price-table .cp-apo-name { font-weight: 600; color: #111827; }
.cp-price-table .cp-apo-city { font-size: 12px; color: #9ca3af; }
.cp-price-table .cp-apo-price { font-weight: 800; color: #059669; font-size: 16px; }
.cp-price-table .cp-apo-age { font-size: 11px; color: #9ca3af; }
.cp-price-table a { text-decoration: none; color: inherit; }
.cp-price-table a:hover .cp-apo-name { color: #10c956; }
.cp-price-best td { background: #ecfdf3 !important; }

/* === RATGEBER === */
.cp-ratgeber-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.cp-ratgeber-card {
  border: 1px solid #e5e7eb; border-radius: 12px; padding: 0;
  background: #fff; transition: all .2s; text-decoration: none; color: inherit; display: block;
  overflow: hidden;
}
.cp-ratgeber-card:hover { border-color: #10c956; box-shadow: 0 4px 16px rgba(16,201,86,.1); transform: translateY(-2px); }
.cp-ratgeber-card-img { width: 100%; height: 150px; object-fit: cover; display: block; }
.cp-ratgeber-card-body { padding: 16px 18px 18px; }
.cp-ratgeber-card .cat { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #10c956; letter-spacing: .07em; margin-bottom: 8px; }
.cp-ratgeber-card h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: #111827; line-height: 1.4; }
.cp-ratgeber-card p { font-size: 13px; color: #6b7280; margin: 0; line-height: 1.5; }

/* === FRESHNESS === */
.cp-fresh { color: #059669; font-weight: 600; }
.cp-warn  { color: #d97706; font-weight: 600; }
.cp-stale { color: #9ca3af; }

/* === NOTICE === */
.cp-notice {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px;
  padding: 12px 16px; font-size: 13px; color: #92400e; margin-bottom: 20px;
}

/* === PAGINATION === */
.cp-pagination { display: flex; gap: 6px; justify-content: center; margin: 32px 0; flex-wrap: wrap; }
.cp-page-link {
  min-width: 38px; height: 38px; padding: 0 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #e5e7eb; border-radius: 8px; text-decoration: none;
  color: #4b5563; font-size: 14px; font-weight: 600; background: #fff; transition: all .2s;
}
.cp-page-link:hover { border-color: #10c956; color: #10c956; }
.cp-page-link.active { background: #10c956; color: #fff; border-color: #10c956; pointer-events: none; }

/* === KPI GRID === */
.cp-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0 20px; }
.cp-kpi-widget { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 20px 20px 16px; position: relative; overflow: hidden; }
.cp-kpi-widget::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; background: #10c956; }
.cp-kpi-label { font-size: 12px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.cp-kpi-big { font-size: 26px; font-weight: 800; color: #111827; line-height: 1.1; margin-bottom: 6px; }
.cp-kpi-sub { font-size: 11px; color: #9ca3af; }

/* === QUICK PILLS === */
.cp-pill-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 28px; }
.cp-pill { padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb; transition: all .15s; white-space: nowrap; }
.cp-pill:hover { background: #ecfdf3; color: #059669; border-color: #a7f3d0; }

/* === BÖRSEN-DASHBOARD === */
.cp-bm { color: #111827; margin-bottom: 36px; }
.cp-bm-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; margin-bottom: 20px; }
.cp-bm-chart-area { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; min-width: 0; }
.cp-bm-tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.cp-bm-tab { padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; border: 1px solid #e5e7eb; background: transparent; color: #6b7280; cursor: pointer; transition: all .15s; font-family: inherit; }
.cp-bm-tab:hover { border-color: #059669; color: #059669; }
.cp-bm-tab.active { background: #059669; color: #fff; border-color: #059669; }
.cp-bm-index-price { font-size: 30px; font-weight: 800; line-height: 1.1; margin-bottom: 2px; }
.cp-bm-index-change { font-size: 14px; font-weight: 600; margin-left: 8px; }
.cp-bm-index-meta { font-size: 12px; color: #9ca3af; margin-bottom: 14px; }
.cp-bm-periods { display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.cp-bm-period { padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; border: 1px solid #e5e7eb; background: transparent; color: #6b7280; cursor: pointer; transition: all .15s; font-family: inherit; }
.cp-bm-period:hover { border-color: #059669; color: #059669; }
.cp-bm-period.active { background: #059669; color: #fff; border-color: #059669; }
.cp-bm-chart-wrap { position: relative; height: 280px; }
.cp-bm-chart-wrap canvas { width: 100% !important; height: 100% !important; }
.cp-bm-loading { display: flex; align-items: center; justify-content: center; height: 280px; color: #9ca3af; font-size: 13px; }
.cp-bm-spinner { width: 18px; height: 18px; border: 2px solid #e5e7eb; border-top-color: #059669; border-radius: 50%; animation: cp-spin .6s linear infinite; margin-right: 8px; }
@keyframes cp-spin { to { transform: rotate(360deg); } }
.cp-bm-sidebar { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; align-self: start; }
.cp-bm-sidebar-title { font-size: 14px; font-weight: 700; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid #111827; }
.cp-bm-market-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid #f3f4f6; cursor: pointer; transition: background .1s; }
.cp-bm-market-row:last-child { border-bottom: none; }
.cp-bm-market-row:hover { background: #f9fafb; margin: 0 -20px; padding: 9px 20px; }
.cp-bm-market-label { font-size: 13px; font-weight: 500; }
.cp-bm-market-vals { display: flex; gap: 10px; align-items: center; }
.cp-bm-market-price { font-size: 13px; font-weight: 700; }
.cp-bm-market-chg { font-size: 11px; font-weight: 600; color: #9ca3af; }
.cp-bm-ticker { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 8px; margin: 0 0 20px; }
.cp-bm-ticker::-webkit-scrollbar { display: none; }
.cp-bm-ticker-item { flex: 1 0 auto; padding: 10px 18px; border-right: 1px solid #e5e7eb; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.cp-bm-ticker-item:last-child { border-right: none; }
.cp-bm-ticker-label { font-size: 12px; font-weight: 600; color: #6b7280; }
.cp-bm-ticker-price { font-size: 14px; font-weight: 700; }
.cp-bm-bottom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.cp-bm-bottom-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; }
.cp-bm-card-title { font-size: 13px; font-weight: 700; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid #111827; }
.cp-bm-card-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 12px; border-bottom: 1px solid #f9fafb; }
.cp-bm-card-row:last-child { border-bottom: none; }
.cp-bm-card-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; padding-right: 6px; }
.cp-bm-card-name a { color: inherit; text-decoration: none; }
.cp-bm-card-name a:hover { color: #059669; }
.cp-bm-card-price { font-weight: 700; white-space: nowrap; margin-right: 4px; }
.cp-bm-card-chg { font-size: 11px; font-weight: 600; color: #9ca3af; white-space: nowrap; }
.cp-bm-footer { text-align: center; padding: 12px 0 0; font-size: 11px; color: #9ca3af; border-top: 1px solid #e5e7eb; }
.cp-bm-up { color: #dc2626; } .cp-bm-down { color: #059669; } .cp-bm-neutral { color: #9ca3af; }

/* === STÄDTE PREISINDEX === */
.cp-bst-panel { overflow-x: auto; margin-bottom: 32px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.cp-bst-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.cp-bst-tbl th { background: #f9fafb; padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; border-bottom: 2px solid #e5e7eb; white-space: nowrap; }
.cp-bst-tbl th.r { text-align: right; }
.cp-bst-tbl td { padding: 10px 14px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.cp-bst-tbl tr:last-child td { border-bottom: none; }
.cp-bst-tbl tr:hover td { background: #f9fafb; }
.cp-bst-rank { font-weight: 700; color: #9ca3af; font-size: 12px; text-align: center; }
.cp-bst-city a { font-weight: 600; color: #111827; text-decoration: none; }
.cp-bst-city a:hover { color: #10c956; }
.cp-bst-num { text-align: right; font-weight: 600; color: #374151; }
.cp-bst-bar-cell { width: 120px; }
.cp-bst-bar-wrap { background: #f3f4f6; border-radius: 4px; height: 8px; overflow: hidden; }
.cp-bst-bar-fill { height: 100%; background: linear-gradient(90deg, #10c956, #059669); border-radius: 4px; }

/* === FOOTER === */
.cp-footer {
  background: #0f172a; color: #94a3b8;
  padding: 52px 20px 32px; margin-top: 60px;
  border-top: 3px solid #10c956;
}
.cp-footer-inner { max-width: 1200px; margin: 0 auto; }

/* USP row */
.cp-footer-usp {
  text-align: center; padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 36px;
}
.cp-footer-usp-headline {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: #f1f5f9; margin-bottom: 14px;
}
.cp-footer-usp-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cp-footer-usp-badges span {
  padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
  background: rgba(16,201,86,.12); color: #4ade80; border: 1px solid rgba(16,201,86,.25);
}

/* Columns */
.cp-footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
  margin-bottom: 36px;
}
.cp-footer-col-title {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #f1f5f9; margin-bottom: 14px;
}
.cp-footer-col a {
  display: block; color: #94a3b8; text-decoration: none; font-size: 13px;
  line-height: 1; padding: 5px 0; transition: color .15s;
}
.cp-footer-col a:hover { color: #10c956; }

/* Bottom bar */
.cp-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); margin-bottom: 20px;
}
.cp-footer-brand { display: flex; align-items: center; gap: 14px; }
.cp-footer-by { font-size: 12px; color: #64748b; }
.cp-footer-by a { color: #64748b; text-decoration: none; }
.cp-footer-by a:hover { color: #10c956; }
.cp-footer-nav {
  display: flex; gap: 20px; flex-wrap: wrap; align-items: center;
}
.cp-footer-nav a { color: #64748b; text-decoration: none; font-size: 13px; font-weight: 500; }
.cp-footer-nav a:hover { color: #10c956; }

/* Disclaimer */
.cp-footer-disclaimer {
  font-size: 11px; color: #475569; line-height: 1.7; margin: 0;
  max-width: 900px;
}
.cp-footer-disclaimer a { color: #475569; text-decoration: underline; }
.cp-footer-disclaimer a:hover { color: #94a3b8; }

/* === MAP TEASER (Homepage) === */
.cp-map-teaser {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  border: 1px solid #a5f3fc; border-radius: 14px;
  padding: 20px 24px; margin: 32px 0; text-decoration: none; color: inherit;
  transition: box-shadow .2s;
}
.cp-map-teaser:hover { box-shadow: 0 4px 20px rgba(8,145,178,.12); }
.cp-map-teaser-left { display: flex; align-items: flex-start; gap: 14px; flex: 1; min-width: 220px; }
.cp-map-teaser-title { font-size: 15px; font-weight: 800; color: #0e7490; margin-bottom: 3px; }
.cp-map-teaser-sub   { font-size: 13px; color: #0891b2; line-height: 1.4; }
.cp-map-teaser-tabs  { display: flex; gap: 6px; flex-wrap: wrap; }
.cp-map-teaser-tabs span {
  padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
  background: rgba(8,145,178,.1); color: #0e7490; white-space: nowrap;
}
.cp-map-teaser-cta {
  padding: 10px 20px; background: #0891b2; color: #fff;
  border-radius: 9px; font-size: 14px; font-weight: 700; white-space: nowrap;
}

/* === PREISVERLAUF CHART === */
.cp-chart-wrap {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 20px; margin-bottom: 24px;
}

/* === REZEPT CTA BANNER (Preis-Seiten) === */
.cp-rezept-banner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  background: linear-gradient(135deg, #ecfdf3, #d1fae5);
  border: 1px solid #a7f3d0; border-radius: 12px;
  padding: 18px 24px; margin: 24px 0;
}
.cp-rezept-banner-text { display: flex; flex-direction: column; gap: 3px; }
.cp-rezept-banner-text strong { font-size: 15px; color: #065f46; }
.cp-rezept-banner-text span  { font-size: 13px; color: #047857; }
.cp-rezept-banner-btn {
  display: inline-block; padding: 11px 22px; background: #10c956; color: #fff;
  border-radius: 9px; font-size: 14px; font-weight: 700; text-decoration: none;
  white-space: nowrap; transition: background .18s;
}
.cp-rezept-banner-btn:hover { background: #0daa48; }

/* === SHARE ROW (Preis-Seiten) === */
.cp-share-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 16px 0; font-size: 13px; color: #9ca3af;
}
.cp-share-btn {
  display: inline-block; padding: 7px 14px; border: 1px solid #e5e7eb;
  border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
  background: #fff; color: #374151; text-decoration: none; transition: all .18s;
}
.cp-share-btn:hover { border-color: #10c956; color: #10c956; }
.cp-share-wa { background: #25d366; border-color: #25d366; color: #fff; }
.cp-share-wa:hover { background: #1db954; border-color: #1db954; color: #fff; }

/* === POST CONTENT === */
.cp-post-content h2 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; }
.cp-post-content h3 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; }
.cp-post-content p  { margin: 0 0 16px; }
.cp-post-content ul, .cp-post-content ol { padding-left: 24px; margin: 0 0 16px; }
.cp-post-content li { margin-bottom: 6px; }
.cp-post-content a  { color: #10c956; text-decoration: none; }
.cp-post-content a:hover { text-decoration: underline; }
.cp-post-content blockquote { border-left: 4px solid #10c956; padding: 12px 20px; margin: 20px 0; background: #f9fafb; font-style: italic; }
.cp-post-content img { max-width: 100%; height: auto; border-radius: 8px; }
.cp-post-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.cp-post-content table th { background: #f9fafb; padding: 10px 12px; text-align: left; font-size: 13px; border-bottom: 2px solid #e5e7eb; }
.cp-post-content table td { padding: 10px 12px; border-bottom: 1px solid #f3f4f6; font-size: 14px; }

/* =============================================
   RESPONSIVE — MOBILE FIRST
   ============================================= */
@media (max-width: 640px) {
  /* Container */
  .cp-container { padding: 20px 16px; }

  /* Header */
  .cp-header-inner { height: 56px; padding: 0 16px; }
  .cp-logo img { height: 30px; }

  /* Hero */
  .cp-home-hero { padding: 40px 16px 36px; }
  .cp-hero-h1 { font-size: 24px; letter-spacing: -.01em; }
  .cp-hero-sub { font-size: 14px; margin-bottom: 24px; }
  .cp-search-bar input { padding: 13px 16px; font-size: 14px; }
  .cp-search-bar button { padding: 13px 18px; font-size: 14px; }

  /* Ticker */
  .cp-ticker-item { padding: 10px 14px; min-width: 90px; }
  .cp-ticker-label { font-size: 9px; }
  .cp-ticker-val { font-size: 13px; }

  /* Section title */
  .cp-section-title { font-size: 17px; }

  /* KPI grid — 2x2 on mobile */
  .cp-kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cp-kpi-big { font-size: 20px; }

  /* Börsen-Dashboard mobile */
  .cp-bm-grid { grid-template-columns: 1fr; }
  .cp-bm-bottom { grid-template-columns: 1fr; }
  .cp-bm-chart-wrap { height: 220px; }
  .cp-bm-loading { height: 220px; }
  .cp-bm-index-price { font-size: 22px; }
  .cp-bst-bar-cell { display: none; }

  /* Product grid — 2 cols on mobile */
  .cp-product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cp-card-title { font-size: 13px; }
  .cp-card-price { font-size: 13px; }
  .cp-card-link { font-size: 11px; padding: 3px 8px; }

  /* Product hero */
  .cp-product-hero { padding: 20px; }
  .cp-product-hero-img { width: calc(100% + 40px); margin: -20px -20px 20px; height: 200px; }
  .cp-product-hero h1 { font-size: 20px; }
  .cp-price-summary { gap: 12px; }
  .cp-price-stat .val { font-size: 18px; }

  /* Stats row */
  .cp-stats-row { gap: 8px; }
  .cp-stat-box { padding: 12px 14px; min-width: 100px; }
  .cp-stat-box .v { font-size: 18px; }

  /* Analytics */
  .cp-analytics-grid { grid-template-columns: 1fr; }
  .cp-analytics-box { padding: 16px; }
  .cp-hbar-label { width: 56px; font-size: 11px; }

  /* Price table */
  .cp-price-table { font-size: 13px; }
  .cp-price-table th, .cp-price-table td { padding: 10px 10px; }
  .cp-price-table .cp-apo-price { font-size: 14px; }

  /* CTA banner */
  .cp-cta-banner { flex-direction: column; text-align: center; padding: 18px 16px; }

  /* More link */
  .cp-more-link { font-size: 13px; padding: 7px 16px; }

  /* Footer */
  .cp-footer { padding: 36px 16px 24px; }
  .cp-footer-usp-headline { font-size: 13px; }
  .cp-footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cp-footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cp-footer-nav { gap: 12px; }
  .cp-footer-nav a { font-size: 13px; }

  /* Pagination */
  .cp-page-link { min-width: 34px; height: 34px; font-size: 13px; }

  /* Karte */
  #cp-map { height: 300px !important; }
}

@media (max-width: 480px) {
  /* Footer: 1 Spalte auf kleinen Phones */
  .cp-footer-cols { grid-template-columns: 1fr; gap: 20px; }

  /* Ratgeber: 1 Spalte auf kleinen Phones */
  .cp-ratgeber-grid { grid-template-columns: 1fr; }

  /* USP-Bar: kleinerer Abstand + Font */
  .cp-usp-bar { gap: 4px 16px; font-size: 12px; }
}

/* === MARKET STATUS BAR (cp-mbar) === */
.cp-mbar {
  background: #0d1117; border-bottom: 1px solid rgba(255,255,255,.07);
  overflow: hidden;
}
.cp-mbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 0 0 20px;
  display: flex; overflow-x: auto; scrollbar-width: none; align-items: stretch;
}
.cp-mbar-inner::-webkit-scrollbar { display: none; }
.cp-mbar-brand {
  flex-shrink: 0; display: flex; align-items: center;
  font-size: 10px; font-weight: 800; color: #10c956;
  padding: 0 14px 0 0; letter-spacing: .12em;
  text-decoration: none; border-right: 1px solid rgba(255,255,255,.07);
  margin-right: 0;
}
.cp-mbar-item {
  flex: 1 0 auto; padding: 7px 16px;
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column; gap: 1px;
  white-space: nowrap; min-width: 100px;
}
.cp-mbar-item:last-of-type { border-right: none; }
.cp-mbar-label {
  font-size: 9px; font-weight: 700; color: #4b5563;
  letter-spacing: .09em; text-transform: uppercase; line-height: 1;
}
.cp-mbar-val {
  font-size: 12px; font-weight: 700; color: #e5e7eb;
  font-variant-numeric: tabular-nums; line-height: 1.3;
}
.cp-mbar-green { color: #10c956; }
.cp-mbar-live {
  flex-shrink: 0; display: flex; align-items: center;
  padding: 0 16px; font-size: 9px; font-weight: 800;
  color: #10c956; letter-spacing: .1em; margin-left: auto;
  animation: cp-pulse-live 2s ease-in-out infinite;
}
@keyframes cp-pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
@media (max-width: 640px) {
  .cp-mbar-item-hide-sm { display: none; }
  .cp-mbar-item { min-width: 80px; padding: 6px 12px; }
  .cp-mbar-val { font-size: 11px; }
}

/* === SEKTOREN & GENETIK (cp-bs) === */
.cp-bs-wrap { margin-bottom: 36px; }
.cp-bs-genetics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 16px;
}
.cp-bs-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 22px 20px; display: flex; flex-direction: column; gap: 5px;
  transition: all .2s;
}
.cp-bs-card:hover { border-color: #10c956; box-shadow: 0 4px 20px rgba(16,201,86,.13); transform: translateY(-2px); }
.cp-bs-card-icon { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.cp-bs-card-name { font-size: 17px; font-weight: 800; color: #111827; }
.cp-bs-card-avg { font-size: 26px; font-weight: 800; line-height: 1.1; }
.cp-bs-card-meta { font-size: 12px; color: #9ca3af; font-weight: 500; }
.cp-bs-card-min { font-size: 12px; color: #6b7280; }
.cp-bs-card-link { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: #059669; text-decoration: none; }
.cp-bs-card-link:hover { text-decoration: underline; }

.cp-bs-thc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cp-bs-thc-card {
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 18px 16px; display: flex; flex-direction: column; gap: 4px;
}
.cp-bs-thc-icon { font-size: 22px; line-height: 1; }
.cp-bs-thc-label { font-size: 14px; font-weight: 800; color: #111827; }
.cp-bs-thc-sub { font-size: 11px; color: #9ca3af; }
.cp-bs-thc-avg { font-size: 20px; font-weight: 800; margin-top: 4px; }
.cp-bs-thc-cnt { font-size: 11px; color: #6b7280; }
.cp-bs-thc-cheap { font-size: 11px; color: #6b7280; margin-top: 2px; }
.cp-bs-thc-cheap strong { color: #059669; }

/* === HERSTELLER TABLE (cp-htbl) === */
.cp-htbl-wrap { overflow-x: auto; margin-bottom: 32px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.cp-htbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.cp-htbl th { background: #f9fafb; padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; border-bottom: 2px solid #e5e7eb; white-space: nowrap; }
.cp-htbl th.r { text-align: right; }
.cp-htbl td { padding: 10px 14px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.cp-htbl tr:last-child td { border-bottom: none; }
.cp-htbl tr:hover td { background: #f9fafb; }
.cp-htbl-rank { font-weight: 700; color: #9ca3af; font-size: 13px; width: 36px; text-align: center; }
.cp-htbl-name { min-width: 160px; }
.cp-htbl-name a { font-weight: 700; color: #111827; text-decoration: none; display: block; margin-bottom: 5px; }
.cp-htbl-name a:hover { color: #10c956; }
.cp-htbl-bar-wrap { height: 5px; background: #f3f4f6; border-radius: 3px; overflow: hidden; }
.cp-htbl-bar-fill { height: 100%; background: linear-gradient(90deg, #10c956, #34d375); border-radius: 3px; }
.cp-htbl-num { text-align: right; font-weight: 700; color: #374151; }

@media (max-width: 640px) {
  .cp-bs-genetics { grid-template-columns: 1fr; gap: 10px; }
  .cp-bs-thc-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cp-bs-card-avg { font-size: 20px; }
  .cp-bs-thc-avg { font-size: 16px; }
  .cp-bs-thc-card { padding: 12px 10px; }
}

/* ── Analytics Grid ───────────────────────────────────────────────────────── */
.cp-analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 768px) {
  .cp-analytics-grid { grid-template-columns: repeat(2, 1fr); }
}
.cp-anl-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
}
.cp-anl-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cp-anl-value {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 3px;
  line-height: 1.1;
}
.cp-anl-sub { font-size: 11px; color: #9ca3af; }
.cp-anl-green  { color: #059669; }
.cp-anl-amber  { color: #d97706; }
.cp-anl-red    { color: #dc2626; }
.cp-anl-blue   { color: #2563eb; }

/* ── Charts Row ──────────────────────────────────────────────────────────── */
.cp-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .cp-charts-row { grid-template-columns: 1fr; }
}
.cp-chart-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px;
}
.cp-chart-title {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
#cp-price-chart,
#cp-apo-price-chart { max-height: 200px; }

/* ── City Analytics ──────────────────────────────────────────────────────── */
.cp-city-analytics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 640px) {
  .cp-city-analytics { grid-template-columns: 1fr; }
}
.cp-city-anl-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px;
}

/* ── Deals Strip ─────────────────────────────────────────────────────────── */
.cp-deals-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (max-width: 900px) {
  .cp-deals-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 560px) {
  .cp-deals-strip {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cp-deals-strip::-webkit-scrollbar { display: none; }
}
.cp-deal-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
  min-width: 140px;
}
.cp-deal-card:hover {
  border-color: #10c956;
  box-shadow: 0 2px 12px rgba(16,201,86,.12);
}
.cp-deal-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #10c956;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 0 10px 0 7px;
  letter-spacing: .03em;
}
.cp-deal-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 7px;
  margin-bottom: 8px;
}
.cp-deal-name {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cp-deal-sub {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 6px;
}
.cp-deal-price {
  font-size: 15px;
  font-weight: 800;
  color: #10c956;
}

/* ── Top-3-Grid auf Apo/Hersteller-Seiten ──────────────────────────────── */
@media (max-width: 640px) {
  .cp-top3-grid { grid-template-columns: 1fr !important; }
}

/* ── Mobile: Preistabelle scroll ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .cp-price-table th:nth-child(5),
  .cp-price-table td:nth-child(5) { display: none; }
}

/* ── Screener / Markt KPI Grid (4-col → 2-col → 1-col) ───────────────────── */
.cp-screener-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .cp-screener-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cp-screener-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* ── Markt Sub-Nav scroll auf Mobile ─────────────────────────────────────── */
@media (max-width: 640px) {
  .cp-screener-kpis .cp-anl-value { font-size: 18px; }
}

/* ── OHLC Preisverlauf-Karte ──────────────────────────────────────────────── */
.cp-ohlc-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px 22px 16px;
  margin-bottom: 28px;
}
.cp-ohlc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.cp-ohlc-title {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cp-ohlc-sub {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}
.cp-ohlc-trend-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}
.cp-ohlc-trend-badge.green { background: #ecfdf3; color: #059669; }
.cp-ohlc-trend-badge.red   { background: #fef2f2; color: #dc2626; }

/* Zeit-Tabs */
.cp-ohlc-tabs {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 3px;
}
.cp-tab {
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.cp-tab:hover { color: #111827; }
.cp-tab.cp-tab-active {
  background: #fff;
  color: #10c956;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

/* Ticker */
.cp-ohlc-ticker {
  display: flex;
  gap: 0;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.cp-ticker-item {
  flex: 1;
  padding: 10px 12px;
  border-right: 1px solid #f3f4f6;
  min-width: 0;
}
.cp-ticker-item:last-child { border-right: none; }
.cp-ticker-lbl {
  display: block;
  font-size: 10px;
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-ticker-val {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}
.cp-ticker-val.green { color: #059669; }
.cp-ticker-val.red   { color: #dc2626; }

.cp-ohlc-chart-wrap {
  position: relative;
  height: 200px;
  margin-bottom: 12px;
}
.cp-ohlc-chart-wrap canvas { width: 100% !important; height: 100% !important; }

/* Legende */
.cp-ohlc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: #6b7280;
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
}
.cp-ohlc-legend span { display: flex; align-items: center; gap: 5px; }
.cp-ohlc-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cp-ohlc-ticker { flex-wrap: wrap; }
  .cp-ticker-item { flex: 0 0 33.33%; border-bottom: 1px solid #f3f4f6; }
  .cp-ticker-item:nth-child(3) { border-right: none; }
  .cp-ticker-item:nth-child(4),
  .cp-ticker-item:nth-child(5) { border-bottom: none; }
  .cp-ohlc-chart-wrap { height: 180px; }
  .cp-ohlc-legend { gap: 8px; }
}

/* Sparklines */
.cp-spark-wrap { display: flex; justify-content: flex-end; align-items: center; }
