/* Step Guides – Frontend
 *
 * Gestaltet passend zum OnePress-Theme von the-cocktailmachine.com:
 * Raleway für Überschriften und Bedienelemente, Open Sans für Fließtext,
 * Primärfarbe Rot, Sekundärfarbe Dunkelblau, helle Flächen mit dezenten Schatten.
 * Knöpfe, Hover und Fokus entsprechen dem Plugin „sPIrits Verleih“ (Design-Übergabe 0.22.2).
 *
 * Die Farben übernehmen die Theme-Presets (Customizer/theme.json) und fallen
 * sonst auf die Werte der Website zurück. Eigene Anpassung z. B.:
 * .sg-guide, .sg-manual, .sg-cards { --sg-accent: #0a7cff; }
 */

.sg-guide,
.sg-manual,
.sg-section,
.sg-cards,
.sg-lightbox {
	--sg-accent: var(--wp--preset--color--primary, #d0113a);
	--sg-accent-contrast: #fff;
	--sg-secondary: var(--wp--preset--color--secondary, #082636);
	--sg-heading: var(--wp--preset--color--heading, #333);
	--sg-text: var(--wp--preset--color--body-text, #777);
	--sg-subtle: #aaa;
	--sg-border: var(--wp--preset--color--border, #e9e9e9);
	--sg-light: var(--wp--preset--color--light, #f8f9f9);
	--sg-radius: 3px;
	--sg-button-radius: 2px;
	--sg-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
	--sg-shadow-hover: 0 6px 9px rgba(0, 0, 0, 0.09);
	--sg-font-heading: "Raleway", Helvetica, Arial, sans-serif;
	--sg-note: var(--sg-secondary);
	--sg-tip: #2e8b57;
	--sg-warning: var(--sg-accent);
	--sg-internal: #6f42c1;
}

.sg-guide,
.sg-manual {
	container-type: inline-size;
	margin-block: 0.5em 1.5em;
}

/* OnePress: Titel nur einmal und ohne Datum/Autor, weniger Abstand über dem Inhalt
   (die Titelleiste blendet das Plugin serverseitig aus). */
.single-sg_guide #primary,
.single-sg_manual #primary {
	padding-top: 24px;
}

.type-sg_guide > .entry-header .entry-meta,
.type-sg_manual > .entry-header .entry-meta,
.type-sg_guide > .entry-footer,
.type-sg_manual > .entry-footer {
	display: none;
}

.single .type-sg_guide > .entry-header .entry-title,
.single .type-sg_manual > .entry-header .entry-title {
	margin-bottom: 0.4em;
}

/* Raleway nutzt sonst Mediävalziffern ("1.0" tanzt aus der Zeile). */
.sg-guide,
.sg-manual,
.sg-cards {
	font-variant-numeric: lining-nums;
}

/* OnePress: volle Breite der Inhaltsspalte (bündig mit dem Seitentitel) statt Theme-"wide"-Breite. */
#content-inside .entry-content > .sg-guide.alignwide,
#content-inside .entry-content > .sg-manual.alignwide {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

/* Kleine Großbuchstaben-Beschriftung wie die Section-Subtitles des Themes */
.sg-eyebrow,
.sg-meta-label,
.sg-step-num,
.sg-breadcrumb,
.sg-toc-title,
.sg-card-info {
	font-family: var(--sg-font-heading);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
}

/* Meta-Zeile & Badges ------------------------------------------------- */

.sg-meta,
.entry-content ul.sg-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	margin: 0 0 1.5em;
	padding: 0;
	list-style: none;
}

.sg-meta li {
	display: inline-flex;
	align-items: baseline;
	gap: 0.6em;
	margin: 0;
	padding: 0.55em 1em;
	border: 1px solid var(--sg-border);
	border-radius: var(--sg-radius);
	background: var(--sg-light);
	color: var(--sg-heading);
	font-family: var(--sg-font-heading);
	font-weight: 600;
	line-height: 1.3;
}

.sg-meta-label {
	color: var(--sg-subtle);
	font-size: 11px;
}

.sg-meta li.sg-badge {
	border-color: transparent;
}

.sg-badge {
	display: inline-block;
	padding: 0.25em 0.8em;
	border-radius: var(--sg-radius);
	font-family: var(--sg-font-heading);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	line-height: 1.6;
	text-transform: uppercase;
	vertical-align: middle;
}

.sg-badge--internal,
.sg-meta li.sg-badge--internal {
	background: var(--sg-internal);
	color: #fff;
}

.sg-badge--customer,
.sg-meta li.sg-badge--customer {
	background: var(--sg-secondary);
	color: #fff;
}

.sg-breadcrumb {
	margin: 0 0 0.75em;
	color: var(--sg-subtle);
}

.sg-breadcrumb a {
	color: var(--sg-accent);
	text-decoration: none;
}

.sg-breadcrumb a:hover {
	text-decoration: underline;
}

.sg-intro {
	margin-bottom: 1.5em;
}

.sg-heading {
	margin: 2em 0 1em;
	color: var(--sg-heading);
	font-family: var(--sg-font-heading);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.sg-empty {
	padding: 1.25em 1.5em;
	border-left: 3px solid var(--sg-accent);
	background: var(--sg-light);
	font-style: italic;
}

/* Buttons (wie .btn-theme-primary / -outline) ------------------------- */

.sg-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	margin: 0 0 1.5em;
}

.sg-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.85em 1.6em;
	border: 1px solid var(--sg-accent);
	border-radius: var(--sg-button-radius);
	background: transparent;
	color: var(--sg-accent);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	line-height: 1.3;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* Sekundär: rot umrandet, beim Hover rot gefüllt */
.sg-button:hover,
.sg-button:focus-visible {
	background: var(--sg-accent);
	color: var(--sg-accent-contrast);
	text-decoration: none;
}

.sg-button:focus-visible {
	outline: 2px solid var(--sg-secondary);
	outline-offset: 2px;
}

/* Primär: rot gefüllt, beim Hover dunkelblau */
.sg-button--primary {
	border-color: transparent;
	background: var(--sg-accent);
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
	color: var(--sg-accent-contrast);
}

.sg-button--primary:hover,
.sg-button--primary:focus-visible {
	background: var(--sg-secondary);
	color: var(--sg-accent-contrast);
}

.sg-button.is-disabled {
	opacity: 0.5;
	cursor: default;
	pointer-events: none;
}

.sg-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--sg-accent);
	font-family: var(--sg-font-heading);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
}

.sg-link:hover,
.sg-link:focus-visible {
	color: var(--sg-secondary);
	text-decoration: underline;
}

/* Einheitlicher Tastatur-Fokus für Links und Vorschaubilder */
.sg-link:focus-visible,
.sg-toc a:focus-visible,
.sg-breadcrumb a:focus-visible,
.sg-thumb:focus-visible,
.sg-gallery-main:focus-visible,
.sg-card a:focus-visible {
	outline: 2px solid var(--sg-accent);
	outline-offset: 2px;
}

/* Layout Anleitung -------------------------------------------------------- */

.sg-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5em;
}

@container (min-width: 900px) {
	.sg-layout {
		grid-template-columns: minmax(0, 1fr) 270px;
	}

	.sg-toc {
		position: sticky;
		top: calc(var(--sg-sticky-offset, 88px) + 12px); /* unter dem fixierten Theme-Header */
		align-self: start;
	}
}

/* Feste Schritt-Höhe (Desktop, schrittweise Ansicht): Bildrahmen, Vorschaubild-Zeile und damit die
   Navigation stehen bei jedem Schritt an derselben Stelle. --sg-img-max berechnet der Viewer. */
.sg-fixed:not(.sg-show-all) .sg-step-title {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.sg-fixed:not(.sg-show-all) .sg-step-body {
	height: calc(var(--sg-img-max) + 74px);
}

.sg-fixed:not(.sg-show-all) .sg-gallery-main {
	height: var(--sg-img-max);
}

.sg-fixed:not(.sg-show-all) .sg-gallery-main img {
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: contain;
}

/* Langer Text scrollt in seiner Spalte, statt die Navigation zu verschieben. */
.sg-fixed:not(.sg-show-all) .sg-step-body > .sg-lines {
	max-height: 100%;
	overflow-y: auto;
	padding-right: 6px;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--sg-border) transparent;
}

.sg-fixed:not(.sg-show-all) .sg-step-body.has-images {
	align-items: stretch;
}

/* Kopfzeile: Breadcrumb, Meta und Aktionen in einer Zeile */
.sg-guide-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em 1em;
	margin-bottom: 1em;
	padding-bottom: 0.75em;
	border-bottom: 1px solid var(--sg-border);
}

.sg-guide-head .sg-breadcrumb,
.sg-guide-head .sg-meta,
.entry-content .sg-guide-head ul.sg-meta {
	margin: 0;
}

.sg-guide-head .sg-meta {
	gap: 0.4em;
}

.sg-guide-head .sg-meta li {
	padding: 0.3em 0.7em;
	font-size: 13px;
}

.sg-toolbar-actions {
	display: flex;
	gap: 1.5em;
	margin-left: auto;
}

/* Ohne JavaScript werden alle Schritte untereinander angezeigt. */
.sg-pager,
.sg-guide:not(.sg-js) .sg-toolbar-actions {
	display: none;
}

.sg-js .sg-pager {
	display: flex;
}

.sg-js:not(.sg-show-all) .sg-step:not(.is-active),
.sg-js.sg-show-all .sg-pager,
.sg-js:not(.sg-show-all) .sg-chapter-nav {
	display: none;
}

.sg-pager,
.sg-chapter-nav {
	justify-content: space-between;
	gap: 0.75em;
	margin-top: 1em;
	padding-top: 1em;
	border-top: 1px solid var(--sg-border);
}

.sg-chapter-nav {
	display: flex;
	flex-wrap: wrap;
}

.sg-chapter-nav .sg-button--primary {
	margin-left: auto;
}

/* « ‹  ……  Weiter ›  » */
.sg-pager {
	align-items: center;
}

.sg-pager-group {
	display: flex;
	gap: 0.5em;
}

.sg-icon {
	display: block;
	flex-shrink: 0;
}

.sg-icon-button {
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0.7em;
}

.sg-next .sg-icon {
	margin-right: -0.25em;
}

/* Gleich breit bei „Weiter“ und „Nächstes Kapitel“, damit der Knopf nicht springt. */
.sg-pager .sg-next {
	justify-content: center;
	min-width: 14em;
}

/* Schritt ------------------------------------------------------------------ */

.sg-main,
.sg-step {
	scroll-margin-top: calc(var(--sg-sticky-offset, 88px) + 12px);
}

.sg-step + .sg-step {
	margin-top: 3em;
}

.sg-js:not(.sg-show-all) .sg-step + .sg-step {
	margin-top: 0;
}

.sg-step-title {
	margin: 0 0 0.6em;
	color: var(--sg-heading);
	font-family: var(--sg-font-heading);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

/* „Schritt 1 von 7“ in derselben Zeile wie der Titel */
.sg-step-num {
	display: inline-block;
	margin-right: 0.75em;
	color: var(--sg-accent);
	vertical-align: 0.15em;
}

.sg-step-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5em;
}

@container (min-width: 700px) {
	.sg-step-body.has-images {
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
		align-items: start;
	}
}

/* Galerie ------------------------------------------------------------------ */

.sg-gallery-main {
	display: block;
	border: 1px solid var(--sg-border);
	border-radius: var(--sg-radius);
	overflow: hidden;
	background: var(--sg-light);
	box-shadow: var(--sg-shadow);
	cursor: zoom-in;
}

.sg-gallery-main img {
	display: block;
	width: 100%;
	height: auto;
	/* Höhe passend zum Fenster (vom Viewer berechnet), damit ohne Scrollen weitergeklickt werden kann. */
	max-height: var(--sg-img-max, min(70vh, 640px));
	object-fit: contain;
}

.sg-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin-top: 0.6em;
}

.sg-thumb {
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid var(--sg-border);
	border-radius: var(--sg-radius);
	overflow: hidden;
	background: var(--sg-light);
	opacity: 0.75;
	cursor: pointer;
	transition: border-color 0.15s ease, opacity 0.15s ease;
}

.sg-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sg-thumb.is-active,
.sg-thumb:hover,
.sg-thumb:focus-visible {
	border-color: var(--sg-accent);
	opacity: 1;
}

/* Punkte ------------------------------------------------------------------- */

.sg-lines,
.entry-content ul.sg-lines {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sg-line {
	position: relative;
	margin: 0 0 0.9em;
	padding-left: 1.5em;
	line-height: 1.7;
}

.sg-line strong,
.sg-line b {
	color: var(--sg-heading);
}

/* Roter Punkt wie die runden Icons der Website */
.sg-line::before {
	position: absolute;
	left: 0.1em;
	top: 0.6em;
	width: 0.5em;
	height: 0.5em;
	border-radius: 50%;
	background: var(--sg-accent);
	content: "";
}

.sg-line--note,
.sg-line--tip,
.sg-line--warning,
.sg-line--internal {
	padding: 0.9em 1.1em 0.9em 3em;
	border-left: 3px solid var(--sg-line-color);
	border-radius: 0 var(--sg-radius) var(--sg-radius) 0;
	background: color-mix(in srgb, var(--sg-line-color) 7%, var(--sg-light));
}

/* Symbol im farbigen Kreis */
.sg-line--note::before,
.sg-line--tip::before,
.sg-line--warning::before,
.sg-line--internal::before {
	left: 0.9em;
	top: 0.95em;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.45em;
	height: 1.45em;
	background: var(--sg-line-color);
	color: #fff;
	font-family: var(--sg-font-heading);
	font-size: 0.85em;
	font-weight: 800;
	line-height: 1;
}

.sg-line--note { --sg-line-color: var(--sg-note); }
.sg-line--note::before { content: "i"; }
.sg-line--tip { --sg-line-color: var(--sg-tip); }
.sg-line--tip::before { content: "\2605"; font-size: 0.75em; }
.sg-line--warning { --sg-line-color: var(--sg-warning); }
.sg-line--warning::before { content: "!"; }
.sg-line--internal { --sg-line-color: var(--sg-internal); }
.sg-line--internal::before { content: "\25C6"; font-size: 0.7em; }

.sg-line-label {
	margin-right: 0.3em;
	color: var(--sg-line-color);
	font-family: var(--sg-font-heading);
	font-weight: 700;
}

/* Inhaltsverzeichnis ------------------------------------------------------- */

.sg-toc {
	padding: 1.5em;
	border: 1px solid var(--sg-border);
	border-radius: var(--sg-radius);
	background: var(--sg-light);
}

.sg-toc-title {
	margin: 0 0 1em;
	padding-bottom: 0.8em;
	border-bottom: 1px solid var(--sg-border);
	color: var(--sg-heading);
}

.sg-toc-title a {
	color: inherit;
	text-decoration: none;
}

.sg-toc ol,
.entry-content .sg-toc ol {
	margin: 0;
	padding-left: 1.4em;
}

.sg-toc li {
	margin: 0.45em 0;
	line-height: 1.45;
}

.sg-toc li::marker {
	color: var(--sg-subtle);
	font-family: var(--sg-font-heading);
	font-weight: 600;
}

.sg-toc a {
	color: var(--sg-text);
	text-decoration: none;
}

.sg-toc a:hover,
.sg-toc a:focus-visible {
	color: var(--sg-accent);
}

.sg-toc-chapters > li.is-current > a {
	color: var(--sg-heading);
	font-weight: 700;
}

.sg-toc-steps {
	margin-top: 0.4em !important;
	font-size: 0.95em;
}

.sg-toc-steps a.is-active {
	color: var(--sg-accent);
	font-weight: 700;
}

/* Übersichtskarten (wie die Service-Kacheln des Themes) -------------------- */

.sg-cards,
.entry-content ol.sg-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 30px;
	margin: 1.5em 0 2em;
	padding: 0;
	list-style: none;
	counter-reset: sg-card;
}

.sg-card {
	margin: 0;
	counter-increment: sg-card;
}

.sg-card a {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: var(--sg-radius);
	background: #fff;
	box-shadow: var(--sg-shadow);
	color: var(--sg-text);
	text-decoration: none;
	transition: box-shadow 0.1s ease-out, transform 0.1s ease-out;
}

.sg-card a:hover,
.sg-card a:focus-visible {
	box-shadow: var(--sg-shadow-hover);
	transform: translateY(-2px);
}

/* Feste 16:10-Box: Das Bild liegt absolut darin, damit seine eigene Höhe
   (z. B. Hochformat oder Theme-Regel img { height: auto }) die Karte nicht streckt. */
.sg-card-image {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--sg-light);
}

.sg-card-image img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	max-width: none;
	height: 100% !important;
	margin: 0;
	object-fit: cover;
}

/* Hochformat: oberen Ausschnitt zeigen (bei Screenshots Titelleiste und Inhalt). */
.sg-card-image img.is-portrait {
	object-position: 50% 0;
}

.sg-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	padding: 20px;
}

.sg-card-title {
	color: var(--sg-heading);
	font-family: var(--sg-font-heading);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
}

.sg-card a:hover .sg-card-title {
	color: var(--sg-accent);
}

.is-numbered .sg-card-title::before {
	content: counter(sg-card) ". ";
	color: var(--sg-accent);
}

/* Gesperrte Karte: Kunden-Inhalt für nicht angemeldete Besucher, Link führt zur Anmeldung. */
.sg-card.is-locked .sg-card-image img {
	filter: grayscale(0.7);
	opacity: 0.7;
}

.sg-card-lock {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--sg-secondary);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
	color: #fff;
}

.sg-card-lock .sg-icon {
	width: 20px;
	height: 20px;
}

.sg-card-locked-hint {
	color: var(--sg-accent);
}

.sg-card-excerpt {
	font-size: 0.95em;
}

.sg-card-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6em;
	margin-top: auto;
	padding-top: 0.4em;
	color: var(--sg-subtle);
	font-size: 11px;
}

/* Komplettansicht ----------------------------------------------------------- */

.sg-full-chapter {
	margin-top: 3.5em;
	padding-top: 1em;
	border-top: 3px solid var(--sg-accent);
}

.sg-full-chapter > .sg-heading {
	margin-top: 0.5em;
}

.sg-full-chapter .sg-step {
	margin-top: 2.5em;
}

.sg-full-chapter .sg-step-title {
	font-size: 20px;
}

/* Lightbox ------------------------------------------------------------------ */

html.sg-lightbox-open {
	overflow: hidden;
}

.sg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3em 4em;
	background: color-mix(in srgb, var(--sg-secondary) 94%, transparent);
}

.sg-lightbox[hidden] {
	display: none;
}

.sg-lightbox-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.sg-lightbox button {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	color: var(--sg-heading);
	font: 400 2rem/1 Arial, sans-serif;
	cursor: pointer;
	transition: color 0.15s ease;
}

.sg-lightbox button:hover,
.sg-lightbox button:focus-visible {
	color: var(--sg-accent);
}

.sg-lightbox button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Ladesymbol, bis das große Bild geladen ist */
.sg-lightbox.is-loading .sg-lightbox-img {
	visibility: hidden;
}

.sg-lightbox.is-loading::after {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	border: 3px solid color-mix(in srgb, var(--sg-accent) 20%, transparent);
	border-top-color: var(--sg-accent);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.85);
	animation: sg-spin 0.7s linear infinite;
	content: "";
}

@keyframes sg-spin {
	to { transform: rotate(360deg); }
}

.sg-lightbox button[hidden] {
	display: none;
}

.sg-lightbox-close {
	top: 0.5em;
	right: 0.5em;
	width: 1.5em;
	height: 1.5em;
	border-radius: 50%;
}

.sg-lightbox-prev,
.sg-lightbox-next {
	top: 50%;
	width: 1.4em;
	height: 2.2em;
	transform: translateY(-50%);
	border-radius: var(--sg-radius);
}

.sg-lightbox-prev { left: 0.4em; }
.sg-lightbox-next { right: 0.4em; }

.sg-lightbox-count {
	position: absolute;
	bottom: 1em;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.8);
	font-family: var(--sg-font-heading);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
}

@media (max-width: 640px) {
	.sg-lightbox {
		padding: 3em 0.5em;
	}

	.sg-button {
		padding: 10px 16px;
		font-size: 12px;
		letter-spacing: 0.5px;
	}

	.sg-icon-button {
		padding: 0.7em;
	}

	.sg-step-title {
		font-size: 20px;
	}

	.sg-pager .sg-next {
		min-width: 12em;
		padding: 0.85em 1.1em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sg-card a,
	.sg-card a:hover,
	.sg-card a:focus-visible {
		transition: none;
		transform: none;
	}

	.sg-lightbox.is-loading::after {
		animation-duration: 2s;
	}
}

/* Druck ---------------------------------------------------------------------- */

@media print {
	.sg-fixed .sg-step-body,
	.sg-fixed .sg-gallery-main {
		height: auto !important;
	}

	.sg-fixed .sg-step-title {
		white-space: normal !important;
	}

	.sg-no-print,
	.sg-thumbs {
		display: none !important;
	}

	.sg-js .sg-step {
		display: block !important;
	}

	.sg-step,
	.sg-gallery {
		break-inside: avoid;
	}

	.sg-step + .sg-step {
		margin-top: 2em !important;
	}

	.sg-layout {
		display: block;
	}

	.sg-step-body.has-images {
		grid-template-columns: 1fr 1fr;
	}

	.sg-gallery-main {
		box-shadow: none;
	}
}

/* Übersichtsseite (Shortcodes mit titel="…") -------------------------------- */

.sg-section + .sg-section {
	margin-top: 1em;
}

.sg-section > .sg-heading {
	margin-top: 1.5em;
}
