/*
 * Komponenten-Styles, die sich nicht über theme.json abbilden lassen:
 * Hover-/Fokus-Übergänge, Sticky-Header-Verhalten, Karten, Badges, Formulare,
 * Accordion/Cookie-Banner-Zustände, Timeline. Nutzt ausschliesslich die in
 * theme.json definierten Preset-Variablen (--wp--preset--…, --wp--custom--…).
 */

/* ---------- Layout-Helfer ---------- */

.sts-section-soft {
	background: var(--wp--preset--color--background-soft);
}

.sts-section-dark {
	background: var(--wp--preset--color--background-dark);
	color: var(--wp--preset--color--background);
}

.sts-section-dark a {
	color: var(--wp--preset--color--background);
}

/* ---------- Container ---------- */

.sts-container {
	max-width: var(--wp--custom--container--max);
	margin-inline: auto;
	width: 100%;
	padding-inline: 40px;
}

@media (max-width: 600px) {
	.sts-container {
		padding-inline: 20px;
	}
}

/* ---------- Header ---------- */

.sts-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-top: var(--wp--preset--spacing--16);
	padding-bottom: var(--wp--preset--spacing--16);
	transition: padding var(--wp--custom--duration--base) var(--wp--custom--ease--standard),
		box-shadow var(--wp--custom--duration--base) var(--wp--custom--ease--standard);
}

.sts-header.is-scrolled {
	padding-top: var(--wp--preset--spacing--8);
	padding-bottom: var(--wp--preset--spacing--8);
	box-shadow: var(--wp--custom--shadow--sm);
}

.sts-header__logo {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--8);
	text-decoration: none !important;
}

.sts-header__logo-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	text-decoration: none !important;
}

.sts-header__logo img {
	height: 36px;
	width: auto;
	transition: height var(--wp--custom--duration--base) var(--wp--custom--ease--standard);
}

.sts-header.is-scrolled .sts-header__logo img {
	height: 28px;
}

.sts-header__logo-text {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--base);
	color: var(--wp--preset--color--primary);
	letter-spacing: -0.01em;
	white-space: nowrap;
}

/* WP core Navigation block: link colors + submenu polish */
.sts-header .wp-block-navigation a {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 500;
	text-decoration: none !important;
}

.sts-header .wp-block-navigation-submenu__container {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
	box-shadow: var(--wp--custom--shadow--md);
	padding: var(--wp--preset--spacing--8);
}

/* ---------- Footer ---------- */

.sts-footer {
	background: var(--wp--preset--color--background-dark);
	color: var(--wp--preset--color--background);
}

.sts-footer a {
	color: var(--wp--preset--color--border-strong);
	text-decoration: none !important;
}

.sts-footer a:hover {
	color: var(--wp--preset--color--background);
}

.sts-footer__heading {
	font-weight: 700;
	color: var(--wp--preset--color--background);
	margin-bottom: var(--wp--preset--spacing--8);
}

.sts-footer__meta {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--border-strong);
}

.sts-footer__logo {
	height: 28px;
	width: auto;
}

.sts-footer__brand {
	align-items: flex-start;
}

.sts-footer__brand-logo {
	height: 84px;
	width: auto;
	flex-shrink: 0;
}

@media (max-width: 600px) {
	.sts-footer__brand-logo {
		height: 64px;
	}
}

/* ---------- Karten ---------- */

.sts-card {
	background: var(--wp--preset--color--background);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
	box-shadow: var(--wp--custom--shadow--xs);
	padding: var(--wp--preset--spacing--24);
	transition: transform var(--wp--custom--duration--base) var(--wp--custom--ease--out),
		box-shadow var(--wp--custom--duration--base) var(--wp--custom--ease--out),
		border-color var(--wp--custom--duration--base) var(--wp--custom--ease--out);
}

.sts-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--wp--custom--shadow--md);
}

.sts-feature-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--claritylog-soft);
	margin-bottom: var(--wp--preset--spacing--12);
}

.sts-product-card {
	position: relative;
}

.sts-product-card.is-piq:hover {
	border-color: var(--wp--preset--color--piq);
}

.sts-product-card.is-claritylog:hover {
	border-color: var(--wp--preset--color--claritylog);
}

.sts-product-card__logo {
	height: 32px;
	width: auto;
	margin-bottom: var(--wp--preset--spacing--12);
}

.sts-product-card__features {
	list-style: none;
	margin: var(--wp--preset--spacing--16) 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--8);
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--text-muted);
}

.sts-product-card__features li::before {
	content: "✓";
	color: var(--wp--preset--color--accent);
	font-weight: 700;
	margin-right: var(--wp--preset--spacing--8);
}

.sts-stat-card {
	text-align: center;
}

.sts-stat-card__value {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: var(--wp--preset--font-size--3xl);
	color: var(--wp--preset--color--primary);
	display: block;
}

.sts-testimonial-card {
	position: relative;
	padding: var(--wp--preset--spacing--32);
}

.sts-testimonial-card__quote {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--lg);
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	line-height: 1.5;
}

.sts-testimonial-card__name {
	font-weight: 700;
	margin-top: var(--wp--preset--spacing--16);
}

.sts-testimonial-card__role {
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--sm);
}

/* ---------- Badges ---------- */

.sts-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: var(--wp--custom--radius--pill);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	background: var(--wp--preset--color--background-soft);
	color: var(--wp--preset--color--primary);
}

.sts-badge.is-piq {
	background: var(--wp--preset--color--piq-soft);
	color: var(--wp--preset--color--piq);
}

.sts-badge.is-claritylog {
	background: var(--wp--preset--color--claritylog-soft);
	color: var(--wp--preset--color--claritylog);
}

.sts-badge.is-success {
	background: var(--wp--preset--color--claritylog-soft);
	color: var(--wp--preset--color--success);
}

.sts-badge.is-warning {
	background: #fbf1dd;
	color: var(--wp--preset--color--warning);
}

.sts-badge.is-danger {
	background: #f7e2df;
	color: var(--wp--preset--color--danger);
}

/* ---------- Formulare ---------- */

.sts-form {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--16);
}

.sts-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--16);
}

.sts-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sts-field label {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	color: var(--wp--preset--color--text);
}

.sts-field input,
.sts-field select,
.sts-field textarea {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--base);
	padding: 12px 14px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--text);
	transition: border-color var(--wp--custom--duration--fast) var(--wp--custom--ease--standard),
		box-shadow var(--wp--custom--duration--fast) var(--wp--custom--ease--standard);
}

.sts-field input:focus,
.sts-field select:focus,
.sts-field textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--piq);
	box-shadow: var(--wp--custom--shadow--focus);
}

.sts-field--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
}

.sts-field--checkbox input {
	margin-top: 4px;
}

.sts-field--checkbox label {
	font-weight: 400;
}

.sts-form-message {
	border-radius: var(--wp--custom--radius--md);
	padding: var(--wp--preset--spacing--16);
	font-size: var(--wp--preset--font-size--sm);
}

.sts-form-message.is-success {
	background: var(--wp--preset--color--claritylog-soft);
	color: var(--wp--preset--color--success);
}

.sts-form-message.is-error {
	background: #f7e2df;
	color: var(--wp--preset--color--danger);
}

/* ---------- Accordion ---------- */

.sts-accordion__item {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.sts-accordion__trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--16);
	padding: var(--wp--preset--spacing--16) 0;
	background: none;
	border: none;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--base);
	color: var(--wp--preset--color--primary);
	text-align: left;
}

.sts-accordion__icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	position: relative;
	transition: transform var(--wp--custom--duration--base) var(--wp--custom--ease--standard);
}

.sts-accordion__icon::before,
.sts-accordion__icon::after {
	content: "";
	position: absolute;
	background: currentColor;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.sts-accordion__icon::before {
	width: 14px;
	height: 2px;
}

.sts-accordion__icon::after {
	width: 2px;
	height: 14px;
	transition: opacity var(--wp--custom--duration--fast) var(--wp--custom--ease--standard);
}

.sts-accordion__trigger[aria-expanded="true"] .sts-accordion__icon::after {
	opacity: 0;
}

.sts-accordion__panel {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--text-muted);
	line-height: 1.7;
}

.sts-accordion__panel-inner {
	padding-bottom: var(--wp--preset--spacing--16);
}

/* ---------- Cookie-Banner ---------- */

.sts-cookie-banner {
	position: fixed;
	left: var(--wp--preset--spacing--16);
	right: var(--wp--preset--spacing--16);
	bottom: var(--wp--preset--spacing--16);
	z-index: 200;
	max-width: 560px;
	margin: 0 auto;
	background: var(--wp--preset--color--background);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--custom--shadow--lg);
	padding: var(--wp--preset--spacing--20);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--12);
}

.sts-cookie-banner[hidden] {
	display: none;
}

.sts-cookie-banner__actions {
	display: flex;
	gap: var(--wp--preset--spacing--8);
	flex-wrap: wrap;
}

.sts-cookie-banner__secondary {
	background: transparent;
	color: var(--wp--preset--color--primary);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md);
	padding: 12px 24px;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	cursor: pointer;
}

.sts-cookie-banner__secondary:hover {
	background: var(--wp--preset--color--background-soft);
}

/* ---------- Timeline ---------- */

.sts-timeline {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--24);
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: sts-step;
}

.sts-timeline__step {
	flex: 1 1 140px;
	position: relative;
	padding-top: var(--wp--preset--spacing--48);
	counter-increment: sts-step;
}

.sts-timeline__step::before {
	content: counter(sts-step);
	position: absolute;
	top: 0;
	left: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
}

.sts-timeline__step-title {
	font-weight: 700;
	color: var(--wp--preset--color--primary);
}

/* ---------- Breadcrumbs ---------- */

.sts-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--text-muted);
	list-style: none;
	margin: 0 0 var(--wp--preset--spacing--16);
	padding: 0;
}

.sts-breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 6px;
	color: var(--wp--preset--color--border-strong);
}

/* ---------- Button-Stilvariante "Ghost" ---------- */

.is-style-ghost .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--primary);
	border: 1px solid transparent;
}

.is-style-ghost .wp-block-button__link:hover {
	background: var(--wp--preset--color--background-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
	.sts-form__row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.sts-header__logo-text {
		display: none;
	}

	.sts-timeline {
		flex-direction: column;
	}
}
