/*
 * StationGuide — ergänzende Styles.
 * Nur das, was theme.json (noch) nicht kann. Konvention: alle Klassen mit sg--Präfix.
 */

/* ---------- Buttons ---------- */

/* Sekundär-CTA „Demo vereinbaren" */
.wp-block-button.is-style-outline-blue .wp-block-button__link {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--blue);
	border: 2px solid var(--wp--preset--color--blue);
	box-shadow: none;
}
.wp-block-button.is-style-outline-blue .wp-block-button__link:hover {
	background: var(--wp--preset--color--light);
	color: var(--wp--preset--color--blue-dark);
}

/* Weißer Button auf blauem CTA-Band */
.wp-block-button.is-style-fill-white .wp-block-button__link {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--blue-dark);
	box-shadow: none;
}

/* Blauer Formular-Button */
.sg-form .wp-block-button__link,
.sg-btn-blue .wp-block-button__link {
	background: var(--wp--preset--color--blue);
	box-shadow: none;
}
.sg-btn-blue .wp-block-button__link:hover {
	background: var(--wp--preset--color--blue-dark);
}

/* ---------- Karten & Kacheln ---------- */

.sg-card {
	background: var(--wp--preset--color--light);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--large);
}

.sg-card--white {
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--custom--shadow--card);
}

.sg-tile {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
}

/* Icon-Chip in Kacheln */
.sg-tile-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 10px;
	background: #E4EDFB;
	font-size: 18px;
}

/* Durchgestrichener Alt-Zustand in Problem/Lösung-Karten */
.sg-old {
	color: #B91C1C;
	font-weight: 600;
	text-decoration: line-through;
}

/* Nummern-Kreis („In 3 Schritten startklar") */
.sg-step-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
	font-weight: 800;
	font-size: 18px;
}

/* ---------- Produktbild (Hero) ---------- */

.sg-product-shot img {
	filter: drop-shadow(0 18px 40px rgba(10, 37, 64, 0.18));
}

/* ---------- Haken-Listen ---------- */

ul.sg-checklist {
	list-style: none;
	padding-left: 0;
}
ul.sg-checklist li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 11px;
}
ul.sg-checklist li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 2px;
	width: 20px;
	height: 20px;
	background: #DCFCE7;
	color: #15803D;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Microcopy unter CTAs */
.sg-micro {
	color: var(--wp--preset--color--muted);
	font-size: 0.84375rem;
}
.sg-micro .sg-check {
	color: var(--wp--preset--color--green);
	font-weight: 700;
}

/* ---------- KI-Hinweis-Band ---------- */

.sg-ki {
	background: linear-gradient(90deg, #EFF6FF, #FFFFFF);
	border: 1px solid #BFDBFE;
	border-radius: 14px;
}
.sg-badge-blue {
	display: inline-block;
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
	border-radius: 8px;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 5px 10px;
	white-space: nowrap;
}

/* ---------- Dunkle Sektion („Software aus Deutschland") ---------- */

.sg-dark .sg-badge-card {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	text-align: center;
}
.sg-dark .sg-badge-card p {
	opacity: 0.75;
}

/* ---------- Kontakt-Formular (Platzhalter bis Fluent Forms) ---------- */

.sg-form input[type="text"],
.sg-form input[type="email"],
.sg-form textarea {
	width: 100%;
	border: 1px solid #CBD8E8;
	border-radius: 10px;
	padding: 13px 14px;
	font-size: 0.9375rem;
	font-family: inherit;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--white);
}
.sg-form textarea {
	min-height: 110px;
	resize: vertical;
}
.sg-form label {
	font-size: 0.84375rem;
	color: var(--wp--preset--color--muted);
	display: flex;
	gap: 8px;
	align-items: center;
}
.sg-form .sg-form-row {
	display: flex;
	gap: 14px;
	margin-bottom: 14px;
}
.sg-form .sg-form-row > * {
	flex: 1;
}
.sg-form button {
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
	border: 0;
	border-radius: 11px;
	font-weight: 600;
	font-size: 0.96875rem;
	font-family: inherit;
	padding: 13px 26px;
	cursor: pointer;
}
.sg-form button:hover {
	background: var(--wp--preset--color--blue-dark);
}

/* ---------- Header ---------- */

.sg-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.sg-header-tel {
	text-align: right;
	line-height: 1.25;
}
.sg-header-tel a {
	color: var(--wp--preset--color--navy);
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
}
.sg-header-tel small {
	color: var(--wp--preset--color--muted);
	font-size: 0.75rem;
	display: block;
}

@media (max-width: 781px) {
	/* Telefon-Block nur auf Desktop (Plan 6.1: „Telefonnummer dezent, Desktop") */
	.sg-header-tel {
		display: none;
	}
	/* Formularfelder untereinander */
	.sg-form .sg-form-row {
		flex-direction: column;
	}
}

/* Kein Weißblitz zwischen vollbreiten Sektionen: Abstände macht das Sektions-Padding, nicht der blockGap */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}
main > .alignfull + .alignfull,
.entry-content > .alignfull + .alignfull {
	margin-block-start: 0;
}

/* Lange deutsche Komposita in Überschriften sauber trennen statt hart umbrechen */
h1, h2, h3, h4 {
	hyphens: auto;
	-webkit-hyphens: auto;
}

/* ---------- Echte App-Screens (Telefon-Bilder mit Alphakanal) ---------- */

.sg-phone-frame {
	display: inline-block;
	background: #0D1B2A;
	border-radius: 34px;
	padding: 10px;
	box-shadow: 0 24px 44px rgba(10, 37, 64, 0.28);
	line-height: 0;
}
.sg-phone-frame img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 24px;
}
.sg-phone-hero {
	text-align: center;
}
.sg-phone-hero .sg-phone-frame {
	max-width: 300px;
}
.sg-phone {
	height: auto;
	filter: drop-shadow(0 24px 44px rgba(10, 37, 64, 0.28));
}
.sg-phone-duo {
	position: relative;
	display: flex;
	justify-content: center;
	padding: 24px 0 10px;
}
.sg-phone-duo .sg-phone--front {
	width: 58%;
	max-width: 290px;
	position: relative;
	z-index: 2;
}
.sg-phone-duo .sg-phone--back {
	width: 50%;
	max-width: 250px;
	position: absolute;
	right: 4%;
	top: 52px;
	transform: rotate(5deg);
	z-index: 1;
}
.sg-app-shot {
	text-align: center;
}
.sg-app-shot .sg-phone {
	width: 82%;
	max-width: 230px;
}

/* ---------- Demo-Video (selbst gehostet) ---------- */

.sg-video {
	display: block;
	width: 100%;
	max-width: 900px;
	height: auto;
	margin: 0 auto;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
	background: #000;
}

/* ---------- Dezente Animationen (JS: assets/js/sg-animate.js) ---------- */

.sg-reveal {
	opacity: 0;
}
.sg-reveal.sg-in {
	opacity: 1;
	animation: sg-rise 0.6s ease backwards;
}
@keyframes sg-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
}

@media (hover: hover) and (pointer: fine) {
	.sg-card, .sg-tile, .sg-beispiel, .sg-badge-card {
		transition: transform 0.25s ease;
	}
	.sg-card:hover, .sg-tile:hover, .sg-beispiel:hover, .sg-badge-card:hover {
		transform: translateY(-4px);
	}
}

/* ---------- Barrierefreiheit & Feinschliff ---------- */

:where(a, button, input, textarea, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--blue);
	outline-offset: 2px;
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	html:not(.sg-anim-force) *,
	html:not(.sg-anim-force) *::before,
	html:not(.sg-anim-force) *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* Horizontales Scrollen der Seite unterbinden (Sicherheitsnetz) */
html, body {
	overflow-x: clip;
}

/* Details/FAQ: Plus-Optik */
.wp-block-details summary {
	font-weight: 700;
	color: var(--wp--preset--color--navy);
	cursor: pointer;
}

/* Beispiel-Karten der Preisseite: Titel und Monatspreis auf gleicher Höhe */
.sg-beispiel {
	display: flex;
	flex-direction: column;
	position: relative;
}
.sg-beispiel .sg-badge-blue {
	position: absolute;
	top: -13px;
	left: 26px;
}
.sg-beispiel > hr:last-of-type {
	margin-top: auto;
}
.sg-beispiel .sg-badge-blue + * {
	margin-block-start: 0;
}
