/* ============================================================
   OBERBAYERN.NET — Interactive Split-Visual Widgets
   ------------------------------------------------------------
   Dashboard-style visualisations that replace the static
   visual-placeholder blocks across home, SEO, SEA and
   Online-Marketing pages. Pure CSS / SVG, no JS required.
   ============================================================ */

/* ---------- 1. SHARED CHROME (browser frame, body, KPIs) ---------- */

.ob-widget {
	position: relative;
	width: 100%;
	background: linear-gradient(160deg, #ffffff 0%, var(--green-50) 100%);
	border: 1px solid var(--green-200);
	border-radius: var(--radius-xl);
	box-shadow:
		0 24px 48px -16px rgba(10, 31, 28, 0.18),
		0 6px 14px -6px rgba(10, 31, 28, 0.08);
	overflow: hidden;
	color: var(--text-primary);
	font-family: var(--font-sans);
}

.ob-widget__chrome {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: var(--green-50);
	border-bottom: 1px solid var(--green-200);
}

.ob-widget__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #cbd5e1;
}

.ob-widget__dot:nth-child(1) { background: #ef4444; }
.ob-widget__dot:nth-child(2) { background: #f59e0b; }
.ob-widget__dot:nth-child(3) { background: var(--green-500); }

.ob-widget__url {
	flex: 1;
	font-size: 0.75rem;
	color: var(--green-700);
	text-align: center;
	padding: 3px 10px;
	background: #ffffff;
	border-radius: 6px;
	border: 1px solid var(--green-200);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ob-widget__live {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--green-600);
}

.ob-widget__live-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--green-500);
	animation: ob-pulse 1.6s ease-in-out infinite;
	box-shadow: 0 0 0 0 rgba(20, 163, 140, 0.5);
}

.ob-widget__body {
	padding: 18px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* Generic KPI cards used by SEO/SEA widgets */
.ob-widget__kpis {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.ob-widget__kpis--4 {
	grid-template-columns: repeat(4, 1fr);
}

.ob-widget__kpi {
	background: #ffffff;
	border: 1px solid var(--green-100);
	border-radius: 12px;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ob-widget__kpi-label {
	font-size: 0.625rem;
	font-weight: 600;
	color: var(--grey-500);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ob-widget__kpi-value {
	font-size: 1.125rem;
	font-weight: 800;
	color: var(--text-primary);
	letter-spacing: -0.02em;
	line-height: 1.1;
	animation: ob-kpi-pulse 4s ease-in-out infinite;
}

.ob-widget__kpis .ob-widget__kpi:nth-child(2) .ob-widget__kpi-value { animation-delay: 0.6s; color: var(--green-600); }
.ob-widget__kpis .ob-widget__kpi:nth-child(3) .ob-widget__kpi-value { animation-delay: 1.2s; }
.ob-widget__kpis .ob-widget__kpi:nth-child(4) .ob-widget__kpi-value { animation-delay: 1.8s; color: var(--green-600); }

.ob-widget__kpi-trend {
	font-size: 0.625rem;
	font-weight: 600;
	margin-top: 2px;
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.ob-widget__kpi-trend.trend-up   { color: var(--green-600); }
.ob-widget__kpi-trend.trend-down { color: var(--green-600); }
.ob-widget__kpi-trend.trend-warn { color: var(--accent-amber); }

/* ============================================================
   2. NETWORK MAP — Frontpage / "Netzwerk-Karte Oberbayern"
   ============================================================ */

.ob-network__map {
	position: relative;
	background: #ffffff;
	border: 1px solid var(--green-100);
	border-radius: 12px;
	padding: 8px;
	overflow: hidden;
}

.ob-network__map svg {
	display: block;
	width: 100%;
	height: auto;
}

/* Soft regional outline */
.ob-network__outline {
	fill: var(--green-50);
	stroke: var(--green-200);
	stroke-width: 1.5;
	stroke-linejoin: round;
}

.ob-network__outline-inner {
	fill: none;
	stroke: var(--green-100);
	stroke-width: 1;
	stroke-dasharray: 3 4;
}

/* Connection lines between agency markers */
.ob-network__lines line {
	stroke: var(--green-400);
	stroke-width: 1.25;
	stroke-linecap: round;
	stroke-dasharray: 4 4;
	opacity: 0;
	stroke-dashoffset: 80;
	animation: ob-line-draw 9s ease-in-out infinite;
}

.ob-network__lines line:nth-of-type(1) { animation-delay: 0.4s; }
.ob-network__lines line:nth-of-type(2) { animation-delay: 0.8s; }
.ob-network__lines line:nth-of-type(3) { animation-delay: 1.2s; }
.ob-network__lines line:nth-of-type(4) { animation-delay: 1.6s; }
.ob-network__lines line:nth-of-type(5) { animation-delay: 2.0s; }
.ob-network__lines line:nth-of-type(6) { animation-delay: 2.4s; }
.ob-network__lines line:nth-of-type(7) { animation-delay: 2.8s; }
.ob-network__lines line:nth-of-type(8) { animation-delay: 3.2s; }
.ob-network__lines line:nth-of-type(9) { animation-delay: 3.6s; }

/* River hint */
.ob-network__river {
	fill: none;
	stroke: var(--green-200);
	stroke-width: 1.5;
	stroke-linecap: round;
	opacity: 0.7;
}

/* Markers (one <g> per city) */
.ob-network__marker .pulse {
	fill: var(--green-500);
	opacity: 0.35;
	transform-origin: center;
	transform-box: fill-box;
	animation: ob-marker-pulse 2.4s ease-out infinite;
}

.ob-network__marker .dot {
	fill: var(--green-600);
	stroke: #ffffff;
	stroke-width: 2;
}

.ob-network__marker--primary .dot {
	fill: var(--green-700);
}

.ob-network__marker--primary .pulse {
	fill: var(--green-700);
	opacity: 0.4;
	animation-duration: 2s;
}

.ob-network__marker text {
	font-family: var(--font-sans);
	font-size: 9px;
	font-weight: 600;
	fill: var(--green-900);
	paint-order: stroke;
	stroke: #ffffff;
	stroke-width: 3px;
	stroke-linejoin: round;
}

.ob-network__marker--primary text {
	font-size: 11px;
	font-weight: 700;
}

.ob-network__marker:nth-of-type(1) .pulse { animation-delay: 0.0s; }
.ob-network__marker:nth-of-type(2) .pulse { animation-delay: 0.3s; }
.ob-network__marker:nth-of-type(3) .pulse { animation-delay: 0.6s; }
.ob-network__marker:nth-of-type(4) .pulse { animation-delay: 0.9s; }
.ob-network__marker:nth-of-type(5) .pulse { animation-delay: 1.2s; }
.ob-network__marker:nth-of-type(6) .pulse { animation-delay: 1.5s; }
.ob-network__marker:nth-of-type(7) .pulse { animation-delay: 1.8s; }
.ob-network__marker:nth-of-type(8) .pulse { animation-delay: 2.1s; }

/* Stats strip below the map */
.ob-network__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.ob-network__stat {
	background: #ffffff;
	border: 1px solid var(--green-100);
	border-radius: 10px;
	padding: 10px 8px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ob-network__stat strong {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--green-700);
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.ob-network__stat span {
	font-size: 0.625rem;
	font-weight: 600;
	color: var(--grey-500);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* ============================================================
   3. CMS ORBIT — Frontpage / "Alle CMS-Plattformen"
   ============================================================ */

.ob-cms__orbit {
	position: relative;
	background: #ffffff;
	border: 1px solid var(--green-100);
	border-radius: 12px;
	padding: 10px;
	aspect-ratio: 16 / 11;
	min-height: 280px;
	overflow: hidden;
	background-image:
		radial-gradient(circle at center, var(--green-50) 0%, #ffffff 65%);
}

.ob-cms__rings {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.ob-cms__ring {
	position: absolute;
	top: 50%;
	left: 50%;
	border: 1px dashed var(--green-200);
	border-radius: 50%;
	animation: ob-ring-spin 28s linear infinite;
}

.ob-cms__ring--1 { width: 52%; height: 70%; transform: translate(-50%, -50%); }
.ob-cms__ring--2 { width: 78%; height: 96%; transform: translate(-50%, -50%); animation-duration: 44s; animation-direction: reverse; opacity: 0.65; }

.ob-cms__center {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 14px 22px;
	background: linear-gradient(135deg, var(--green-700) 0%, var(--green-500) 100%);
	color: #ffffff;
	border-radius: var(--radius-full);
	box-shadow:
		0 8px 24px -8px rgba(14, 124, 107, 0.55),
		0 0 0 6px rgba(20, 163, 140, 0.12);
	width: max-content;
	max-width: 60%;
	text-align: center;
}

.ob-cms__center strong {
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.ob-cms__center small {
	font-size: 0.625rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.85;
}

/* Orbiting nodes — positioned absolutely on a clock face */
.ob-cms__nodes {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
}

.ob-cms__node {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px 5px 5px;
	background: #ffffff;
	border: 1px solid var(--green-200);
	border-radius: var(--radius-full);
	box-shadow: 0 6px 14px -8px rgba(10, 31, 28, 0.2);
	font-size: 0.6875rem;
	font-weight: 700;
	color: var(--green-900);
	white-space: nowrap;
	animation: ob-cms-float 6s ease-in-out infinite;
	transform-origin: center;
}

.ob-cms__node b {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--green-100);
	color: var(--green-700);
	font-size: 0.625rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	flex-shrink: 0;
}

/* 7 nodes evenly distributed on a clock face around the centre */
.ob-cms__node:nth-child(1) { top: 6%;  left: 50%; transform: translateX(-50%);            animation-delay: 0s; }   /* 12 o'clock — WordPress */
.ob-cms__node:nth-child(2) { top: 22%; right: 6%;                                          animation-delay: 0.4s; } /* 1:30 — TYPO3 */
.ob-cms__node:nth-child(3) { top: 50%; right: 4%;  transform: translateY(-50%);            animation-delay: 0.8s; } /* 3 — Shopware */
.ob-cms__node:nth-child(4) { bottom: 14%; right: 8%;                                        animation-delay: 1.2s; } /* 4:30 — Magento */
.ob-cms__node:nth-child(5) { bottom: 14%; left: 8%;                                         animation-delay: 1.6s; } /* 7:30 — Webflow */
.ob-cms__node:nth-child(6) { top: 50%; left: 4%;   transform: translateY(-50%);            animation-delay: 2.0s; } /* 9 — Contao */
.ob-cms__node:nth-child(7) { top: 22%; left: 6%;                                            animation-delay: 2.4s; } /* 10:30 — Joomla */

/* Footer compatibility bar */
.ob-cms__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	background: #ffffff;
	border: 1px solid var(--green-100);
	border-radius: 10px;
	font-size: 0.75rem;
	color: var(--green-700);
	font-weight: 600;
}

.ob-cms__bar strong {
	color: var(--green-900);
	font-weight: 800;
}

.ob-cms__bar svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

/* ============================================================
   4. SEO RANKINGS — page-seo.php
   ============================================================ */

.ob-seo__chart-wrap {
	background: #ffffff;
	border: 1px solid var(--green-100);
	border-radius: 12px;
	padding: 12px;
}

.ob-seo__chart-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.ob-seo__chart-title {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--grey-700);
}

.ob-seo__legend {
	display: inline-flex;
	gap: 10px;
	font-size: 0.625rem;
	color: var(--grey-500);
}

.ob-seo__legend i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
	margin-right: 4px;
	vertical-align: middle;
}

.ob-seo__legend i.l-curr { background: var(--green-600); }
.ob-seo__legend i.l-prev { background: var(--grey-300); }

.ob-seo__chart {
	width: 100%;
	height: 90px;
	display: block;
}

.ob-seo__grid line {
	stroke: rgba(10, 31, 28, 0.06);
	stroke-dasharray: 3 4;
}

.ob-seo__line {
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ob-seo__line--prev {
	stroke: var(--grey-300);
	stroke-width: 1.5;
	stroke-dasharray: 4 4;
}

.ob-seo__line--curr {
	stroke: var(--green-600);
	stroke-dasharray: 700;
	stroke-dashoffset: 700;
	animation: ob-line-redraw 11s ease-in-out infinite;
}

.ob-seo__area {
	opacity: 0;
	animation: ob-area-loop 11s ease-in-out infinite;
}

.ob-seo__points circle {
	fill: var(--green-600);
	opacity: 0;
	animation: ob-point-show 11s ease-in-out infinite;
}

.ob-seo__points circle:nth-of-type(1) { animation-delay: 0.5s; }
.ob-seo__points circle:nth-of-type(2) { animation-delay: 1.2s; }
.ob-seo__points circle:nth-of-type(3) { animation-delay: 1.9s; }
.ob-seo__points circle:nth-of-type(4) { animation-delay: 2.6s; }
.ob-seo__points circle:nth-of-type(5) {
	animation: ob-point-show 11s ease-in-out 3.3s infinite, ob-point-pulse 1.8s ease-in-out 3.8s infinite;
	transform-origin: center;
	transform-box: fill-box;
}

/* SERP-style keyword list */
.ob-seo__keywords {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ob-seo__keyword {
	display: grid;
	grid-template-columns: 32px 1fr auto;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	background: #ffffff;
	border: 1px solid var(--green-100);
	border-radius: 8px;
	font-size: 0.75rem;
	animation: ob-kw-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.ob-seo__keyword:nth-child(1) { animation-delay: 0.0s; }
.ob-seo__keyword:nth-child(2) { animation-delay: 0.15s; }
.ob-seo__keyword:nth-child(3) { animation-delay: 0.30s; }
.ob-seo__keyword:nth-child(4) { animation-delay: 0.45s; }

.ob-seo__keyword .kw-rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 24px;
	background: var(--green-100);
	color: var(--green-700);
	border-radius: 6px;
	font-weight: 800;
	font-size: 0.75rem;
}

.ob-seo__keyword--top .kw-rank {
	background: var(--green-600);
	color: #ffffff;
}

.ob-seo__keyword .kw-text {
	font-weight: 600;
	color: var(--green-900);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ob-seo__keyword .kw-trend {
	font-size: 0.6875rem;
	font-weight: 700;
	color: var(--green-600);
	white-space: nowrap;
}

.ob-seo__keyword .kw-trend--down {
	color: var(--accent-amber);
}

/* ============================================================
   5. SEA FUNNEL — page-sea.php
   ============================================================ */

.ob-sea__campaign {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	background: #ffffff;
	border: 1px solid var(--green-100);
	border-radius: 10px;
}

.ob-sea__campaign-name {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ob-sea__campaign-name strong {
	font-size: 0.8125rem;
	font-weight: 800;
	color: var(--green-900);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ob-sea__campaign-name small {
	font-size: 0.625rem;
	color: var(--grey-500);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.ob-sea__campaign-status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 9px;
	background: var(--green-50);
	color: var(--green-700);
	border-radius: var(--radius-full);
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ob-sea__campaign-status::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--green-500);
	animation: ob-pulse 1.6s ease-in-out infinite;
}

/* Funnel bars (decreasing widths) */
.ob-sea__funnel {
	background: #ffffff;
	border: 1px solid var(--green-100);
	border-radius: 12px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ob-sea__funnel-title {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--grey-700);
	margin-bottom: 2px;
}

.ob-sea__step {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 14px;
	border-radius: 8px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--green-900);
	background: linear-gradient(90deg, var(--green-100) 0%, var(--green-50) 100%);
	width: var(--w, 100%);
	margin-left: auto;
	margin-right: auto;
	transform-origin: center;
	animation: ob-funnel-grow 1s cubic-bezier(0.22, 1, 0.36, 1) backwards;
	overflow: hidden;
}

.ob-sea__step::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--green-500) 0%, var(--green-400) 100%);
	transform: scaleX(0);
	transform-origin: left center;
	border-radius: inherit;
	animation: ob-funnel-fill 1.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
	opacity: 0.16;
}

.ob-sea__step span,
.ob-sea__step strong { position: relative; }
.ob-sea__step strong { font-weight: 800; color: var(--green-700); }

.ob-sea__step:nth-child(1) { animation-delay: 0.10s; }
.ob-sea__step:nth-child(2) { animation-delay: 0.30s; }
.ob-sea__step:nth-child(3) { animation-delay: 0.50s; }
.ob-sea__step:nth-child(4) { animation-delay: 0.70s; }

.ob-sea__step:nth-child(1)::before { animation-delay: 0.30s; }
.ob-sea__step:nth-child(2)::before { animation-delay: 0.50s; }
.ob-sea__step:nth-child(3)::before { animation-delay: 0.70s; }
.ob-sea__step:nth-child(4)::before { animation-delay: 0.90s; }

.ob-sea__step--final {
	background: linear-gradient(90deg, var(--green-600) 0%, var(--green-500) 100%);
	color: #ffffff;
}
.ob-sea__step--final strong { color: #ffffff; }
.ob-sea__step--final::before { display: none; }

/* ============================================================
   6. CHANNELS / CUSTOMER JOURNEY — page-online-marketing.php
   ============================================================ */

.ob-channels__hub {
	position: relative;
	background: #ffffff;
	border: 1px solid var(--green-100);
	border-radius: 12px;
	padding: 14px;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background-image: radial-gradient(circle at center, var(--green-50) 0%, #ffffff 65%);
}

.ob-channels__svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.ob-channels__svg path {
	fill: none;
	stroke: var(--green-300);
	stroke-width: 1.5;
	stroke-dasharray: 5 6;
	stroke-linecap: round;
	stroke-dashoffset: 80;
	animation: ob-line-flow 3.5s linear infinite;
}

.ob-channels__svg path:nth-of-type(2) { animation-delay: 0.6s; }
.ob-channels__svg path:nth-of-type(3) { animation-delay: 1.2s; }
.ob-channels__svg path:nth-of-type(4) { animation-delay: 1.8s; }

.ob-channels__center {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 130px;
	height: 130px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--green-700) 0%, var(--green-500) 100%);
	color: #ffffff;
	box-shadow:
		0 12px 28px -10px rgba(14, 124, 107, 0.5),
		0 0 0 8px rgba(20, 163, 140, 0.1);
	text-align: center;
	gap: 2px;
}

.ob-channels__center strong {
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	max-width: 100px;
}

.ob-channels__center small {
	font-size: 0.625rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.85;
}

.ob-channels__node {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: #ffffff;
	border: 1px solid var(--green-200);
	border-radius: 12px;
	box-shadow: 0 8px 18px -10px rgba(10, 31, 28, 0.2);
	z-index: 3;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--green-900);
	animation: ob-node-float 5s ease-in-out infinite;
}

.ob-channels__node svg {
	width: 18px;
	height: 18px;
	color: var(--green-600);
	flex-shrink: 0;
}

.ob-channels__node small {
	display: block;
	font-size: 0.625rem;
	font-weight: 500;
	color: var(--grey-500);
	letter-spacing: 0.02em;
}

.ob-channels__node--tl { top: 12%; left: 6%; animation-delay: 0s; }
.ob-channels__node--tr { top: 12%; right: 6%; animation-delay: 0.5s; }
.ob-channels__node--bl { bottom: 12%; left: 6%; animation-delay: 1s; }
.ob-channels__node--br { bottom: 12%; right: 6%; animation-delay: 1.5s; }

/* Customer Journey progress bar */
.ob-channels__journey {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
	padding: 12px;
	background: #ffffff;
	border: 1px solid var(--green-100);
	border-radius: 12px;
}

.ob-channels__phase {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	min-width: 0;
}

.ob-channels__phase-label {
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--grey-600);
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ob-channels__phase-bar {
	position: relative;
	height: 26px;
	background: var(--green-50);
	border-radius: 6px;
	overflow: hidden;
}

.ob-channels__phase-bar > i {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--green-500), var(--green-400));
	border-radius: 6px;
	animation: ob-phase-grow 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ob-channels__phase:nth-child(1) i { animation-delay: 0.20s; }
.ob-channels__phase:nth-child(2) i { animation-delay: 0.40s; }
.ob-channels__phase:nth-child(3) i { animation-delay: 0.60s; background: linear-gradient(90deg, var(--green-700), var(--green-500)); }
.ob-channels__phase:nth-child(4) i { animation-delay: 0.80s; background: linear-gradient(90deg, var(--green-600), var(--green-400)); }

.ob-channels__phase-value {
	font-size: 0.6875rem;
	font-weight: 800;
	color: var(--green-700);
	text-align: center;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */

@keyframes ob-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(20, 163, 140, 0.55); }
	50%      { box-shadow: 0 0 0 6px rgba(20, 163, 140, 0); }
}

@keyframes ob-kpi-pulse {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.04); }
}

@keyframes ob-line-redraw {
	0%   { stroke-dashoffset: 700; }
	30%  { stroke-dashoffset: 0; }
	92%  { stroke-dashoffset: 0; }
	100% { stroke-dashoffset: 700; }
}

@keyframes ob-area-loop {
	0%, 8%   { opacity: 0; }
	22%      { opacity: 1; }
	92%      { opacity: 1; }
	100%     { opacity: 0; }
}

@keyframes ob-point-show {
	0%, 5%   { opacity: 0; }
	10%      { opacity: 1; }
	92%      { opacity: 1; }
	100%     { opacity: 0; }
}

@keyframes ob-point-pulse {
	0%, 100% { r: 4; opacity: 1; }
	50%      { r: 7; opacity: 0.55; }
}

@keyframes ob-line-draw {
	0%, 5%   { opacity: 0; stroke-dashoffset: 80; }
	20%      { opacity: 0.7; stroke-dashoffset: 0; }
	85%      { opacity: 0.7; stroke-dashoffset: 0; }
	100%     { opacity: 0; stroke-dashoffset: 80; }
}

@keyframes ob-line-flow {
	0%   { stroke-dashoffset: 80; }
	100% { stroke-dashoffset: 0; }
}

@keyframes ob-marker-pulse {
	0%   { transform: scale(0.6); opacity: 0.6; }
	80%  { transform: scale(2.2); opacity: 0; }
	100% { transform: scale(2.4); opacity: 0; }
}

@keyframes ob-ring-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

@keyframes ob-node-float {
	0%, 100% { translate: 0 0; }
	50%      { translate: 0 -4px; }
}

/* Float for orbit nodes: animates a margin to avoid clobbering positional transforms */
@keyframes ob-cms-float {
	0%, 100% { margin-top: 0; }
	50%      { margin-top: -4px; }
}

@keyframes ob-funnel-grow {
	from { transform: scaleY(0.6); opacity: 0; }
	to   { transform: scaleY(1); opacity: 1; }
}

@keyframes ob-funnel-fill {
	from { transform: scaleX(0); }
	to   { transform: scaleX(1); }
}

@keyframes ob-kw-rise {
	from { transform: translateY(8px); opacity: 0; }
	to   { transform: translateY(0); opacity: 1; }
}

@keyframes ob-phase-grow {
	from { width: 0; }
	to   { width: var(--w, 60%); }
}

/* ============================================================
   RESPONSIVE — keep things readable on small screens
   ============================================================ */

@media (max-width: 600px) {
	.ob-widget__body { padding: 14px 12px 12px; gap: 10px; }
	.ob-widget__kpis { gap: 6px; }
	.ob-widget__kpis--4 { grid-template-columns: repeat(2, 1fr); }
	.ob-widget__kpi { padding: 8px 10px; }
	.ob-widget__kpi-value { font-size: 1rem; }
	.ob-network__stat strong { font-size: 1.05rem; }
	.ob-cms__node { font-size: 0.625rem; padding: 4px 8px 4px 4px; }
	.ob-cms__node b { width: 18px; height: 18px; font-size: 0.5rem; }
	.ob-cms__center { min-width: 110px; padding: 10px 16px; }
	.ob-cms__center strong { font-size: 0.75rem; }
	.ob-channels__center { width: 100px; height: 100px; }
	.ob-channels__center strong { font-size: 0.6875rem; }
	.ob-channels__node { font-size: 0.625rem; padding: 6px 8px; }
	.ob-channels__node small { display: none; }
	.ob-sea__step { font-size: 0.6875rem; padding: 7px 10px; }
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
	.ob-widget *,
	.ob-widget *::before,
	.ob-widget *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
