/* ═══════════════════════════════════════════════
   ColdCall Wissen — Free Content Bereich
   CI-konsistent mit coldcall-landing.html
   Dynamic Bento Grid + Overlay Cards
   ═══════════════════════════════════════════════ */

:root {
  --ccw-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --ccw-bg: #f7f8fc;
  --ccw-bg-white: #ffffff;
  --ccw-text: #1a1f36;
  --ccw-text-light: #4a5568;
  --ccw-text-muted: #8492a6;
  --ccw-primary: #2563eb;
  --ccw-primary-dark: #1d4ed8;
  --ccw-primary-light: #dbeafe;
  --ccw-primary-lighter: #eff6ff;
  --ccw-accent: #4f46e5;
  --ccw-accent-light: #e0e7ff;
  --ccw-cyan: #00F0FF;
  --ccw-cyan-dark: #00B4D8;
  --ccw-border: #e2e8f0;
  --ccw-border-light: #edf2f7;
  --ccw-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --ccw-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --ccw-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --ccw-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --ccw-radius: 12px;
  --ccw-radius-lg: 16px;
  --ccw-radius-xl: 24px;
  --ccw-max-width: 1200px;
  --ccw-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ccw-green: #059669;
}

/* ── Reset & Base ─────────────────────────── */
.ccw-page *,
.ccw-page *::before,
.ccw-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.ccw-page {
  font-family: var(--ccw-font);
  color: var(--ccw-text);
  background: var(--ccw-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  min-height: 100vh;
}

.ccw-page img {
  max-width: 100%;
  display: block;
}

.ccw-page a {
  text-decoration: none;
  color: inherit;
  transition: color var(--ccw-transition);
}

.ccw-container {
  max-width: var(--ccw-max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ── Scroll Progress Bar ──────────────────── */
.ccw-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--ccw-primary), var(--ccw-cyan));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ══════════════════════════════════════════════
   ARCHIVE — Übersichtsseite
   ══════════════════════════════════════════════ */

/* ── Top Nav (inline in hero) ─────────────── */
.ccw-topnav-inner {
  margin-bottom: clamp(16px, 3vw, 28px);
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ccw-topnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all var(--ccw-transition);
}

.ccw-topnav-brand:hover {
  color: #00F0FF !important;
}

.ccw-topnav-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
}

.ccw-topnav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ccw-topnav-cta:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.4);
  color: #00F0FF !important;
  transform: translateY(-1px);
}

.ccw-topnav-cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--ccw-transition);
}

.ccw-topnav-cta:hover svg {
  transform: translateX(3px);
}

/* ── Sticky Pill (appears on scroll) ──────── */
.ccw-sticky-pill {
  position: fixed;
  top: 16px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 8px 8px 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);

  /* Hidden by default — animate in */
  opacity: 0;
  transform: translateY(-20px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ccw-sticky-pill.ccw-pill-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ccw-pill-brand {
  display: flex;
  align-items: center;
  padding: 4px;
  text-decoration: none;
}

.ccw-pill-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform var(--ccw-transition);
}

.ccw-pill-brand:hover .ccw-pill-logo {
  transform: scale(1.1);
}

.ccw-pill-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 10px;
}

.ccw-pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--ccw-primary), var(--ccw-accent));
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.35);
}

.ccw-pill-cta:hover {
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

/* ── Hero ─────────────────────────────────── */
.ccw-hero {
  position: relative;
  padding: clamp(20px, 3vw, 36px) 0 clamp(40px, 5vw, 60px);
  margin-top: -1px; /* merge with topnav background */
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  overflow: hidden;
}

.ccw-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: ccw-float 12s ease-in-out infinite;
}

.ccw-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: ccw-float 10s ease-in-out infinite reverse;
}

@keyframes ccw-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.ccw-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.ccw-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ccw-cyan);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.ccw-hero-badge svg {
  width: 16px;
  height: 16px;
}

.ccw-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.ccw-hero h1 span {
  background: linear-gradient(135deg, var(--ccw-cyan), var(--ccw-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ccw-hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.65);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Kategorie Filter ─────────────────────── */
.ccw-filter {
  position: relative;
  z-index: 10;
  margin-top: -28px;
}

.ccw-filter-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--ccw-bg-white);
  border-radius: var(--ccw-radius-lg);
  box-shadow: var(--ccw-shadow-lg);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.ccw-filter-inner::-webkit-scrollbar {
  display: none;
}

.ccw-filter-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  border: none;
  border-radius: 100px;
  font-family: var(--ccw-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--ccw-text-light);
  background: transparent;
  cursor: pointer;
  transition: all var(--ccw-transition);
  white-space: nowrap;
  position: relative;
}

.ccw-filter-btn:hover {
  color: var(--ccw-primary);
  background: var(--ccw-primary-lighter);
}

.ccw-filter-btn.active {
  color: #fff;
  background: var(--ccw-primary);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.ccw-filter-btn .ccw-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ccw-text-muted);
  transition: all var(--ccw-transition);
}

.ccw-filter-btn.active .ccw-filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ══════════════════════════════════════════════
   DYNAMIC BENTO GRID — Overlay Cards
   ══════════════════════════════════════════════ */

.ccw-bento-section {
  padding: 48px 0 clamp(60px, 8vw, 100px);
}

/* ── Unified Overlay Card ─────────────────── */
.ccw-card {
  position: relative;
  border-radius: var(--ccw-radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: #1a1f36;
}

.ccw-card-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* Thumbnail fills the entire card */
.ccw-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.ccw-card:hover .ccw-card-img {
  transform: scale(1.06);
}

/* Fallback when no thumbnail */
.ccw-card-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ccw-primary), var(--ccw-accent));
}

.ccw-card-fallback svg {
  width: 56px;
  height: 56px;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Default Overlay: Gradient bottom + Title ── */
.ccw-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(18px, 2.5vw, 28px);
  background: linear-gradient(
    to top,
    rgba(10, 15, 30, 0.85) 0%,
    rgba(10, 15, 30, 0.45) 35%,
    rgba(10, 15, 30, 0.05) 60%,
    transparent 100%
  );
  transition: background 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Badge */
.ccw-card-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  margin-bottom: 12px;
  transition: all var(--ccw-transition);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Title */
.ccw-card-title {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Meta */
.ccw-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 10px;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ccw-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ccw-card-meta svg {
  width: 13px;
  height: 13px;
  opacity: 0.5;
}

/* ── Hover: Full overlay + Excerpt reveals ── */
.ccw-card-excerpt {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-top: 10px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ccw-card:hover .ccw-card-overlay {
  background: linear-gradient(
    to top,
    rgba(10, 15, 30, 0.92) 0%,
    rgba(10, 15, 30, 0.65) 40%,
    rgba(10, 15, 30, 0.35) 65%,
    rgba(10, 15, 30, 0.15) 100%
  );
}

.ccw-card:hover .ccw-card-title {
  transform: translateY(-2px);
}

.ccw-card:hover .ccw-card-excerpt {
  max-height: 80px;
  opacity: 1;
}

.ccw-card:hover .ccw-card-badge {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ══════════════════════════════════════════════
   BENTO GRID LAYOUT — Repeating Pattern

   Pattern A (11 items):
   ┌────────────┬────────┐
   │  1 (60%)   │2 (40%) │  row ~380px
   ├─────┬──────┴────────┤
   │3(25)│ 4(25) │5(50%) │  row ~300px
   ├─────┴───────────────┤
   │   6 (100% panorama) │  row ~260px
   ├────────┬────────────┤
   │7 (40%) │  8 (60%)   │  row ~380px
   ├────┬───┴──┬─────────┤
   │ 9  │  10  │   11    │  row ~300px
   └────┴──────┴─────────┘

   Pattern repeats for 12-22, 23-33, etc.
   ══════════════════════════════════════════════ */

.ccw-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

/* ── Card Sizes ───────────────────────────── */
/* Size: XL — spans 7/12 columns */
.ccw-card--xl {
  grid-column: span 7;
  height: 380px;
}

/* Size: LG — spans 5/12 columns */
.ccw-card--lg {
  grid-column: span 5;
  height: 380px;
}

/* Size: MD — spans 6/12 columns */
.ccw-card--md {
  grid-column: span 6;
  height: 300px;
}

/* Size: SM — spans 3/12 columns */
.ccw-card--sm {
  grid-column: span 3;
  height: 300px;
}

/* Size: FULL — spans 12 columns */
.ccw-card--full {
  grid-column: span 12;
  height: 260px;
}

/* Size: 4-col */
.ccw-card--4 {
  grid-column: span 4;
  height: 300px;
}

/* ── Larger cards: bigger typography ──────── */
.ccw-card--xl .ccw-card-title,
.ccw-card--full .ccw-card-title {
  font-size: clamp(20px, 2.5vw, 30px);
  -webkit-line-clamp: 3;
}

.ccw-card--xl .ccw-card-excerpt,
.ccw-card--full .ccw-card-excerpt {
  -webkit-line-clamp: 3;
  font-size: 15px;
}

.ccw-card--xl .ccw-card-meta,
.ccw-card--full .ccw-card-meta {
  font-size: 13px;
}

.ccw-card--xl .ccw-card-badge,
.ccw-card--full .ccw-card-badge {
  font-size: 12px;
  padding: 6px 16px;
}

/* Full-width: horizontal layout inside overlay */
.ccw-card--full .ccw-card-overlay {
  flex-direction: row;
  align-items: flex-end;
  gap: 24px;
  background: linear-gradient(
    to right,
    rgba(10, 15, 30, 0.9) 0%,
    rgba(10, 15, 30, 0.6) 50%,
    transparent 100%
  );
  padding: clamp(24px, 3vw, 36px);
}

.ccw-card--full:hover .ccw-card-overlay {
  background: linear-gradient(
    to right,
    rgba(10, 15, 30, 0.95) 0%,
    rgba(10, 15, 30, 0.7) 55%,
    rgba(10, 15, 30, 0.3) 100%
  );
}

.ccw-card--full .ccw-card-content {
  max-width: 55%;
}

.ccw-card--full .ccw-card-excerpt {
  -webkit-line-clamp: 2;
}

/* ── No-Thumbnail Fallback ────────────────── */
.ccw-card-fallback {
  min-height: inherit;
}

/* ══════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════ */
.ccw-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 0 clamp(60px, 8vw, 100px);
}

.ccw-pagination a,
.ccw-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--ccw-radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--ccw-text-light);
  background: var(--ccw-bg-white);
  border: 1px solid var(--ccw-border);
  transition: all var(--ccw-transition);
  text-decoration: none;
}

.ccw-pagination a:hover {
  color: var(--ccw-primary);
  border-color: var(--ccw-primary);
  background: var(--ccw-primary-lighter);
  transform: translateY(-2px);
  box-shadow: var(--ccw-shadow);
}

.ccw-pagination .current {
  color: #fff;
  background: var(--ccw-primary);
  border-color: var(--ccw-primary);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.ccw-pagination .dots {
  background: none;
  border: none;
  color: var(--ccw-text-muted);
  cursor: default;
}

/* ── Empty State ──────────────────────────── */
.ccw-empty {
  text-align: center;
  padding: 80px 24px;
}

.ccw-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--ccw-primary-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ccw-empty-icon svg {
  width: 36px;
  height: 36px;
  color: var(--ccw-primary);
}

.ccw-empty h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ccw-empty p {
  color: var(--ccw-text-light);
  font-size: 15px;
}

/* ══════════════════════════════════════════════
   SINGLE — Einzelbeitrag
   ══════════════════════════════════════════════ */

/* ── Back Bar (Single) ────────────────────── */
.ccw-back-bar {
  padding: 12px 0;
  background: var(--ccw-bg-white);
  border-bottom: 1px solid var(--ccw-border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.ccw-back-bar .ccw-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ccw-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ccw-text-light);
  transition: color var(--ccw-transition);
  text-decoration: none;
}

.ccw-back-link:hover {
  color: var(--ccw-primary);
}

.ccw-back-link svg {
  width: 18px;
  height: 18px;
  transition: transform var(--ccw-transition);
}

.ccw-back-link:hover svg {
  transform: translateX(-3px);
}

.ccw-back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ccw-text-muted);
  transition: color var(--ccw-transition);
  text-decoration: none;
}

.ccw-back-home:hover {
  color: var(--ccw-primary);
}

.ccw-back-home svg {
  width: 16px;
  height: 16px;
}

.ccw-back-home-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
}

/* ── Inline Back Link (after content) ─────── */
.ccw-inline-back {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--ccw-border);
}

/* ── Single Hero ──────────────────────────── */
.ccw-single-hero {
  position: relative;
  width: 100%;
  height: clamp(300px, 45vw, 520px);
  overflow: hidden;
}

.ccw-single-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ccw-single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 5vw, 64px);
}

.ccw-single-hero-overlay .ccw-container {
  max-width: 860px;
}

.ccw-single-hero .ccw-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ccw-breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--ccw-transition);
}

.ccw-breadcrumb a:hover {
  color: var(--ccw-cyan);
}

.ccw-breadcrumb svg {
  width: 12px;
  height: 12px;
  opacity: 0.4;
}

.ccw-single-hero h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.ccw-single-hero .ccw-single-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ccw-single-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.ccw-single-meta svg {
  width: 15px;
  height: 15px;
  opacity: 0.5;
}

.ccw-single-meta .ccw-card-badge {
  font-size: 12px;
}

/* ── Single Hero Fallback (no image) ──────── */
.ccw-single-hero-noimg {
  height: auto;
  padding: clamp(100px, 14vw, 160px) 0 clamp(48px, 6vw, 80px);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.ccw-single-hero-noimg .ccw-single-hero-overlay {
  position: relative;
  background: none;
  padding: 0;
}

/* ── Single Content ───────────────────────── */
.ccw-single-content {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 24px clamp(48px, 6vw, 80px);
}

/* Prose Styling */
.ccw-prose {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ccw-text);
}

.ccw-prose > * + * {
  margin-top: 1em;
}

.ccw-prose h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ccw-text);
  margin-top: 1.8em;
  letter-spacing: -0.01em;
}

.ccw-prose h3 {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ccw-text);
  margin-top: 1.5em;
}

.ccw-prose h4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 1.3em;
}

.ccw-prose p {
  color: var(--ccw-text-light);
}

.ccw-prose strong {
  color: var(--ccw-text);
  font-weight: 700;
}

.ccw-prose a {
  color: var(--ccw-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(37, 99, 235, 0.3);
  transition: text-decoration-color var(--ccw-transition);
}

.ccw-prose a:hover {
  text-decoration-color: var(--ccw-primary);
}

.ccw-prose ul,
.ccw-prose ol {
  padding-left: 1.6em;
  color: var(--ccw-text-light);
}

.ccw-prose li {
  margin-top: 0.5em;
}

.ccw-prose li::marker {
  color: var(--ccw-primary);
}

.ccw-prose blockquote {
  border-left: 4px solid var(--ccw-primary);
  padding: 16px 24px;
  margin: 1.2em 0;
  background: var(--ccw-primary-lighter);
  border-radius: 0 var(--ccw-radius) var(--ccw-radius) 0;
  font-style: italic;
  color: var(--ccw-text-light);
}

.ccw-prose img {
  border-radius: var(--ccw-radius);
  margin: 1.2em 0;
  box-shadow: var(--ccw-shadow);
}

.ccw-prose figure {
  margin: 1.2em 0;
}

.ccw-prose figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--ccw-text-muted);
  margin-top: 10px;
}

.ccw-prose pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 24px;
  border-radius: var(--ccw-radius);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
}

.ccw-prose code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.9em;
  background: var(--ccw-primary-lighter);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--ccw-accent);
}

.ccw-prose pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
}

.ccw-prose hr {
  border: none;
  height: 1px;
  background: var(--ccw-border);
  margin: 1.8em 0;
}

.ccw-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 15px;
}

.ccw-prose th,
.ccw-prose td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--ccw-border);
}

.ccw-prose th {
  font-weight: 700;
  color: var(--ccw-text);
  background: var(--ccw-bg);
}

/* ── Single Tags ──────────────────────────── */
.ccw-single-tags {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--ccw-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ccw-single-tags .ccw-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  background: var(--ccw-primary-light);
  color: var(--ccw-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
  transition: all var(--ccw-transition);
  text-decoration: none;
}

.ccw-single-tags .ccw-tag:hover {
  background: var(--ccw-primary);
  color: #fff;
  border-color: var(--ccw-primary);
}

/* ── Related Posts ─────────────────────────── */
.ccw-related {
  padding: clamp(48px, 6vw, 80px) 0;
  background: var(--ccw-bg);
}

.ccw-related-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 36px;
  color: var(--ccw-text);
}

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

.ccw-related-grid .ccw-card {
  height: 280px;
}

/* ── CTA Banner ───────────────────────────── */
.ccw-cta-banner {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  text-align: center;
  overflow: hidden;
}

.ccw-cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 60%);
  border-radius: 50%;
}

.ccw-cta-inner {
  position: relative;
  z-index: 2;
}

.ccw-cta-banner h2 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.ccw-cta-banner p {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.ccw-page .ccw-btn-primary,
.ccw-page .ccw-btn-primary:visited,
.ccw-page .ccw-btn-primary:link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--ccw-primary), var(--ccw-accent));
  color: #fff !important;
  font-family: var(--ccw-font);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
  text-decoration: none;
}

.ccw-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.5);
}

.ccw-btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform var(--ccw-transition);
}

.ccw-btn-primary:hover svg {
  transform: translateX(3px);
}

/* (backlink cards replaced by topnav + sticky pill) */

/* ── Instagram / Social ───────────────────── */
.ccw-social {
  margin-top: 28px;
}

.ccw-page .ccw-instagram-link,
.ccw-page .ccw-instagram-link:visited,
.ccw-page .ccw-instagram-link:link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--ccw-transition);
  text-decoration: none;
}

.ccw-page .ccw-instagram-link:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #00F0FF !important;
  border-color: rgba(0, 240, 255, 0.3);
}

.ccw-instagram-link svg {
  width: 18px;
  height: 18px;
}

/* ══════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════ */

/* ── Scroll Reveal ────────────────────────── */
.ccw-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ccw-reveal.ccw-visible {
  opacity: 1;
  transform: translateY(0);
}

.ccw-reveal.ccw-reveal-scale {
  transform: translateY(20px) scale(0.96);
}

.ccw-reveal.ccw-reveal-scale.ccw-visible {
  transform: translateY(0) scale(1);
}

/* ── Stagger Children ─────────────────────── */
.ccw-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ccw-stagger.ccw-visible > *:nth-child(1)  { transition-delay: 0.05s; }
.ccw-stagger.ccw-visible > *:nth-child(2)  { transition-delay: 0.1s; }
.ccw-stagger.ccw-visible > *:nth-child(3)  { transition-delay: 0.15s; }
.ccw-stagger.ccw-visible > *:nth-child(4)  { transition-delay: 0.2s; }
.ccw-stagger.ccw-visible > *:nth-child(5)  { transition-delay: 0.25s; }
.ccw-stagger.ccw-visible > *:nth-child(6)  { transition-delay: 0.3s; }
.ccw-stagger.ccw-visible > *:nth-child(7)  { transition-delay: 0.35s; }
.ccw-stagger.ccw-visible > *:nth-child(8)  { transition-delay: 0.4s; }
.ccw-stagger.ccw-visible > *:nth-child(9)  { transition-delay: 0.45s; }
.ccw-stagger.ccw-visible > *:nth-child(10) { transition-delay: 0.5s; }
.ccw-stagger.ccw-visible > *:nth-child(11) { transition-delay: 0.55s; }

.ccw-stagger.ccw-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ── Shimmer ──────────────────────────────── */
@keyframes ccw-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── Glow pulse ───────────────────────────── */
@keyframes ccw-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35); }
  50% { box-shadow: 0 4px 32px rgba(37, 99, 235, 0.55); }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  /* Collapse bento to simpler grid */
  .ccw-card--xl { grid-column: span 7; height: 320px; }
  .ccw-card--lg { grid-column: span 5; height: 320px; }
  .ccw-card--md { grid-column: span 6; height: 260px; }
  .ccw-card--sm { grid-column: span 6; height: 260px; }
  .ccw-card--full { height: 240px; }
  .ccw-card--4 { grid-column: span 6; height: 260px; }

  .ccw-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ccw-related-grid .ccw-card {
    height: 240px;
  }
}

@media (max-width: 768px) {
  .ccw-container {
    padding: 0 16px;
  }

  .ccw-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* All cards become 2-col on tablet */
  .ccw-card--xl,
  .ccw-card--lg,
  .ccw-card--md,
  .ccw-card--full {
    grid-column: span 2;
    height: 240px;
  }

  .ccw-card--sm,
  .ccw-card--4 {
    grid-column: span 1;
    height: 220px;
  }

  /* Full-width card: revert to vertical overlay */
  .ccw-card--full .ccw-card-overlay {
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(
      to top,
      rgba(10, 15, 30, 0.9) 0%,
      rgba(10, 15, 30, 0.5) 40%,
      transparent 100%
    );
  }

  .ccw-card--full .ccw-card-content {
    max-width: 100%;
  }

  .ccw-card-title {
    font-size: 15px;
  }

  .ccw-card--xl .ccw-card-title,
  .ccw-card--full .ccw-card-title {
    font-size: 18px;
  }

  .ccw-card-excerpt {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .ccw-filter-inner {
    padding: 8px 12px;
    gap: 6px;
  }

  .ccw-filter-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .ccw-sticky-pill {
    right: 16px;
    top: 12px;
  }

  .ccw-topnav-brand span {
    display: none;
  }

  .ccw-related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ccw-related-grid .ccw-card {
    height: 220px;
  }

  .ccw-single-content {
    padding: 32px 16px 48px;
  }

  .ccw-prose {
    font-size: 16px;
  }

  .ccw-pagination a,
  .ccw-pagination span {
    min-width: 40px;
    height: 40px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .ccw-bento-grid {
    grid-template-columns: 1fr;
  }

  .ccw-card--xl,
  .ccw-card--lg,
  .ccw-card--md,
  .ccw-card--sm,
  .ccw-card--full,
  .ccw-card--4 {
    grid-column: span 1;
  }

  /* Alternate tall/short on mobile for visual rhythm */
  .ccw-card--xl,
  .ccw-card--full {
    height: 280px;
  }

  .ccw-card--lg,
  .ccw-card--md {
    height: 240px;
  }

  .ccw-card--sm,
  .ccw-card--4 {
    height: 200px;
  }
}

/* ── Reduced Motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ccw-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ccw-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ccw-card {
    transition: none;
  }

  .ccw-card:hover .ccw-card-img {
    transform: none;
  }

  .ccw-card-overlay,
  .ccw-card-excerpt,
  .ccw-card-title {
    transition: none;
  }

  .ccw-hero::before,
  .ccw-hero::after {
    animation: none;
  }
}
