/*
Theme Name: Beauty Lounge
Description: One-Pager für die Beauty Lounge in Bad Hersfeld. Inhalte und Preise stehen in inc/content.php.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: beauty-lounge
*/

/* Schriften liegen lokal im Theme (SIL Open Font License) – keine Verbindung zu Google. */
@font-face {
	font-family: "Tenor Sans";
	src: url("assets/fonts/tenor-sans.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Gilda Display";
	src: url("assets/fonts/gilda-display.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

:root {
	--paper: #fff;
	--puder: #f6f1ea;      /* Blattfüllung aus dem Logo, etwas kräftiger */
	--sand: #e7dccd;
	--bronze: #9a8165;     /* Logo-Bronze: Flächen, Linien, große Schrift */
	--bronze-ink: #6c5943; /* dunkler für kleinen Text auf Weiß (AA) */
	--ink: #262625;        /* Linienfarbe des Logos */
	--mokka: #2b231d;
	--display: "Gilda Display", "Iowan Old Style", Georgia, serif;
	--body: "Tenor Sans", "Gill Sans", "Trebuchet MS", sans-serif;
	--gutter: clamp(20px, 4vw, 40px);
	--r-l: 28px;
	--r-m: 20px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--body);
	font-synthesis: none; /* beide Schriften haben nur einen Schnitt */
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.01em; max-width: 16em; }
h3 { font-size: 1.6rem; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 62ch; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 16px; }
.wrap { width: min(100%, 1240px); margin-inline: auto; padding-inline: var(--gutter); }

/* Knöpfe */
.btn {
	display: inline-flex; align-items: center; justify-content: center; text-align: center;
	min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--ink);
	background: var(--ink); color: #fff; text-decoration: none; font-size: 1rem; line-height: 1.2;
	transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { background: var(--bronze-ink); border-color: var(--bronze-ink); }
.btn:active { transform: scale(.98); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn--ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); color: #fff; backdrop-filter: blur(8px); }
.btn--line { background: none; color: var(--ink); border-color: rgba(38, 38, 37, .3); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--icon { gap: 10px; }
.btn--icon svg { width: 20px; height: 20px; flex: none; }
.btn--ghost:hover { background: rgba(255, 255, 255, .24); border-color: #fff; }
.link { color: var(--bronze-ink); }
.link:hover { color: var(--ink); }

/* Kopfzeile */
.top {
	position: fixed; z-index: 50; top: 10px; left: 10px; right: 10px;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 12px 14px 12px 24px; border-radius: var(--r-m); color: #fff;
	transition: background .35s, color .35s, box-shadow .35s;
}
.top.is-solid, .top.is-open {
	background: rgba(255, 255, 255, .88); color: var(--ink);
	backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(38, 38, 37, .08);
}
.top__brand { font-size: 1.05rem; letter-spacing: .32em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.top__nav { display: flex; align-items: center; gap: 28px; }
.top__nav a:not(.btn) { text-decoration: none; font-size: .98rem; }
.top__nav a:not(.btn):hover { text-decoration: underline; }
.top:not(.is-solid):not(.is-open) .btn { background: #fff; color: var(--ink); border-color: #fff; }
.top__toggle { display: none; }

@media (max-width: 899px) {
	.top { padding: 8px 8px 8px 20px; flex-wrap: wrap; }
	.top__brand { font-size: .95rem; letter-spacing: .26em; }
	.top__toggle {
		display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
		border: 1px solid currentColor; background: none; color: inherit; cursor: pointer;
	}
	.top__bars, .top__bars::before { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
	.top__bars { transform: translateY(-3px); }
	.top__bars::before { content: ""; transform: translateY(6px); }
	.top.is-open .top__bars { transform: rotate(45deg); }
	.top.is-open .top__bars::before { transform: rotate(-90deg); }
	.top__nav {
		flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 4px;
		display: none; padding: 12px 4px 16px;
	}
	.top.is-open .top__nav { display: flex; animation: menu .35s var(--ease); }
	.top__nav a:not(.btn) { font-family: var(--display); font-size: 1.9rem; line-height: 1.5; }
	.top__nav .btn { margin-top: 12px; }
}
@keyframes menu { from { opacity: 0; transform: translateY(-8px); } }

/* Hero: bleibt stehen, der Inhalt schiebt sich darüber */
.hero { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 10px; }
.hero__panel { position: relative; height: 100%; overflow: hidden; border-radius: var(--r-l); background: var(--mokka); color: #fff; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: settle 2.2s var(--ease) both; }
.hero__panel::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(28, 21, 16, .86) 0%, rgba(28, 21, 16, .45) 45%, rgba(28, 21, 16, .2) 100%);
}
.hero__content {
	position: absolute; z-index: 1; inset: auto 0 0 0;
	padding: clamp(24px, 5vw, 64px); padding-bottom: clamp(24px, 4vw, 48px);
	display: grid; justify-items: center; text-align: center;
}
.hero__former { margin: 0 0 20px; padding: 8px 18px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 1rem; line-height: 1.3; }
.hero__title { font-size: clamp(2.9rem, 8.4vw, 7rem); line-height: .98; letter-spacing: -.02em; }
.hero__lead { margin: 22px 0 28px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 40ch; color: rgba(255, 255, 255, .88); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; max-width: none; }
.hero__facts {
	display: grid; grid-template-columns: repeat(3, auto); gap: 14px clamp(28px, 6vw, 88px);
	margin: clamp(28px, 5vh, 56px) 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .22);
}
.hero__facts dt { font-family: var(--display); font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
.hero__facts dd { margin: 2px 0 0; font-size: .92rem; color: rgba(255, 255, 255, .72); }
@media (max-width: 699px) {
	.hero__facts { display: none; }
	.hero__actions .btn { width: 100%; }
}
@media (max-height: 620px) { .hero__facts { display: none; } }

/* Der eine inszenierte Moment: Text steigt beim Laden auf */
.rise { animation: rise 1s var(--ease) both; }
.hero__title.rise { animation-delay: .12s; }
.hero__lead.rise { animation-delay: .26s; }
.hero__actions.rise { animation-delay: .38s; }
.hero__facts.rise { animation-delay: .52s; }
@keyframes rise { from { opacity: 0; transform: translateY(36px); } }
@keyframes settle { from { transform: scale(1.1); } }

/* Hero tritt zurück, während der Inhalt darüber gleitet (nur wo unterstützt) */
@supports (animation-timeline: scroll()) {
	.hero__panel { animation: recede linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
	@keyframes recede { to { transform: scale(.94); filter: brightness(.55); } }
}

.sheet { position: relative; z-index: 2; background: var(--paper); border-radius: var(--r-l) var(--r-l) 0 0; }
.sheet__mark { position: absolute; top: 0; height: 1px; width: 1px; }

/* Hinweis auf den neuen Namen, direkt nach dem Hero */
.renamed { margin-top: clamp(20px, 3vw, 40px); padding: clamp(28px, 5vw, 56px); border-radius: var(--r-l); background: var(--puder); text-align: center; }
.renamed p { margin: 0 auto; }
.renamed__big { font-family: var(--display); font-size: clamp(1.7rem, 4.2vw, 3.2rem); line-height: 1.15; max-width: 22em; text-wrap: balance; }
.renamed__big s { color: var(--bronze); text-decoration-thickness: 2px; }
.renamed__big + p { margin-top: 14px; color: #55514c; }

/* Platzhalter für fehlende Fotos */
.ph { display: grid; place-content: center; justify-items: center; gap: 12px; width: 100%; height: 100%; background: var(--puder); color: var(--bronze-ink); font-size: .92rem; }
.ph img { width: 64px; opacity: .45; }
.person .ph { background: var(--sand); }

/* Abschnitte */
.block { padding-block: clamp(72px, 10vw, 136px) 0; }
.block--tint { margin-top: clamp(72px, 10vw, 136px); padding-block: clamp(64px, 8vw, 112px); background: var(--puder); border-radius: var(--r-l); margin-inline: 10px; }
.block--last { padding-bottom: clamp(48px, 6vw, 80px); }
.block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }

/* Slider */
.slider__nav { display: flex; gap: 10px; flex: none; }
.round {
	display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
	border: 1px solid rgba(38, 38, 37, .25); background: none; color: var(--ink); cursor: pointer;
	transition: background .25s, color .25s, border-color .25s;
}
.round:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.slider {
	--edge: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
	display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); padding: 4px var(--edge) 8px;
	scrollbar-width: none;
}
.slider::-webkit-scrollbar { display: none; }
.card { position: relative; flex: 0 0 min(78vw, 360px); scroll-snap-align: start; } /* relative: hält .sr-Texte im Slider, sonst scrollt die Seite seitlich */
.card__media { position: relative; overflow: hidden; border-radius: var(--r-m); aspect-ratio: 4 / 5; background: var(--puder); margin-bottom: 20px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__price { position: absolute; left: 14px; top: 14px; padding: 5px 14px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: .92rem; backdrop-filter: blur(8px); }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 12px; color: #55514c; font-size: 1rem; line-height: 1.55; }

/* Willkommen */
.duo { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.duo__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-l); }
.duo__logo { width: 104px; margin-bottom: 28px; }
.duo__text h2 { margin-bottom: 28px; }
.duo__text .btn { margin-top: 12px; }
@media (max-width: 799px) {
	.duo { grid-template-columns: 1fr; }
	.duo__media { order: 2; }
}

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.person { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(20px, 3vw, 36px); align-items: start; background: var(--paper); border-radius: var(--r-m); padding: clamp(16px, 2vw, 24px); }
.person > div:last-child { padding: clamp(4px, 1vw, 16px) clamp(4px, 1vw, 12px) 8px 0; }
.person__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; }
.person__media img:not(.ph img) { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 479px) {
	.person { grid-template-columns: 1fr; }
	.person > div:last-child { padding: 0 8px 8px; }
}
.person h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.person__role { margin: 6px 0 24px; color: var(--bronze-ink); }
.person__list li { padding: 11px 0; border-top: 1px solid rgba(38, 38, 37, .12); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: 16px; }
.gallery li:not([hidden]) { animation: panel .45s var(--ease); }
.gallery figure { margin: 0; }
.gallery figure > img, .gallery .ph { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--r-m); }
.gallery figcaption { margin-top: 10px; font-size: .92rem; color: #66615b; }
.gallery__more { margin-top: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 28px; border-top: 1px solid rgba(38, 38, 37, .12); }
.gallery__more p { margin: 0; }
.gallery__more > p:first-child { font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.25; max-width: 22em; }
.gallery__links, .visit__social, .foot__social { display: flex; flex-wrap: wrap; gap: 10px; }
.foot__social { margin-top: 32px; max-width: none; }

/* Preise */
.tabs { display: none; }
.js .tabs {
	display: flex; gap: 4px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
	padding: 5px; margin-bottom: 20px; border-radius: 999px; background: var(--puder);
}
.tabs::-webkit-scrollbar { display: none; }
.tab, .chip {
	flex: none; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: none;
	font: inherit; font-size: .98rem; color: var(--ink); cursor: pointer; transition: background .25s, color .25s;
}
.tab[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.panel { max-width: 860px; }
.panel:not([hidden]) { animation: panel .45s var(--ease); }
@keyframes panel { from { opacity: 0; transform: translateY(12px); } }
.panel__title { margin: 40px 0 8px; }
.js .panel__title { display: none; }
.prices li {
	display: grid; grid-template-columns: 1fr auto; column-gap: 24px; align-items: baseline;
	padding: 18px 0; border-bottom: 1px solid rgba(38, 38, 37, .12);
}
.prices__name { font-size: 1.12rem; }
.prices__price { font-family: var(--display); font-size: 1.45rem; white-space: nowrap; }
.prices__note { grid-column: 1; margin-top: 4px; color: #66615b; font-size: .95rem; line-height: 1.5; max-width: 58ch; }
.fine { margin-top: 24px; color: #66615b; font-size: .92rem; }

/* Gutscheine und Schulungen */
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.extra { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 5vw, 56px); border-radius: var(--r-l); background: var(--puder); }
.extra h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 18px; }
.extra p { margin-bottom: 28px; color: #55514c; }
.extra .btn { margin-top: auto; }
.extra--dark { background: var(--mokka); color: #fff; }
.extra--dark p { color: rgba(255, 255, 255, .8); }

/* Laufband mit dem Dreiklang aus dem Logo */
.band { margin-top: clamp(72px, 10vw, 136px); overflow: hidden; padding-block: 8px; }
.band__track { display: flex; align-items: center; gap: clamp(28px, 4vw, 56px); width: max-content; animation: band 48s linear infinite; }
.band span { font-family: var(--display); font-size: clamp(3rem, 9vw, 7.5rem); line-height: 1.1; color: var(--sand); }
.band i { flex: none; width: clamp(18px, 2.4vw, 30px); aspect-ratio: 1; background: var(--bronze); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
@keyframes band { to { transform: translateX(-50%); } }

/* Fragen */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.note { margin-top: 36px; padding: 28px; border-radius: var(--r-m); background: var(--puder); }
.note h3 { margin-bottom: 8px; }
.note .btn { margin-top: 8px; }
details { border-bottom: 1px solid rgba(38, 38, 37, .14); }
details:first-child { border-top: 1px solid rgba(38, 38, 37, .14); }
summary {
	display: flex; justify-content: space-between; align-items: center; gap: 24px;
	padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--display); font-size: 1.35rem; line-height: 1.3;
}
summary::-webkit-details-marker { display: none; }
summary::after {
	content: ""; flex: none; width: 14px; height: 14px;
	background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
	transition: transform .3s var(--ease);
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 40px 24px 0; margin: 0; color: #55514c; animation: panel .4s var(--ease); }
@media (max-width: 799px) { .faq { grid-template-columns: 1fr; } }

/* Kontakt */
.visit {
	display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 80px);
	padding: clamp(28px, 6vw, 80px); border-radius: var(--r-l); background: var(--mokka); color: #fff;
}
.visit__lead { margin: 24px 0 32px; font-size: 1.15rem; color: rgba(255, 255, 255, .8); max-width: 34ch; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.visit__facts { margin: 0; display: grid; align-content: start; }
.visit__facts div { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.visit__facts div:first-child { border-top: 0; padding-top: 0; }
.visit__facts dt { font-size: .92rem; color: rgba(255, 255, 255, .62); margin-bottom: 4px; }
.visit__facts dd { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
@media (max-width: 799px) {
	.visit { grid-template-columns: 1fr; }
	.visit__actions .btn { width: 100%; }
}

/* Fußzeile */
.foot { position: relative; z-index: 2; background: var(--puder); padding-block: clamp(48px, 6vw, 80px) 32px; font-size: .98rem; }
.foot__grid { display: grid; grid-template-columns: 200px repeat(3, 1fr); gap: 32px clamp(24px, 4vw, 64px); align-items: start; }
.foot__logo { width: 180px; mix-blend-mode: multiply; }
.foot__col { margin: 0; font-style: normal; line-height: 1.9; overflow-wrap: anywhere; }
.foot__note { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(38, 38, 37, .12); color: #66615b; font-size: .9rem; max-width: none; }
@media (max-width: 799px) {
	.foot__grid { grid-template-columns: 1fr; }
	.foot { padding-bottom: 96px; }
}

/* Schnellkontakt am Handy, erscheint nach dem Hero */
.quick { display: none; }
@media (max-width: 699px) {
	.quick {
		position: fixed; z-index: 40; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
		padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px);
		box-shadow: 0 0 0 1px rgba(38, 38, 37, .1), 0 12px 32px rgba(43, 35, 29, .18);
		transform: translateY(140%); transition: transform .45s var(--ease);
	}
	.is-past-hero .quick { transform: none; }
	.quick a { display: grid; place-items: center; min-height: 46px; border-radius: 999px; text-decoration: none; }
	.quick a:last-child { background: var(--ink); color: #fff; }
}

/* Einblenden beim Scrollen (nur mit JavaScript, siehe main.js) */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Unterseiten: Impressum, Datenschutz */
.page { padding-block: 150px 96px; }
.prose { max-width: 72ch; }
.prose h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 40px; }
.prose h2 { font-size: 1.7rem; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.3rem; margin: 1.6em 0 .4em; }
.prose p, .prose li { max-width: none; overflow-wrap: anywhere; }
.prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.prose a { color: var(--bronze-ink); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}
