/* ==========================================================================
   Nordfoto – ergänzende Styles zum theme.json
   Farben, Schriften und Abstände kommen aus theme.json. Hier stehen nur
   Komponenten, die sich über Block-Einstellungen nicht abbilden lassen.
   ========================================================================== */

:root {
	--nf-ease: var(--wp--custom--ease, cubic-bezier(.22,.61,.36,1));
	--nf-line: var(--wp--custom--line, rgba(20,20,18,.12));
	--nf-line-strong: var(--wp--custom--line-strong, rgba(20,20,18,.28));
	--nf-gutter: clamp(20px, 3vw, 32px);
	--nf-header-h: 76px;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

a:hover {
	opacity: .62;
	transition: opacity 180ms var(--nf-ease);
}

.wp-site-blocks {
	padding-top: 0;
	padding-bottom: 0;
}

/* Kein Abstand zwischen Header, Inhalt und Footer */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

:where(.wp-site-blocks) > main,
.nf-main {
	margin-block-start: 0;
}

/* --------------------------------------------------------------------------
   Label / Eyebrow
   -------------------------------------------------------------------------- */
.is-style-label,
p.nf-label {
	font-size: 13px !important;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gedaempft);
}

.has-weiss-color.is-style-label,
.nf-on-dark .is-style-label {
	color: var(--wp--preset--color--weiss);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.nf-header {
	min-height: var(--nf-header-h);
	position: relative;
	z-index: 30;
	align-items: center;
	padding: 18px var(--nf-gutter) !important;
	margin: 0 !important;
}

.nf-header--overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	color: var(--wp--preset--color--weiss);
	background: linear-gradient(to bottom, rgba(10,10,9,.45) 0%, rgba(10,10,9,0) 100%);
}

.admin-bar .nf-header--overlay {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.nf-header--overlay a,
.nf-header--overlay .wp-block-site-title a,
.nf-header--overlay .wp-block-navigation-item__content,
.nf-header--overlay .nf-wordmark p {
	color: var(--wp--preset--color--weiss);
}

.nf-wordmark {
	gap: 0 !important;
	line-height: 1.1;
}

.nf-wordmark > * {
	margin: 0 !important;
}

.nf-wordmark p {
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .02em;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--wp--preset--color--tinte);
}

.nf-wordmark .wp-block-site-title a {
	color: inherit;
}

/* Navigation */
.nf-header .wp-block-navigation {
	gap: clamp(20px, 3.5vw, 48px);
}

.nf-header .wp-block-navigation .wp-block-navigation-item__content {
	padding: 8px 0;
}

.nf-header .current-menu-item > .wp-block-navigation-item__content,
.nf-header .current-menu-ancestor > .wp-block-navigation-item__content {
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 1px;
}

.nf-header .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--weiss) !important;
	border: 1px solid var(--nf-line) !important;
	padding: 8px 0;
	min-width: 200px !important;
}

.nf-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: var(--wp--preset--color--tinte) !important;
	padding: 8px 20px !important;
}

/* Mobiles Menü */
.nf-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--seite) !important;
	color: var(--wp--preset--color--tinte) !important;
	padding: 24px var(--nf-gutter);
}

.nf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: var(--wp--preset--color--tinte) !important;
	font-size: 24px;
	text-transform: uppercase;
	font-weight: 500;
}

.nf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important;
	background: transparent !important;
}

.nf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 17px;
	text-transform: none;
	font-weight: 400;
	padding: 4px 0 !important;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.wp-block-button__link {
	transition: background-color 320ms var(--nf-ease), color 320ms var(--nf-ease), border-color 320ms var(--nf-ease), transform 180ms var(--nf-ease);
}

.wp-block-button__link:hover {
	opacity: 1;
}

.wp-block-button__link:active {
	transform: scale(.985);
}

/* Hell – für Buttons auf Fotos */
.wp-block-button.is-style-hell .wp-block-button__link {
	background: #f1f0ec;
	color: var(--wp--preset--color--tinte);
	border-color: #f1f0ec;
}

.wp-block-button.is-style-hell .wp-block-button__link:hover {
	background: var(--wp--preset--color--weiss);
	border-color: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--tinte);
}

/* Kontur */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--tinte);
	border: 1px solid var(--nf-line-strong);
	padding: 15px 28px;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--tinte);
	border-color: var(--wp--preset--color--tinte);
	color: var(--wp--preset--color--weiss);
}

/* Textlink */
.wp-block-button.is-style-textlink .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--tinte);
	border: 0;
	border-bottom: 1px solid var(--nf-line-strong);
	border-radius: 0;
	padding: 0 0 4px;
	font-size: 16px;
}

.wp-block-button.is-style-textlink .wp-block-button__link:hover {
	border-bottom-color: var(--wp--preset--color--tinte);
	background: transparent;
	color: var(--wp--preset--color--tinte);
}

.wp-block-buttons.nf-btn-lg .wp-block-button__link {
	padding: 19px 34px;
	font-size: 19px;
}

/* --------------------------------------------------------------------------
   Hero mit Bildwechsel (Split)
   -------------------------------------------------------------------------- */
.nf-hero {
	position: relative;
	height: 100vh;
	height: 100svh;
	min-height: 560px;
	overflow: hidden;
	background: var(--wp--preset--color--anthrazit);
	margin: 0 !important;
	padding: 0 !important;
}

.nf-hero__slides {
	position: absolute;
	inset: 0;
	margin: 0 !important;
}

.nf-hero__slide {
	position: absolute !important;
	inset: 0;
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 0 !important;
	margin: 0 !important;
	opacity: 0;
	transition: opacity 1400ms var(--nf-ease);
}

.nf-hero__slide:first-child,
.nf-hero__slide.is-active {
	opacity: 1;
}

.nf-js .nf-hero__slide:first-child:not(.is-active) {
	opacity: 1;
}

.nf-hero.nf-ready .nf-hero__slide {
	opacity: 0;
}

.nf-hero.nf-ready .nf-hero__slide.is-active {
	opacity: 1;
}

.nf-hero__slide > figure,
.nf-hero__slide > .wp-block-image {
	margin: 0 !important;
	height: 100%;
	width: 100%;
}

.nf-hero__slide img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center 45%;
	display: block;
}

.nf-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10,10,9,.55) 0%, rgba(10,10,9,0) 65%);
	pointer-events: none;
	z-index: 2;
}

.nf-hero__content {
	position: absolute !important;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	padding: 96px var(--nf-gutter) 48px !important;
	margin: 0 !important;
	color: var(--wp--preset--color--weiss);
	animation: nf-fade 1200ms var(--nf-ease) both;
}

.nf-hero__text {
	max-width: 820px;
}

.nf-hero__text > * {
	color: var(--wp--preset--color--weiss);
}

.nf-hero__dots {
	position: absolute;
	right: var(--nf-gutter);
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 16px;
	z-index: 6;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nf-hero__dots button {
	appearance: none;
	background: none;
	border: 0;
	padding: 6px 0;
	min-height: 28px;
	cursor: pointer;
	font: 500 13px/1 var(--wp--preset--font-family--sans);
	letter-spacing: .16em;
	color: var(--wp--preset--color--weiss);
	opacity: .45;
	transition: opacity 320ms var(--nf-ease);
}

.nf-hero__dots button[aria-current="true"],
.nf-hero__dots button:hover {
	opacity: 1;
}

.nf-hero__dots button:focus-visible {
	outline: 2px solid var(--wp--preset--color--ocker);
	outline-offset: 4px;
}

@keyframes nf-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (max-width: 781px) {
	.nf-hero__slide {
		grid-template-columns: 1fr;
	}

	.nf-hero__slide > figure:nth-child(n+2) {
		display: none;
	}

	.nf-hero__content {
		padding-bottom: 32px !important;
	}

	.nf-hero__dots {
		top: auto;
		bottom: auto;
		top: calc(var(--nf-header-h) + 24px);
		transform: none;
		flex-direction: row;
	}
}

/* Im Editor: Folien untereinander, damit jedes Bild bearbeitbar bleibt */
.editor-styles-wrapper .nf-hero {
	height: auto;
	min-height: 0;
	padding: 24px !important;
}

.editor-styles-wrapper .nf-hero__slides,
.editor-styles-wrapper .nf-hero__content {
	position: relative !important;
	inset: auto;
}

.editor-styles-wrapper .nf-hero__slide {
	position: relative !important;
	opacity: 1 !important;
	height: 320px;
	margin-bottom: 8px !important;
}

.editor-styles-wrapper .nf-hero::after {
	display: none;
}

/* --------------------------------------------------------------------------
   Titelbilder (Cover) auf Unterseiten
   -------------------------------------------------------------------------- */
.nf-banner.wp-block-cover {
	background-color: var(--wp--preset--color--anthrazit);
	align-items: flex-end;
	padding: 96px var(--nf-gutter) 48px;
}

.nf-banner .wp-block-cover__inner-container {
	width: 100%;
	max-width: none;
}

.nf-banner h1,
.nf-banner h2,
.nf-banner p {
	color: var(--wp--preset--color--weiss);
}

.nf-banner .wp-block-post-excerpt__more-link {
	display: none;
}

.nf-banner .wp-block-post-excerpt {
	max-width: 52ch;
	margin-top: 24px;
}

.nf-banner .wp-block-post-excerpt p {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
	margin: 0;
}

/* --------------------------------------------------------------------------
   Bilder
   -------------------------------------------------------------------------- */
.wp-block-image.is-style-zoom,
.nf-card .wp-block-image {
	overflow: hidden;
}

.wp-block-image.is-style-zoom img,
.nf-card .wp-block-image img {
	transition: transform 600ms var(--nf-ease);
}

.wp-block-image.is-style-zoom:hover img,
.nf-card:hover .wp-block-image img {
	transform: scale(1.03);
}

.nf-card .wp-block-image a:hover,
.wp-block-image.is-style-zoom a:hover {
	opacity: 1;
}

.nf-card h3 a,
.nf-card h2 a {
	text-decoration: none;
	color: inherit;
}

.nf-card p {
	color: var(--wp--preset--color--gedaempft);
	font-size: 15px;
	line-height: 1.6;
}

/* Versetzte Karten (Portfolio-Teaser) */
@media (min-width: 782px) {
	.nf-cards--staggered > .wp-block-column:nth-child(even) {
		margin-top: 56px;
	}
}

/* --------------------------------------------------------------------------
   Galerie-Raster
   -------------------------------------------------------------------------- */
.wp-block-gallery.is-style-raster.has-nested-images {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 8px !important;
	align-items: start;
}

.wp-block-gallery.is-style-raster.has-nested-images figure.wp-block-image:not(#individual-image) {
	width: auto !important;
	margin: 0 !important;
	overflow: hidden;
}

.wp-block-gallery.is-style-raster.has-nested-images figure.wp-block-image img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	transition: transform 600ms var(--nf-ease);
}

.wp-block-gallery.is-style-raster.has-nested-images figure.wp-block-image:nth-child(3n+2) img {
	aspect-ratio: 0.746;
}

.wp-block-gallery.is-style-raster.has-nested-images figure.wp-block-image:hover img {
	transform: scale(1.03);
}

@media (max-width: 600px) {
	.wp-block-gallery.is-style-raster.has-nested-images {
		grid-template-columns: 1fr;
	}
}

/* Lightbox ruhiger einfärben */
.wp-lightbox-overlay .scrim {
	background-color: #141412 !important;
	opacity: .96 !important;
}

.wp-lightbox-overlay .close-button {
	color: #fff;
}

/* --------------------------------------------------------------------------
   Kennzahlen
   -------------------------------------------------------------------------- */
.nf-stat__number {
	font-size: var(--wp--preset--font-size--xx-large) !important;
	font-weight: 500;
	line-height: 1 !important;
	letter-spacing: -0.005em;
	color: var(--wp--preset--color--tinte);
	font-variant-numeric: tabular-nums;
	margin: 0 !important;
}

/* --------------------------------------------------------------------------
   Info-Spalten mit Haarlinie
   -------------------------------------------------------------------------- */
.nf-info {
	border-top: 1px solid var(--nf-line);
	padding-top: 24px;
}

.nf-info > .is-style-label {
	margin-bottom: 12px;
}

.wp-block-columns.nf-infos {
	flex-wrap: wrap !important;
}

.wp-block-columns.nf-infos > .wp-block-column {
	flex: 1 1 200px !important;
}

/* --------------------------------------------------------------------------
   Formulare (z. B. Contact Form 7, WPForms, Kommentare)
   -------------------------------------------------------------------------- */
.nf-form input[type="text"],
.nf-form input[type="email"],
.nf-form input[type="tel"],
.nf-form input[type="password"],
.nf-form input[type="url"],
.nf-form select,
.nf-form textarea,
.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]),
.wp-block-post-comments-form textarea {
	width: 100%;
	box-sizing: border-box;
	appearance: none;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--nf-line-strong);
	border-radius: 0;
	padding: 8px 0;
	font: inherit;
	color: var(--wp--preset--color--tinte);
}

.nf-form input:focus,
.nf-form select:focus,
.nf-form textarea:focus {
	outline: 2px solid var(--wp--preset--color--ocker);
	outline-offset: 3px;
}

.nf-form label {
	display: block;
	font-size: 15px;
	color: var(--wp--preset--color--gedaempft);
	margin-bottom: 32px;
}

.nf-form input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--wp--preset--color--ocker);
	margin: 3px 12px 0 0;
}

.nf-form .wpcf7-acceptance label,
.nf-form .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	color: var(--wp--preset--color--fliesstext);
}

.nf-form .wpcf7-list-item {
	margin: 0;
}

.nf-form input[type="submit"],
.nf-form button[type="submit"],
.wp-block-post-comments-form input[type="submit"] {
	appearance: none;
	cursor: pointer;
	background: var(--wp--preset--color--tinte);
	color: var(--wp--preset--color--weiss);
	border: 1px solid var(--wp--preset--color--tinte);
	border-radius: 999px;
	padding: 15px 28px;
	font: 400 18px/1 var(--wp--preset--font-family--serif);
	transition: background-color 320ms var(--nf-ease);
}

.nf-form input[type="submit"]:hover,
.nf-form button[type="submit"]:hover {
	background: var(--wp--preset--color--fliesstext);
}

.nf-form .wpcf7-response-output {
	margin: 24px 0 0 !important;
	padding: 16px 0 0 !important;
	border: 0 !important;
	border-top: 1px solid var(--nf-line) !important;
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
}

.nf-form .wpcf7-not-valid-tip {
	color: var(--wp--preset--color--oliv);
	font-size: 15px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.nf-footer a {
	text-decoration: none;
}

.nf-footer .wp-block-navigation {
	font-size: 15px;
}

.nf-footer .wp-block-navigation .wp-block-navigation-item__content {
	padding: 2px 0;
}

.nf-footer .wp-block-social-links .wp-social-link {
	color: var(--wp--preset--color--tinte);
}

/* --------------------------------------------------------------------------
   Einblenden beim Scrollen
   -------------------------------------------------------------------------- */
.nf-js .is-style-einblenden:not(.is-visible) {
	opacity: 0;
}

.nf-js .is-style-einblenden {
	transition: opacity 900ms var(--nf-ease), transform 900ms var(--nf-ease);
}

.nf-js .is-style-einblenden.nf-scale:not(.is-visible) {
	transform: scale(1.04);
}

.editor-styles-wrapper .is-style-einblenden {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.nf-js .is-style-einblenden,
	.nf-js .is-style-einblenden:not(.is-visible) {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.nf-hero__slide,
	.nf-hero__content {
		transition: none;
		animation: none;
	}

	.wp-block-image img,
	.nf-card .wp-block-image img {
		transition: none;
	}
}

/* --------------------------------------------------------------------------
   Kleine Bildschirme
   -------------------------------------------------------------------------- */
@media (max-width: 781px) {
	.nf-split {
		gap: 48px !important;
	}

	.nf-hero__content .wp-block-buttons {
		width: 100%;
	}
}
