/* DAYSPA Gutscheine, Frontend-Modul: Vergleichsansicht der Spa-Pakete ([dayspa_pakete], includes/pakete.php).
   Weiße Karten auf einer Fläche in Flieder, die oben und unten über die Kartenreihe ragt; das Bild ist eingerückt und liegt zum
   Teil auf einer Fläche im Ton der Karte (verschachtelte Rechtecke wie bei „Beauty & Spa“), dazu die Linienzeichnung der
   gerollten Handtücher.
   Breite Bildschirme: Karten nebeneinander, gemeinsame Rasterzeilen (Bild, Name, Unterzeile, Preis, „Inklusive“, je Stichpunkt
   eine Zeile, Knöpfe), dadurch steht jeder Bereich in allen Karten auf derselben Höhe. Schmale Bildschirme: Wischreihe mit
   denselben Zeilen und Markierungen darunter (assets/pakete.js). */

.dayspa-pakete { --pk-innen: 26px; --pk-abstand: 28px; --pk-text: #5A676B; position: relative; isolation: isolate; container-type: inline-size; box-sizing: border-box; margin: 0; color: var(--dsf-graublau, #405861); font-family: var(--dsf-schrift, "Work Sans", sans-serif); text-align: left; }
.dayspa-pakete *, .dayspa-pakete *::before, .dayspa-pakete *::after { box-sizing: border-box; }

/* Fläche und Zeichnung (rein dekorativ, hinter den Karten) */
.dayspa-pakete--zier::before { content: ""; position: absolute; z-index: -2; top: -64px; right: 8%; bottom: -64px; left: 8%; background: var(--dsf-flieder, #E9E8EF); pointer-events: none; }
.dayspa-pakete--zier::after { content: ""; position: absolute; z-index: -1; right: -124px; right: max(-124px, calc(50% - 50vw + 16px)); bottom: -112px; width: 240px; aspect-ratio: 560 / 478; background-color: rgba(64, 88, 97, .3); opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.dayspa-pakete--zier.ist-zier::after { -webkit-mask: url(startseite/handtuecher.png) center / contain no-repeat; mask: url(startseite/handtuecher.png) center / contain no-repeat; opacity: 1; }

/* Raster: gemeinsame Zeilen für alle Karten (Anzahl der Stichpunkt-Zeilen aus --pk-zeilen) */
.dayspa-pakete-reihe { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto auto auto repeat(var(--pk-zeilen, 5), auto) auto; column-gap: var(--pk-abstand); row-gap: 0; margin: 0; padding: 0; }

/* Karte */
.dayspa-pakete .dayspa-paket { --pk-ton: var(--dsf-beige, #F3EAE1); position: relative; display: grid; grid-template-rows: subgrid; grid-row: span var(--pk-spanne, 11); row-gap: 0; min-width: 0; margin: 0; padding: 0; background: #fff; box-shadow: 0 1px 2px rgba(22, 52, 95, .05), 0 18px 36px -22px rgba(22, 52, 95, .28); }
.dayspa-pakete .dayspa-paket--ton-rosa { --pk-ton: var(--dsf-rosa, #FBE1EA); }
.dayspa-pakete .dayspa-paket--ton-creme { --pk-ton: #F6F1DE; }

/* Bild eingerückt, sein oberer Teil liegt auf einer Fläche im Ton der Karte (beige, rosa, creme) */
.dayspa-pakete .dayspa-paket-bild { grid-row: 1; position: relative; margin: 0; padding: 16px 16px 0; }
.dayspa-pakete .dayspa-paket-bild::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 68%; background: var(--pk-ton); pointer-events: none; }
.dayspa-pakete .dayspa-paket-bildlink { position: relative; z-index: 1; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--pk-ton); }
.dayspa-pakete .dayspa-paket-foto { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; transition: transform .7s cubic-bezier(.2, .6, .2, 1); }
@media (hover: hover) { .dayspa-pakete .dayspa-paket:hover .dayspa-paket-foto { transform: scale(1.03); } }
.dayspa-pakete .dayspa-paket-hinweis { position: absolute; top: 30px; left: 30px; z-index: 2; padding: 7px 11px 6px; background: var(--dsf-blau, #16345F); color: #fff; font-family: var(--dsf-schrift, "Work Sans", sans-serif); font-weight: 500; font-size: 11px; line-height: 1.15; letter-spacing: 1.12px; text-transform: uppercase; pointer-events: none; }

/* Name, Unterzeile */
.dayspa-pakete .dayspa-paket-titel { grid-row: 2; margin: 0; padding: 24px var(--pk-innen) 0; color: var(--dsf-blau, #16345F); font-family: var(--dsf-schrift, "Work Sans", sans-serif); font-weight: 500; font-size: 24px; line-height: 1.2; letter-spacing: -.3px; text-transform: none; text-align: left; -webkit-hyphens: none; hyphens: none; }
.dayspa-pakete .dayspa-paket-titel a { color: inherit; text-decoration: none; -webkit-hyphens: none; hyphens: none; transition: color .2s ease; }
.dayspa-pakete .dayspa-paket-titel a:hover { color: var(--dsf-graublau, #405861); }
.dayspa-pakete .dayspa-paket-titel a:focus-visible { outline: 2px solid var(--dsf-blau, #16345F); outline-offset: 3px; }
.dayspa-pakete .dayspa-paket-unterzeile { grid-row: 3; margin: 0; padding: 4px var(--pk-innen) 0; color: var(--pk-text); font-family: var(--dsf-serif, "Cormorant Garamond", Georgia, serif); font-style: italic; font-weight: 400; font-size: 18px; line-height: 1.3; letter-spacing: 0; }

/* Preis und Merkmale */
.dayspa-pakete .dayspa-paket-preiszeile { grid-row: 4; padding: 18px var(--pk-innen) 0; }
.dayspa-pakete .dayspa-paket-preis { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; padding: 0; line-height: 1.1; }
.dayspa-pakete .dayspa-paket-betrag, .dayspa-pakete .dayspa-paket-betrag .woocommerce-Price-amount, .dayspa-pakete .dayspa-paket-betrag bdi { color: var(--dsf-blau, #16345F); font-family: var(--dsf-schrift, "Work Sans", sans-serif); font-weight: 500; font-size: 30px; line-height: 1.1; letter-spacing: -.3px; }
.dayspa-pakete .dayspa-paket-mwst { color: var(--pk-text); font-size: 12px; line-height: 1.4; letter-spacing: .3px; }
.dayspa-pakete .dayspa-paket-merkmale { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.dayspa-pakete .dayspa-paket-merkmal { margin: 0; padding: 6px 9px 5px; background: var(--dsf-beige, #F3EAE1); color: var(--dsf-blau, #16345F); font-family: var(--dsf-schrift, "Work Sans", sans-serif); font-weight: 500; font-size: 10.5px; line-height: 1.15; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; list-style: none; }
.dayspa-pakete .dayspa-paket-merkmal::before, .dayspa-pakete .dayspa-paket-merkmal::marker { content: none; }

/* Inklusive: Überschrift mit Haarlinie, je Stichpunkt eine Rasterzeile mit Haken */
.dayspa-pakete .dayspa-paket-inklusive { grid-row: 5; margin: 22px var(--pk-innen) 0; padding: 18px 0 0; border-top: 1px solid var(--dsf-linie, rgba(64, 88, 97, .18)); color: var(--dsf-graublau, #405861); font-family: var(--dsf-schrift, "Work Sans", sans-serif); font-weight: 500; font-size: 11.5px; line-height: 1.3; letter-spacing: 1.12px; text-transform: uppercase; }
.dayspa-pakete .dayspa-paket-liste { grid-row: 6 / span var(--pk-zeilen, 5); display: grid; grid-template-rows: subgrid; row-gap: 0; margin: 8px 0 0; padding: 0 var(--pk-innen); list-style: none; }
.dayspa-pakete .dayspa-paket-liste li { position: relative; margin: 0; padding: 5px 0 5px 28px; color: var(--dsf-graublau, #405861); font-family: var(--dsf-schrift, "Work Sans", sans-serif); font-weight: 400; font-size: 15px; line-height: 22px; letter-spacing: 0; list-style: none; text-align: left; }
.dayspa-pakete .dayspa-paket-liste li::marker { content: none; }
.dayspa-pakete .dayspa-paket-liste li::before { content: ""; position: absolute; top: 10px; left: 1px; width: 16px; height: 13px; background: var(--dsf-gold, #D1AB7D); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 13'%3E%3Cpath d='M1.2 6.9l4.3 4.3L14.8 1.4' fill='none' stroke='%23000' stroke-width='1.7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 13'%3E%3Cpath d='M1.2 6.9l4.3 4.3L14.8 1.4' fill='none' stroke='%23000' stroke-width='1.7'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Knöpfe: „In den Warenkorb“ über die volle Breite, darunter „Details“ */
.dayspa-pakete .dayspa-paket-knoepfe { grid-row: -2 / -1; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px var(--pk-innen) 26px; }
.dayspa-pakete .dayspa-paket-knoepfe .dayspa-fe-knopf { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 12px 16px; font-size: 13px; line-height: 1.35; }
.dayspa-pakete .dayspa-paket-knoepfe .dayspa-fe-textlink { position: relative; line-height: 20px; }
.dayspa-pakete .dayspa-paket-knoepfe .dayspa-fe-textlink::after { content: ""; position: absolute; top: -12px; right: -14px; bottom: -12px; left: -14px; }

/* Ohne gemeinsame Rasterzeilen (ältere Browser): gleich hohe Karten, Knöpfe unten */
@supports not (grid-template-rows: subgrid) {
	.dayspa-pakete .dayspa-paket { display: flex; flex-direction: column; }
	.dayspa-pakete .dayspa-paket-liste { display: block; }
	.dayspa-pakete .dayspa-paket-knoepfe { margin-top: auto; }
}

/* Markierungen der Wischreihe (von pakete.js eingefügt, nur wenn die Reihe breiter als der Bildschirm ist) */
.dayspa-pakete-punkte { display: flex; justify-content: center; gap: 2px; margin: 10px 0 0; }
.dayspa-pakete-punkte[hidden] { display: none; }
.dayspa-pakete .dayspa-pakete-punkt { position: relative; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; cursor: pointer; }
.dayspa-pakete .dayspa-pakete-punkt::before { content: ""; position: absolute; top: 21px; right: 8px; left: 8px; height: 2px; background: rgba(64, 88, 97, .32); transition: background-color .2s ease; }
.dayspa-pakete .dayspa-pakete-punkt[aria-current="true"]::before { background: var(--dsf-blau, #16345F); }
.dayspa-pakete .dayspa-pakete-punkt:focus-visible { outline: 2px solid var(--dsf-blau, #16345F); outline-offset: -4px; }

/* 1025 bis 1279 px (Inhalt etwa 940 px breit): schmalere Abstände und Schrift, damit jeder Stichpunkt einzeilig bleibt
   (längster Stichpunkt 229 px bei 13,5 px, Platz 236 px) */
@media (min-width: 1025px) and (max-width: 1279px) {
	.dayspa-pakete { --pk-innen: 20px; --pk-abstand: 20px; }
	.dayspa-pakete .dayspa-paket-titel { font-size: 22px; }
	.dayspa-pakete .dayspa-paket-betrag, .dayspa-pakete .dayspa-paket-betrag .woocommerce-Price-amount, .dayspa-pakete .dayspa-paket-betrag bdi { font-size: 28px; }
	.dayspa-pakete .dayspa-paket-liste li { padding-left: 24px; font-size: 13.5px; line-height: 21px; }
	.dayspa-pakete .dayspa-paket-liste li::before { top: 9px; width: 15px; height: 12px; }
}

/* Bis 1024 px (Tablet und Handy): Wischreihe über die volle Fensterbreite, die erste Karte bündig mit dem Inhalt, die nächste
   schaut hervor. --pk-bleed = Abstand des Blocks zum Fensterrand (100cqw = Breite des Blocks), --pk-rand = Innenrand der Reihe. */
@media (max-width: 1024px) {
	.dayspa-pakete { --pk-innen: 20px; }
	.dayspa-pakete-reihe { --pk-bleed: max(0px, calc((100vw - 100cqw) / 2)); --pk-rand: var(--pk-bleed); }
	.dayspa-pakete-reihe { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(calc(42vw - 16px), 340px); column-gap: 16px; overflow-x: auto; overflow-y: hidden; margin: -24px calc(-1 * var(--pk-bleed)) -28px; padding: 24px var(--pk-rand) 28px; scroll-padding-inline: var(--pk-rand); scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.dayspa-pakete-reihe::-webkit-scrollbar { display: none; }
	.dayspa-pakete .dayspa-paket { scroll-snap-align: start; }
	/* Hier ist meist nur eine Karte ganz zu sehen: die Liste als Block (ohne Lücken bei umbrechenden Stichpunkten), Knöpfe bleiben auf einer Höhe */
	.dayspa-pakete .dayspa-paket-liste { display: block; }
	.dayspa-pakete .dayspa-paket-bild { padding: 14px 14px 0; }
	.dayspa-pakete .dayspa-paket-hinweis { top: 26px; left: 26px; }
	.dayspa-pakete--zier::before { top: 32%; right: min(0px, calc((100cqw - 100vw) / 2)); bottom: -40px; left: min(0px, calc((100cqw - 100vw) / 2)); }
	.dayspa-pakete--zier::after { right: 4px; bottom: -92px; width: 150px; }
	.dayspa-pakete .dayspa-paket-titel { padding-top: 20px; font-size: 22px; }
	.dayspa-pakete .dayspa-paket-betrag, .dayspa-pakete .dayspa-paket-betrag .woocommerce-Price-amount, .dayspa-pakete .dayspa-paket-betrag bdi { font-size: 28px; }
	.dayspa-pakete .dayspa-paket-liste li { padding-left: 25px; font-size: 14px; line-height: 21px; }
	.dayspa-pakete .dayspa-paket-liste li::before { top: 9px; width: 15px; height: 12px; }
	.dayspa-pakete .dayspa-paket-unterzeile { font-size: 17px; }
	.dayspa-pakete .dayspa-paket-preiszeile { padding-top: 14px; }
	.dayspa-pakete .dayspa-paket-inklusive { margin-top: 18px; padding-top: 16px; }
	.dayspa-pakete .dayspa-paket-knoepfe { padding: 22px var(--pk-innen) 22px; gap: 12px; }
}

/* Handy: kleinerer Rand, damit die nächste Karte deutlich hervorschaut (etwa 38 px) */
@media (max-width: 767px) {
	.dayspa-pakete-reihe { --pk-rand: 20px; grid-auto-columns: min(calc(100vw - 72px), 340px); column-gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.dayspa-pakete--zier::after, .dayspa-pakete .dayspa-paket-foto, .dayspa-pakete .dayspa-paket-titel a, .dayspa-pakete .dayspa-pakete-punkt::before { transition: none; }
	.dayspa-pakete .dayspa-paket:hover .dayspa-paket-foto { transform: none; }
}
