/* Schlank Shop – passt sich Schrift und Farben des Themes an */

.sshop {
	--sshop-akzent-std: var(--wp--preset--color--accent-1, #1a1a1a);
	--sshop-linie: color-mix(in srgb, currentColor 22%, transparent);
	color: var(--sshop-fg, inherit);
	background: var(--sshop-bg, transparent);
	box-sizing: border-box;
}
.sshop *, .sshop *::before, .sshop *::after { box-sizing: border-box; }
.sshop--flaeche { padding: clamp(20px, 4vw, 48px); border-radius: var(--sshop-rund, 16px); }
.sshop-hinweis { padding: 16px 20px; border: 2px dashed #999; border-radius: 12px; font: 500 15px/1.4 system-ui, sans-serif; }

/* ---------- Detail: Galerie + Kaufbox ---------- */
.sshop--detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.sshop--detail.sshop--bild-rechts .sshop__links { order: 2; }
.sshop__links { position: sticky; top: 24px; min-width: 0; }
.admin-bar .sshop__links { top: 56px; }

.sshop__galerie { position: relative; }
.sshop__buehne {
	display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	border-radius: var(--sshop-rund, 16px); scrollbar-width: none; overscroll-behavior-x: contain;
}
.sshop__buehne::-webkit-scrollbar { display: none; }
.sshop__buehne:focus-visible { outline: 3px solid var(--sshop-akzent, var(--sshop-akzent-std)); outline-offset: 3px; }
.sshop__folie { position: relative; margin: 0; scroll-snap-align: start; }
.sshop__zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.sshop__bild { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; background: color-mix(in srgb, currentColor 6%, transparent); }
.sshop__galerie--leer { aspect-ratio: 4/5; border-radius: var(--sshop-rund, 16px); background: color-mix(in srgb, currentColor 8%, transparent); }

.sshop__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 3px; scrollbar-width: thin; }
.sshop__thumb { flex: none; width: 76px; height: 76px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; opacity: .65; outline: 2px solid transparent; outline-offset: 2px; background: none; transition: opacity .2s, outline-color .2s; }
.sshop__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sshop__thumb:hover, .sshop__thumb.is-aktiv { opacity: 1; }
.sshop__thumb.is-aktiv { outline-color: var(--sshop-akzent, var(--sshop-akzent-std)); }
.sshop__thumb:focus-visible { outline-color: currentColor; opacity: 1; }
.sshop__punkte { display: none; justify-content: center; gap: 6px; margin-top: 10px; }
.sshop__punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--sshop-linie); transition: background .2s, transform .2s; }
.sshop__punkt.is-aktiv { background: var(--sshop-akzent, var(--sshop-akzent-std)); transform: scale(1.3); }

/* Widmungs-Vorschau auf dem Hauptbild */
.sshop__widmung {
	position: absolute; left: 8%; right: 8%; text-align: center; pointer-events: none;
	font-family: var(--wp--preset--font-family--caveat, "Segoe Script", "Bradley Hand", cursive);
	font-size: clamp(20px, 4.4vw, 34px); line-height: 1.15; white-space: pre-line; color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 0 18px rgba(0, 0, 0, .35);
	opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.sshop__widmung.is-sichtbar { opacity: 1; transform: none; }
.sshop__widmung--oben { top: 8%; }
.sshop__widmung--mitte { top: 50%; translate: 0 -50%; }
.sshop__widmung--unten { bottom: 8%; }

/* Vollbild */
.sshop__lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 10, 10, .94); }
.sshop__lightbox[open] { display: grid; place-items: center; }
.sshop__lightbox::backdrop { background: rgba(10, 10, 10, .94); }
.sshop__lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; }
.sshop__lightbox button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.sshop__lightbox button:hover, .sshop__lightbox button:focus-visible { background: rgba(255, 255, 255, .3); }
.sshop__lb-zu { top: 16px; right: 16px; }
.sshop__lb-zurueck { left: 16px; top: 50%; translate: 0 -50%; }
.sshop__lb-weiter { right: 16px; top: 50%; translate: 0 -50%; }

/* ---------- Kaufbox ---------- */
.sshop__kaufbox { min-width: 0; }
.sshop__etikett {
	display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--sshop-akzent, var(--sshop-akzent-std)); color: #fff;
	font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.sshop__titel { margin: .4em 0 .25em; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; }
.sshop__titel a { color: inherit; text-decoration: none; }
.sshop__preis { margin: 0; font-size: 1.6rem; }
.sshop__ab { font-size: 1rem; opacity: .75; }
.sshop__preisinfo { margin: 0 0 1em; font-size: .9rem; opacity: .75; }
.sshop__kurz { margin: 0 0 1.2em; font-size: 1.1rem; }
.sshop__merkmal { margin: 0 0 1.2em; font-weight: 600; font-size: 1rem; }
.sshop__limit { margin: 0 0 1.2em; font-size: .95rem; }
.sshop__limit p { margin: 0 0 6px; }
.sshop__limit--aus { font-weight: 700; }
.sshop__balken { display: block; height: 6px; border-radius: 3px; background: var(--sshop-linie); overflow: hidden; }
.sshop__balken span { display: block; height: 100%; background: var(--sshop-akzent, var(--sshop-akzent-std)); }

.sshop__form { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.sshop__form fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sshop__form legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 1.05rem; }
.sshop__feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sshop__feld label { font-weight: 600; font-size: .95rem; }
.sshop__feld small, .sshop__land { font-size: .85rem; opacity: .75; margin: 0; }
.sshop__reihe { display: grid; grid-template-columns: 8rem 1fr; gap: 12px; }
.sshop__form input:not([type=radio]), .sshop__form textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--sshop-linie); border-radius: 10px;
	background: #fff; color: #1a1a1a; font: inherit; font-size: 16px;
}
.sshop__form textarea { resize: vertical; }
.sshop__form input:focus, .sshop__form textarea:focus { outline: 3px solid var(--sshop-akzent, var(--sshop-akzent-std)); outline-offset: 1px; border-color: transparent; }
.sshop__feld--widmung textarea { font-family: var(--wp--preset--font-family--caveat, cursive); font-size: 22px; line-height: 1.3; }

.sshop__varianten { flex-direction: row !important; flex-wrap: wrap; gap: 10px !important; }
.sshop__varianten legend { width: 100%; }
.sshop__variante { position: relative; cursor: pointer; }
.sshop__variante input { position: absolute; opacity: 0; inset: 0; }
.sshop__variante span { display: flex; flex-direction: column; min-width: 120px; padding: 10px 16px; border: 1.5px dashed var(--sshop-linie); border-radius: 12px; font-weight: 600; }
.sshop__variante small { font-weight: 400; opacity: .8; }
.sshop__variante input:checked + span { border-style: solid; border-color: var(--sshop-akzent, var(--sshop-akzent-std)); box-shadow: inset 0 0 0 1px var(--sshop-akzent, var(--sshop-akzent-std)); }
.sshop__variante input:focus-visible + span { outline: 3px solid var(--sshop-akzent, var(--sshop-akzent-std)); outline-offset: 2px; }

.sshop__summe { padding: 18px 20px; border: 1.5px dashed var(--sshop-linie); border-radius: 14px; }
.sshop__summe-titel { margin: 0 0 10px; font-weight: 700; }
.sshop__summe dl { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.sshop__summe dt { opacity: .75; }
.sshop__summe dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.sshop__summe-widmung { font-family: var(--wp--preset--font-family--caveat, cursive); font-size: 1.25rem; white-space: pre-line; line-height: 1.2; }
.sshop__gesamt { font-weight: 800; font-size: 1.15rem; opacity: 1 !important; padding-top: 8px; border-top: 1px solid var(--sshop-linie); }
.sshop__klein { margin: 10px 0 0; font-size: .85rem; opacity: .75; }
.sshop__klein--mitte { text-align: center; margin: -8px 0 0; }
.sshop__recht { font-size: .9rem; }
.sshop__recht p { margin: 0 0 8px; }
.sshop__falle { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sshop .sshop__knopf {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 28px;
	border: 0; border-radius: 999px; background: var(--sshop-akzent, var(--sshop-akzent-std)); color: #fff !important;
	font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none !important; cursor: pointer; transition: transform .15s, filter .15s;
}
.sshop .sshop__form .sshop__knopf { width: 100%; }
.sshop .sshop__knopf:hover { background: var(--sshop-akzent, var(--sshop-akzent-std)); color: #fff !important; filter: brightness(1.1); transform: translateY(-1px); }
.sshop .sshop__knopf:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.sshop .sshop__knopf:disabled { opacity: .7; cursor: wait; transform: none; }
.sshop .sshop__knopf--paypal, .sshop .sshop__knopf--paypal:hover { background: #0070ba; width: 100%; }

.sshop__meldung { padding: 14px 18px; border-radius: 12px; background: color-mix(in srgb, currentColor 7%, transparent); }
.sshop__meldung--fehler { background: #fbeaea; color: #8a1020; border: 1.5px solid #b3122b; }
.sshop__danke { padding: 22px; border-radius: 16px; border: 2px solid #1e8e3e; background: #eef7f0; color: #1a1a1a; outline: none; }
.sshop__danke-titel { margin: 0 0 8px; font-size: 1.4rem; font-weight: 800; }
.sshop__danke p { margin: 0 0 10px; }
.sshop__danke-hinweise { margin: 14px 0 0; padding-left: 1.2em; font-size: .9rem; }
.sshop__danke p.sshop__danke-zurueck { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid rgba(30,142,62,.25); font-weight: 600; }
.sshop__danke-zurueck a { color: inherit; }

/* ---------- Teaser ---------- */
.sshop--teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.sshop--teaser.sshop--bild-rechts .sshop__teaserbild-link { order: 2; }
.sshop__teaserbild-link { position: relative; display: block; }
.sshop__teaserbild { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--sshop-rund, 16px); }
.sshop__teaserbild-link .sshop__etikett { position: absolute; top: 16px; left: 16px; }
.sshop--teaser .sshop__info > .sshop__etikett { display: none; }

/* ---------- Handy ---------- */
@media (max-width: 820px) {
	.sshop--detail, .sshop--teaser { grid-template-columns: 1fr; }
	.sshop--detail.sshop--bild-rechts .sshop__links, .sshop--teaser.sshop--bild-rechts .sshop__teaserbild-link { order: 0; }
	.sshop__links { position: static; }
	.sshop__thumbs { display: none; }
	.sshop__punkte { display: flex; }
	.sshop__reihe { grid-template-columns: 6.5rem 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.sshop__buehne { scroll-behavior: auto; }
	.sshop *, .sshop *::before { transition: none !important; }
}
