/*
Theme Name: heyder
Theme URI: https://www.heyder.de/
Author: Patrick Heyder
Description: Block-Theme für heyder.de – Porträtfotografie München. Hell/Dunkel, Lato lokal.
Version: 0.1.0
Requires at least: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: heyder
*/

/* ---------- Farbwelt A Klassisch: Hell (theme.json) und Dunkel ---------- */
:root {
	--logo-secondary: #929292;
	--hg-lb-bg: #ffffff;
	--hg-lb-ui: #1d1d1d;
	--hg-lb-ui-2: #ffffff;
	color-scheme: light;
}
html[data-theme="dark"] {
	color-scheme: dark;
	--wp--preset--color--base: #111111;
	--wp--preset--color--surface: #1a1a1a;
	--wp--preset--color--text: #b4b4b4;
	--wp--preset--color--heading: #f0f0f0;
	--wp--preset--color--muted: #8f8f8f;
	--wp--preset--color--line: #2a2a2a;
	--wp--preset--color--accent: #f0f0f0;
	--wp--preset--color--nav: #e8e8e8;
	--wp--preset--color--focus: #ffffff;
	--wp--preset--color--placeholder: #1c1c1c;
	--logo-secondary: #f2f2f2;
	--hg-lb-bg: #050505;
	--hg-lb-ui: #f2f2f2;
	--hg-lb-ui-2: #000000;
}
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; transition: background-color 0.3s ease, color 0.3s ease; }
:where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--wp--preset--color--focus); outline-offset: 3px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Kopf ---------- */
.heyder-site-header { padding-block: 22px 18px; }
.heyder-header { gap: 32px; align-items: center; }
.heyder-logo { display: block; line-height: 0; color: var(--wp--preset--color--heading); }
.heyder-logo img { display: block; height: 96px; width: auto; } /* Desktop/iPad: sichtbar wie live ≈ 96 px (Patrick, 30.11.2026) */
.heyder-logo .heyder-logo-on-dark, html[data-theme="dark"] .heyder-logo .heyder-logo-on-light { display: none; }
html[data-theme="dark"] .heyder-logo .heyder-logo-on-dark { display: block; }
@media (max-width: 599px) { .heyder-logo img { height: 52px; } } /* Handy wie im Mockup */
.heyder-header-right { gap: 6px !important; align-items: flex-end; }
.heyder-tools { gap: 2px !important; }
.heyder-social .wp-social-link { color: var(--wp--preset--color--muted) !important; }
.heyder-social .wp-social-link a { padding: 10px; }
.heyder-social .wp-social-link:hover { color: var(--wp--preset--color--heading) !important; }
.heyder-theme-toggle {
	display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 50%; background: none; color: var(--wp--preset--color--heading); cursor: pointer;
}
.heyder-theme-toggle:hover { background: var(--wp--preset--color--surface); }
.heyder-theme-toggle svg { width: 19px; height: 19px; }
.heyder-theme-toggle .i-sun, html[data-theme="dark"] .heyder-theme-toggle .i-moon { display: none; }
html[data-theme="dark"] .heyder-theme-toggle .i-sun { display: block; }

/* Navigation */
.heyder-nav { gap: 4px 20px; }
.heyder-nav .wp-block-navigation-item__content { padding-block: 6px; border-bottom: 1px solid transparent; text-decoration: none; transition: border-color 0.2s; }
.heyder-nav .wp-block-navigation-item__content:hover { border-bottom-color: var(--wp--preset--color--line); }
.heyder-nav .current-menu-item > .wp-block-navigation-item__content,
.heyder-nav .wp-block-navigation-submenu:has(.current-menu-item) > .wp-block-navigation-item__content { border-bottom-color: var(--wp--preset--color--accent); }
.heyder-nav .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--base) !important; color: var(--wp--preset--color--nav) !important;
	border: 1px solid var(--wp--preset--color--line) !important; box-shadow: 0 10px 30px rgb(0 0 0 / 0.08); padding: 8px 0; min-width: 210px !important;
}
.heyder-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 8px 18px; border-bottom: 0; white-space: nowrap; }
.heyder-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.heyder-nav .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content { background: var(--wp--preset--color--surface); }

/* Menü als Overlay unter 1000 px (Core schaltet erst unter 600 px um) */
@media (max-width: 999px) {
	.heyder-site-header { padding-block: 14px; }
	.heyder-header-right { flex-direction: row-reverse !important; align-items: center; }
	.heyder-tools .heyder-social { display: none; }
	.heyder-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.heyder-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
.heyder-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base) !important; color: var(--wp--preset--color--nav) !important;
	padding: 24px clamp(16px, 3.5vw, 40px);
}
.heyder-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch; }
.heyder-nav .is-menu-open .wp-block-navigation__container { gap: 0 !important; align-items: stretch !important; width: 100%; }
.heyder-nav .is-menu-open .wp-block-navigation-item__content { display: block; font-size: 1.05rem; padding: 13px 0 !important; border-bottom: 1px solid var(--wp--preset--color--line) !important; }
.heyder-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	--navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; --navigation-layout-align: stretch;
}
.heyder-nav .is-menu-open .wp-block-navigation__container,
.heyder-nav .is-menu-open .wp-block-navigation-item,
.heyder-nav .is-menu-open .wp-block-navigation__submenu-container { align-items: stretch !important; width: 100%; text-align: left; }
.heyder-nav .is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: none; padding: 0 !important; background: none !important; }
.heyder-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding-left: 20px !important; font-size: 0.95rem; background: none !important; }

/* ---------- Seiten ---------- */
.heyder-main { padding-bottom: 72px; }
.heyder-page-title { margin-block: clamp(28px, 5vw, 56px) clamp(20px, 3vw, 32px) !important; }
.wp-block-heading.is-style-section {
	font-size: var(--wp--preset--font-size--nav); font-weight: 400; text-transform: uppercase;
	letter-spacing: 0.16em; color: var(--wp--preset--color--muted); margin-top: clamp(48px, 7vw, 88px);
}
.hg-teasers { max-width: 1100px; margin-inline: auto !important; gap: 20px !important; }

/* ---------- Buttons ---------- */
.wp-block-button__link {
	border-radius: 0; padding: 12px 22px; font-size: var(--wp--preset--font-size--nav);
	text-transform: uppercase; letter-spacing: 0.12em; border: 1px solid var(--wp--preset--color--heading); transition: background-color 0.2s, color 0.2s;
}
.is-style-fill .wp-block-button__link { background: var(--wp--preset--color--heading); color: var(--wp--preset--color--base); }
.is-style-fill .wp-block-button__link:hover { background: transparent; color: var(--wp--preset--color--heading); }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--heading); }
.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--heading); color: var(--wp--preset--color--base); }

/* ---------- Work with me / About / Kontakt ---------- */
.heyder-lead { color: var(--wp--preset--color--muted); font-size: 1rem; margin-top: -12px !important; }
.heyder-muted { color: var(--wp--preset--color--muted); font-size: 1rem; }
.heyder-split { gap: clamp(28px, 5vw, 72px) !important; margin-block: clamp(48px, 7vw, 96px) !important; }
.heyder-split h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); text-transform: uppercase; letter-spacing: 0.1em; }
.heyder-split-media { aspect-ratio: 4 / 5; overflow: hidden; margin: 0; }
.heyder-split-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.heyder-ticks { list-style: none; padding: 0; }
.heyder-ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.heyder-ticks li::before { content: ""; position: absolute; left: 2px; top: 0.82em; width: 12px; height: 1px; background: var(--wp--preset--color--heading); }
.heyder-handles { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem); font-weight: 300; }
.heyder-handles a { color: var(--wp--preset--color--heading); text-decoration: none; margin: 0 clamp(10px, 2.5vw, 32px); white-space: nowrap; }
.heyder-handles a:hover { text-decoration: underline; }
.heyder-steps { gap: 28px !important; counter-reset: step; }
.heyder-steps > .wp-block-column { counter-increment: step; border-top: 1px solid var(--wp--preset--color--line); padding-top: 18px; }
.heyder-steps > .wp-block-column::before { content: counter(step, decimal-leading-zero); display: block; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); letter-spacing: 0.14em; }
.heyder-steps h3 { font-size: 1.05rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; margin: 6px 0; }
.heyder-steps p { font-size: 1rem; margin: 0; }
.heyder-faq .wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 0; }
.heyder-faq .wp-block-details:first-child { border-top: 1px solid var(--wp--preset--color--line); }
.heyder-split.alignwide, .heyder-steps.alignwide, .heyder-about.alignwide { max-width: 1160px !important; }
.heyder-faq summary { cursor: pointer; padding: 16px 36px 16px 0; color: var(--wp--preset--color--heading); font-size: 1.05rem; list-style: none; position: relative; }
.heyder-faq summary::-webkit-details-marker { display: none; }
.heyder-faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 300; color: var(--wp--preset--color--muted); }
.heyder-faq details[open] summary::after { content: "–"; }
.heyder-faq details p { margin: 0 0 18px; }
.heyder-cta { border-top: 1px solid var(--wp--preset--color--line); padding-top: clamp(40px, 6vw, 72px); margin-top: clamp(48px, 7vw, 96px) !important; }
.heyder-cta-media { max-width: 360px; margin-left: auto; aspect-ratio: 2 / 3; overflow: hidden; }
.heyder-cta-media img { width: 100%; height: 100%; object-fit: cover; }
.heyder-cta-title { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.2rem); font-weight: 300; color: var(--wp--preset--color--heading); line-height: 1.2; }
@media (max-width: 781px) {
	.heyder-split--reverse { flex-direction: column-reverse; }
	.heyder-cta { text-align: center; }
	.heyder-cta-media { margin-inline: auto; max-width: 260px; }
	.heyder-cta .wp-block-buttons { justify-content: center; }
}
.wp-block-jetpack-contact-form input, .wp-block-jetpack-contact-form textarea, .wp-block-jetpack-contact-form select {
	border: 1px solid var(--wp--preset--color--line) !important; border-radius: 0 !important;
	background: var(--wp--preset--color--base) !important; color: var(--wp--preset--color--heading) !important; font: inherit;
}
.wp-block-jetpack-contact-form label { color: var(--wp--preset--color--heading); font-size: var(--wp--preset--font-size--small); margin-bottom: 4px !important; }
.wp-block-jetpack-contact-form input:not([type=hidden]), .wp-block-jetpack-contact-form select,
.wp-block-jetpack-contact-form .jetpack-field-select button, .wp-block-jetpack-contact-form [class*="select"] > button {
	min-height: 0 !important; height: auto !important; padding: 9px 12px !important; font-size: 1rem !important; line-height: 1.4 !important;
}
.wp-block-jetpack-contact-form textarea { min-height: 130px !important; height: 130px; padding: 9px 12px !important; font-size: 1rem !important; }
.wp-block-jetpack-contact-form .grunion-field-wrap { margin-bottom: 0 !important; gap: 0 !important; }
.wp-block-jetpack-contact-form.is-layout-flex { gap: 16px !important; }
form.contact-form button[type=submit] {
	width: auto !important; align-self: flex-start; padding: 12px 26px !important; border-radius: 0 !important; cursor: pointer;
	background: var(--wp--preset--color--heading) !important; color: var(--wp--preset--color--base) !important; border: 1px solid var(--wp--preset--color--heading) !important;
	font: inherit; font-size: var(--wp--preset--font-size--nav) !important; text-transform: uppercase; letter-spacing: 0.12em;
}
form.contact-form button[type=submit] { margin-top: 20px; }
form.contact-form button[type=submit]:hover { background: transparent !important; color: var(--wp--preset--color--heading) !important; }
.heyder-price { color: var(--wp--preset--color--heading); }
.heyder-signature { margin-top: 0 !important; }

/* ---------- Fuß ---------- */
.heyder-site-footer { border-top: 1px solid var(--wp--preset--color--line); margin-top: auto; }
.heyder-footer { padding-block: 22px; gap: 8px 24px; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.heyder-footer p { margin: 0; }
.heyder-footer-links { display: flex; gap: 20px; }
.heyder-footer a { color: var(--wp--preset--color--muted); text-decoration: none; }
.heyder-footer a:hover { color: var(--wp--preset--color--heading); }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main, .wp-site-blocks > .heyder-main { flex: 1 0 auto; }

@media (prefers-reduced-motion: reduce) {
	body { transition: none; }
}
