/*
Theme Name: Philipp G. Larisch
Theme URI: https://la-risch.com
Author: Philipp G. Larisch
Description: Schlankes Block-Theme für die Website von Philipp G. Larisch – Persönliches Venue Sourcing. Farben, Schriften und Abschnitts-Stile nach dem freigegebenen Entwurf.
Version: 1.2.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: Proprietär – nur für la-risch.com
Text Domain: larisch
*/

/* ---------- Grundlagen ---------- */
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }
:where(a, button, summary, input):focus-visible {
	outline: 3px solid var(--wp--preset--color--gold);
	outline-offset: 3px;
}
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-group[aria-label="Kennzahlen"] { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 900px) { .wp-block-group[aria-label="Kennzahlen"] { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 420px) { .wp-block-group[aria-label="Kennzahlen"] { grid-template-columns: 1fr; } }
main.wp-block-group { margin-block-start: 0; }

/* ---------- Kopfbereich ---------- */
.pgl-header {
	border-bottom: 1px solid var(--wp--preset--color--eukalyptus);
}
.pgl-logo img { width: 210px; height: auto; display: block; }
.pgl-header .wp-block-navigation a:where(:not(.wp-element-button)) { text-decoration: none; }
.pgl-header .wp-block-navigation .current-menu-item > a,
.pgl-header .wp-block-navigation a[aria-current="page"] {
	font-weight: 700;
	border-bottom: 2px solid var(--wp--preset--color--gold);
	padding-bottom: 2px;
}
.pgl-header .wp-block-button__link { padding: 12px 22px; font-size: 14px; }
@media (max-width: 600px) {
	.pgl-logo img { width: 160px; }
	.pgl-header .wp-block-buttons { display: none; }
}

/* ---------- Fußbereich ---------- */
.pgl-footer a { color: var(--wp--preset--color--elfenbein); }
.pgl-footer a:hover, .pgl-footer a:focus { color: var(--wp--preset--color--gold); }
.pgl-footer .pgl-logo img { width: 230px; }

/* ---------- Textstile ---------- */
/* Kleine Zeile über Überschriften („— FÜR WEN ICH ARBEITE“) */
.is-style-eyebrow {
	font-size: 12px !important;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--wp--preset--color--blaugruen);
	line-height: 1.5;
}
.has-petrol-background-color .is-style-eyebrow { color: var(--wp--preset--color--gold); }
.has-eukalyptus-background-color .is-style-eyebrow { color: #3F5C59; }

/* Kleine Hinweis-Zeile in Blaugrün */
.is-style-hinweis { font-size: 15px; color: var(--wp--preset--color--blaugruen); }

/* Große Zahl (01, 02, 03) */
.is-style-nummer {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 32px !important;
	line-height: 1.1;
	color: var(--wp--preset--color--koralle);
}
/* Schritt-Label („SCHRITT 1“) */
.is-style-schritt {
	font-size: 13px !important;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--wp--preset--color--koralle);
}
/* Link mit Pfeil, fett */
.is-style-pfeil-link { font-weight: 600; font-size: 16px; }

/* ---------- Abschnitts-Stile (Gruppen) ---------- */
/* Kennzahl mit goldener Linie links */
.is-style-kennzahl {
	border-left: 1px solid var(--wp--preset--color--gold);
	padding-left: 20px;
}
.is-style-kennzahl > :first-child {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(26px, 2.9vw, 40px);
	line-height: 1.1;
	color: var(--wp--preset--color--gold);
}
.is-style-kennzahl > :last-child { font-size: 15px; max-width: 230px; }
.is-style-kennzahl > * + * { margin-block-start: 4px !important; }

/* Frage-Box (Eukalyptus, Serifenschrift) */
.is-style-frage {
	background: var(--wp--preset--color--eukalyptus);
	padding: 14px 20px;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 19px;
	color: var(--wp--preset--color--petrol);
}

/* Karte auf farbigem Grund */
.is-style-karte {
	background: var(--wp--preset--color--elfenbein);
	padding: 32px;
	height: 100%;
}
.is-style-karte > * + * { margin-block-start: 12px; }

/* Schritt mit Linie oben */
.is-style-schritt-box {
	border-top: 2px solid var(--wp--preset--color--petrol);
	padding-top: 20px;
}
.is-style-schritt-box > * + * { margin-block-start: 10px; }

/* Linie links (Vergütungs-Abschnitt) */
.is-style-linie-links {
	border-left: 1px solid var(--wp--preset--color--gold);
	padding-left: 32px;
}
@media (max-width: 781px) {
	.is-style-linie-links { border-left: 0; padding-left: 0; border-top: 1px solid var(--wp--preset--color--gold); padding-top: 24px; }
}

/* Linie oben in Gold */
.is-style-linie-oben { border-top: 1px solid var(--wp--preset--color--gold); padding-top: 20px; }

/* Kundenstimme */
.is-style-kundenstimme {
	background: var(--wp--preset--color--sand);
	padding: 40px;
}
.is-style-kundenstimme blockquote, .is-style-kundenstimme .wp-block-quote { margin: 0; }
.is-style-kundenstimme .wp-block-quote::before {
	content: "„";
	display: block;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 64px;
	line-height: 0.5;
	color: var(--wp--preset--color--gold);
	margin-bottom: 20px;
}
.is-style-kundenstimme .wp-block-quote cite {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 14px;
	font-style: normal;
	color: var(--wp--preset--color--blaugruen);
	display: block;
	margin-top: 20px;
}

/* Merkmale als kleine Etiketten */
.is-style-etiketten { gap: 8px !important; }
.is-style-etiketten > p, .is-style-etiketten > .wp-block-paragraph {
	background: var(--wp--preset--color--eukalyptus);
	padding: 6px 14px;
	font-size: 14px;
	color: var(--wp--preset--color--petrol);
	margin: 0 !important;
}

/* ---------- Liste mit Häkchen ---------- */
.is-style-haken { list-style: none; padding-left: 0; }
.is-style-haken li {
	position: relative;
	padding-left: 36px;
	margin-bottom: 14px;
}
.is-style-haken li::before {
	content: "";
	position: absolute; left: 0; top: 3px;
	width: 22px; height: 22px;
	background: var(--wp--preset--color--koralle);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M5 12l5 5L20 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 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/contain no-repeat;
}
.is-style-haken li strong { color: var(--wp--preset--color--petrol); }

/* ---------- Bilder ---------- */
/* Foto mit goldener Ecke unten links */
.is-style-goldecke { position: relative; overflow: visible; }
.is-style-goldecke::after {
	content: "";
	position: absolute; left: -16px; bottom: -16px;
	width: 120px; height: 120px;
	border-left: 2px solid var(--wp--preset--color--gold);
	border-bottom: 2px solid var(--wp--preset--color--gold);
	pointer-events: none;
}
.wp-block-image.pgl-foto img { width: 100%; object-fit: cover; display: block; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--petrol);
	border: 2px solid var(--wp--preset--color--petrol);
	padding: 14px 28px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus {
	background: var(--wp--preset--color--petrol);
	color: var(--wp--preset--color--elfenbein);
}

/* ---------- Häufige Fragen (Aufklapp-Baustein) ---------- */
.wp-block-details summary {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 20px;
	color: var(--wp--preset--color--petrol);
	cursor: pointer;
}
.wp-block-details > :not(summary) { margin-top: 12px; }

/* ---------- Spalten: auf dem Handy untereinander ---------- */
@media (max-width: 781px) {
	.wp-block-columns { gap: 32px !important; }
	.is-style-goldecke::after { left: -10px; bottom: -10px; width: 80px; height: 80px; }
}

/* ---------- Weltkarte ---------- */
.pgl-karte { position: relative; }
.pgl-karte img { width: 100%; height: auto; display: block; }
.pgl-pin {
	position: absolute; transform: translate(-50%, -50%);
	width: 36px; height: 36px; border: 0; padding: 0; background: transparent; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.pgl-pin::before {
	content: ""; width: 12px; height: 12px; border-radius: 50%;
	background: var(--wp--preset--color--gold); box-shadow: 0 0 0 4px rgba(196,170,120,.3);
}
.pgl-pin.pgl-pin-gross::before { width: 16px; height: 16px; background: var(--wp--preset--color--elfenbein); box-shadow: 0 0 0 5px rgba(196,170,120,.45); }
.pgl-pin.is-aktiv::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; border: 2px solid var(--wp--preset--color--elfenbein); }
.pgl-pin.pgl-pin-gross.is-aktiv::after { border-color: var(--wp--preset--color--gold); }
.pgl-pin-label { position: absolute; font-size: 13px; letter-spacing: 1px; color: var(--wp--preset--color--elfenbein); white-space: nowrap; pointer-events: none; transform: translate(calc(-100% - 18px), -50%); }
.pgl-pin-label.rechts { transform: translate(18px, -50%); }
.pgl-pin-label.oben { transform: translate(-50%, -190%); }
.pgl-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pgl-chip {
	min-height: 44px; padding: 0 18px; border: 1px solid #648481; background: transparent;
	color: var(--wp--preset--color--elfenbein); font: inherit; font-size: 14px; cursor: pointer;
}
.pgl-chip.is-aktiv { background: var(--wp--preset--color--gold); border-color: var(--wp--preset--color--gold); color: var(--wp--preset--color--petrol); font-weight: 700; }
html:not(.pgl-karte-js) .pgl-chips { display: none; }
.pgl-station {
	background: var(--wp--preset--color--elfenbein); color: var(--wp--preset--color--graphit);
	padding: 32px; border-top: 3px solid var(--wp--preset--color--gold); height: 100%;
}
html:not(.pgl-karte-js) .pgl-station + .pgl-station { margin-top: 16px; height: auto; }
.pgl-station > * + * { margin-block-start: 16px; }
.pgl-station h3 { font-size: 28px; }
.pgl-station ul { list-style: none; padding: 14px 0 0; border-top: 1px solid var(--wp--preset--color--eukalyptus); }
.pgl-station li { font-family: var(--wp--preset--font-family--serif); font-size: 18px; color: var(--wp--preset--color--petrol); margin-bottom: 8px; }
.pgl-rolle { background: var(--wp--preset--color--sand); padding: 18px; }
.pgl-rolle > * + * { margin-block-start: 8px; }
.pgl-rolle .pgl-rolle-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--wp--preset--color--blaugruen); font-weight: 700; }
.pgl-rolle .pgl-rolle-titel { font-size: 16px; color: var(--wp--preset--color--petrol); font-weight: 700; line-height: 1.4; }
.pgl-rolle .pgl-rolle-text { font-size: 15px; line-height: 1.5; }
.pgl-etiketten-gold > p { border: 1px solid var(--wp--preset--color--gold); color: var(--wp--preset--color--gold); padding: 6px 16px; font-size: 14px; margin: 0 !important; }
@media (max-width: 600px) { .pgl-pin-label { display: none; } }

/* ---------- Video-Vorschau ---------- */
.pgl-video { position: relative; aspect-ratio: 16 / 9; background: var(--wp--preset--color--petrol); overflow: hidden; }
.pgl-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.pgl-video .pgl-play {
	position: absolute; left: 28px; bottom: 28px; width: 84px; height: 84px; border-radius: 50%;
	background: var(--wp--preset--color--elfenbein); display: flex; align-items: center; justify-content: center;
}
.pgl-video .pgl-play:hover, .pgl-video .pgl-play:focus { background: var(--wp--preset--color--gold); }
