/*
Theme Name: Schmuckgrube
Theme URI: https://schmuckgrube.de
Author: amitry.agency
Description: Block-Theme für Schmuckgrube Köln: Ankauf von Schmuck, Münzen, Edelmetallen und mehr. Ruhig und hell im Boxed-Layout, viel Weißraum, Überschriften in Newsreader, Text in Hanken Grotesk, Fotos in Schwarz-Weiß, ein roter Akzent. Die Kölner Skyline als feines Liniensymbol, das sich beim Erscheinen zeichnet. Mit Einrichtungs-Assistent, Terminanfragen mit Bestätigung oder Alternativtermin (auch ohne Anmeldung per Link aus der E-Mail), E-Mail-Versand über das eigene Postfach, Öffnungszeiten mit Live-Status, Karte in Zwei-Klick-Lösung und Routenplanung. Keine externen Dienste, Schriften lokal.
Version: 6.1.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: schmuckgrube
Tags: block-theme, full-site-editing, one-column, custom-colors, editor-style, block-patterns
*/

/* ==========================================================================
   1. Grundwerte
   ========================================================================== */

:root {
	--sg-flaeche: var(--wp--preset--color--papier);
	--sg-umgebung: var(--wp--preset--color--papier-tief);
	--sg-silber: var(--wp--preset--color--silber);
	--sg-linie: var(--wp--preset--color--linie);
	--sg-linie-stark: #cdd0d5;
	--sg-grau: var(--wp--preset--color--grau);
	--sg-tinte: var(--wp--preset--color--tinte);
	--sg-text-farbe: #3d4046;
	--sg-rot: var(--wp--preset--color--rot);
	--sg-rot-dunkel: var(--wp--preset--color--rot-dunkel);
	--sg-gruen: #2f7a50;
	--sg-titel: var(--wp--preset--font-family--titel);
	--sg-text: var(--wp--preset--font-family--text);
	--sg-rand: var(--wp--style--root--padding-left, clamp(1.5rem, 6vw, 5rem));
	--sg-weit: var(--wp--style--global--wide-size, 1120px);
	--sg-blatt-rand: clamp(0px, 2vw, 28px);
	--sg-abstand: clamp(4.75rem, 10vw, 8.5rem);
	--sg-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--sg-ease-weich: cubic-bezier(0.16, 1, 0.3, 1);
	--sg-leiste-h: 0px;
	--sg-kopf-hoehe: 92px;
	--sg-kopf-gesamt: 92px;
	--sg-maske-pfeil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E");
}

@media (max-width: 781px) {
	:root {
		--sg-kopf-hoehe: 68px;
		--sg-kopf-gesamt: 68px;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--sg-kopf-hoehe) + 1.5rem);
	text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	font-kerning: normal;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--sg-tinte);
	color: #fff;
}

:focus-visible {
	outline: 1px solid var(--sg-tinte);
	outline-offset: 4px;
}

img {
	height: auto;
	max-width: 100%;
}

.screen-reader-text,
.sg-sr {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: #fff;
	clip: auto !important;
	clip-path: none;
	color: var(--sg-tinte);
	display: block;
	font-size: 0.95rem;
	height: auto;
	left: 1rem;
	padding: 1rem 1.25rem;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

/* Symbole: feine Linien in currentColor */
.sg-sym {
	display: inline-block;
	flex: none;
	height: 1.25rem;
	stroke-width: 1.3;
	vertical-align: middle;
	width: 1.25rem;
}

.sg-symbol {
	color: var(--sg-tinte);
	line-height: 0;
}

/* ==========================================================================
   2. Boxed: weißes Blatt auf hellem Silbergrau
   ========================================================================== */

body.sg-front {
	background: var(--sg-umgebung);
	min-height: 100vh;
}

.sg-front .wp-site-blocks {
	background: #fff;
	margin: var(--sg-blatt-rand) auto;
	max-width: 1280px;
	min-height: calc(100vh - 2 * var(--sg-blatt-rand));
	overflow-x: clip;
	position: relative;
	width: calc(100% - 2 * var(--sg-blatt-rand));
}

@media (max-width: 781px) {
	.sg-front .wp-site-blocks {
		margin: 0;
		min-height: 100vh;
		width: 100%;
	}
}

.sg-front .wp-site-blocks > * + * {
	margin-block-start: 0;
}

.sg-haupt {
	position: relative;
}

/* ==========================================================================
   3. Typografie
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
	text-wrap: balance;
}

h1, h2, h3 {
	-webkit-hyphens: auto;
	hyphens: auto;
	hyphenate-limit-chars: 10 4 4;
	overflow-wrap: break-word;
}

p, li, dd {
	text-wrap: pretty;
}

h1 em, h2 em, h3 em {
	font-style: italic;
}

strong {
	color: var(--sg-tinte);
	font-weight: 600;
}

.sg-lead {
	color: var(--sg-tinte);
	font-size: var(--wp--preset--font-size--gross);
	line-height: 1.65;
}

.sg-klein,
.sg-fussnote {
	color: var(--sg-grau);
	font-size: 0.875rem;
	line-height: 1.65;
}

.sg-fussnote {
	margin-top: clamp(1.75rem, 3vw, 2.5rem) !important;
}

.sg-fussnote strong {
	font-weight: 500;
}

/* Oberzeile und kleine Titel: graue Versalien */
.sg-oberzeile,
.sg-label,
.sg-mini-titel {
	color: var(--sg-grau);
	font-family: var(--sg-text);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.24em;
	line-height: 1.4;
	margin: 0 0 1.35rem;
	text-transform: uppercase;
}

.sg-mini-titel {
	margin-bottom: 0.9rem;
}

.sg-label--ohne {
	color: var(--sg-grau);
}

.sg-zwischentitel {
	color: var(--sg-tinte);
	font-family: var(--sg-titel);
	font-size: 1.5rem;
	font-weight: 300;
	line-height: 1.25;
	margin: 0 0 1rem;
}

/* Links im Fließtext */
.wp-block-post-content :where(a:not(.wp-element-button):not(.sg-logo)),
.sg-recht :where(a),
.sg-text-link {
	color: var(--sg-tinte);
	text-decoration-color: var(--sg-linie-stark);
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
	transition: color 0.2s, text-decoration-color 0.2s;
}

.wp-block-post-content :where(a:not(.wp-element-button):not(.sg-logo)):hover,
.sg-recht :where(a):hover,
.sg-text-link:hover {
	color: var(--sg-tinte);
	text-decoration-color: currentColor;
}

/* Textlink mit feinem Pfeil */
.sg-pfeil {
	margin-top: clamp(1.75rem, 3vw, 2.5rem) !important;
}

.sg-pfeil a,
a.sg-pfeil {
	align-items: center;
	color: var(--sg-tinte) !important;
	display: inline-flex;
	font-family: var(--sg-text);
	font-size: 0.9375rem;
	gap: 0.65rem;
	text-decoration: none !important;
}

.sg-pfeil a::after,
a.sg-pfeil::after {
	background: currentColor;
	content: "";
	flex: none;
	height: 0.95rem;
	-webkit-mask: var(--sg-maske-pfeil) center / contain no-repeat;
	mask: var(--sg-maske-pfeil) center / contain no-repeat;
	transition: transform 0.4s var(--sg-ease);
	width: 0.95rem;
}

.sg-pfeil a:hover::after,
a.sg-pfeil:hover::after {
	transform: translateX(4px);
}

.sg-pfeil a:hover,
a.sg-pfeil:hover {
	color: var(--sg-rot) !important;
}

/* Platzhalter, die der Inhaber noch ausfüllen muss */
.sg-platzhalter {
	background: rgba(165, 22, 28, 0.06);
	outline: 1px dashed rgba(165, 22, 28, 0.55);
	outline-offset: 1px;
}

/* Abschnittskopf */
.sg-titelblock {
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.sg-titelblock.is-zentriert {
	margin-left: auto;
	margin-right: auto;
	max-width: 46rem;
	text-align: center;
}

.sg-titel {
	margin: 0;
}

.sg-titelblock__text {
	color: var(--sg-grau);
	font-size: 1.0625rem;
	line-height: 1.7;
	margin: 1.25rem 0 0;
	max-width: 38rem;
}

.is-zentriert .sg-titelblock__text {
	margin-left: auto;
	margin-right: auto;
}

/* Kopfzeile: links Überschrift, rechts ein Satz */
.wp-block-columns.sg-kopfzeile {
	align-items: flex-end !important;
	gap: 1.5rem clamp(3rem, 7vw, 7rem);
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.sg-kopfzeile__text {
	color: var(--sg-grau);
	margin: 0;
	max-width: 30rem;
}

/* Hinweisbox (ältere Inhalte) */
.sg-hinweis,
.sg-hinweisbox {
	border-left: 1px solid var(--sg-tinte);
	color: var(--sg-text-farbe);
	font-size: 0.9375rem;
	line-height: 1.65;
	margin: 0;
	padding: 0.2rem 0 0.2rem 1.25rem;
}

/* ==========================================================================
   4. Schaltflächen
   ========================================================================== */

.wp-block-buttons {
	align-items: center;
	gap: 1rem 2.25rem;
}

.sg-knoepfe-mitte {
	justify-content: center;
	margin-top: clamp(2.25rem, 4vw, 2.75rem) !important;
}

.wp-block-button__link,
.sg-knopf {
	align-items: center;
	background: var(--sg-tinte);
	border: 1px solid var(--sg-tinte);
	border-radius: 0;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-family: var(--sg-text);
	font-size: 0.9375rem;
	font-weight: 500;
	gap: 0.6rem;
	justify-content: center;
	letter-spacing: 0.02em;
	line-height: 1.2;
	padding: 1.05em 2em;
	position: relative;
	text-decoration: none;
	transition: background-color 0.35s var(--sg-ease), border-color 0.35s var(--sg-ease), color 0.35s var(--sg-ease);
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
.sg-knopf:hover,
.sg-knopf:focus-visible {
	background: var(--sg-rot);
	border-color: var(--sg-rot);
	color: #fff;
}

/* Kontur */
.wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-buttons .wp-block-button.sg-knopf-weiss > .wp-block-button__link,
.sg-knopf--linie {
	background: transparent;
	border: 1px solid var(--sg-tinte);
	color: var(--sg-tinte);
}

.wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link:focus-visible,
.wp-block-buttons .wp-block-button.sg-knopf-weiss > .wp-block-button__link:hover,
.wp-block-buttons .wp-block-button.sg-knopf-weiss > .wp-block-button__link:focus-visible,
.sg-knopf--linie:hover,
.sg-knopf--linie:focus-visible {
	background: var(--sg-tinte);
	border-color: var(--sg-tinte);
	color: #fff;
}

/* Hell (ältere Inhalte) */
.wp-block-buttons .wp-block-button.sg-knopf-hell > .wp-block-button__link {
	background: #fff;
	border-color: var(--sg-linie-stark);
	color: var(--sg-tinte);
}

/* Textlink mit feiner Linie */
.wp-block-buttons .wp-block-button.sg-knopf-link > .wp-block-button__link {
	background: none;
	border: 0;
	color: var(--sg-tinte);
	padding: 0.35em 0;
	text-decoration: underline;
	text-decoration-color: var(--sg-linie-stark);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.45em;
	transition: text-decoration-color 0.25s, color 0.25s;
}

.wp-block-buttons .wp-block-button.sg-knopf-link > .wp-block-button__link:hover,
.wp-block-buttons .wp-block-button.sg-knopf-link > .wp-block-button__link:focus-visible {
	background: none;
	color: var(--sg-tinte);
	text-decoration-color: currentColor;
}

/* Termin-Schaltfläche mit Telefonnummer daneben */
.sg-termin-knoepfe {
	align-items: center;
	gap: 1rem 2.25rem;
}

.sg-termin-knoepfe > * {
	margin: 0 !important;
}

.sg-knoepfe-mitte.sg-termin-knoepfe {
	justify-content: center;
}

.sg-telefonlink .sg-sym {
	display: none;
}

.sg-telefonlink a {
	color: var(--sg-tinte);
	font-size: 0.9375rem;
	text-decoration: underline;
	text-decoration-color: var(--sg-linie-stark);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.45em;
	transition: text-decoration-color 0.25s;
}

.sg-telefonlink a:hover {
	color: var(--sg-tinte);
	text-decoration-color: currentColor;
}

.sg-knopf:disabled,
.sg-knopf.ist-beschaeftigt {
	cursor: progress;
	opacity: 0.7;
}

/* ==========================================================================
   5. Kopfbereich
   ========================================================================== */

.sg-kopfbereich {
	background: #fff;
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	transition: box-shadow 0.4s var(--sg-ease);
	z-index: 100;
}

@media (max-width: 600px) {
	.sg-kopfbereich {
		top: 0;
	}
}

.sg-kopfbereich.ist-gescrollt {
	box-shadow: 0 1px 0 var(--sg-linie);
}

.sg-kopf__haupt {
	gap: 1.5rem;
	margin-block: 0;
	padding: 1.9rem var(--sg-rand);
	transition: padding 0.4s var(--sg-ease);
}

.ist-gescrollt .sg-kopf__haupt {
	padding-block: 1.15rem;
}

@media (max-width: 781px) {
	.sg-kopf__haupt,
	.ist-gescrollt .sg-kopf__haupt {
		padding-block: 1.1rem;
	}
}

.sg-kopf__nav {
	gap: clamp(1.25rem, 2.6vw, 2.5rem);
}

.sg-kopf__cta .wp-block-button__link {
	font-size: 0.9375rem;
	font-weight: 400;
}

@media (max-width: 959px) {
	.sg-kopf__cta {
		display: none !important;
	}
}

/* Logo */
.sg-logo {
	align-items: center;
	color: var(--sg-tinte);
	display: inline-flex;
	line-height: 0;
	text-decoration: none;
}

.sg-logo svg {
	display: block;
	height: var(--sg-logo-hoehe, 15px);
	overflow: visible;
	width: auto;
}

@media (max-width: 600px) {
	.sg-kopf .sg-logo svg {
		height: calc(var(--sg-logo-hoehe, 15px) * 0.85);
	}
}

.sg-logo--hell {
	color: #fff;
}

.sg-logo .sg-logo__stein {
	transform-box: fill-box;
	transform-origin: center;
	transition: transform 0.7s var(--sg-ease-weich);
}

a.sg-logo:hover .sg-logo__stein {
	transform: rotate(90deg);
}

/* Navigation: Überlagerung bis 960 px, darüber in der Zeile */
.sg-menue .wp-block-navigation-item__content {
	color: var(--sg-tinte);
	padding: 0.4rem 0;
	position: relative;
	text-decoration: none;
	transition: color 0.25s;
}

.sg-menue .wp-block-navigation__responsive-container-open,
.sg-menue .wp-block-navigation__responsive-container-close {
	color: var(--sg-tinte);
}

.sg-menue .wp-block-navigation__responsive-container-open svg,
.sg-menue .wp-block-navigation__responsive-container-close svg {
	height: 28px;
	width: 28px;
}

@media (min-width: 960px) {
	.sg-menue .wp-block-navigation__responsive-container-open.always-shown {
		display: none;
	}
	.sg-menue .wp-block-navigation__responsive-container.hidden-by-default:not(.is-menu-open) {
		background: transparent !important;
		display: block;
		inset: auto;
		padding: 0;
		position: relative;
		width: auto;
		z-index: auto;
	}
	.sg-menue .wp-block-navigation__responsive-container.hidden-by-default:not(.is-menu-open) .wp-block-navigation__responsive-container-close {
		display: none;
	}
	.sg-menue .wp-block-navigation__responsive-container.hidden-by-default:not(.is-menu-open) .wp-block-navigation__responsive-dialog,
	.sg-menue .wp-block-navigation__responsive-container.hidden-by-default:not(.is-menu-open) .wp-block-navigation__responsive-container-content {
		display: flex;
		margin: 0;
		padding: 0;
	}
	.sg-menue .wp-block-navigation__responsive-container.hidden-by-default:not(.is-menu-open) .wp-block-navigation__container {
		flex-direction: row;
		gap: clamp(1.25rem, 2.6vw, 2.5rem);
	}
	.sg-menue .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content::after {
		background: currentColor;
		bottom: 0;
		content: "";
		height: 1px;
		left: 0;
		position: absolute;
		transform: scaleX(0);
		transform-origin: right;
		transition: transform 0.45s var(--sg-ease);
		width: 100%;
	}
	.sg-menue .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content:hover::after,
	.sg-menue .wp-block-navigation__responsive-container:not(.is-menu-open) [aria-current="page"]::after {
		transform: scaleX(1);
		transform-origin: left;
	}
	.sg-menue .wp-block-navigation__responsive-container:not(.is-menu-open) .sg-nav-termin {
		display: none;
	}
}

/* geöffnete Überlagerung: weiß, große Einträge mit feinen Linien */
.sg-menue .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	background: #fff !important;
	color: var(--sg-tinte) !important;
	padding: clamp(1.25rem, 5vw, 3rem);
}

.sg-menue .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.sg-menue .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.sg-menue .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	align-items: flex-start !important;
	justify-content: flex-start !important;
	text-align: left;
}

.sg-menue .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 4rem;
}

.sg-menue .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	border-top: 1px solid var(--sg-linie);
	gap: 0;
	width: 100%;
}

.sg-menue .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	border-bottom: 1px solid var(--sg-linie);
	width: 100%;
}

.sg-menue .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: var(--sg-tinte);
	font-family: var(--sg-titel);
	font-size: clamp(1.9rem, 8vw, 2.5rem);
	font-weight: 300;
	letter-spacing: -0.01em;
	line-height: 1.1;
	padding: 1rem 0 0.95rem;
	width: 100%;
}

.sg-menue .wp-block-navigation__responsive-container.is-menu-open [aria-current="page"] {
	color: var(--sg-grau);
}

@media (prefers-reduced-motion: no-preference) {
	.sg-menue .wp-block-navigation__responsive-container.is-menu-open {
		animation: sg-ein 0.3s ease-out both;
	}
	.sg-menue .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		animation: sg-hoch 0.6s var(--sg-ease-weich) both;
	}
	.sg-menue .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: 0.05s; }
	.sg-menue .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: 0.1s; }
	.sg-menue .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: 0.15s; }
	.sg-menue .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(5) { animation-delay: 0.2s; }
}

@keyframes sg-ein {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes sg-hoch {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

/* ==========================================================================
   6. Abschnitte, Spalten und Fotos
   ========================================================================== */

.sg-haupt [id],
.sg-abschnitt {
	scroll-margin-top: calc(var(--sg-kopf-hoehe) + 1rem);
}

.sg-haupt :is(.sg-abschnitt, .sg-held, .sg-seitenkopf),
.sg-haupt :is(.sg-abschnitt, .sg-held, .sg-seitenkopf) + * {
	margin-block-start: 0;
}

.sg-abschnitt {
	padding-bottom: var(--sg-abstand);
	padding-top: var(--sg-abstand);
	position: relative;
}

.sg-abschnitt--eng {
	padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
	padding-top: clamp(3rem, 6vw, 4.5rem);
}

.sg-abschnitt--hell {
	background: var(--sg-flaeche);
}

/* Feine Linie zwischen zwei weißen Abschnitten */
:is(.sg-held, .sg-abschnitt:not(.sg-abschnitt--hell)) + .sg-abschnitt:not(.sg-abschnitt--hell)::before {
	background: var(--sg-linie);
	content: "";
	height: 1px;
	left: var(--sg-rand);
	margin: 0 auto;
	max-width: var(--sg-weit);
	position: absolute;
	right: var(--sg-rand);
	top: 0;
}

.sg-abschnitt > .wp-block-columns {
	margin-bottom: 0;
}

/* Alles in einem Abschnitt richtet sich an der weiten Inhaltsbreite aus */
.sg-abschnitt > * {
	max-width: var(--sg-weit) !important;
}

/* Zwei Spalten: Text und Foto */
.wp-block-columns.sg-zwei {
	align-items: center !important;
	gap: clamp(3rem, 7vw, 7rem);
}

.wp-block-columns.sg-zwei--oben {
	align-items: flex-start !important;
}

.sg-zwei__text > .sg-lead {
	margin-top: 1.75rem;
}

.sg-zwei__text > p + p {
	margin-top: 1.1rem;
}

/* Unterschrift */
.sg-unterschrift {
	align-items: baseline;
	border-top: 1px solid var(--sg-linie);
	gap: 0.75rem 1.5rem;
	margin-top: 2.4rem !important;
	padding-top: 1.4rem;
}

.sg-unterschrift > * {
	margin: 0 !important;
}

.sg-unterschrift__name {
	color: var(--sg-tinte);
	font-family: var(--sg-titel);
	font-size: 1.625rem;
	font-weight: 300;
	line-height: 1.2;
}

.sg-unterschrift__rolle {
	color: var(--sg-grau);
	font-size: 0.875rem;
}

/* Fotos: Schwarz-Weiß, Farbe beim Darüberfahren */
.sg-foto {
	margin: 0;
	position: relative;
}

.sg-foto img {
	display: block;
	filter: grayscale(1) contrast(1.03);
	object-fit: cover;
	object-position: 50% calc(var(--sg-py, 0.5) * 100%);
	transition: filter 1.2s var(--sg-ease);
	width: 100%;
}

@media (hover: hover) {
	.sg-foto:hover img {
		filter: grayscale(0) contrast(1);
	}
}

.sg-foto--hoch img,
.sg-foto--portrait img {
	aspect-ratio: 4 / 5;
}

.sg-foto--schaufenster img {
	aspect-ratio: 16 / 10;
	object-position: 50% 100%;
}

.sg-foto figcaption {
	color: var(--sg-grau);
	font-size: 0.8125rem;
	line-height: 1.5;
	margin: 0.9rem 0 0;
	text-align: left;
}

/* Fotoreihe */
.wp-block-columns.sg-fotoreihe {
	gap: clamp(1rem, 2vw, 1.75rem);
}

.sg-fotoreihe .sg-foto img {
	aspect-ratio: 4 / 5;
}

/* ==========================================================================
   7. Startbild: Skyline-Symbol, Überschrift, Termin
   ========================================================================== */

.sg-held {
	padding: clamp(3.25rem, 7vw, 6rem) var(--sg-rand) clamp(4.5rem, 9.5vw, 8rem);
	text-align: center;
}

.sg-held > * {
	margin-left: auto !important;
	margin-right: auto !important;
}

.sg-held > .sg-zeichen {
	margin-bottom: clamp(2.25rem, 4.5vw, 3.25rem) !important;
}

.sg-held > .sg-held__titel {
	font-size: clamp(2.5rem, 5.4vw, 4.4rem);
	letter-spacing: -0.015em;
	line-height: 1.06;
	margin-bottom: 0;
	margin-top: 0;
	max-width: 14em;
}

.sg-held > .sg-held__text {
	color: var(--sg-grau);
	font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
	line-height: 1.7;
	margin-top: 1.5rem !important;
	max-width: 31em;
}

.sg-held > .sg-held__knoepfe {
	justify-content: center;
	margin-top: clamp(2.25rem, 4vw, 2.75rem) !important;
}

/* ==========================================================================
   8. Kölner Skyline als Liniensymbol
   ========================================================================== */

.sg-zeichen {
	--sg-strich: 1.1;
	color: var(--sg-tinte);
	line-height: 0;
}

.sg-zeichen.sg-zeichen--gross {
	max-width: min(380px, 78vw) !important;
}

.sg-zeichen.sg-zeichen--mittel {
	--sg-strich: 1.5;
	max-width: min(260px, 66vw) !important;
}

.sg-zeichen.sg-zeichen--klein {
	--sg-strich: 2;
	max-width: 168px !important;
}

.sg-zeichen--mitte {
	margin-left: auto !important;
	margin-right: auto !important;
}

.sg-zeichen--links {
	margin-left: 0 !important;
	margin-right: auto !important;
}

.sg-zeichen__svg {
	display: block;
	height: auto;
	overflow: visible;
	width: 100%;
}

.sg-zeichen__linie {
	stroke-width: var(--sg-strich);
}

.sg-zeichen__welle {
	opacity: 0.65;
	stroke-width: calc(var(--sg-strich) * 0.85);
}

.sg-zeichen__licht {
	fill: var(--sg-rot);
}

.sg-abschnitt--zeichen {
	padding-bottom: clamp(3rem, 6vw, 4.5rem);
	padding-top: clamp(3rem, 6vw, 4.5rem);
}

@media (prefers-reduced-motion: no-preference) {
	.sg-js .sg-zeichen--animiert .sg-zeichen__linie {
		stroke-dasharray: 1;
		stroke-dashoffset: 1;
	}
	.sg-js .sg-zeichen--animiert .sg-zeichen__welle,
	.sg-js .sg-zeichen--animiert .sg-zeichen__licht {
		opacity: 0;
	}
	.sg-js .sg-zeichen--animiert.ist-sichtbar .sg-zeichen__linie {
		animation: sg-zeichnen 2.2s var(--sg-ease) forwards;
		animation-delay: calc(var(--i, 0) * 0.11s + 0.15s);
	}
	.sg-js .sg-zeichen--animiert.ist-sichtbar .sg-zeichen__welle {
		animation: sg-welle-ein 1.2s ease 2.4s forwards, sg-welle 7s ease-in-out 3.6s infinite alternate;
	}
	.sg-js .sg-zeichen--animiert.ist-sichtbar .sg-zeichen__licht {
		animation: sg-licht 3.2s ease-in-out 3s infinite;
	}
}

@keyframes sg-zeichnen {
	to { stroke-dashoffset: 0; }
}

@keyframes sg-welle-ein {
	to { opacity: 0.65; }
}

@keyframes sg-welle {
	from { transform: translateX(0); }
	to { transform: translateX(5px); }
}

@keyframes sg-licht {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.15; }
}

/* ==========================================================================
   9. Ankauf
   ========================================================================== */

.sg-ankauf__katalog {
	column-gap: clamp(3rem, 7vw, 7rem);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.sg-ankauf__katalog .sg-ankauf__eintrag {
	border-top: 1px solid var(--sg-linie);
	padding: 1.5rem 0 1.65rem;
}

.sg-ankauf__katalog .sg-ankauf__titel {
	font-size: 1.5rem;
	font-weight: 350;
	line-height: 1.2;
	margin: 0;
}

.sg-ankauf__katalog .sg-ankauf__text {
	color: var(--sg-grau);
	font-size: 0.96875rem;
	line-height: 1.65;
	margin: 0.45rem 0 0;
}

@media (max-width: 781px) {
	.sg-ankauf__katalog {
		grid-template-columns: 1fr;
	}
}

/* Ältere Darstellungen: ruhig angeglichen */
.sg-ankauf__zeilen,
.sg-ankauf__liste {
	border-top: 1px solid var(--sg-linie);
	list-style: none;
	margin: 0;
	padding: 0;
}

.sg-ankauf__zeile,
.sg-ankauf__liste .sg-ankauf__eintrag {
	border-bottom: 1px solid var(--sg-linie);
	column-gap: 1.25rem;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	padding: 1.25rem 0;
}

.sg-ankauf--ohne-nummern .sg-ankauf__liste .sg-ankauf__eintrag {
	grid-template-columns: minmax(0, 1fr) auto;
}

.sg-ankauf__symbol {
	color: var(--sg-tinte);
}

.sg-ankauf__symbol .sg-sym {
	height: 1.5rem;
	width: 1.5rem;
}

.sg-ankauf__nr {
	color: var(--sg-grau);
	font-family: var(--sg-titel);
}

.sg-ankauf__zeile .sg-ankauf__titel,
.sg-ankauf__liste .sg-ankauf__titel,
.sg-ankauf__karte .sg-ankauf__titel {
	font-size: 1.375rem;
	font-weight: 350;
	line-height: 1.25;
	margin: 0;
}

.sg-ankauf__zeile .sg-ankauf__text,
.sg-ankauf__liste .sg-ankauf__text,
.sg-ankauf__karte .sg-ankauf__text {
	color: var(--sg-grau);
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: 0.35rem 0 0;
}

.sg-ankauf__liste .sg-ankauf__text {
	grid-column: 1 / -1;
}

.sg-ankauf__merkmal {
	color: var(--sg-grau);
	font-size: 0.6875rem;
	letter-spacing: 0.18em;
	padding-top: 0.45rem;
	text-transform: uppercase;
	white-space: nowrap;
}

.sg-ankauf__karten {
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.sg-ankauf__karte {
	border-top: 1px solid var(--sg-linie);
	padding: 1.4rem 1.25rem 1.6rem 0;
}

.sg-ankauf__karte .sg-ankauf__symbol {
	display: block;
	margin-bottom: 0.9rem;
}

.sg-ankauf--kompakt .sg-ankauf__liste {
	border: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.5rem;
}

.sg-ankauf--kompakt .sg-ankauf__eintrag {
	border: 0;
	display: block;
	padding: 0;
}

.sg-ankauf--kompakt .sg-ankauf__titel {
	font-size: 1.25rem;
}

@container (max-width: 33rem) {
	.sg-ankauf__zeile {
		grid-template-columns: auto minmax(0, 1fr);
	}
	.sg-ankauf__zeile .sg-ankauf__merkmal {
		grid-column: 2;
	}
}

.sg-ankauf__zeilen {
	container-type: inline-size;
}

/* ==========================================================================
   10. Ablauf und ruhige Textspalten
   ========================================================================== */

.wp-block-columns.sg-ablauf,
.wp-block-columns.sg-boxen {
	gap: 2.5rem clamp(2rem, 5vw, 4.5rem);
	margin-bottom: 0;
}

.sg-ablauf__schritt,
.sg-box {
	border-top: 1px solid var(--sg-tinte);
	padding-top: 1.5rem;
}

.sg-box {
	border-top-color: var(--sg-linie-stark);
}

.sg-ablauf__nr,
.sg-box__nr {
	color: var(--sg-grau);
	font-family: var(--sg-titel);
	font-size: 1.0625rem;
	font-variant-numeric: lining-nums;
	line-height: 1;
	margin: 0;
}

.sg-ablauf__titel,
.sg-box__titel {
	font-size: 1.625rem;
	font-weight: 350;
	line-height: 1.2;
	margin: 0.85rem 0 0.75rem;
}

.sg-box__titel:first-child {
	margin-top: 0;
}

.sg-ablauf__text,
.sg-box__text {
	color: var(--sg-grau);
	font-size: 0.96875rem;
	line-height: 1.65;
	margin: 0;
}

/* Abschluss: ruhiger Aufruf zum Termin */
.sg-abschnitt--aufruf .sg-titelblock {
	margin-bottom: 0;
}

/* ==========================================================================
   11. Seitenkopf und Brotkrumen
   ========================================================================== */

.sg-seitenkopf {
	padding: clamp(2.75rem, 6.5vw, 5rem) var(--sg-rand) clamp(2.75rem, 6vw, 4.5rem);
	position: relative;
}

.sg-seitenkopf > * {
	max-width: var(--sg-weit) !important;
}

.sg-seitenkopf::after {
	background: var(--sg-linie);
	bottom: 0;
	content: "";
	height: 1px;
	left: var(--sg-rand);
	margin: 0 auto;
	max-width: var(--sg-weit);
	position: absolute;
	right: var(--sg-rand);
}

.sg-seitenkopf__titel {
	font-size: clamp(2.5rem, 5vw, 4rem);
	letter-spacing: -0.015em;
	line-height: 1.06;
	margin: 1.4rem 0 0;
}

.sg-seitenkopf__text {
	color: var(--sg-grau);
	font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
	line-height: 1.7;
	margin-top: 1.25rem !important;
}

.sg-seitenkopf > .sg-seitenkopf__text {
	margin-left: max(0px, (100% - var(--sg-weit)) / 2) !important;
	max-width: min(38rem, var(--sg-weit)) !important;
}

.sg-seitenkopf + .sg-abschnitt,
.sg-seitenkopf + .sg-abschnitt--erstes {
	padding-top: clamp(3.5rem, 7vw, 5.5rem);
}

.sg-brotkrumen {
	color: var(--sg-grau);
	font-size: 0.6875rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.sg-brotkrumen ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sg-brotkrumen li + li::before {
	content: "/";
	margin-right: 0.4rem;
	opacity: 0.6;
}

.sg-brotkrumen a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.sg-brotkrumen a:hover {
	color: var(--sg-tinte);
}

/* ==========================================================================
   12. Öffnungszeiten, Status, Kontakt, Besuch, Anfahrt
   ========================================================================== */

.wp-block-columns.sg-besuch__daten {
	flex-wrap: wrap !important;
	gap: 2rem clamp(2rem, 4vw, 3rem);
	margin-bottom: 0;
	margin-top: 2.25rem;
}

/* Zeiten und Kontakt nebeneinander, wenn Platz ist, sonst untereinander */
.wp-block-columns.sg-besuch__daten > .wp-block-column {
	flex: 1 1 13rem !important;
}

.sg-infokarten {
	gap: 2.5rem clamp(2rem, 5vw, 4.5rem);
}

.sg-infokarte {
	border-top: 1px solid var(--sg-tinte);
	padding-top: 1.5rem;
}

.sg-infokarte > * + * {
	margin-top: 1.1rem !important;
}

/* Live-Status */
.sg-status {
	align-items: flex-start;
	color: var(--sg-grau);
	display: inline-flex;
	font-size: 0.875rem;
	gap: 0.55rem;
	line-height: 1.55;
	margin: 0;
}

.sg-status strong {
	color: var(--sg-tinte);
	font-weight: 500;
}

.sg-status__text {
	display: inline;
	min-width: 0;
}

.sg-status__zusatz::before {
	content: " · ";
}

.sg-status__punkt {
	background: var(--sg-silber);
	border-radius: 50%;
	flex: none;
	height: 7px;
	margin-top: calc((1lh - 7px) / 2);
	width: 7px;
}

.sg-status.ist-offen .sg-status__punkt {
	background: var(--sg-gruen);
}

.sg-status.ist-geschlossen .sg-status__punkt {
	background: var(--sg-rot);
}

.sg-zeiten--tabelle .sg-status {
	display: flex;
	margin-bottom: 0.85rem;
}

.sg-zeiten__heute {
	margin: 0.3rem 0 0;
}

.sg-zeiten__tabelle {
	border-collapse: collapse;
	font-size: 0.9375rem;
	width: 100%;
}

.sg-zeiten__tabelle th,
.sg-zeiten__tabelle td {
	border-bottom: 1px solid var(--sg-linie);
	padding: 0.5rem 0;
	vertical-align: top;
}

.sg-zeiten__tabelle th {
	color: var(--sg-text-farbe);
	font-weight: 400;
	-webkit-hyphens: none;
	hyphens: none;
	padding-right: 1rem;
	text-align: left;
	white-space: nowrap;
}

.sg-zeiten__tabelle td {
	color: var(--sg-tinte);
	text-align: right;
	white-space: nowrap;
}

.sg-zeiten__tabelle td.ist-zu {
	color: var(--sg-grau);
}

.sg-zeiten__tabelle tr.ist-heute th,
.sg-zeiten__tabelle tr.ist-heute td {
	color: var(--sg-tinte);
	font-weight: 600;
}

.sg-zeiten__hinweis {
	color: var(--sg-grau);
	font-size: 0.8125rem;
	line-height: 1.55;
	margin: 0.9rem 0 0;
}

.sg-zeiten__kompakt {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sg-zeiten__kompakt li {
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	padding: 0.2rem 0;
}

.sg-zeiten__iv {
	display: flex;
	flex-direction: column;
	text-align: right;
}

.sg-zeiten--tuer .sg-zeiten__kompakt,
.sg-zeiten--karte .sg-zeiten__kompakt {
	border-top: 1px solid var(--sg-linie);
	font-size: 0.9375rem;
}

.sg-zeiten--tuer .sg-zeiten__kompakt li,
.sg-zeiten--karte .sg-zeiten__kompakt li {
	border-bottom: 1px solid var(--sg-linie);
	padding: 0.55rem 0;
}

.sg-zeiten__kompakt li > span:first-child {
	color: var(--sg-text-farbe);
	white-space: nowrap;
}

.sg-zeiten__iv {
	color: var(--sg-tinte);
	white-space: nowrap;
}

.sg-zeiten--tuer .sg-status,
.sg-zeiten--karte .sg-status {
	margin-bottom: 0.8rem;
}

/* Kontakt */
.sg-kontakt {
	font-style: normal;
}

.sg-kontakt a {
	color: var(--sg-tinte);
	text-decoration: none;
	transition: color 0.2s;
}

.sg-kontakt a:hover {
	color: var(--sg-rot);
}

.sg-kontakt--adresse {
	color: var(--sg-tinte);
	font-family: var(--sg-titel);
	font-size: clamp(1.5rem, 2.4vw, 1.875rem);
	font-weight: 300;
	line-height: 1.3;
	margin: 1.75rem 0 0;
}

.sg-infokarte .sg-kontakt--adresse {
	font-size: 1.5rem;
	margin-top: 0;
}

.sg-kontakt--zeile {
	margin: 0;
}

.sg-kontakt--zeile > span {
	align-items: center;
	display: inline-flex;
	gap: 0.45rem;
}

.sg-kontakt--zeile > span + span {
	margin-left: 1.5rem;
}

.sg-kontakt__liste {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sg-kontakt__liste li {
	display: block;
	padding: 0.35rem 0;
}

.sg-kontakt__liste li > .sg-sym {
	display: none;
}

.sg-kontakt__titel {
	color: var(--sg-grau);
	display: block;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	line-height: 1.6;
	text-transform: uppercase;
}

.sg-kontakt__wert {
	color: var(--sg-tinte);
	display: block;
	line-height: 1.55;
	overflow-wrap: break-word;
}

.sg-kontakt__liste li.sg-kontakt__route {
	padding-top: 0.9rem;
}

.sg-kontakt__route .sg-pfeil {
	margin: 0 !important;
}

/* ==========================================================================
   13. Karte (Zwei-Klick) und Routenplanung
   ========================================================================== */

.sg-abschnitt--karte {
	padding-top: 0;
}

.sg-karte-block__flaeche {
	align-items: center;
	background: var(--sg-flaeche);
	display: flex;
	height: var(--sg-karte-hoehe, 440px);
	justify-content: center;
	overflow: hidden;
	padding: clamp(1rem, 3vw, 2rem);
	position: relative;
}

.sg-karte-block.ist-geladen .sg-karte-block__flaeche {
	padding: 0;
}

.sg-karte-block iframe {
	border: 0;
	filter: grayscale(1) contrast(1.02);
	height: 100%;
	width: 100%;
}

.sg-karte-block__zustimmung {
	background: #fff;
	border: 1px solid var(--sg-linie);
	max-width: 30rem;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	text-align: center;
}

.sg-karte-block__adresse {
	color: var(--sg-tinte);
	font-family: var(--sg-titel);
	font-size: 1.5rem;
	font-weight: 300;
	line-height: 1.25;
	margin: 0;
}

.sg-karte-block__text {
	color: var(--sg-grau);
	font-size: 0.9375rem;
	line-height: 1.65;
	margin: 0.8rem 0 1.3rem;
}

.sg-karte-block__merken {
	align-items: center;
	color: var(--sg-grau);
	display: flex;
	font-size: 0.8125rem;
	gap: 0.5rem;
	justify-content: center;
	margin-top: 1rem;
}

.sg-karte-block__merken input {
	accent-color: var(--sg-tinte);
}

.sg-route {
	align-items: flex-end;
	border: 1px solid var(--sg-linie);
	border-top: 0;
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
	padding: 1.25rem 1.35rem 1.35rem;
}

@media (max-width: 781px) {
	.sg-route {
		grid-template-columns: 1fr;
	}
}

.sg-route__feld label {
	color: var(--sg-grau);
	display: block;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	margin-bottom: 0.45rem;
	text-transform: uppercase;
}

.sg-route__hinweis {
	color: var(--sg-grau);
	font-size: 0.8125rem;
	margin: 0.7rem 0 0;
}

/* ==========================================================================
   14. Formulare (Terminanfrage, Route, Suche)
   ========================================================================== */

.sg-formular input[type="text"],
.sg-formular input[type="email"],
.sg-formular input[type="tel"],
.sg-formular input[type="date"],
.sg-formular select,
.sg-formular textarea,
.sg-route input,
.sg-route select,
.wp-block-search__input {
	-webkit-appearance: none;
	appearance: none;
	background: #fff;
	border: 1px solid var(--sg-linie-stark);
	border-radius: 0;
	color: var(--sg-tinte);
	font-family: var(--sg-text);
	font-size: 1rem;
	line-height: 1.4;
	min-height: 52px;
	padding: 0.8rem 1rem;
	transition: border-color 0.2s, box-shadow 0.2s;
	width: 100%;
}

.sg-formular textarea {
	min-height: 150px;
	resize: vertical;
}

.sg-formular select,
.sg-route select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2316171a' stroke-width='1.3'/%3E%3C/svg%3E");
	background-position: right 1rem center;
	background-repeat: no-repeat;
	padding-right: 2.6rem;
}

.sg-formular ::placeholder,
.sg-route ::placeholder,
.wp-block-search__input::placeholder {
	color: #8b8f96;
	opacity: 1;
}

.sg-formular input:hover,
.sg-formular select:hover,
.sg-formular textarea:hover,
.sg-route input:hover,
.sg-route select:hover {
	border-color: #9a9ea5;
}

.sg-formular input:focus,
.sg-formular select:focus,
.sg-formular textarea:focus,
.sg-route input:focus,
.sg-route select:focus,
.wp-block-search__input:focus {
	border-color: var(--sg-tinte);
	box-shadow: 0 0 0 1px var(--sg-tinte);
	outline: none;
}

.sg-formular select:disabled {
	background-color: var(--sg-flaeche);
	cursor: not-allowed;
}

.sg-termin {
	background: #fff;
}

.sg-formular fieldset {
	border: 0;
	margin: 0 0 2.5rem;
	min-width: 0;
	padding: 0;
}

.sg-formular legend {
	align-items: center;
	color: var(--sg-tinte);
	display: flex;
	font-family: var(--sg-titel);
	font-size: clamp(1.4rem, 2.2vw, 1.625rem);
	font-weight: 300;
	gap: 0.85rem;
	line-height: 1.2;
	margin-bottom: 1.1rem;
	padding: 0;
}

.sg-schritt {
	align-items: center;
	border: 1px solid var(--sg-linie-stark);
	border-radius: 50%;
	color: var(--sg-grau);
	display: inline-flex;
	flex: none;
	font-family: var(--sg-text);
	font-size: 0.8125rem;
	font-weight: 500;
	height: 30px;
	justify-content: center;
	width: 30px;
}

.sg-feld {
	margin-top: 1rem;
}

.sg-feld label {
	color: var(--sg-tinte);
	display: block;
	font-size: 0.9375rem;
	font-weight: 500;
	margin-bottom: 0.4rem;
}

.sg-feld label .sg-hilfe {
	display: inline;
	font-weight: 400;
}

.sg-pflicht {
	color: var(--sg-rot);
}

.sg-hilfe {
	color: var(--sg-grau);
	font-size: 0.875rem;
	line-height: 1.55;
	margin: 0.4rem 0 0;
}

.sg-fehlertext {
	color: var(--sg-rot);
	font-size: 0.875rem;
	font-weight: 500;
	margin: 0.4rem 0 0;
}

.sg-fehlertext:empty {
	display: none;
}

.sg-feld.hat-fehler input,
.sg-feld.hat-fehler select,
.sg-feld.hat-fehler textarea {
	border-color: var(--sg-rot);
	box-shadow: 0 0 0 1px var(--sg-rot);
}

.sg-felder-2 {
	display: grid;
	gap: 0 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 600px) {
	.sg-felder-2 {
		grid-template-columns: 1fr;
	}
}

.sg-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.sg-chip {
	cursor: pointer;
	position: relative;
}

.sg-chip input {
	cursor: pointer;
	inset: 0;
	margin: 0;
	opacity: 0;
	position: absolute;
}

.sg-chip span {
	background: #fff;
	border: 1px solid var(--sg-linie-stark);
	color: var(--sg-tinte);
	display: inline-block;
	font-size: 0.9375rem;
	padding: 0.5rem 0.95rem;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.sg-chip:hover span {
	border-color: var(--sg-tinte);
}

.sg-chip input:checked + span {
	background: var(--sg-tinte);
	border-color: var(--sg-tinte);
	color: #fff;
}

.sg-chip input:focus-visible + span {
	outline: 1px solid var(--sg-tinte);
	outline-offset: 3px;
}

.sg-formular__abschluss {
	border-top: 1px solid var(--sg-linie);
	padding-top: 1.5rem;
}

.sg-einwilligung {
	align-items: flex-start;
	display: flex;
	gap: 0.75rem;
}

.sg-einwilligung input {
	accent-color: var(--sg-tinte);
	flex: none;
	height: 18px;
	margin-top: 0.2rem;
	width: 18px;
}

.sg-einwilligung label {
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.6;
	margin: 0;
}

.sg-formular__abschluss .sg-knopf {
	margin-top: 1.4rem;
}

.sg-honig {
	height: 1px;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.sg-meldung {
	background: #fff;
	border: 1px solid var(--sg-linie);
	border-left: 2px solid var(--sg-tinte);
	margin: 0 0 1.5rem;
	padding: clamp(1.1rem, 3vw, 1.6rem);
}

.sg-meldung:focus {
	outline: none;
}

.sg-meldung h3 {
	font-family: var(--sg-titel);
	font-size: clamp(1.35rem, 2.2vw, 1.6rem);
	font-weight: 300;
	line-height: 1.25;
	margin: 0 0 0.5rem;
}

.sg-meldung p {
	margin: 0.45rem 0 0;
}

.sg-meldung--erfolg {
	border-left-color: var(--sg-gruen);
}

.sg-meldung--fehler {
	border-left-color: var(--sg-rot);
}

.sg-entscheidung {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

/* Termin-Seite: Formular links, Hinweise rechts */
.wp-block-columns.sg-termin-raster {
	align-items: flex-start !important;
	gap: 3rem clamp(2.5rem, 6vw, 6rem);
}

@media (min-width: 782px) {
	.sg-termin__spalte {
		position: sticky;
		top: calc(var(--sg-kopf-hoehe) + 1.5rem);
	}
}

.sg-termin__spalte > * + * {
	margin-top: 1.25rem !important;
}

.sg-termin__spalte > .sg-mini-titel:not(:first-child) {
	margin-top: 2.5rem !important;
}

.sg-termin__spalte .sg-fussnote {
	border-left: 1px solid var(--sg-tinte);
	margin-top: 1.75rem !important;
	padding-left: 1.1rem;
}

.sg-termin-schritte {
	border-top: 1px solid var(--sg-tinte);
	counter-reset: sg-tschritt;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sg-termin-schritte li {
	border-bottom: 1px solid var(--sg-linie);
	counter-increment: sg-tschritt;
	font-size: 0.9375rem;
	line-height: 1.6;
	padding: 0.85rem 0 0.85rem 2.4rem;
	position: relative;
}

.sg-termin-schritte li::before {
	color: var(--sg-grau);
	content: counter(sg-tschritt, decimal-leading-zero);
	font-family: var(--sg-titel);
	font-size: 1rem;
	left: 0;
	position: absolute;
	top: 0.8rem;
}

.wp-block-search__inside-wrapper {
	gap: 0.6rem;
}

.wp-block-search__button {
	margin: 0;
}

/* ==========================================================================
   15. Häufige Fragen
   ========================================================================== */

.sg-fragen .wp-block-details {
	border-top: 1px solid var(--sg-linie);
	margin: 0;
	padding: 0;
}

.sg-fragen .wp-block-details:last-child {
	border-bottom: 1px solid var(--sg-linie);
}

.sg-fragen summary {
	color: var(--sg-tinte);
	cursor: pointer;
	font-family: var(--sg-titel);
	font-size: 1.25rem;
	font-weight: 300;
	line-height: 1.4;
	list-style: none;
	padding: 1.15rem 3rem 1.15rem 0;
	position: relative;
}

.sg-fragen summary::-webkit-details-marker {
	display: none;
}

.sg-fragen summary::before,
.sg-fragen summary::after {
	background: var(--sg-tinte);
	content: "";
	height: 1px;
	position: absolute;
	right: 0.25rem;
	top: 50%;
	transition: transform 0.35s var(--sg-ease);
	width: 13px;
}

.sg-fragen summary::after {
	transform: rotate(90deg);
}

.sg-fragen details[open] summary::after {
	transform: rotate(0deg);
}

.sg-fragen .wp-block-details > p {
	color: var(--sg-text-farbe);
	font-size: 0.96875rem;
	margin: 0;
	padding: 0 3rem 1.4rem 0;
}

/* ==========================================================================
   16. Fußbereich
   ========================================================================== */

.sg-fussbereich {
	margin-top: 0;
	padding: 0 var(--sg-rand);
}

.sg-fuss {
	border-top: 1px solid var(--sg-linie);
	margin: 0 auto;
	max-width: var(--sg-weit);
	padding: clamp(3.5rem, 7vw, 5rem) 0 2.25rem;
}

.sg-abschnitt--hell + .sg-fussbereich .sg-fuss,
.sg-haupt:has(> .sg-abschnitt--hell:last-child) + .sg-fussbereich .sg-fuss {
	border-top: 0;
}

.sg-fuss > .sg-zeichen {
	margin: 0 0 clamp(2.5rem, 5vw, 3.25rem) !important;
}

/* Vier Spalten am Desktop, zwei am Tablet, eine am Telefon */
.wp-block-columns.sg-fuss__spalten {
	color: var(--sg-grau);
	display: grid !important;
	font-size: 0.875rem;
	gap: 2.25rem clamp(1.5rem, 3vw, 2.5rem);
	grid-template-columns: repeat(4, minmax(0, 1fr));
	line-height: 1.75;
	margin-bottom: 0;
}

@media (max-width: 1099px) {
	.wp-block-columns.sg-fuss__spalten {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.wp-block-columns.sg-fuss__spalten {
		grid-template-columns: minmax(0, 1fr);
	}
}

.sg-fuss__titel {
	color: var(--sg-tinte);
	font-size: 0.875rem;
	font-weight: 500;
	margin: 0 0 0.6rem;
}

.sg-fuss__text {
	margin: 0;
	max-width: 17rem;
}

.sg-fuss__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sg-fuss a {
	color: var(--sg-grau);
	text-decoration: none;
	transition: color 0.2s;
}

.sg-fuss a:hover {
	color: var(--sg-tinte);
}

.sg-fuss .sg-kontakt__liste li {
	padding: 0 0 0.55rem;
}

.sg-fuss .sg-kontakt__titel {
	font-size: 0.625rem;
	letter-spacing: 0.18em;
}

.sg-fuss .sg-kontakt--adresse {
	color: var(--sg-text-farbe);
	font-family: var(--sg-text);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.75;
	margin: 0 0 0.9rem;
}

.sg-fuss .sg-kontakt__wert,
.sg-fuss .sg-kontakt__wert a,
.sg-fuss .sg-zeiten__kompakt {
	color: var(--sg-text-farbe);
}

.sg-fuss .sg-kontakt__wert a:hover {
	color: var(--sg-tinte);
}

.sg-fuss__unten {
	border-top: 1px solid var(--sg-linie);
	color: var(--sg-grau);
	font-size: 0.8125rem;
	gap: 0.75rem 2rem;
	margin-top: clamp(2.5rem, 5vw, 3.5rem) !important;
	padding-top: 1.5rem;
}

.sg-fuss__unten p {
	margin: 0;
}

.sg-fuss__recht a + a {
	margin-left: 1.5rem;
}


/* Nach oben */
.sg-nach-oben {
	align-items: center;
	background: #fff;
	border: 1px solid var(--sg-linie-stark);
	bottom: 1.5rem;
	color: var(--sg-tinte);
	cursor: pointer;
	display: flex;
	height: 44px;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	right: 1.5rem;
	transform: translateY(10px);
	transition: opacity 0.35s, transform 0.35s var(--sg-ease), border-color 0.2s;
	width: 44px;
	z-index: 90;
}

.sg-nach-oben svg {
	height: 18px;
	width: 18px;
}

.sg-nach-oben:hover {
	border-color: var(--sg-tinte);
}

.sg-nach-oben.ist-sichtbar {
	opacity: 1;
	pointer-events: auto;
	transform: none;
}

@media (max-width: 781px) {
	.sg-nach-oben {
		bottom: 1rem;
		right: 1rem;
	}
}

/* ==========================================================================
   17. Rechtstexte, Blog, Suche
   ========================================================================== */

.sg-recht h2 {
	font-size: 1.625rem;
	font-weight: 300;
	margin: 2.75rem 0 0.9rem;
}

.sg-recht h3 {
	font-size: 1.25rem;
	margin: 1.75rem 0 0.6rem;
}

.sg-recht > :first-child {
	margin-top: 0;
}

.sg-recht p,
.sg-recht li {
	font-size: 0.96875rem;
}

.sg-beitragsliste .wp-block-post-template {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sg-beitragsliste .wp-block-post {
	border-top: 1px solid var(--sg-linie);
	padding: 1.75rem 0;
}

.sg-beitragsliste .wp-block-post-title {
	font-size: 1.75rem;
	margin: 0.4rem 0 0.6rem;
}

.sg-beitragsliste .wp-block-post-title a {
	color: var(--sg-tinte);
	text-decoration: none;
}

.sg-beitragsliste .wp-block-post-date {
	color: var(--sg-grau);
	font-size: 0.8125rem;
}

/* ==========================================================================
   18. Bewegung: Einblenden, Fotos, Startbild, Seitenübergänge
   ========================================================================== */

.sg-js .sg-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.9s var(--sg-ease), transform 1.1s var(--sg-ease-weich);
	transition-delay: var(--sg-verz, 0s);
}

.sg-js .sg-reveal.ist-sichtbar {
	opacity: 1;
	transform: none;
}

/* Fotos blenden ruhig auf */
.sg-js .sg-enthuellen img {
	opacity: 0;
	scale: 1.03;
	transition: opacity 1.3s var(--sg-ease), scale 1.8s var(--sg-ease-weich), filter 1.2s var(--sg-ease);
	transition-delay: var(--sg-verz, 0s);
}

.sg-js .sg-enthuellen.ist-sichtbar img {
	opacity: 1;
	scale: 1;
}

.sg-js .sg-enthuellen figcaption {
	opacity: 0;
	transition: opacity 0.8s ease 0.5s;
}

.sg-js .sg-enthuellen.ist-sichtbar figcaption {
	opacity: 1;
}

/* Startbild: Zeilen erscheinen nacheinander */
@media (prefers-reduced-motion: no-preference) {
	.sg-js .sg-held > :not(.sg-zeichen) {
		animation: sg-auftritt 1.2s var(--sg-ease-weich) both;
	}
	.sg-js .sg-held > :nth-child(2) { animation-delay: 0.45s; }
	.sg-js .sg-held > :nth-child(3) { animation-delay: 0.65s; }
	.sg-js .sg-held > :nth-child(4) { animation-delay: 0.85s; }
}

@keyframes sg-auftritt {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

/* Seitenwechsel: Kopf bleibt stehen, Inhalt blendet weich über */
@view-transition {
	navigation: auto;
}

.sg-kopfbereich {
	view-transition-name: sg-kopf;
}

::view-transition-old(root) {
	animation: 0.22s ease-in both sg-vt-aus;
}

::view-transition-new(root) {
	animation: 0.5s var(--sg-ease-weich) both sg-vt-ein;
}

@keyframes sg-vt-aus {
	to { opacity: 0; }
}

@keyframes sg-vt-ein {
	from { opacity: 0; transform: translateY(10px); }
}

/* ==========================================================================
   19. Bewegung reduzieren: alles sofort sichtbar, keine Übergänge
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	@view-transition {
		navigation: none;
	}
	.sg-js .sg-reveal,
	.sg-js .sg-enthuellen img,
	.sg-js .sg-enthuellen figcaption,
	.sg-js .sg-held > * {
		animation: none !important;
		opacity: 1 !important;
		scale: none !important;
		transform: none !important;
		transition: none !important;
	}
	.sg-foto img {
		object-position: 50% 50%;
		transition: none !important;
	}
	.sg-foto--schaufenster img {
		object-position: 50% 100%;
	}
	.sg-zeichen__linie,
	.sg-zeichen__welle,
	.sg-zeichen__licht {
		animation: none !important;
		stroke-dashoffset: 0 !important;
	}
	.sg-kopf__haupt,
	.sg-menue * {
		animation: none !important;
		transition: none !important;
	}
}

/* ==========================================================================
   20. Druck
   ========================================================================== */

@media print {
	body.sg-front,
	.sg-front .wp-site-blocks {
		background: #fff;
		margin: 0;
		max-width: none;
		width: auto;
	}
	.sg-kopfbereich {
		position: static;
	}
	.sg-menue,
	.sg-kopf__cta,
	.sg-karte-block__flaeche,
	.sg-route,
	.sg-nach-oben,
	.wp-block-buttons {
		display: none !important;
	}
	.sg-js .sg-reveal,
	.sg-js .sg-held > *,
	.sg-js .sg-enthuellen img {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
	.sg-zeichen__linie {
		stroke-dashoffset: 0 !important;
	}
}
