/*
Theme Name: Natur-Seile
Theme URI: https://natur-seile.de
Author: Kokosseile Theme
Author URI: https://natur-seile.de
Description: Premium WordPress Theme für natur-seile.de - Kokosseil Affiliate Website
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: natur-seile
Tags: affiliate, e-commerce, german, responsive, tailwind
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
*/

/* ── Single Post Hero — Responsive Height ── */

/* Mobile/Tablet: genug Hoehe damit Hero nicht hinter Navbar verschwindet */
#ns-hero-image-inner {
	min-height: 60dvh;
}

#ns-hero-fallback {
	min-height: 70dvh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

/* ── Dark-to-Footer: kein Margin/Radius wenn letzter Content dunkel in Footer uebergeht ── */
/* Kontakt-Seite: B2B Section ist dunkelgruen, Footer auch → nahtlos */
.page-template-page-contact footer {
	margin-top: 0 !important;
	border-top-left-radius: 0 !important;
	border-top-right-radius: 0 !important;
}

/* ── Blog Header — genug Padding damit Breadcrumbs nicht hinter Navbar verschwinden ── */
#ns-blog-header {
	padding-top: 7rem; /* 112px = 72px navbar + 40px breathing room */
}

@media (min-width: 768px) {
	#ns-blog-header {
		padding-top: 8rem; /* 128px */
	}
}

/* ── Product Grid — 4 Spalten ab Desktop ── */
@media (min-width: 1024px) {
	#ns-product-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ── Blog Widget Styles (.ns-widget) — Premium Blog Content Komponenten ── */
.ns-widget {
	--ns-dark: #1A281F;
	--ns-forest: #2C3E32;
	--ns-accent: #D4FF78;
	--ns-warm: #F2F0E9;
	--ns-text: #4A4A45;
	--ns-heading: #1F1F1C;
	--ns-muted: #6B6B65;
	--ns-border: #E8E6D9;
}

/* ── Typography overrides inside .ns-widget ── */
.ns-widget p {
	margin-bottom: 1.6em !important;
	line-height: 1.85 !important;
}

.ns-widget h2 {
	font-size: 1.75em !important;
	margin-top: 2.5em !important;
	margin-bottom: 1em !important;
	padding-bottom: 16px !important;
	position: relative !important;
}

.ns-widget h2::after {
	content: '' !important;
	position: absolute !important;
	bottom: 0 !important;
	left: 0 !important;
	width: 50px !important;
	height: 3px !important;
	background: var(--ns-accent) !important;
	border-radius: 2px !important;
	display: block !important;
}

.ns-widget h3 {
	font-size: 1.3em !important;
	margin-top: 2em !important;
	margin-bottom: 0.8em !important;
}

.ns-widget strong {
	font-weight: 700 !important;
	color: var(--ns-heading) !important;
}

/* Strong inside dark components stays white */
.ns-widget .ns-stat strong,
.ns-widget .ns-cta strong {
	color: #fff !important;
}

.ns-widget ul {
	margin-top: 1.2em !important;
	margin-bottom: 1.6em !important;
}

.ns-widget ul li {
	margin-bottom: 0.7em !important;
	padding-left: 0.3em !important;
}

.ns-widget .ns-intro {
	font-size: 1.15em;
	line-height: 1.85;
	font-weight: 300;
}

.ns-widget .ns-divider {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 3em 0;
}

.ns-widget .ns-divider::before,
.ns-widget .ns-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--ns-border), transparent);
}

.ns-widget .ns-divider span {
	width: 8px;
	height: 8px;
	background: var(--ns-accent);
	border-radius: 2px;
	transform: rotate(45deg);
	flex-shrink: 0;
}

/* Stat Callout */
.ns-widget .ns-stat {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	margin: 2.5em 0;
	padding: 32px;
	background: linear-gradient(135deg, var(--ns-dark), var(--ns-forest));
	border-radius: 24px;
	color: #fff;
	box-shadow: 0 25px 60px -15px rgba(26,40,31,0.4);
	position: relative;
	overflow: hidden;
}

.ns-widget .ns-stat::before {
	content: '';
	position: absolute;
	top: -40px;
	right: -40px;
	width: 200px;
	height: 200px;
	background: rgba(212,255,120,0.06);
	border-radius: 50%;
	filter: blur(40px);
}

.ns-widget .ns-stat-number {
	font-family: Georgia, serif;
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	color: var(--ns-accent);
	line-height: 1;
	flex-shrink: 0;
	text-shadow: 0 0 40px rgba(212,255,120,0.3);
}

.ns-widget .ns-stat-text {
	font-size: 15px;
	line-height: 1.65;
	color: rgba(255,255,255,0.8);
	font-weight: 300;
}

.ns-widget .ns-stat-text strong {
	color: #fff;
	font-weight: 600;
}

@media (max-width: 640px) {
	.ns-widget .ns-stat {
		flex-direction: column;
		gap: 16px;
		padding: 24px;
	}
}

/* Tip Callout */
.ns-widget .ns-tip {
	margin: 2.5em 0;
	padding: 24px 24px 24px 28px;
	background: linear-gradient(135deg, var(--ns-warm), rgba(242,240,233,0.4));
	border-left: 4px solid var(--ns-accent);
	border-radius: 0 20px 20px 0;
	font-size: 0.95em;
	line-height: 1.75;
}

.ns-widget .ns-tip strong {
	color: var(--ns-heading);
}

/* CTA Banner */
.ns-widget .ns-cta {
	margin: 3em 0;
	padding: 48px 32px;
	background: linear-gradient(135deg, var(--ns-dark), #0D1A12);
	border-radius: 24px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.ns-widget .ns-cta::before {
	content: '';
	position: absolute;
	top: -80px;
	left: 50%;
	transform: translateX(-50%);
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(212,255,120,0.07), transparent 70%);
	pointer-events: none;
}

.ns-widget .ns-cta h2 {
	font-family: Georgia, serif !important;
	font-size: clamp(1.3rem, 3vw, 2rem) !important;
	color: #fff !important;
	margin: 0 0 12px !important;
	position: relative;
}

.ns-widget .ns-cta h2::after {
	display: none !important;
}

.ns-widget .ns-cta p {
	font-size: 15px !important;
	color: rgba(255,255,255,0.55) !important;
	font-weight: 300;
	max-width: 440px;
	margin: 0 auto 24px !important;
}

.ns-widget .ns-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 32px;
	background: var(--ns-accent);
	color: var(--ns-dark) !important;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	border-radius: 9999px;
	text-decoration: none !important;
	box-shadow: 0 8px 30px rgba(212,255,120,0.3);
	transition: all 0.3s;
}

.ns-widget .ns-cta-btn:hover {
	background: #fff;
	transform: translateY(-2px);
}

/* Inline Step Badge — used as <span class="ns-step-badge">1</span> inside h3 */
.ns-widget .ns-step-badge {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 30px !important;
	height: 30px !important;
	min-width: 30px !important;
	background: var(--ns-forest) !important;
	color: var(--ns-accent) !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	font-family: system-ui, -apple-system, sans-serif !important;
	margin-right: 10px !important;
	vertical-align: middle !important;
	position: relative !important;
	top: -2px !important;
	line-height: 1 !important;
}

/* Table Scroll */
.ns-widget .ns-table-scroll {
	margin: 2.5em 0 !important;
	overflow-x: auto !important;
	-webkit-overflow-scrolling: touch;
}

.ns-widget .ns-table-scroll table {
	min-width: 520px !important;
	width: 100% !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	font-size: 14px !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	overflow: visible !important;
	box-shadow: none !important;
}

.ns-widget .ns-table-scroll thead th {
	padding: 14px 16px !important;
	text-align: left !important;
	color: #fff !important;
	font-weight: 700 !important;
	font-size: 11px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.08em !important;
	background: var(--ns-forest) !important;
	border: none !important;
	white-space: nowrap !important;
}

.ns-widget .ns-table-scroll thead th:first-child {
	border-top-left-radius: 14px !important;
}

.ns-widget .ns-table-scroll thead th:last-child {
	border-top-right-radius: 14px !important;
}

.ns-widget .ns-table-scroll tbody td {
	padding: 12px 16px !important;
	border-bottom: 1px solid var(--ns-border) !important;
	border-top: none !important;
	border-left: none !important;
	border-right: none !important;
	background: #fff !important;
	font-size: 14px !important;
}

.ns-widget .ns-table-scroll tbody td:first-child {
	font-weight: 600 !important;
	color: var(--ns-heading) !important;
	border-left: 1px solid var(--ns-border) !important;
}

.ns-widget .ns-table-scroll tbody td:last-child {
	border-right: 1px solid var(--ns-border) !important;
}

.ns-widget .ns-table-scroll tbody tr:last-child td {
	border-bottom: 1px solid var(--ns-border) !important;
}

.ns-widget .ns-table-scroll tbody tr:last-child td:first-child {
	border-bottom-left-radius: 14px !important;
}

.ns-widget .ns-table-scroll tbody tr:last-child td:last-child {
	border-bottom-right-radius: 14px !important;
}

.ns-widget .ns-table-scroll tbody tr:hover td {
	background: var(--ns-warm) !important;
}

/* ── Blog Pagination — Premium pill buttons matching category filter ── */
.navigation.pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 16px;
	border-radius: 9999px;
	font-size: 14px;
	font-weight: 600;
	background: #fff;
	color: #1F1F1C;
	border: 1px solid #E8E6D9;
	text-decoration: none;
	transition: all 0.2s ease;
}

.navigation.pagination .page-numbers:hover {
	background: #2C3E32;
	color: #fff;
	border-color: #2C3E32;
}

.navigation.pagination .page-numbers.current {
	background: #2C3E32;
	color: #fff;
	border-color: #2C3E32;
	pointer-events: none;
}

.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next {
	padding: 0 20px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.navigation.pagination .page-numbers.dots {
	background: transparent;
	border-color: transparent;
	pointer-events: none;
	min-width: 32px;
	padding: 0 4px;
}

/* ── Single Post Hero — Desktop (1024px+): volle Viewport-Hoehe ── */
@media (min-width: 1024px) {
	#ns-hero-image {
		padding-top: 0;
	}

	#ns-hero-image-inner {
		aspect-ratio: auto;
		height: 100dvh;
		min-height: 100dvh;
		max-height: none;
	}

	#ns-hero-fallback {
		min-height: 100dvh;
		padding-bottom: 8rem;
	}
}
