/* Birkennest – Ergänzungen zu theme.json (Block-Stile und Kleinteile). */

/* Lange deutsche Wörter in großen Überschriften sauber trennen statt mitten im Wort umbrechen */
h1, h2, h3 {
	hyphens: auto;
	overflow-wrap: normal;
	text-wrap: balance;
}

/* Lange Links (z. B. in der Datenschutzerklärung) dürfen umbrechen statt die Seite zu verbreitern */
:is(p, li, td, dd) {
	overflow-wrap: break-word;
}
.wp-block-list li {
	min-width: 0;
}

/* Dachzeile über Überschriften */
.is-style-kicker {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.has-contrast-background-color .is-style-kicker {
	color: var(--wp--preset--color--night-muted);
}

/* Kopfbereich */
.bn-mark {
	display: flex;
	color: var(--wp--preset--color--contrast);
}
.bn-nav .wp-block-navigation-item__content {
	padding: 0.625rem 0.25rem;
	border-bottom: 1px solid transparent;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}
.bn-nav .wp-block-navigation-item__content:hover,
.bn-nav .current-menu-item > .wp-block-navigation-item__content {
	border-bottom-color: currentColor;
}
.bn-nav .bn-nav-cta > .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 1.125rem;
	box-sizing: border-box;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 2px;
	font-weight: 600;
	letter-spacing: 0.02em;
}
.bn-nav .bn-nav-cta > .wp-block-navigation-item__content:hover {
	background: transparent;
	color: var(--wp--preset--color--contrast);
}
.bn-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base);
	padding: 1.5rem;
}
.bn-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 1rem;
	font-size: 1.25rem;
}

/* Schaltflächen-Varianten */
.wp-block-button.is-style-textlink .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	padding: 0 0 2px;
}
.wp-block-button.is-style-textlink .wp-block-button__link:hover {
	color: var(--wp--preset--color--sea);
}
.has-contrast-background-color .wp-block-button.is-style-textlink .wp-block-button__link {
	color: var(--wp--preset--color--base);
}
.wp-block-button.is-style-light .wp-block-button__link {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--base);
}
.wp-block-button.is-style-light .wp-block-button__link:hover {
	background: transparent;
	color: var(--wp--preset--color--base);
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* Fotos: Cover-Block als Bild mit verschiebbarem Fokuspunkt */
.wp-block-cover.is-style-photo {
	border-radius: 2px;
	overflow: hidden;
	padding: 0;
}
.wp-block-cover.is-style-photo .wp-block-cover__inner-container {
	display: none;
}
.wp-block-image img,
.wp-block-gallery img {
	border-radius: 2px;
}

/* Startseiten-Kopf: Titel einzeilig auf Desktop, Bild + Eckdaten passen in den ersten Bildschirm */
.bn-hero-title {
	font-size: clamp(2rem, 3.3vw, 2.75rem);
	line-height: 1.1;
}
.wp-block-cover.bn-hero-photo {
	/* Bildschirmhöhe minus Kopfzeile, Titel und Eckdaten-Zeile */
	min-height: clamp(300px, calc(100svh - 340px), 620px) !important;
}
.admin-bar .wp-block-cover.bn-hero-photo {
	min-height: clamp(300px, calc(100svh - 372px), 620px) !important;
}

/* Kennzahlen unter dem Titelbild */
.bn-facts {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
/* Eckdaten gleichmäßig über die volle Breite verteilen */
.bn-facts > .wp-block-group {
	flex: 1 1 auto;
	justify-content: space-between;
}
.bn-facts .bn-fact-value {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 2.125rem;
	line-height: 1.1;
	margin: 0;
}
.bn-facts .bn-fact-label {
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
	margin: 0;
}

/* Listen mit Linien (Ausstattung, Hinweise) */
.wp-block-list.is-style-lined {
	list-style: none;
	padding: 0;
}
.wp-block-list.is-style-lined li {
	padding: 0.875rem 0;
	border-top: 1px solid var(--wp--preset--color--line-strong);
	margin: 0;
}
.wp-block-list.is-style-lined li:last-child {
	border-bottom: 1px solid var(--wp--preset--color--line-strong);
}
.has-contrast-background-color .wp-block-list.is-style-lined li {
	border-color: var(--wp--preset--color--night-line);
}
.bn-amenities.wp-block-list.is-style-lined {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	column-gap: 2.5rem;
}
.bn-amenities.wp-block-list.is-style-lined li:last-child {
	border-bottom: 0;
}

/* Preistabelle */
.wp-block-table.is-style-prices table {
	border-collapse: collapse;
	width: 100%;
}
.wp-block-table.is-style-prices th,
.wp-block-table.is-style-prices td {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line-strong);
	padding: 0.875rem 0.75rem 0.875rem 0;
	text-align: left;
}
.wp-block-table.is-style-prices thead {
	border: 0;
}
.wp-block-table.is-style-prices thead th {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	border-bottom-color: var(--wp--preset--color--contrast);
}
.wp-block-table.is-style-prices td:nth-child(n+3),
.wp-block-table.is-style-prices th:nth-child(n+3) {
	text-align: right;
	padding-left: 0.75rem;
	padding-right: 0;
	white-space: nowrap;
}

/* Gästestimmen */
.bn-quote-card {
	border-top: 1px solid var(--wp--preset--color--contrast);
	padding-top: 1.5rem;
}
.bn-quote-card .wp-block-quote {
	margin: 0;
	padding: 0;
}
.bn-quote-card cite,
.bn-quote-card .wp-block-quote cite {
	display: block;
	margin-top: 1.125rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.875rem;
	font-style: normal;
	color: var(--wp--preset--color--muted);
}

/* Preis-Kacheln auf Dunkel */
.bn-price-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	background: var(--wp--preset--color--night-line);
	border: 1px solid var(--wp--preset--color--night-line);
}
.bn-price-grid > * {
	margin: 0 !important;
	background: var(--wp--preset--color--contrast);
	padding: 1.625rem 1.5rem;
}
.bn-price-grid p {
	margin: 0;
}

/* Fußbereich */
.bn-footer-links {
	list-style: none;
	padding: 0;
	margin-top: 0.5rem;
	font-size: 0.9375rem;
	line-height: 1.9;
}

/* Karte: Hinweis-Fläche, Google Maps wird erst nach Klick geladen */
.bn-map {
	position: relative;
	min-height: 440px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border: 1px solid currentColor;
	border-color: color-mix(in srgb, currentColor 25%, transparent);
	border-radius: 2px;
	overflow: hidden;
}
.bn-map__consent {
	max-width: 380px;
	padding: 2rem 1.5rem;
}
.bn-map__consent svg {
	opacity: 0.75;
}
.bn-map__text {
	margin: 0.75rem 0 1.25rem;
	font-size: 0.9375rem;
	opacity: 0.85;
}
.bn-map__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem 1.5rem;
}
.bn-map__load {
	min-height: 46px;
	padding: 0 1.5rem;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--base);
	background: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 2px;
	cursor: pointer;
}
.bn-map__load:hover {
	background: transparent;
	color: var(--wp--preset--color--contrast);
}
/* Auf dunklem Hintergrund (Lage-Abschnitt) hell */
.has-contrast-background-color .bn-map__load {
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--base);
}
.has-contrast-background-color .bn-map__load:hover {
	background: transparent;
	color: var(--wp--preset--color--base);
}
.bn-map__load:focus-visible,
.bn-map__open:focus-visible {
	outline: 2px solid var(--wp--preset--color--sea);
	outline-offset: 3px;
}
.bn-map__open {
	color: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
}
.bn-map.is-loaded iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Unterhalb von 600px zeigt die Navigation das Menüsymbol – dann neben dem Logo halten */
@media (max-width: 599px) {
	.bn-header .wp-block-group.alignwide {
		flex-wrap: nowrap;
	}
	.bn-brand .wp-block-site-tagline {
		white-space: nowrap;
	}
}

@media (max-width: 781px) {
	.bn-price-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Schild-Foto auf der Startseite: im Seitenverhältnis des Ausschnitts, nicht künstlich hoch */
.wp-block-cover.bn-sign {
	min-height: 0 !important;
	/* WordPress setzt inline aspect-ratio:unset, daher !important */
	aspect-ratio: 1164 / 702 !important;
}

/* „Perspektiven entdecken“: volle Inhaltsbreite, damit jede Zeile auf dem Laptop einzeilig bleibt */
.bn-perspective {
	max-width: var(--wp--style--global--wide-size) !important;
	font-size: clamp(1.625rem, 3vw, 2.625rem) !important;
	text-wrap: balance;
}
