/* ============================================================
   Share2Create — Header Module
   v0.1.2 · Premium Sticky Header + Clean Dropdown + Mobile Panel
   ============================================================ */

.s2c-header,
.s2c-header *,
.s2c-header *::before,
.s2c-header *::after,
.s2c-mobile,
.s2c-mobile * {
	box-sizing: border-box;
}

:root {
	--s2c-green: #4FAE36;
	--s2c-green-bright: #6DCC4D;
	--s2c-green-deep: #2A7B1A;
	--s2c-green-darker: #1B560F;
	--s2c-green-soft: #E9F6E2;
	--s2c-green-ultra: #F5FBF2;
	--s2c-grad: linear-gradient(135deg, #6DCC4D 0%, #3BA527 44%, #207418 100%);
	--s2c-grad-scrolled: linear-gradient(135deg, #5DBE3D 0%, #2F8F1F 48%, #1B560F 100%);
	--s2c-wa: #25D366;
	--s2c-wa-deep: #1FBA59;
	--s2c-ink: #102018;
	--s2c-muted: #66756C;
	--s2c-line: rgba(16, 32, 24, 0.08);
	--s2c-white: #ffffff;
	--s2c-h: clamp(82px, 4.8rem + 0.8vw, 102px);
	--s2c-radius: 20px;
	--s2c-shadow: 0 20px 60px rgba(15, 46, 8, 0.18);
}

body.s2c-header-active {
	padding-top: var(--s2c-h);
}

.s2c-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99990;
	background: var(--s2c-grad);
	color: #fff;
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-weight: 500;
	letter-spacing: 0;
	transition: background 0.3s ease, box-shadow 0.3s ease;
	-webkit-font-smoothing: antialiased;
}

.s2c-header.s2c-scrolled {
	background: var(--s2c-grad-scrolled);
	box-shadow: 0 12px 36px rgba(15, 46, 8, 0.28);
}

.s2c-header__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(18px, 4vw, 44px);
	height: var(--s2c-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(16px, 2vw, 30px);
}

/* Reset gegen Theme-/Elementor-Button-Styles */
.s2c-header a,
.s2c-header button {
	-webkit-tap-highlight-color: transparent;
}

.s2c-header button,
.s2c-header button:hover,
.s2c-header button:focus,
.s2c-header button:active,
.s2c-header button:focus-visible {
	appearance: none !important;
	-webkit-appearance: none !important;
	background-image: none !important;
	box-shadow: none !important;
	outline: none !important;
}

.s2c-header a:focus,
.s2c-header button:focus {
	outline: none !important;
}

.s2c-header a:focus-visible,
.s2c-header button:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.72) !important;
	outline-offset: 4px !important;
}

/* Brand */
.s2c-brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: #fff !important;
	text-decoration: none !important;
	flex-shrink: 0;
	min-width: 280px;
}

.s2c-brand:hover {
	color: #fff !important;
}

.s2c-brand__img {
	height: clamp(46px, 2.6rem + 0.6vw, 62px);
	width: auto;
	display: block;
	object-fit: contain;
	filter: drop-shadow(0 8px 18px rgba(15, 46, 8, 0.18));
}

.s2c-brand__mark {
	width: clamp(52px, 3rem + 0.5vw, 60px);
	height: clamp(52px, 3rem + 0.5vw, 60px);
	border-radius: 17px;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.30);
	display: grid;
	place-items: center;
	flex-shrink: 0;
	transition: background 0.25s ease, transform 0.25s ease;
}

.s2c-brand:hover .s2c-brand__mark {
	background: rgba(255, 255, 255, 0.24);
	transform: translateY(-1px);
}

.s2c-brand__mark svg {
	width: 58%;
	height: 58%;
}

.s2c-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.04;
}

.s2c-brand__text b {
	font-size: clamp(22px, 1.25rem + 0.45vw, 30px);
	color: #fff;
	font-weight: 900;
	letter-spacing: -0.045em;
}

.s2c-brand__text span {
	font-size: clamp(14px, 0.8rem + 0.18vw, 18px);
	color: rgba(255, 255, 255, 0.92);
	font-weight: 800;
}

/* Nav */
.s2c-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.s2c-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(22px, 2.4vw, 42px);
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.s2c-nav__item {
	position: relative;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.s2c-nav__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	font-size: clamp(18px, 1rem + 0.25vw, 22px);
	font-weight: 800;
	color: #fff !important;
	text-decoration: none !important;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 0 2px;
	position: relative;
	font-family: inherit;
	line-height: 1;
	box-shadow: none;
	transition: transform 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.s2c-nav__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 4px;
	height: 3px;
	background: #fff;
	border-radius: 999px;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.25s ease;
}

.s2c-nav__link:hover,
.s2c-nav__link:focus-visible {
	color: #fff !important;
	transform: translateY(-1px);
}

.s2c-nav__link:hover::after,
.s2c-nav__link:focus-visible::after,
.s2c-nav__toggle[aria-expanded="true"]::after {
	transform: scaleX(1);
}

.s2c-nav__toggle,
.s2c-nav__toggle:hover,
.s2c-nav__toggle:focus,
.s2c-nav__toggle:active,
.s2c-nav__toggle:focus-visible {
	padding: 0 24px !important;
	border-radius: 999px !important;
	color: #fff !important;
	background: rgba(255, 255, 255, 0.11) !important;
	border: 1px solid rgba(255, 255, 255, 0.22) !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

.s2c-nav__toggle:hover,
.s2c-nav__toggle[aria-expanded="true"] {
	background: rgba(255, 255, 255, 0.18) !important;
}

.s2c-nav__toggle::after {
	left: 22px;
	right: 22px;
}

.s2c-chev {
	width: 17px;
	height: 17px;
	transition: transform 0.22s ease;
	flex-shrink: 0;
	color: #fff !important;
	stroke: currentColor !important;
}

.s2c-nav__toggle[aria-expanded="true"] .s2c-chev,
.s2c-has-dropdown.is-open .s2c-chev {
	transform: rotate(180deg);
}

/* Dropdown */
.s2c-has-dropdown {
	position: relative;
}

.s2c-dropdown {
	position: absolute;
	top: calc(100% + 18px);
	left: 50%;
	transform: translateX(-50%) translateY(12px);
	width: 390px;
	list-style: none !important;
	margin: 0 !important;
	padding: 12px !important;
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: 1px solid rgba(16, 32, 24, 0.08);
	border-radius: 24px;
	box-shadow: 0 28px 80px rgba(15, 46, 8, 0.24), 0 8px 18px rgba(0, 0, 0, 0.06);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.22s ease, transform 0.24s ease, visibility 0.22s ease;
	z-index: 20;
}

.s2c-dropdown::before {
	content: "";
	position: absolute;
	top: -8px;
	left: 50%;
	transform: translateX(-50%) rotate(45deg);
	width: 18px;
	height: 18px;
	background: rgba(255, 255, 255, 0.97);
	border-left: 1px solid rgba(16, 32, 24, 0.08);
	border-top: 1px solid rgba(16, 32, 24, 0.08);
}

.s2c-has-dropdown:hover .s2c-dropdown,
.s2c-has-dropdown:focus-within .s2c-dropdown,
.s2c-has-dropdown.is-open .s2c-dropdown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.s2c-dropdown li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.s2c-dropdown li a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 16px;
	border-radius: 18px;
	color: var(--s2c-ink) !important;
	font-weight: 800;
	font-size: 16px;
	text-decoration: none !important;
	line-height: 1.25;
	transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.s2c-dropdown li a::before {
	content: "";
	width: 38px;
	height: 38px;
	border-radius: 13px;
	background: linear-gradient(135deg, rgba(109, 204, 77, 0.22), rgba(42, 123, 26, 0.10));
	flex: 0 0 auto;
	box-shadow: inset 0 0 0 1px rgba(42, 123, 26, 0.08);
}

.s2c-dropdown li a::after {
	content: "→";
	margin-left: auto;
	color: var(--s2c-green);
	font-size: 20px;
	font-weight: 900;
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.s2c-dropdown li a:hover,
.s2c-dropdown li a:focus-visible {
	background: var(--s2c-green-ultra);
	color: var(--s2c-green-darker) !important;
	transform: translateX(2px);
	outline: 0;
}

.s2c-dropdown li a:hover::after,
.s2c-dropdown li a:focus-visible::after {
	opacity: 1;
	transform: translateX(0);
}

/* Actions */
.s2c-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.s2c-wa {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 30px;
	min-height: 58px;
	border-radius: 999px;
	background: var(--s2c-wa);
	color: #fff !important;
	font-family: inherit;
	font-weight: 900;
	line-height: 1;
	font-size: clamp(18px, 1rem + 0.28vw, 22px);
	text-decoration: none !important;
	box-shadow: 0 16px 38px rgba(37, 211, 102, 0.38), 0 4px 10px rgba(0, 0, 0, 0.10);
	transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
	isolation: isolate;
	white-space: nowrap;
}

.s2c-wa:hover {
	transform: translateY(-2px);
	background: var(--s2c-wa-deep);
	box-shadow: 0 22px 52px rgba(37, 211, 102, 0.50);
	color: #fff !important;
}

.s2c-wa__core {
	position: relative;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.s2c-wa__icon {
	display: inline-flex;
}

.s2c-wa__icon svg {
	width: 22px;
	height: 22px;
}

.s2c-wa__pulse {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: var(--s2c-wa);
	z-index: 1;
	animation: s2c-pulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
	pointer-events: none;
	will-change: transform, opacity;
}

.s2c-wa__pulse--2 {
	animation-delay: 1.2s;
}

@keyframes s2c-pulse {
	0% { transform: scale(1); opacity: 0.42; }
	70% { transform: scale(1.45); opacity: 0; }
	100% { transform: scale(1.45); opacity: 0; }
}

/* Burger */
.s2c-burger,
.s2c-burger:hover,
.s2c-burger:focus,
.s2c-burger:active,
.s2c-burger:focus-visible {
	display: none;
	position: relative;
	width: 58px;
	height: 58px;
	background: rgba(255, 255, 255, 0.13) !important;
	border: 1px solid rgba(255, 255, 255, 0.24) !important;
	border-radius: 16px;
	cursor: pointer;
	padding: 0 !important;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
	box-shadow: none !important;
	color: #fff !important;
}

.s2c-burger:hover {
	background: rgba(255, 255, 255, 0.22) !important;
	transform: translateY(-1px);
}

.s2c-burger span {
	position: absolute;
	display: block;
	width: 28px;
	height: 3px;
	background: #fff !important;
	border-radius: 999px;
	transition: transform 0.28s ease, opacity 0.2s ease, top 0.28s ease;
}

.s2c-burger span:nth-child(1) { top: 20px; }
.s2c-burger span:nth-child(2) { top: 27px; }
.s2c-burger span:nth-child(3) { top: 34px; }

.s2c-burger[aria-expanded="true"] span:nth-child(1) { top: 27px; transform: rotate(45deg); }
.s2c-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.s2c-burger[aria-expanded="true"] span:nth-child(3) { top: 27px; transform: rotate(-45deg); }

/* Mobile panel */
.s2c-mobile {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	color: var(--s2c-green-deep);
	padding: 24px clamp(18px, 4vw, 34px) 30px;
	box-shadow: 0 24px 64px rgba(15, 46, 8, 0.22);
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	max-height: calc(100vh - var(--s2c-h));
	overflow-y: auto;
	animation: s2c-mobile-in 0.24s ease both;
}

.s2c-mobile[hidden] { display: none; }

@keyframes s2c-mobile-in {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: translateY(0); }
}

.s2c-mobile__list {
	list-style: none !important;
	margin: 0 0 22px !important;
	padding: 0 !important;
}

.s2c-mobile__list > li {
	list-style: none !important;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.s2c-mobile__list > li:last-child { border-bottom: 0; }

.s2c-mobile__list a,
.s2c-mobile__toggle {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 17px 18px;
	border-radius: 18px;
	font-size: 19px;
	font-weight: 900;
	color: var(--s2c-green-deep) !important;
	text-decoration: none !important;
	background: none !important;
	border: 0 !important;
	cursor: pointer;
	font-family: inherit;
	text-align: left;
	transition: background 0.18s ease, color 0.18s ease;
}

.s2c-mobile__list a:hover,
.s2c-mobile__toggle:hover {
	background: var(--s2c-green-ultra) !important;
	color: var(--s2c-green-darker) !important;
}

.s2c-mobile__sub {
	list-style: none !important;
	margin: 0 !important;
	padding: 2px 0 14px 18px !important;
}

.s2c-mobile__sub a {
	position: relative;
	font-size: 17px;
	font-weight: 800;
	padding: 13px 16px;
	color: var(--s2c-ink) !important;
}

.s2c-mobile__sub a::before {
	content: "";
	width: 26px;
	height: 26px;
	border-radius: 9px;
	background: linear-gradient(135deg, rgba(109, 204, 77, 0.22), rgba(42, 123, 26, 0.10));
	margin-right: 8px;
	flex: 0 0 auto;
}

.s2c-mobile__sub[hidden] { display: none; }

.s2c-mobile__toggle[aria-expanded="true"] .s2c-chev { transform: rotate(180deg); }

.s2c-mobile__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 17px 20px;
	border-radius: 18px;
	background: var(--s2c-wa);
	color: #fff !important;
	font-weight: 900;
	font-size: 19px;
	text-decoration: none !important;
	box-shadow: 0 16px 38px rgba(37, 211, 102, 0.34);
	transition: transform 0.2s ease, background 0.2s ease;
}

.s2c-mobile__cta:hover {
	background: var(--s2c-wa-deep);
	transform: translateY(-1px);
	color: #fff !important;
}

.s2c-mobile__cta svg { width: 22px; height: 22px; }

.s2c-mobile__phone {
	display: block;
	text-align: center;
	margin-top: 16px;
	color: var(--s2c-green-deep) !important;
	font-weight: 900;
	font-size: 18px;
	text-decoration: none !important;
}

/* Responsive */
@media (max-width: 1080px) {
	.s2c-nav { display: none; }
	.s2c-burger,
	.s2c-burger:hover,
	.s2c-burger:focus,
	.s2c-burger:active,
	.s2c-burger:focus-visible { display: inline-flex; }
}

@media (max-width: 980px) {
	.s2c-header__inner { gap: 16px; }
	.s2c-wa { padding: 0 18px; min-height: 54px; }
	.s2c-wa__label { display: none; }
	.s2c-wa__core { gap: 0; }
}

@media (max-width: 620px) {
	:root { --s2c-h: 82px; }
	.s2c-header__inner { padding: 0 16px; }
	.s2c-brand { min-width: 0; gap: 10px; }
	.s2c-brand__mark { width: 48px; height: 48px; border-radius: 14px; }
	.s2c-brand__text b { font-size: 19px; }
	.s2c-brand__text span { font-size: 13px; }
	.s2c-wa { display: none; }
	.s2c-burger,
	.s2c-burger:hover,
	.s2c-burger:focus,
	.s2c-burger:active,
	.s2c-burger:focus-visible { width: 52px; height: 52px; border-radius: 14px; }
}

@media (max-width: 440px) {
	.s2c-brand__text b { font-size: 17px; }
	.s2c-brand__text span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.s2c-wa__pulse,
	.s2c-wa__pulse--2 { animation: none; opacity: 0; }
	* { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
	.s2c-header { display: none; }
	body.s2c-header-active { padding-top: 0; }
}
