/*
Theme Name: Petras Massageraum
Theme URI: https://petrasmassageraum.de
Description: Frisches, farbiges Design für Petras Massageraum. Baut auf Twenty Twenty-Five auf (Child-Theme).
Author: Petras Massageraum
Template: twentytwentyfive
Version: 1.1.0
Requires at least: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: petras-massageraum
*/

/* ---------- Grundlagen ---------- */
:root {
	--pm-radius: 24px;
	--pm-shadow: 0 10px 30px -12px rgba(43, 30, 47, 0.25);
	--pm-shadow-hover: 0 18px 40px -14px rgba(201, 60, 74, 0.45);
}

html { scroll-behavior: smooth; }

::selection { background: var(--wp--preset--color--accent-3); color: var(--wp--preset--color--contrast); }

/* Kleine Überzeile über Überschriften */
.pm-eyebrow {
	display: inline-block;
	font-size: 0.8rem !important;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-1);
	background: #fff;
	padding: 0.35em 0.9em;
	border-radius: 999px;
	margin-bottom: 0 !important;
	box-shadow: 0 2px 10px -4px rgba(201, 60, 74, 0.4);
}

/* Hervorgehobenes Wort in Überschriften: <mark> bzw. <em> */
h1 em, h2 em {
	font-style: italic;
	color: var(--wp--preset--color--accent-1);
}

/* ---------- Kopfbereich ---------- */
.pm-topbar {
	font-size: 0.875rem;
	font-weight: 700;
}
.pm-topbar a { color: inherit; text-decoration: none; }
.pm-topbar a:hover { text-decoration: underline; }

.pm-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	background: rgba(255, 248, 242, 0.88) !important;
	border-bottom: 1px solid rgba(43, 30, 47, 0.08);
}
.admin-bar .pm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .pm-header { top: 0; } }

.pm-logo-dot {
	display: inline-block;
	width: 0.55em; height: 0.55em;
	border-radius: 50%;
	background: var(--wp--preset--gradient--sonnenuntergang);
	margin-right: 0.35em;
}

.wp-block-navigation .wp-block-navigation-item__content { padding: 0.3em 0.1em; }
.wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--accent-1); }
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent-1);
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

/* ---------- Startseite: Hero ---------- */
.pm-hero {
	position: relative;
	overflow: hidden;
}
.pm-hero::before,
.pm-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
}
.pm-hero::before {
	width: 420px; height: 420px;
	right: -120px; top: -140px;
	background: radial-gradient(circle, rgba(246, 183, 140, 0.55), rgba(246, 183, 140, 0) 70%);
}
.pm-hero::after {
	width: 360px; height: 360px;
	left: -140px; bottom: -160px;
	background: radial-gradient(circle, rgba(31, 122, 112, 0.22), rgba(31, 122, 112, 0) 70%);
}
.pm-hero > * { position: relative; z-index: 1; }

.pm-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem) !important; }

/* Bild mit „Blob“-Form */
.pm-blob img {
	border-radius: 58% 42% 46% 54% / 46% 52% 48% 54% !important;
	box-shadow: var(--pm-shadow);
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
	animation: pm-blob 14s ease-in-out infinite alternate;
}
@keyframes pm-blob {
	0%   { border-radius: 58% 42% 46% 54% / 46% 52% 48% 54%; }
	50%  { border-radius: 44% 56% 58% 42% / 54% 40% 60% 46%; }
	100% { border-radius: 52% 48% 40% 60% / 42% 58% 44% 56%; }
}
@media (prefers-reduced-motion: reduce) { .pm-blob img { animation: none; } }

/* Kleine Info-Pillen im Hero */
.pm-pills { gap: 0.5rem !important; }
.pm-pills p {
	margin: 0 !important;
	background: #fff;
	border-radius: 999px;
	padding: 0.35em 0.95em;
	font-size: 0.9rem;
	font-weight: 700;
	box-shadow: 0 2px 10px -5px rgba(43, 30, 47, 0.35);
}

/* ---------- Karten ---------- */
.pm-card {
	background: #fff;
	border-radius: var(--pm-radius);
	box-shadow: var(--pm-shadow);
	padding: 1.5rem !important;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	height: 100%;
}
.pm-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--pm-shadow-hover);
}
.pm-card .wp-block-image img {
	border-radius: 16px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}
.pm-card h3 { margin-top: 0.75rem; }
.pm-card .wp-block-buttons { margin-top: auto; }
.wp-block-column.pm-card { display: flex; flex-direction: column; }

/* Abschnittsköpfe */
.pm-sechead { text-align: center; }
.pm-sechead .pm-eyebrow { display: table; margin-inline: auto !important; }
.pm-sechead > p:not(.pm-eyebrow) { color: var(--wp--preset--color--accent-4); }

/* Preis-/Dauer-Zeile */
.pm-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pm-variant {
	display: inline-block;
	white-space: nowrap;
	background: var(--wp--preset--color--accent-6);
	color: var(--wp--preset--color--accent-2);
	border-radius: 999px;
	padding: 0.2em 0.75em;
	font-size: 0.85rem;
	font-weight: 700;
}
.pm-variant strong { color: var(--wp--preset--color--accent-1); font-weight: 900; margin-left: 0.2em; }
.pm-meta {
	font-weight: 800;
	color: var(--wp--preset--color--accent-2);
	font-size: 0.95rem !important;
}
.pm-price {
	display: inline-block;
	background: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--accent-1);
	font-weight: 900;
	border-radius: 999px;
	padding: 0.15em 0.75em;
	margin-left: 0.25em;
	white-space: nowrap;
}

/* Symbol-Kreise (Emoji) */
.pm-icon {
	font-size: 2rem !important;
	line-height: 1 !important;
	width: 64px; height: 64px;
	display: flex !important;
	align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-5);
	margin-bottom: 0.5rem !important;
}
.pm-icon.pm-mint { background: var(--wp--preset--color--accent-6); }

/* ---------- Abschnitte ---------- */
.pm-wave-top { position: relative; }
.pm-wave-top::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: -38px;
	height: 40px;
	background: inherit;
	-webkit-mask: radial-gradient(40px 24px at 50% 100%, #000 98%, transparent) 0 0 / 80px 40px repeat-x;
	mask: radial-gradient(40px 24px at 50% 100%, #000 98%, transparent) 0 0 / 80px 40px repeat-x;
}

.pm-cta {
	border-radius: 32px;
	box-shadow: var(--pm-shadow);
}
.pm-cta h2, .pm-cta p { color: #fff; }
.pm-cta h2 em { color: var(--wp--preset--color--accent-3); }
.pm-cta p.pm-eyebrow { color: var(--wp--preset--color--accent-1); }
.pm-cta .wp-block-button .wp-block-button__link { background: #fff; color: var(--wp--preset--color--accent-1); border: 2px solid #fff; }
.pm-cta .wp-block-button .wp-block-button__link:hover { background: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--contrast); color: #fff; }
.pm-cta .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: #fff; border-color: #fff; }
.pm-cta .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--accent-1); }

/* Outline-Buttons */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 2px solid currentColor;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	color: #fff;
	border-color: var(--wp--preset--color--contrast);
}

/* ---------- Kundenstimmen ---------- */
.pm-quote {
	background: #fff;
	border-radius: var(--pm-radius) !important;
	box-shadow: var(--pm-shadow);
	padding: 1.75rem 1.5rem 1.25rem !important;
	margin: 0 !important;
	position: relative;
	height: 100%;
}
.pm-quote::before {
	content: "“";
	position: absolute;
	top: -0.2em; left: 0.3em;
	font-family: Fraunces, Georgia, serif;
	font-size: 5rem;
	line-height: 1;
	color: var(--wp--preset--color--accent-3);
}
.pm-quote p { position: relative; }
.pm-quote cite {
	font-style: normal;
	font-weight: 800;
	color: var(--wp--preset--color--accent-1);
	font-size: 0.9rem;
}
.pm-stars { color: #E9A23B; letter-spacing: 0.1em; font-size: 1.1rem !important; margin-bottom: 0 !important; }

.pm-quotes-masonry { column-count: 3; column-gap: 1.5rem; }
.pm-quotes-masonry > * { break-inside: avoid; margin-bottom: 1.5rem !important; }
@media (max-width: 900px) { .pm-quotes-masonry { column-count: 2; } }
@media (max-width: 600px) { .pm-quotes-masonry { column-count: 1; } }

/* ---------- Galerie ---------- */
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 16px; }

/* ---------- Seitentitel-Banner ---------- */
.pm-pagehead { position: relative; overflow: hidden; }
.pm-pagehead::after {
	content: "";
	position: absolute;
	width: 300px; height: 300px;
	right: -80px; top: -120px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(201, 60, 74, 0.18), rgba(201, 60, 74, 0) 70%);
	pointer-events: none;
}

/* ---------- Aufklapper (Details) ---------- */
.wp-block-details {
	background: #fff;
	border-radius: 16px;
	padding: 1rem 1.25rem;
	box-shadow: 0 4px 16px -10px rgba(43, 30, 47, 0.35);
}
.wp-block-details summary { font-weight: 800; cursor: pointer; }

/* ---------- Fußbereich ---------- */
.pm-footer a { color: #fff; }
.pm-footer a:hover { color: var(--wp--preset--color--accent-3); }
.pm-footer h2, .pm-footer h3 { color: #fff; }

/* ---------- Mobil ---------- */
@media (max-width: 781px) {
	.pm-hero .wp-block-columns { gap: 2rem; }
	.pm-blob { max-width: 360px; margin-inline: auto; }
	.pm-hide-mobile { display: none !important; }
}

/* ---------- Klickbare Preise ---------- */
a.pm-variant {
	text-decoration: none;
	border: 2px solid transparent;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
a.pm-variant:hover,
a.pm-variant:focus-visible {
	background: #fff;
	border-color: var(--wp--preset--color--accent-1);
	transform: translateY(-1px);
}
a.pm-variant::after { content: " →"; color: var(--wp--preset--color--accent-1); font-weight: 900; }
.pm-card .pm-gutschein-btn { margin-top: auto; padding-top: 0.5rem; }
.pm-card .pm-gutschein-btn .wp-block-button__link { padding: 0.5em 1.1em; font-size: 0.9rem; }
.pm-hinweis-klein { font-size: 0.85rem !important; color: var(--wp--preset--color--accent-4); }

/* ---------- Buchungsformular (Produktseite) ---------- */
.pm-buchung {
	border: 0;
	margin: 1.25rem 0;
	padding: 1.25rem 1.25rem 0.5rem;
	background: var(--wp--preset--color--accent-6);
	border-radius: 20px;
}
.pm-buchung legend {
	font-family: Fraunces, Georgia, serif;
	font-size: 1.35rem;
	font-weight: 600;
	padding: 0;
	float: left;
	width: 100%;
	margin-bottom: 0.25rem;
}
.pm-buchung-hinweis { clear: both; font-size: 0.9rem; margin: 0 0 1rem; }
.pm-buchung-gruppe { margin-bottom: 1rem; }
.pm-buchung-label { display: block; font-weight: 800; margin-bottom: 0.4rem; }
.pm-buchung-label abbr { color: var(--wp--preset--color--accent-1); text-decoration: none; }
.pm-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pm-chip { position: relative; cursor: pointer; }
.pm-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pm-chip span {
	display: inline-block;
	padding: 0.45em 1em;
	border-radius: 999px;
	background: #fff;
	border: 2px solid rgba(43, 30, 47, 0.15);
	font-weight: 700;
	transition: all 0.15s ease;
}
.pm-chip input:focus-visible + span { outline: 3px solid var(--wp--preset--color--accent-3); outline-offset: 2px; }
.pm-chip input:checked + span {
	background: var(--wp--preset--color--accent-1);
	border-color: var(--wp--preset--color--accent-1);
	color: #fff;
}
.pm-chip input:checked + span::before { content: "✓ "; }
.pm-buchung textarea {
	width: 100%;
	border-radius: 12px;
	border: 2px solid rgba(43, 30, 47, 0.15);
	padding: 0.6rem 0.8rem;
	font: inherit;
	background: #fff;
}
.pm-gutschein-hinweis { margin-top: 1rem; font-weight: 700; }
