/*
Theme Name: Julia Sitz
Theme URI: https://juliasitz.com
Author: Julia Sitz
Description: Onepager für Julia Sitz – Sängerin und Vocal Coach. Termine kommen aus dem Plugin „Julia Sitz – Termine“.
Version: 1.3.0
Requires at least: 6.6
Tested up to: 7.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: julia
*/

/*
 * Aufbau: Alle Regeln hängen an eigenen Klassen (jl-…), nicht an internen
 * WordPress-Bezeichnungen. Dadurch bleibt das Layout auch nach Updates stabil.
 */

/* ---------- Farben & Schriften ---------- */
:root {
	--j-weiss: #FFFFFF; --j-butter: #F6EDBE; --j-flieder: #D9E0FA; --j-mauve: #ECDFEC;
	--j-pflaume: #6E2C6A; --j-pflaume-hell: #A9719F; --j-dunkel: #3A1F3A;
	--j-tinte: #2E1B2D; --j-grau: #565A6B; --j-grau2: #3D4152; --j-linie: #C9CDD8;
	--j-titel: Fraunces, Georgia, "Times New Roman", serif;
	--j-text: "DM Sans", "Helvetica Neue", Arial, sans-serif;
	--j-kopfhoehe: 92px;
}

/* ---------- Grundlagen ---------- */
html { scroll-behavior: smooth; }
.jl-innen { max-width: 1200px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.jl-innen.jl-schmal { max-width: 1040px; }
.jl-sektion { padding: 120px 0; }
.jl-termine h2 { margin: 0 0 44px; }
.jl-sektion > .jl-innen + .jl-innen { margin-top: 56px; }

.jl-flieder { background: var(--j-flieder); }
.jl-butter { background: var(--j-butter); }
.jl-mauve { background: var(--j-mauve); }
.jl-dunkel { background: var(--j-dunkel); color: var(--j-weiss); padding: 110px 0; }

/* Überschriften und Text */
.wp-site-blocks :is(h1, h2, h3) { font-family: var(--j-titel); font-style: italic; font-weight: 500; line-height: 1.04; letter-spacing: -.01em; }
.jl-gross { font-size: clamp(42px, 5vw, 72px) !important; }
.jl-riesig { font-size: clamp(56px, 6vw, 84px) !important; line-height: 1 !important; }

.jl-ober { margin: 0 0 18px; font-family: var(--j-text); font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--j-pflaume); }
.jl-dunkel .jl-ober { color: var(--j-butter); }
.jl-einstieg { font-size: 20px; line-height: 1.65; }
.jl-dunkel .jl-einstieg { font-size: 19px; }
.jl-dunkel p:not(.jl-ober):not(.jl-einstieg) { color: #E3D6E2; font-size: 17px; }
.jl-klein { font-size: 15px; line-height: 1.65; color: var(--j-grau2); }
.jl-sektion p a { text-underline-offset: 4px; font-weight: 500; }

/* Zwei Spalten: Bild und Text */
.wp-block-columns.jl-zwei { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: center; }
.wp-block-columns.jl-zwei.jl-bild-breit { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.wp-block-columns.jl-zwei.jl-bild-rechts { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.wp-block-columns.jl-zwei > .wp-block-column { flex-basis: auto !important; }
.wp-block-columns.jl-drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.wp-block-columns.jl-drei > .wp-block-column { flex-basis: auto !important; }

/* Fotos */
.jl-foto { margin: 0; }
.jl-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-radius: 4px; }
.jl-foto-quer img { aspect-ratio: 5 / 4; }

/* ---------- Knöpfe ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; }
.is-style-umriss > .wp-block-button__link { background: transparent !important; color: var(--j-tinte) !important; border-color: currentColor !important; }
.jl-dunkel .is-style-umriss > .wp-block-button__link { color: var(--j-weiss) !important; }
.is-style-hell > .wp-block-button__link { background: var(--j-butter) !important; color: var(--j-tinte) !important; border-color: var(--j-butter) !important; }
.is-style-dunkel > .wp-block-button__link { background: var(--j-tinte) !important; color: var(--j-weiss) !important; border-color: var(--j-tinte) !important; }
.wp-block-button__link:hover { opacity: .88; }

/* ---------- Kopfzeile ---------- */
/* Bleibt beim Scrollen oben stehen, damit jeder Bereich jederzeit erreichbar ist */
.wp-site-blocks > header:has(.jl-kopf) { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
.jl-kopf { background: var(--j-weiss); border-bottom: 1.5px solid var(--j-tinte); }
.jl-kopf .jl-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; min-height: var(--j-kopfhoehe); }
.jl-kopf .jl-logo { margin: 0; }
.jl-kopf .jl-logo img { height: 54px; width: auto; display: block; }
.jl-kopf .wp-block-navigation { font-family: var(--j-text); font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; gap: 8px 34px; }
.jl-kopf .wp-block-navigation a { text-decoration: none; }
.jl-kopf .wp-block-navigation a:hover { color: var(--j-pflaume); }
[id] { scroll-margin-top: calc(var(--j-kopfhoehe) + 8px); }

/* ---------- Instagram und Facebook ---------- */
.jl-kopf-rechts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.jl-kopf .wp-block-social-links { margin: 0; gap: 10px; }
.jl-kopf .wp-block-social-link { margin: 0; }
.jl-sozial-kopf .wp-block-social-link-anchor svg { width: 24px; height: 24px; }
.jl-sozial-kopf .wp-block-social-link-anchor:hover { color: var(--j-pflaume); transform: none; }
.jl-sozial-gross { margin: 0; gap: 12px; }
.jl-sozial-gross .wp-block-social-link { margin: 0; }
.jl-sozial-gross .wp-block-social-link-anchor { gap: 10px; }
.jl-sozial-gross .wp-block-social-link-label { font-size: 18px; font-weight: 500; }
.jl-sozial-gross .wp-block-social-link-anchor svg { width: 26px; height: 26px; }
.jl-sozial-gross .wp-block-social-link-anchor:hover { color: var(--j-pflaume); }

/* ---------- Einstieg ---------- */
.jl-start { background: var(--j-butter); }
.wp-block-columns.jl-start-spalten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; min-height: 780px; margin: 0 !important; }
.wp-block-columns.jl-start-spalten > .wp-block-column { flex-basis: auto !important; }
.jl-start-text { display: flex; flex-direction: column; justify-content: center; padding: 72px 48px 72px max(40px, calc((100vw - 1200px) / 2 + 40px)); }
.jl-logo-gross { margin: 0 0 44px; }
.jl-logo-gross img { width: clamp(250px, 27vw, 390px); max-width: 100%; height: auto; display: block; }
.jl-start-text .jl-einstieg { max-width: 460px; margin-bottom: 40px; }
.jl-start-foto { display: flex; }
.jl-start-bild { margin: 0; width: 100%; }
.jl-start-bild img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: 50% 25%; display: block; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Biografie zum Aufklappen ---------- */
.jl-mehr { margin-top: 10px; }
.jl-mehr > summary { cursor: pointer; font-family: var(--j-text); font-size: 15px; font-weight: 600; text-underline-offset: 5px; text-decoration: underline; }
.jl-mehr > summary::marker, .jl-mehr > summary::-webkit-details-marker { color: var(--j-pflaume); }
.jl-mehr[open] { margin-top: 18px; }
.jl-mehr p { font-size: 17px; line-height: 1.75; }

/* ---------- Coaching-Liste ---------- */
.jl-liste { margin: 32px 0 38px; border-top: 1.5px solid var(--j-tinte); }
.jl-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--j-linie); }
.jl-zeile p { margin: 0; font-size: 18px; font-weight: 400; }
.jl-zeile p strong { font-weight: 600; }
.jl-zeile .jl-zeile-info { font-size: 15px; color: var(--j-grau); text-align: right; }

/* ---------- Hören & Sehen ---------- */
.jl-sektion#musik .jl-einstieg { max-width: 620px; margin: 0 0 48px; }
.jl-sektion#musik .jl-innen > .jl-video-hinweis { margin-top: 26px; }
.jl-sektion#musik h2 { margin: 0 0 14px; }

/* ---------- Für eure Feier ---------- */
.jl-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; padding: 0; }
.jl-chips li { padding: 9px 16px; background: var(--j-weiss); border-radius: 999px; font-size: 14px; font-weight: 500; }
.jl-videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* Videos: laden erst beim Klick (Vorschaubild von der eigenen Website) */
.jl-video { margin: 0; }
.jl-video-start { display: block; position: relative; width: 100%; padding: 0; border: 0; cursor: pointer; background: var(--j-tinte); aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; }
.jl-video-start img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jl-video-start::after { content: ""; position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--j-pflaume) url("assets/images/play.svg") center / 22px no-repeat; }
.jl-video-start:hover::after { background-color: var(--j-tinte); }
.jl-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; border-radius: 4px; }
.jl-video-titel { margin: 12px 0 0; font-size: 17px; font-weight: 600; }
.jl-video-hinweis { margin: 18px 0 0; font-size: 14px; color: var(--j-grau); }
.jl-video-hinweis a { text-underline-offset: 3px; }
.jl-videos > .jl-video-hinweis, .jl-videos > .jl-videos-titel { grid-column: 1 / -1; }
.jl-videos > .jl-video-hinweis { margin: 6px 0 0; }
.jl-videos-titel { margin: 0 0 6px; font-size: 26px; }
.jl-videos-titel.jl-abstand { margin-top: 48px; }
.jl-mehr-videos { margin-top: 30px; }
.jl-mehr-videos .jl-videos { margin-top: 26px; }

/* ---------- Musik zum Anhören (Spotify) ---------- */
.jl-hoeren { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.jl-hoeren > .jl-video-hinweis { grid-column: 1 / -1; margin: 6px 0 0; }
.jl-spotify { margin: 0; }
.jl-spotify-start { display: flex; align-items: center; gap: 18px; width: 100%; min-height: 152px; padding: 20px 24px; text-align: left; cursor: pointer; background: var(--j-weiss); border: 1.5px solid var(--j-linie); border-radius: 12px; font-family: inherit; color: inherit; }
.jl-spotify-start:hover { border-color: var(--j-pflaume); }
.jl-spotify-play { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--j-pflaume) url("assets/images/play.svg") center / 20px no-repeat; }
.jl-spotify-start:hover .jl-spotify-play { background-color: var(--j-tinte); }
.jl-spotify-text strong { display: block; font-size: 19px; font-weight: 600; line-height: 1.3; }
.jl-spotify-text small { display: block; margin-top: 4px; font-size: 15px; color: var(--j-grau); }
.jl-spotify iframe { display: block; width: 100%; }

/* ---------- Kontakt ---------- */
.jl-kontakt-sektion { padding-bottom: 56px; }
.jl-kontakt-sektion h2 { margin: 0 0 14px; }
.jl-kontakt-sektion .jl-einstieg { max-width: 560px; margin: 0 0 56px; }
.jl-kontakt { margin: 0; font-size: 20px; line-height: 1.7; font-weight: 500; }
.jl-kontakt a { text-decoration: none; }
.jl-kontakt a:hover { text-decoration: underline; }

/* ---------- Fußzeile ---------- */
.jl-fuss { background: var(--j-flieder); border-top: 1.5px solid var(--j-tinte); }
/* Keine weißen Streifen zwischen den Bereichen und vor der Fußzeile */
.wp-site-blocks > footer { margin-top: 0; }
.jl-start, .jl-sektion { margin-block-start: 0; margin-block-end: 0; }
.jl-fuss-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 40px; padding-bottom: 40px; }
.jl-fuss-zeile > * { margin: 0 !important; }
.jl-logo-klein img { height: 42px; width: auto; display: block; }
.jl-fuss-text { font-size: 13px; color: var(--j-grau2); }

/* ---------- Einfache Unterseiten (Impressum, Datenschutz) ---------- */
.jl-seite { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.jl-seite h1 { font-size: clamp(38px, 6vw, 64px); margin-bottom: 32px; }
.jl-seite h2 { font-size: 28px; margin: 40px 0 10px; }
.jl-seite p { font-size: 17px; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 900px) {
	:root { --j-kopfhoehe: 76px; }
	.jl-innen { padding-left: 20px; padding-right: 20px; }
	.jl-sektion { padding: 80px 0; }
	.jl-dunkel { padding: 80px 0; }
	.wp-block-columns.jl-start-spalten, .wp-block-columns.jl-zwei, .wp-block-columns.jl-zwei.jl-bild-breit, .wp-block-columns.jl-zwei.jl-bild-rechts, .wp-block-columns.jl-drei, .jl-videos { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.wp-block-columns.jl-start-spalten { min-height: 0; }
	.jl-start-text { padding: 56px 20px; order: 2; }
	.jl-start-foto { order: 1; }
	.jl-start-bild img { min-height: 0; aspect-ratio: 1 / 1; object-position: 50% 22%; }
	.jl-zwei.jl-bild-rechts .jl-zuerst { order: -1; }
	.jl-hoeren { grid-template-columns: minmax(0, 1fr); }
	.jl-zeile { grid-template-columns: minmax(0, 1fr); }
	.jl-zeile .jl-zeile-info { text-align: left; }
	.jl-kontakt-sektion .jl-einstieg { margin-bottom: 40px; }
	.jl-kopf .jl-logo img { height: 42px; }
	.jl-kopf-rechts { gap: 8px 14px; flex-direction: row-reverse; }
	.jl-fuss-zeile { padding-bottom: 32px; }
}

/* ---------- Handy-Menü (aufgeklappt) ---------- */
.jl-kopf .wp-block-navigation__responsive-container.is-menu-open { background: var(--j-weiss) !important; color: var(--j-tinte) !important; padding: 0 !important; }
.jl-kopf .wp-block-navigation__responsive-container.is-menu-open::before {
	content: ""; position: absolute; top: 14px; left: 20px; width: 120px; height: 40px;
	background: url("assets/images/julia-sitz-logo.svg") left center / contain no-repeat;
}
.jl-kopf .is-menu-open .wp-block-navigation__responsive-close { max-width: none; }
.jl-kopf .is-menu-open .wp-block-navigation__responsive-container-close { top: 16px !important; right: 14px !important; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.jl-kopf .is-menu-open .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }
.jl-kopf .is-menu-open .wp-block-navigation__responsive-container-content { padding: 84px 20px 40px !important; align-items: stretch !important; }
.jl-kopf .is-menu-open .wp-block-navigation__container { width: 100%; gap: 0 !important; align-items: stretch !important; border-top: 1px solid var(--j-linie); }
.jl-kopf .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--j-linie); justify-content: flex-start; }
.jl-kopf .is-menu-open .wp-block-navigation-item__content {
	display: block; width: 100%; padding: 15px 0 !important; text-align: left;
	font-family: var(--j-titel); font-style: italic; font-weight: 500; font-size: 26px; line-height: 1.15;
	letter-spacing: -.01em; text-transform: none; color: var(--j-tinte);
}
.jl-kopf .is-menu-open .wp-block-navigation-item__content:hover { text-decoration: none; color: var(--j-pflaume); }

/* ---------- Geschützte Adresse und Nummer ---------- */
.jl-at::before { content: "@"; }
.jl-rueck { unicode-bidi: bidi-override; direction: rtl; }
a.jl-schutz { text-decoration: none; }
a.jl-schutz:hover { text-decoration: underline; }
