/* =========================================================
   HUNKE-MUSIC – ergänzende Stile (Rest steht in theme.json)
   ========================================================= */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* Anker unter dem fixierten Header nicht verstecken */
:where([id]) { scroll-margin-top: 110px; }

/* ---------- Header ---------- */
.hm-header {
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.hm-header .wp-block-site-logo img { display: block; }
.hm-header .wp-block-navigation__responsive-container-open svg,
.hm-header .wp-block-navigation__responsive-container-close svg {
	width: 44px;
	height: 44px;
}
/* Overlay-Menü */
.hm-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: clamp(2rem, 8vw, 5rem);
}
.hm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start;
	gap: 1.4rem;
	padding-top: 4rem;
}
.hm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	font-size: clamp(1.6rem, 5vw, 2.4rem);
	font-weight: 300;
}
.hm-header .wp-block-navigation-item__content { text-decoration: none; }
.hm-header .wp-block-navigation-item__content:hover { text-decoration: underline; text-underline-offset: 0.3em; }

/* ---------- Trenner ---------- */
.wp-block-separator.is-style-balken {
	width: min(100%, 240px);
	max-width: 240px;
	height: 4px;
	border: 0;
	background-color: currentColor;
	opacity: 1;
	margin-left: 0;
}
.wp-block-separator.is-style-linie {
	height: 2px;
	border: 0;
	background-color: currentColor;
	opacity: 1;
}
.wp-block-separator.is-style-balken.aligncenter,
.wp-block-separator.is-style-linie.aligncenter { margin-left: auto; margin-right: auto; }

/* ---------- Schwarzweiß → Farbe ---------- */
.is-style-sw-farbe img,
.wp-block-cover.is-style-sw-farbe:not(.has-parallax) .wp-block-cover__image-background,
.wp-block-cover.is-style-sw-farbe:not(.has-parallax) .wp-block-cover__video-background {
	filter: grayscale(1);
	transition: filter 0.6s ease;
}
.is-style-sw-farbe:hover img,
.is-style-sw-farbe:focus-within img,
.is-style-sw-farbe img.is-farbig,
.wp-block-cover.is-style-sw-farbe:not(.has-parallax):hover .wp-block-cover__image-background,
.wp-block-cover.is-style-sw-farbe:not(.has-parallax):focus-within .wp-block-cover__image-background,
.wp-block-cover.is-style-sw-farbe.is-farbig .wp-block-cover__image-background {
	filter: grayscale(0);
}
@media (prefers-reduced-motion: reduce) {
	.is-style-sw-farbe img,
	.wp-block-cover.is-style-sw-farbe .wp-block-cover__image-background { transition: none; }
}

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: background-color 0.25s ease, color 0.25s ease; }
.wp-block-button.is-style-hell .wp-block-button__link {
	color: #fff;
	border-color: #fff;
}
.wp-block-button.is-style-hell .wp-block-button__link:hover {
	background-color: #fff;
	color: #1a1a1a;
}

/* ---------- Parallax-Bänder ---------- */
.hm-band .wp-block-cover__inner-container { max-width: 1100px; }
.hm-band h2 { letter-spacing: 0.16em; }

/* ---------- Leistungs-Einträge ---------- */
.hm-leistung + .hm-leistung { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Referenzliste ---------- */
.hm-referenzen p { margin: 0; }
.hm-referenzen strong { font-weight: 500; letter-spacing: 0.08em; }

/* ---------- Kontakt ---------- */
.hm-kontakt a { text-decoration: none; }
.hm-kontakt a:hover { text-decoration: underline; }
.hm-kontakt .hm-label {
	font-size: 0.85rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	margin-bottom: 0.2rem;
}

/* Formular-Plugins (Contact Form 7, WPForms, Fluent Forms) an das Design anpassen */
.hm-kontakt input[type="text"],
.hm-kontakt input[type="email"],
.hm-kontakt input[type="tel"],
.hm-kontakt textarea,
.hm-kontakt select {
	width: 100%;
	box-sizing: border-box;
	background: #e6e6e6;
	border: 2px solid transparent;
	border-radius: 0;
	padding: 1rem 1.2rem;
	font: inherit;
	letter-spacing: 0.03em;
	color: #1a1a1a;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.hm-kontakt input:focus,
.hm-kontakt textarea:focus { outline: none; border-color: #1a1a1a; }
.hm-kontakt input[type="submit"],
.hm-kontakt button[type="submit"] {
	background: transparent;
	border: 2px solid #1a1a1a;
	border-radius: 12px;
	padding: 0.9em 2.4em;
	font: inherit;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
	color: #1a1a1a;
}
.hm-kontakt input[type="submit"]:hover,
.hm-kontakt button[type="submit"]:hover { background: #1a1a1a; color: #fff; }

/* ---------- Footer ---------- */
.hm-footer a { text-decoration: none; }
.hm-footer .wp-block-separator { opacity: 0.35; }
.hm-footer a:hover { text-decoration: underline; }
.hm-footer .wp-block-navigation { font-size: 0.95rem; letter-spacing: 0.18em; text-transform: uppercase; }

/* ---------- Scroll-Schaltfläche ---------- */
.hm-scroll {
	position: fixed;
	left: 50%;
	margin-left: -26px;
	bottom: 1.25rem;
	z-index: 50;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(242, 242, 242, 0.92);
	color: #2b2b2b;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.hm-scroll.is-sichtbar { opacity: 1; transform: none; }
.hm-scroll svg { transition: transform 0.3s ease; }
.hm-scroll.is-hoch svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .hm-scroll, .hm-scroll svg { transition: none; } }
.hm-scroll:focus-visible { outline: 2px solid #1a1a1a; outline-offset: 3px; }

/* Bildbeschriftungen lesbar halten */
.wp-element-caption { font-size: 0.85rem; letter-spacing: 0.06em; }

/* ---------- Header-Verhalten ---------- */
.wp-site-blocks > .wp-block-template-part:has(.hm-header) {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}
/* Startseite: Header liegt transparent über dem Titelbild */
body.hm-hat-hero .wp-site-blocks > .wp-block-template-part:has(.hm-header) { height: 0; }
body.hm-hat-hero .hm-header { transition: background-color 0.4s ease, backdrop-filter 0.4s ease; }
body.hm-hat-hero:not(.hm-gescrollt) .hm-header {
	background-color: transparent !important;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}
body.hm-hat-hero .hm-header .hm-logo { transition: opacity 0.4s ease; }
body.hm-hat-hero:not(.hm-gescrollt) .hm-header .hm-logo { opacity: 0; pointer-events: none; }
/* WordPress setzt beim ersten Block nach dem Header sonst einen Abstand */
body.hm-hat-hero .wp-site-blocks > main { margin-block-start: 0; }

/* ---------- Hero ---------- */
.hm-hero .wp-block-site-logo img { margin-inline: auto; }
.hm-wortmarke strong { font-weight: 500; }
.hm-wortmarke { font-weight: 300; }
h1, h2, h3 { hyphens: manual; overflow-wrap: break-word; }

/* ---------- Silben-Trennstriche ---------- */
.is-style-silben { hyphens: none; }
.screen-reader-text {
	border: 0; clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important;
	width: 1px; word-wrap: normal !important;
}

/* WordPress-Grundstil begrenzt Trenner sonst auf 100px */
.wp-block-separator.is-style-linie { width: 100%; }
.wp-block-separator.is-style-balken { width: min(100%, 240px); }

/* Parallax-Bänder: Schwarzweiß ohne filter (sonst bricht der Parallax-Effekt) */
.wp-block-cover.is-style-sw-farbe.has-parallax .wp-block-cover__image-background {
	background-color: #808080;
	background-blend-mode: luminosity;
}
.wp-block-cover.is-style-sw-farbe.has-parallax:hover .wp-block-cover__image-background,
.wp-block-cover.is-style-sw-farbe.has-parallax.is-farbig .wp-block-cover__image-background {
	background-blend-mode: normal;
}

/* =========================================================
   Version 2.1 – Bernstein-Akzent, Karten, Split, Hörproben
   ========================================================= */

/* Wellenform-Trenner (abgeleitet aus dem Logo) */
.wp-block-separator.is-style-welle {
	width: min(100%, 230px);
	max-width: 230px;
	height: 26px;
	border: 0;
	opacity: 1;
	margin-left: 0;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 26'%3E%3Cg fill='%23000'%3E%3Crect x='1' y='9' width='3' height='8' rx='1.5'/%3E%3Crect x='9' y='4' width='3' height='18' rx='1.5'/%3E%3Crect x='17' y='10' width='3' height='6' rx='1.5'/%3E%3Crect x='25' y='0' width='3' height='26' rx='1.5'/%3E%3Crect x='33' y='6' width='3' height='14' rx='1.5'/%3E%3Crect x='41' y='2' width='3' height='22' rx='1.5'/%3E%3Crect x='49' y='9' width='3' height='8' rx='1.5'/%3E%3Crect x='57' y='5' width='3' height='16' rx='1.5'/%3E%3C/g%3E%3C/svg%3E") left center / 64px 26px repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 26'%3E%3Cg fill='%23000'%3E%3Crect x='1' y='9' width='3' height='8' rx='1.5'/%3E%3Crect x='9' y='4' width='3' height='18' rx='1.5'/%3E%3Crect x='17' y='10' width='3' height='6' rx='1.5'/%3E%3Crect x='25' y='0' width='3' height='26' rx='1.5'/%3E%3Crect x='33' y='6' width='3' height='14' rx='1.5'/%3E%3Crect x='41' y='2' width='3' height='22' rx='1.5'/%3E%3Crect x='49' y='9' width='3' height='8' rx='1.5'/%3E%3Crect x='57' y='5' width='3' height='16' rx='1.5'/%3E%3C/g%3E%3C/svg%3E") left center / 64px 26px repeat-x;
}
.wp-block-separator.is-style-welle.aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-separator.is-style-balken { height: 3px; width: min(100%, 72px); max-width: 72px; }

/* Kicker-Zeile unter Abschnittsüberschriften */
.hm-kicker {
	font-size: 0.85rem;
	font-weight: 400;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}

/* Leistungskarten */
.hm-karte { display: flex; flex-direction: column; }
.hm-karte > * { margin-block: 0; }
.hm-karte > * + * { margin-top: 1rem; }
.hm-karte .wp-block-image { margin-bottom: 0.5rem; overflow: hidden; }
.hm-karte .wp-block-image img { width: 100%; transition: filter 0.6s ease, transform 0.8s ease; }
.hm-karte:hover .wp-block-image img { transform: scale(1.03); }
.hm-karte .wp-block-buttons { margin-top: auto; padding-top: 0.5rem; }
@media (prefers-reduced-motion: reduce) { .hm-karte:hover .wp-block-image img { transform: none; } }

/* Studio./Live.-Kacheln */
.hm-split-reihe { margin-block: 0 !important; }
.hm-split-reihe > .wp-block-column { margin: 0 !important; }
.hm-split .wp-block-cover__inner-container { max-width: 34rem; }
.hm-split h2 { letter-spacing: 0.12em; }
.hm-mehr a { text-decoration: none; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.9rem; font-weight: 400; }
.hm-mehr a:hover { text-decoration: underline; color: #fff; }

/* Hörproben */
.hm-projekt > * { margin-block: 0; }
.hm-projekt > * + * { margin-top: 0.75rem; }
.hm-projekt .wp-block-image { overflow: hidden; }
.hm-projekt .wp-block-image img { width: 100%; }
.hm-tags { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 400; }
.hm-projekt .wp-block-audio { margin-top: 1rem; }
.hm-projekt .wp-block-audio audio { width: 100%; }

/* Ablauf */
.hm-schritt > * { margin-block: 0; }
.hm-schritt > * + * { margin-top: 0.6rem; }
.hm-nummer { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 300; letter-spacing: 0.05em; line-height: 1; }
.hm-schritt { border-top: 1px solid rgba(0, 0, 0, 0.15); padding-top: 1.5rem; }

/* Zitat */
.hm-zitat .wp-block-quote { border: 0; margin: 0; padding: 0; text-align: center; }
.hm-zitat .wp-block-quote::before {
	content: "\201E";
	display: block;
	color: #E6A23C;
	font-size: 5rem;
	line-height: 0.6;
	margin-bottom: 1.5rem;
}
.hm-zitat .wp-block-quote cite {
	display: block;
	margin-top: 1.5rem;
	font-size: 0.85rem;
	font-style: normal;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: #E6A23C;
}

/* Header- und Menü-Akzente */
.hm-header .wp-block-navigation-item__content:hover { color: #E6A23C; }
.hm-footer a:hover { color: #E6A23C; }
::selection { background: #E6A23C; color: #1a1a1a; }

/* Responsiv: kleinere Bildschirme */
@media (max-width: 781px) {
	.hm-split { min-height: 60vh !important; }
	.hm-band { min-height: 55vh !important; }
	.hm-kontakt .has-large-font-size { font-size: 1.15rem !important; overflow-wrap: anywhere; }
}
.hm-wort { white-space: nowrap; }

/* Kontaktzeilen im Overlay-Menü */
.hm-header .wp-block-navigation__responsive-container.is-menu-open .hm-nav-kontakt {
	font-size: 1rem !important;
	letter-spacing: 0.08em;
	color: #E6A23C;
}
.hm-header .wp-block-navigation__responsive-container.is-menu-open .hm-nav-kontakt:first-of-type,
.hm-header .wp-block-navigation__responsive-container.is-menu-open li.hm-nav-kontakt:not(.hm-nav-kontakt + .hm-nav-kontakt) {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Rundes Portrait in „Über mich“ */
.hm-portrait { border-radius: 50%; overflow: hidden; width: fit-content; box-shadow: 0 0 0 6px #E6A23C, 0 18px 40px rgba(0, 0, 0, 0.25); }
.hm-portrait img { border-radius: 50%; display: block; }
.hm-portrait.aligncenter { margin-left: auto; margin-right: auto; }

/* Logo-Bilder */
.hm-logo, .hm-logo-gross { margin: 0; }
.hm-logo img, .hm-logo-gross img { display: block; height: auto; }
.hm-logo-gross img { margin-inline: auto; }
