/**
 * Haarmann theme — Front-end & Editor styles.
 *
 * Bewusst minimal: theme.json übernimmt Tokens und Block-Styles. Hier nur
 * Anpassungen, die sich nicht sauber über theme.json regeln lassen.
 */

/* -----------------------------------------------------------------------------
 * Reset / Basis
 * -------------------------------------------------------------------------- */
:root {
	--haarmann-transition: 200ms ease;
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* -----------------------------------------------------------------------------
 * Site Header
 * -------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	background-color: rgba(26, 22, 18, 0.85) !important;
	border-bottom: 1px solid rgba(201, 168, 118, 0.15);
}

.site-header .wp-block-site-logo {
	display: flex;
	align-items: center;
}

.site-header .wp-block-site-logo img {
	display: block;
	height: auto;
	width: 100%;
}

.site-header__lang {
	cursor: pointer;
	transition: color var(--haarmann-transition);
}

.site-header__lang:hover {
	color: var(--wp--preset--color--gold) !important;
}

/* -----------------------------------------------------------------------------
 * Navigation
 * -------------------------------------------------------------------------- */
.wp-block-navigation .wp-block-navigation-item__content {
	transition: color var(--haarmann-transition);
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--gold);
}

/* Mobile overlay menu */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	gap: var(--wp--preset--spacing--30);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--x-large);
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	color: inherit;
}

/* -----------------------------------------------------------------------------
 * Sections
 * -------------------------------------------------------------------------- */
.section-willkommen,
.section-booking,
.section-services,
.section-about,
.section-gallery,
.section-anreise,
.section-map {
	scroll-margin-top: 5rem;
}

/* -----------------------------------------------------------------------------
 * Map — full-bleed Google-Maps-Container (JS API, dark styled)
 * -------------------------------------------------------------------------- */
.section-map {
	padding: 0;
	/* Karte schliesst bündig an Anreise (oben) und Galerie (unten) an —
	 * die globale Block-Gap aus is-layout-constrained explizit aushebeln. */
	margin-block-start: 0;
	margin-block-end: 0;
}

.haarmann-map {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 320px;
	max-height: 60vh;
	background-color: var(--wp--preset--color--dark);
	overflow: hidden;
}

@media (min-width: 900px) {
	.haarmann-map {
		aspect-ratio: 21 / 9;
		min-height: 420px;
	}
}

/* Google Maps UI controls auf dunkel anpassen */
.haarmann-map .gm-style .gm-bundled-control button {
	background-color: var(--wp--preset--color--dark-soft) !important;
}

.haarmann-map .gm-style-cc {
	opacity: 0.6;
}

/* InfoWindow — Googles weisse Default-Box dunkel überschreiben.
 * Selektoren entsprechen der Maps-JS-DOM-Struktur (Stand 2025); ggf.
 * nach API-Updates prüfen. */
.haarmann-map .gm-style .gm-style-iw,
.haarmann-map .gm-style .gm-style-iw-c {
	background: var(--wp--preset--color--dark) !important;
	border-radius: 2px !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
	padding: 0 !important;
	border: 1px solid rgba(201, 168, 118, 0.25) !important;
}

.haarmann-map .gm-style .gm-style-iw-d {
	overflow: hidden !important;
	max-height: none !important;
	background: transparent !important;
	padding: 0 !important;
}

/* Pfeil unter dem InfoWindow ebenfalls dunkel einfärben */
.haarmann-map .gm-style .gm-style-iw-tc::after {
	background: var(--wp--preset--color--dark) !important;
	box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Close-Button (×) hellen, weil er sonst auf dunklem BG verschwindet */
.haarmann-map .gm-ui-hover-effect {
	filter: invert(1) brightness(0.95) !important;
	top: 4px !important;
	right: 4px !important;
}

/* InfoWindow-Inhalt (unsere eigene Markup) */
.haarmann-map-info {
	padding: 1.1rem 1.4rem 1.2rem;
	min-width: 200px;
	font-family: var( --wp--preset--font-family--body );
	color: var( --wp--preset--color--cream );
	background: var( --wp--preset--color--dark );
}

.haarmann-map-info__name {
	margin: 0 0 0.4rem;
	font-family: var( --wp--preset--font-family--display );
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var( --wp--preset--color--gold );
	line-height: 1.25;
}

.haarmann-map-info__address {
	margin: 0 0 0.7rem;
	font-size: 0.875rem;
	line-height: 1.55;
}

.haarmann-map-info__link {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var( --wp--preset--color--gold );
	text-decoration: none;
	border-bottom: 1px solid rgba(201, 168, 118, 0.4);
	padding-bottom: 1px;
}

.haarmann-map-info__link:hover,
.haarmann-map-info__link:focus {
	color: var( --wp--preset--color--cream );
	border-bottom-color: var( --wp--preset--color--cream );
}

.section-about {
	color: var(--wp--preset--color--dark);
}

.section-about h2,
.section-about h3 {
	color: var(--wp--preset--color--dark);
}

/* -----------------------------------------------------------------------------
 * Price list
 * -------------------------------------------------------------------------- */
.price-list__row {
	gap: var(--wp--preset--spacing--20);
	align-items: baseline;
}

.price-list__row > p:first-of-type {
	flex: 1 1 auto;
	min-width: 0;
}

.price-list__row > p:last-of-type {
	flex: 0 0 auto;
	color: var(--wp--preset--color--gold);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.price-list + .price-list {
	margin-top: var(--wp--preset--spacing--50);
}

/* -----------------------------------------------------------------------------
 * Buttons — outline variant
 * -------------------------------------------------------------------------- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--wp--preset--color--gold);
	color: var(--wp--preset--color--gold);
}

.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--gold);
	color: var(--wp--preset--color--dark);
}

/* Booking buttons full width on mobile */
.section-booking .wp-block-buttons {
	max-width: 320px;
	margin-inline: auto;
}

.section-booking .wp-block-buttons .wp-block-button {
	width: 100%;
}

.section-booking .wp-block-buttons .wp-block-button__link {
	width: 100%;
	text-align: center;
}

/* -----------------------------------------------------------------------------
 * Hero
 * -------------------------------------------------------------------------- */
.wp-block-cover.alignfull {
	margin-top: 0;
}

/* -----------------------------------------------------------------------------
 * Gallery
 * -------------------------------------------------------------------------- */
.section-gallery .wp-block-gallery img {
	border-radius: 4px;
	transition: transform 400ms ease, filter 400ms ease;
	filter: saturate(0.92);
}

.section-gallery .wp-block-gallery .wp-block-image:hover img {
	transform: scale(1.02);
	filter: saturate(1);
}

/* -----------------------------------------------------------------------------
 * Footer
 * -------------------------------------------------------------------------- */
.site-footer {
	border-top: 1px solid rgba(201, 168, 118, 0.15);
}

.site-footer a {
	color: inherit;
	text-decoration: none;
	transition: color var(--haarmann-transition);
}

.site-footer a:hover {
	color: var(--wp--preset--color--gold);
}

.site-footer .wp-block-social-links .wp-social-link {
	background: transparent;
}

/* -----------------------------------------------------------------------------
 * Responsive
 * -------------------------------------------------------------------------- */
@media (min-width: 600px) {
	.section-booking .wp-block-buttons {
		max-width: 480px;
		flex-direction: row !important;
	}

	.section-booking .wp-block-buttons .wp-block-button {
		flex: 1;
	}

	.price-list__row {
		font-size: 1.125rem;
	}
}

@media (min-width: 900px) {
	.site-header .wp-block-site-logo {
		width: 200px !important;
	}
}

@media (max-width: 599px) {
	/* Stack columns on small screens */
	.wp-block-columns:not(.is-not-stacked-on-mobile) {
		gap: var(--wp--preset--spacing--40);
	}
}

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

	.section-gallery .wp-block-gallery img {
		transition: none;
	}
}
