/* ==========================================================================
   Gesund durch Steine – Theme-Styles
   Farben, Schriften und Größen kommen aus theme.json (CSS-Variablen).
   ========================================================================== */

:root {
	--gds-kies: var(--wp--preset--color--kies, #E4E1DB);
	--gds-politur: var(--wp--preset--color--politur, #F6F5F2);
	--gds-schiefer: var(--wp--preset--color--schiefer, #2A262E);
	--gds-soft: var(--wp--preset--color--text-weich, #45404A);
	--gds-grau: var(--wp--preset--color--grau, #5A5460);
	--gds-linie: var(--wp--preset--color--linie, #C9C4BB);
	--gds-amethyst: var(--wp--preset--color--amethyst, #5E4680);
	--gds-flieder: var(--wp--preset--color--flieder, #B9A6D3);
	--gds-lavendel: var(--wp--preset--color--lavendel, #D9D2E2);
	--gds-serif: var(--wp--preset--font-family--marcellus, Marcellus, Georgia, serif);
	--gds-gutter: clamp(1rem, 3vw, 2.5rem);
	--gds-wide: 1320px;
	--gds-section: clamp(4rem, 9vw, 7.5rem);
}

body { margin: 0; }
:where(a, button, summary):focus-visible { outline: 2px solid var(--gds-amethyst); outline-offset: 4px; }
.wp-site-blocks > * + * { margin-block-start: 0; }
h1, h2, h3 { text-wrap: balance; }
.gds-soft { color: var(--gds-soft); max-width: 34em; }
.gds-link-strong { font-weight: 600; font-size: 0.9375rem; }
.gds-link-strong a { text-underline-offset: 4px; }

/* Breiter Inhaltsrahmen ---------------------------------------------------- */
.gds-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--gds-wide);
	margin-inline: auto;
	padding-inline: var(--gds-gutter);
}
.gds-main { padding-block: var(--gds-section); }

/* Kopfzeile ---------------------------------------------------------------- */
.gds-header { border-bottom: 1px solid var(--gds-linie); position: relative; z-index: 10; }
.gds-header__inner {
	box-sizing: border-box;
	max-width: var(--gds-wide);
	margin-inline: auto;
	padding: 1.5rem var(--gds-gutter);
	gap: 1rem 2.5rem;
}
.gds-logo, .gds-logo a { font-family: var(--gds-serif); font-size: 1.5rem; text-decoration: none; color: inherit; margin: 0; }
.gds-nav { font-size: 0.9375rem; gap: 0.5rem 2rem; }
.gds-nav a { text-decoration: none; }
.gds-header--overlay { border-bottom: 0; color: #FFFFFF; }
.gds-header--overlay a,
.gds-header--overlay .wc-block-mini-cart__button { color: #FFFFFF; }
.gds-header--overlay a:hover { color: #E6DCF2; }

/* Hero --------------------------------------------------------------------- */
.gds-hero {
	position: relative;
	min-height: max(640px, 92vh);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	color: #FFFFFF;
	margin: 0;
}
.gds-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(30,24,36,.62) 0%, rgba(30,24,36,.18) 42%, rgba(30,24,36,0) 60%, rgba(30,24,36,.45) 100%);
	pointer-events: none;
}
.gds-hero__img { position: absolute; inset: 0; margin: 0; z-index: 0; }
.gds-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.gds-hero > .wp-block-template-part,
.gds-hero__content { position: relative; z-index: 2; }
.gds-hero__content {
	flex: 1;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--gds-wide);
	margin-inline: auto;
	padding: 3.5rem var(--gds-gutter) 3rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 3rem;
}
.gds-hero__title {
	margin: 0;
	text-align: center;
	font-size: var(--wp--preset--font-size--display, clamp(3.25rem, 8.4vw, 7.75rem));
	line-height: .98;
	letter-spacing: -0.015em;
	color: #FFFFFF;
	text-shadow: 0 2px 30px rgba(30,24,36,.35);
}
.gds-hero__cta { align-self: flex-end; max-width: 20rem; display: flex; flex-direction: column; gap: 1.125rem; }
.gds-hero__cta p { margin: 0; line-height: 1.55; }
.gds-btn-light .wp-block-button__link { background: var(--gds-politur); color: var(--gds-schiefer); width: 100%; text-align: center; box-sizing: border-box; }
.gds-btn-light .wp-block-button__link:hover { background: #FFFFFF; color: var(--gds-amethyst); }
.gds-hero .wp-block-buttons { width: 100%; }
.gds-hero .wp-block-button { width: 100%; }

/* Intro -------------------------------------------------------------------- */
.gds-intro {
	padding-block: var(--gds-section) clamp(3rem, 7vw, 6rem);
	display: flex;
	flex-wrap: wrap;
	gap: 3.5rem 6rem;
	align-items: flex-start;
}
.gds-intro__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 1.75rem; }
.gds-intro__text h2 { margin: 0; font-size: clamp(2.125rem, 3.6vw, 3.25rem); line-height: 1.12; }
.gds-intro__text p { margin: 0; }
.gds-intro__img { flex: 1 1 360px; min-width: 0; margin: 0; }
.gds-intro__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }

/* Laufband ----------------------------------------------------------------- */
.gds-marquee { overflow: hidden; padding: 1.5rem 0 var(--gds-section); }
.gds-marquee__track {
	width: max-content;
	gap: 2.25rem !important;
	align-items: center;
	padding-left: var(--gds-gutter);
	font-family: var(--gds-serif);
	font-size: clamp(3.5rem, 7vw, 6.5rem);
	line-height: 1;
	white-space: nowrap;
}
.gds-marquee__track p { margin: 0; }
.gds-pill { margin: 0 !important; flex: none; width: 200px; height: 96px; border-radius: 999px; overflow: hidden; }
.gds-pill img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gds-pill--jaspis { background: #B8735A; }

/* Steinliste --------------------------------------------------------------- */
.gds-stones { padding-bottom: var(--gds-section); display: flex; flex-wrap: wrap; gap: 3rem 5rem; align-items: flex-start; }
.gds-stones__list { flex: 1 1 420px; min-width: 0; }
.gds-stone { padding: 1.125rem 0; border-bottom: 1px solid var(--gds-linie); align-items: baseline !important; gap: 1.5rem; margin: 0 !important; }
.gds-stone__name { margin: 0; font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: 1.1; }
.gds-stone__name a { text-decoration: none; color: #8A8490; transition: color .2s ease; }
.gds-stone.is-active .gds-stone__name a,
.gds-stone__name a:hover,
.gds-stone__name a:focus-visible { color: var(--gds-schiefer); }
.gds-stone__kind { margin: 0; font-size: .9375rem; color: var(--gds-grau); white-space: nowrap; }
.gds-stones__panels { flex: 1 1 400px; min-width: 0; }
.gds-panel { display: none; flex-direction: column; gap: 1rem; }
.gds-panel.is-active,
.gds-stones:not(.is-ready) .gds-panel:first-child { display: flex; }
.gds-panel > * { margin: 0 !important; }
.gds-panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gds-placeholder { aspect-ratio: 4 / 3; display: flex; align-items: flex-end; padding: 1rem; box-sizing: border-box; font-size: .8125rem; }
.gds-placeholder p { margin: 0; }
.gds-placeholder--jaspis { background: #C9A493; }
.gds-placeholder--holz { background: #C2B39E; }

/* Aufgesägter Kiesel ------------------------------------------------------- */
.gds-cut { height: 1500px; background: var(--gds-schiefer); color: var(--gds-kies); view-timeline-name: --gds-cut; margin: 0; }
.gds-cut__sticky {
	position: sticky;
	top: 0;
	min-height: min(100vh, 860px);
	box-sizing: border-box;
	max-width: var(--gds-wide);
	margin-inline: auto;
	padding: 3rem var(--gds-gutter);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 3rem 5rem;
}
.gds-cut__text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.gds-cut__text h2 { margin: 0; color: var(--gds-kies); font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: 1.05; }
.gds-cut__text p { margin: 0; max-width: 28em; color: #CFCAC2; }
.gds-cut__figure { flex: 1 1 420px; min-width: 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2.25rem; }
.gds-cut__stone { position: relative; width: min(460px, 100%); aspect-ratio: 6 / 5; }
.gds-cut__face,
.gds-cut__half { border-radius: 58% 42% 47% 53% / 52% 46% 54% 48%; }
.gds-cut__face {
	position: absolute; inset: 3%;
	border: 10px solid #857D72; box-sizing: border-box; overflow: hidden;
	background-size: cover; background-position: center;
	box-shadow: inset 0 0 40px rgba(42,38,46,.45);
}
.gds-cut__sheen { position: absolute; inset: -10% -40%; background: linear-gradient(105deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 65%); transform: translateX(130%); }
.gds-cut__half {
	position: absolute; inset: 0;
	background-color: #9A9286;
	background-image: radial-gradient(#7F776C 1.2px, transparent 1.7px), radial-gradient(#B7B0A5 1px, transparent 1.5px);
	background-size: 11px 11px, 7px 7px;
	background-position: 0 0, 3px 4px;
}
.gds-cut__half--top { clip-path: inset(0 0 50% 0); box-shadow: inset -30px -40px 70px rgba(42,38,46,.35), inset 24px 24px 50px rgba(255,255,255,.2); transform: translate(-5%,-30%) rotate(-9deg); }
.gds-cut__half--bottom { background-color: #948C80; clip-path: inset(50% 0 0 0); box-shadow: inset -30px -40px 70px rgba(42,38,46,.4), inset 24px 24px 50px rgba(255,255,255,.16); transform: translate(4%,26%) rotate(6deg); }
.gds-cut__saw { position: absolute; top: 50%; left: -8%; right: -8%; height: 2px; background: var(--gds-kies); transform-origin: left center; opacity: 0; }
.gds-cut__caps { display: grid; font-size: .9375rem; color: #CFCAC2; text-align: center; }
.gds-cap { grid-area: 1 / 1; }
.gds-cap--1, .gds-cap--2 { opacity: 0; }

/* Werkstatt ---------------------------------------------------------------- */
.gds-workshop { padding-block: var(--gds-section); display: flex; flex-wrap: wrap; gap: 3.5rem 6rem; align-items: center; }
.gds-workshop__video { flex: 0 1 380px; min-width: 0; margin: 0; }
.gds-workshop__video video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; background: var(--gds-schiefer); }
.gds-workshop__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 2.25rem; }
.gds-workshop__text > * { margin: 0 !important; }
.gds-workshop__text h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.08; }
.gds-progress { height: 2px; background: var(--gds-linie); overflow: hidden; position: relative; }
.gds-progress::after { content: ""; position: absolute; inset: 0; background: var(--gds-amethyst); transform-origin: left center; }
.gds-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 2rem 2.5rem; }
.gds-step > * { margin: 0 0 .5rem !important; }
.gds-step p { font-size: 1rem; color: var(--gds-soft); }
.gds-step__no { font-family: var(--gds-serif); font-size: 2.75rem !important; line-height: 1; color: var(--gds-amethyst) !important; }
.gds-step__title { font-family: inherit; font-size: 1.1875rem; font-weight: 600; }

/* Gerade fertig poliert ---------------------------------------------------- */
.gds-band { background: var(--gds-lavendel); padding-block: clamp(4rem, 7vw, 6rem); margin: 0; }
.gds-band__head { margin-bottom: 2.5rem; gap: 1rem; }
.gds-band__head > * { margin: 0; }
.gds-scroller ul.products { display: flex !important; flex-wrap: nowrap; gap: 1.5rem; overflow-x: auto; padding: 0 0 .75rem !important; margin: 0 !important; scroll-snap-type: x mandatory; }
.gds-scroller ul.products::before, .gds-scroller ul.products::after { display: none !important; }
.gds-scroller ul.products li.product { flex: 0 0 280px; width: auto !important; margin: 0 !important; float: none !important; scroll-snap-align: start; }

/* Begleiter ---------------------------------------------------------------- */
.gds-companion { padding-block: var(--gds-section); display: flex; flex-wrap: wrap; align-items: center; gap: 3rem 6rem; }
.gds-companion__img { flex: 1 1 460px; min-width: 0; margin: 0; }
.gds-companion__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.gds-companion__text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.gds-companion__text > * { margin: 0; }

/* WooCommerce-Produktkacheln (Shop, Kategorien, verwandte Produkte) -------- */
ul.products li.product { text-align: left; }
ul.products li.product a img { aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: .75rem !important; border-radius: 0; }
ul.products li.product .woocommerce-loop-product__title { font-family: var(--gds-serif); font-weight: 400; font-size: 1.375rem !important; padding: 0 !important; }
ul.products li.product .price { color: var(--gds-schiefer) !important; font-weight: 600; }
ul.products li.product .button { display: none; }

/* Produktseite ------------------------------------------------------------- */
.gds-product .woocommerce-breadcrumb { font-size: .875rem; color: var(--gds-grau); padding-top: 1.25rem; margin: 0 0 2rem; }
.gds-product__top { gap: 3rem 4.5rem !important; padding-bottom: var(--gds-section); }
.gds-product__buy { display: flex; flex-direction: column; gap: 1.5rem; }
.gds-product__buy > * { margin: 0 !important; }
.gds-product__buy h1 { font-size: clamp(2.5rem, 4.4vw, 3.75rem); }
.gds-pills { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .875rem; }
.gds-pills a { padding: .3rem .75rem; border: 1px solid var(--gds-amethyst); color: var(--gds-amethyst); border-radius: 999px; text-decoration: none; }
.gds-lead { font-size: 1.1875rem; color: var(--gds-soft); }
.gds-lead p { margin: 0; }
.gds-price-box { padding: 1.25rem 0; border-top: 1px solid var(--gds-linie); border-bottom: 1px solid var(--gds-linie); }
.gds-price-box > * { margin: 0 !important; }
.gds-price, .gds-price .amount { font-family: var(--gds-serif); font-size: 2.5rem !important; line-height: 1.1; color: var(--gds-schiefer); }
.gds-price-note { font-size: .875rem; color: var(--gds-grau); }
.gds-price-note a { color: inherit; }
.gds-product .single_add_to_cart_button { width: 100%; min-height: 56px; font-size: 1rem !important; }
.gds-product form.cart .quantity { display: none; }
.gds-unikat-note { font-size: .875rem; color: var(--gds-grau); margin: 0; }
.gds-steckbrief { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .625rem 1.75rem; font-size: .9375rem; }
.gds-steckbrief dt { color: var(--gds-grau); }
.gds-steckbrief dd { margin: 0; }
.gds-product .woocommerce-product-gallery { margin: 0 !important; width: 100% !important; float: none !important; }
.gds-product .flex-control-thumbs { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: .75rem !important; }
.gds-product .flex-control-thumbs li { width: auto !important; margin: 0 !important; }

.gds-product__story { background: var(--gds-politur); padding-block: var(--gds-section); margin: 0; }
.gds-split { display: flex; flex-wrap: wrap; gap: 3rem 6rem; align-items: flex-start; }
.gds-split__aside { flex: 1 1 320px; min-width: 0; }
.gds-split__aside > * { margin-top: 0; }
.gds-split__main { flex: 2 1 520px; min-width: 0; border-top: 1px solid var(--gds-linie); }

.gds-acc { border-bottom: 1px solid var(--gds-linie); margin: 0 !important; }
.gds-acc summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.375rem 0;
	font-family: var(--gds-serif);
	font-size: 1.625rem;
}
.gds-acc summary::-webkit-details-marker { display: none; }
.gds-acc summary::after { content: "+"; font-family: inherit; font-size: 1.75rem; line-height: 1; transition: transform .2s ease; }
.gds-acc[open] summary::after { transform: rotate(45deg); }
.gds-acc > :not(summary) { max-width: 38em; color: var(--gds-soft); margin: 0 0 1rem; }
.gds-acc > :last-child { margin-bottom: 1.75rem; }

.gds-disclaimer { font-size: .875rem; color: var(--gds-grau); max-width: 40em; margin-top: 1.5rem; }
.gds-related { padding-block: var(--gds-section); }
.gds-related > h2 { margin: 0 0 2.5rem; }
.gds-related .related > h2 { display: none; }

/* Fußzeile ----------------------------------------------------------------- */
.gds-footer { background: var(--gds-schiefer); color: #CFCAC2; margin: 0; }
.gds-footer__inner { box-sizing: border-box; max-width: var(--gds-wide); margin-inline: auto; padding: 3rem var(--gds-gutter); gap: 2rem 4rem; }
.gds-footer__about { flex: 1 1 380px; }
.gds-footer .gds-logo, .gds-footer .gds-logo a, .gds-footer a { color: var(--gds-kies); }
.gds-footer .gds-disclaimer { color: #CFCAC2; }
.gds-footer__nav { font-size: .875rem; gap: .5rem; }

/* ==========================================================================
   Scroll-Animationen
   Standard ist der Endzustand. Animiert wird nur, wenn der Browser
   Scroll-Timelines kann und keine reduzierte Bewegung gewünscht ist.
   ========================================================================== */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.gds-hero__img img { animation: gds-settle linear both; animation-timeline: scroll(root); animation-range: 0 900px; }
		.gds-drift { animation: gds-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
		.gds-cut__saw { animation: gds-saw linear both; animation-timeline: --gds-cut; animation-range: contain 0% contain 28%; }
		.gds-cut__half--top { animation: gds-lift linear both; animation-timeline: --gds-cut; animation-range: contain 26% contain 68%; }
		.gds-cut__half--bottom { animation: gds-drop linear both; animation-timeline: --gds-cut; animation-range: contain 26% contain 68%; }
		.gds-cut__sheen { animation: gds-sheen ease-in-out both; animation-timeline: --gds-cut; animation-range: contain 70% contain 96%; }
		.gds-cap--1 { animation: gds-cap1 linear both; animation-timeline: --gds-cut; }
		.gds-cap--2 { animation: gds-cap2 linear both; animation-timeline: --gds-cut; }
		.gds-cap--3 { animation: gds-cap3 linear both; animation-timeline: --gds-cut; }
		.gds-progress::after { animation: gds-fill linear both; animation-timeline: view(); animation-range: entry 80% cover 60%; }
	}
}
@media (prefers-reduced-motion: reduce) {
	.gds-stone__name a, .gds-acc summary::after { transition: none; }
}
@keyframes gds-settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes gds-drift { from { transform: translateX(4%); } to { transform: translateX(-38%); } }
@keyframes gds-saw { 0% { transform: scaleX(0); opacity: 1; } 75% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes gds-lift { from { transform: none; } to { transform: translate(-5%,-30%) rotate(-9deg); } }
@keyframes gds-drop { from { transform: none; } to { transform: translate(4%,26%) rotate(6deg); } }
@keyframes gds-sheen { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
@keyframes gds-cap1 { 0%, 24% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes gds-cap2 { 0%, 26% { opacity: 0; } 32%, 64% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes gds-cap3 { 0%, 66% { opacity: 0; } 74%, 100% { opacity: 1; } }
@keyframes gds-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Mobil -------------------------------------------------------------------- */
@media (max-width: 781px) {
	.gds-hero__cta { align-self: stretch; max-width: none; }
	.gds-cut { height: 1300px; }
	.gds-pill { width: 120px; height: 60px; }
	.gds-stone__kind { display: none; }
}
