/*
Theme Name: Hochzeit Foto Video
Theme URI: https://www.hochzeit-foto-video.de/
Author: hochzeit-foto-video.de
Description: Blocktheme für hochzeit-foto-video.de – Verzeichnis für Hochzeitsfotografen und Videografen. Abgestimmt auf Directorist und Events Manager. Schriften lokal eingebunden (DSGVO), keine externen Anfragen.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hfv
*/

/* ---------- Grundlagen ---------- */
:root {
	--hfv-radius: 20px;
	--hfv-radius-s: 12px;
	--hfv-schatten: 0 18px 48px rgba(46, 31, 38, 0.18);
	/* Directorist an die Marke anpassen */
	--directorist-color-primary: #A4513C;
	--directorist-color-primary-rgb: 164, 81, 60;
	--directorist-color-secondary: #5B3040;
	--directorist-color-dark: #2E1F26;
	--directorist-color-body: #2E1F26;
	--directorist-color-border: #EADDD2;
	--directorist-color-bg-light: #FBF6F1;
}

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

body { -webkit-font-smoothing: antialiased; }

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--terrakotta);
	outline-offset: 3px;
	border-radius: 4px;
}

.skip-link.screen-reader-text:focus { background: #fff; color: var(--wp--preset--color--tinte); }

img { height: auto; }

/* Überzeile über Überschriften */
.hfv-ueberzeile {
	font-size: 0.8125rem !important;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--terrakotta);
	margin-bottom: 0.5rem !important;
}
.has-tinte-background-color .hfv-ueberzeile,
.has-bordeaux-background-color .hfv-ueberzeile,
.wp-block-cover .hfv-ueberzeile { color: var(--wp--preset--color--rose); }

.hfv-leise { color: var(--wp--preset--color--text-leise); }

/* Abschnittskopf: Überschrift links, Link rechts */
.hfv-kopfzeile { align-items: flex-end !important; }
.hfv-kopfzeile h2 { margin: 0; }
.hfv-kopfzeile p { margin: 0; font-weight: 600; }
.hfv-kopfzeile a { text-decoration: none; }

/* ---------- Kopfbereich ---------- */
.hfv-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--wp--preset--color--creme) 94%, transparent);
	backdrop-filter: saturate(1.2) blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--linie);
}
.admin-bar .hfv-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .hfv-header { top: 0; } }
.hfv-header .wp-block-site-title a { color: var(--wp--preset--color--tinte); text-decoration: none; letter-spacing: 0.01em; }
.hfv-header .wp-block-navigation a { text-decoration: none; padding-block: 0.6rem; }
.hfv-header .wp-block-navigation a:hover { color: var(--wp--preset--color--terrakotta); }
.hfv-header .wp-block-navigation .current-menu-item > a,
.hfv-header .wp-block-navigation [aria-current="page"] { color: var(--wp--preset--color--terrakotta); }
.hfv-header .wp-block-button__link { padding: 0.7rem 1.25rem; font-size: 0.9375rem; }
.hfv-header .hfv-anbieter-link a { color: var(--wp--preset--color--text-leise); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.hfv-header .hfv-anbieter-link a:hover { color: var(--wp--preset--color--terrakotta); }
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--creme) !important;
	padding: 1.5rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: 1.75rem;
}
@media (max-width: 781px) { .hfv-header .hfv-anbieter-link { display: none; } }

/* ---------- Hero ---------- */
.hfv-hero.wp-block-cover { padding-top: clamp(4rem, 10vw, 7.5rem); padding-bottom: clamp(3rem, 8vw, 6rem); }
.hfv-hero h1 { color: #FBF0E6; max-width: 18ch; }
.hfv-hero .hfv-hero-text { color: #F3E3D8; max-width: 38rem; }

/* Suchformular */
.hfv-suche {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	background: #fff;
	color: var(--wp--preset--color--tinte);
	border-radius: var(--hfv-radius);
	padding: 0.625rem;
	max-width: 58rem;
	box-shadow: var(--hfv-schatten);
	margin-top: 0.5rem;
}
.hfv-suche__feld {
	flex: 1 1 13rem;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.55rem 1rem;
	border-radius: var(--hfv-radius-s);
	min-width: 0;
}
.hfv-suche__feld + .hfv-suche__feld { border-left: 1px solid var(--wp--preset--color--linie); }
.hfv-suche__feld:focus-within { background: var(--wp--preset--color--creme); }
.hfv-suche__label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-leise);
}
.hfv-suche select,
.hfv-suche input[type="text"] {
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--tinte);
	padding: 0.25rem 0;
	width: 100%;
	min-height: 2rem;
	outline: none;
}
.hfv-suche input::placeholder { color: #7A6670; }
.hfv-suche__knopf {
	flex: 0 1 auto;
	min-height: 3.5rem;
	padding: 0 2rem;
	border: 0;
	border-radius: 14px;
	background: var(--wp--preset--color--terrakotta);
	color: #fff;
	font: inherit;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}
.hfv-suche__knopf:hover { background: var(--wp--preset--color--terrakotta-dunkel); }
@media (max-width: 700px) {
	.hfv-suche { flex-direction: column; }
	.hfv-suche__feld { flex-basis: auto; }
	.hfv-suche__feld + .hfv-suche__feld { border-left: 0; border-top: 1px solid var(--wp--preset--color--linie); border-radius: 0; }
	.hfv-suche__knopf { width: 100%; }
}

.hfv-staedte { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1rem; }
.hfv-staedte__label { font-size: 0.875rem; color: #F3E3D8; margin-right: 0.25rem; }
.hfv-staedte a {
	font-size: 0.875rem;
	color: #FBF0E6;
	text-decoration: none;
	border: 1px solid rgba(251, 240, 230, 0.55);
	padding: 0.55rem 1rem;
	border-radius: 999px;
	min-height: 44px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
}
.hfv-staedte a:hover { background: rgba(251, 240, 230, 0.14); color: #fff; }
.hfv-suche-seite .hfv-staedte__label { color: var(--wp--preset--color--text-leise); }
.hfv-suche-seite .hfv-staedte a { color: var(--wp--preset--color--tinte); border-color: var(--wp--preset--color--linie); background: #fff; }

/* ---------- Vertrauensleiste ---------- */
.hfv-fakten {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: 1.25rem 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hfv-fakten li { display: flex; flex-direction: column; gap: 0.1rem; }
.hfv-fakten b { font-family: var(--wp--preset--font-family--cormorant); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.hfv-fakten span { font-size: 0.9rem; color: var(--wp--preset--color--text-leise); }

/* ---------- Karten ---------- */
.hfv-karte {
	position: relative;
	background: #fff;
	border-radius: var(--hfv-radius);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hfv-karte:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(46, 31, 38, 0.10); }
@media (prefers-reduced-motion: reduce) { .hfv-karte, .hfv-karte:hover { transition: none; transform: none; } }
.hfv-karte .wp-block-image { margin: 0; }
.hfv-karte .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.hfv-karte__text { padding: 1.25rem 1.5rem 1.6rem !important; }
.hfv-karte h3 { margin: 0; font-size: 1.75rem; }
.hfv-karte h3 a { color: var(--wp--preset--color--tinte); text-decoration: none; }
.hfv-karte h3 a::after { content: ""; position: absolute; inset: 0; }
.hfv-karte p { margin: 0.4rem 0 0; color: var(--wp--preset--color--text-leise); font-size: 0.95rem; line-height: 1.5; }
.hfv-marke {
	display: inline-block;
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 0.75rem;
	font-weight: 700;
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--terrakotta-dunkel);
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	vertical-align: middle;
	margin-left: 0.4rem;
	letter-spacing: 0.02em;
}

/* ---------- Schritte ---------- */
.hfv-schritt { border-top: 2px solid var(--wp--preset--color--terrakotta); padding-top: 1.25rem; }
.hfv-schritt__nr {
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: 2.5rem !important;
	line-height: 1 !important;
	color: var(--wp--preset--color--terrakotta);
	margin: 0 !important;
}
.hfv-schritt h3 { font-family: var(--wp--preset--font-family--manrope); font-size: 1.1875rem; font-weight: 700; margin: 0.75rem 0 0.4rem; }
.hfv-schritt p { margin: 0; color: var(--wp--preset--color--text-leise); }

/* ---------- Dunkle Bänder ---------- */
.has-bordeaux-background-color h2,
.has-bordeaux-background-color h3,
.has-tinte-background-color h2,
.has-tinte-background-color h3 { color: #FBF0E6; }
.has-bordeaux-background-color p,
.has-bordeaux-background-color li { color: #F3E3D8; }
.has-bordeaux-background-color .wp-block-button__link {
	background: #FBF0E6;
	color: var(--wp--preset--color--bordeaux);
}
.has-bordeaux-background-color .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--bordeaux); }
.hfv-beispiel {
	background: rgba(251, 240, 230, 0.08);
	border: 1px solid rgba(251, 240, 230, 0.22);
	border-radius: var(--hfv-radius);
}
.hfv-beispiel .hfv-betrag {
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: clamp(3rem, 6vw, 4.25rem) !important;
	line-height: 1 !important;
	color: #FBF0E6;
	margin: 0.25rem 0 !important;
}

/* ---------- Ratgeber-Karten (Query Loop) ---------- */
.hfv-artikel .wp-block-post {
	position: relative;
	background: #fff;
	border-radius: var(--hfv-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.hfv-artikel .wp-block-post-featured-image { margin: 0; }
.hfv-artikel .wp-block-post-featured-image img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.hfv-artikel .hfv-artikel__text { padding: 1.25rem 1.5rem 1.6rem !important; }
.hfv-artikel .wp-block-post-title { font-size: 1.625rem; font-weight: 600; line-height: 1.15; margin: 0; }
.hfv-artikel .wp-block-post-title a { color: var(--wp--preset--color--tinte); text-decoration: none; }
.hfv-artikel .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.hfv-artikel .wp-block-post-excerpt { margin: 0.5rem 0 0; font-size: 0.95rem; line-height: 1.55; }
.hfv-artikel .wp-block-post-excerpt__more-text { display: none; }

/* ---------- Anbieter-Band ---------- */
.hfv-anbieter-band { border-radius: 24px; }

/* ---------- Seiten & Beiträge ---------- */
.hfv-seitenkopf { border-bottom: 1px solid var(--wp--preset--color--linie); }
.hfv-seitenkopf h1 { margin: 0; }
.wp-block-post-content > p:first-child { font-size: var(--wp--preset--font-size--gross); color: var(--wp--preset--color--text-leise); }
.wp-block-post-content h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-top: 2.75rem; }
.wp-block-post-content h3 { margin-top: 2rem; }
.wp-block-post-content .wp-block-image img { border-radius: var(--hfv-radius-s); }
.wp-block-post-content ul.wp-block-list li { margin-bottom: 0.35rem; }
.wp-block-post-content ul.wp-block-list li::marker { color: var(--wp--preset--color--terrakotta); }
.wp-block-details {
	background: #fff;
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: var(--hfv-radius-s);
	padding: 1rem 1.25rem;
}
.wp-block-details summary { font-weight: 600; cursor: pointer; }

/* Breite Inhalte (Verzeichnis, Rechner, Events) */
.wp-block-post-content > [class*="directorist-"],
.wp-block-post-content > .hr,
.wp-block-post-content > .hfv-rechner,
.wp-block-post-content > .em,
.wp-block-post-content > .em-view-container,
.wp-block-post-content > .wp-block-query,
.wp-block-post-content > .wp-block-shortcode {
	max-width: var(--wp--style--global--wide-size) !important;
}

/* ---------- Directorist ---------- */
.directorist-search-form__box,
.directorist-search-form .directorist-search-form__box {
	border-radius: var(--hfv-radius) !important;
	border: 1px solid var(--wp--preset--color--linie) !important;
	box-shadow: none !important;
}
.directorist-btn,
.directorist-search-form .directorist-btn,
.directorist-btn.directorist-btn-primary {
	border-radius: 999px !important;
	font-weight: 700 !important;
}
.directorist-btn-primary,
.directorist-search-field__btn--search {
	background: var(--wp--preset--color--terrakotta) !important;
	border-color: var(--wp--preset--color--terrakotta) !important;
	color: #fff !important;
}
.directorist-listing-single {
	border-radius: var(--hfv-radius) !important;
	border: 0 !important;
	overflow: hidden;
	box-shadow: none !important;
	background: #fff !important;
}
.directorist-listing-single__thumb img { aspect-ratio: 4 / 3; object-fit: cover; }
.directorist-listing-title,
.directorist-listing-single .directorist-listing-title a {
	font-family: var(--wp--preset--font-family--cormorant) !important;
	font-size: 1.5rem !important;
	font-weight: 600 !important;
	color: var(--wp--preset--color--tinte) !important;
}
.directorist-archive-contents .directorist-header-bar,
.directorist-listings-header { background: transparent !important; }
.directorist-viewas__item.active,
.directorist-viewas__item--active { background: var(--wp--preset--color--bordeaux) !important; color: #fff !important; }
.directorist-content-active .select2-container--default .select2-selection--single { border-radius: var(--hfv-radius-s); }

/* Leerer Katalog */
.hfv-leer {
	background: #fff;
	border-radius: var(--hfv-radius);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 2rem;
	align-items: center;
	justify-content: space-between;
}
.hfv-leer h3 { margin: 0 0 0.35rem; }
.hfv-leer p { margin: 0; color: var(--wp--preset--color--text-leise); }
.hfv-knopf {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0.85rem 1.6rem;
	border-radius: 999px;
	background: var(--wp--preset--color--terrakotta);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	box-sizing: border-box;
}
.hfv-knopf:hover { background: var(--wp--preset--color--terrakotta-dunkel); }

/* ---------- Hochzeitsrechner ---------- */
.hfv-rechner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2rem; align-items: start; }
@media (max-width: 860px) { .hfv-rechner { grid-template-columns: 1fr; } }
.hfv-rechner__panel { background: #fff; border-radius: var(--hfv-radius); padding: clamp(1.25rem, 3vw, 2rem); }
.hfv-rechner__feld { margin-bottom: 1.25rem; }
.hfv-rechner__feld label,
.hfv-rechner__zeile label { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.95rem; font-weight: 500; margin-bottom: 0.4rem; }
.hfv-rechner__feld label output { font-weight: 700; color: var(--wp--preset--color--terrakotta); }
.hfv-rechner input[type="range"] { width: 100%; accent-color: var(--wp--preset--color--terrakotta); min-height: 32px; }
.hfv-rechner select,
.hfv-rechner input[type="number"] {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--tinte);
	background: var(--wp--preset--color--creme);
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: 10px;
	padding: 0.6rem 0.75rem;
	min-height: 44px;
}
.hfv-rechner__posten { display: grid; gap: 0.5rem; margin: 1.5rem 0; padding-top: 1.25rem; border-top: 1px solid var(--wp--preset--color--linie); }
.hfv-rechner__zeile { display: grid; grid-template-columns: minmax(0, 1fr) 8.5rem; gap: 1rem; align-items: center; }
.hfv-rechner__zeile label { margin: 0; font-weight: 400; }
.hfv-rechner__zeile input { text-align: right; }
.hfv-rechner__hinweis { font-size: 0.875rem; color: var(--wp--preset--color--text-leise); margin: 1rem 0 0; }
.hfv-rechner__summe {
	position: sticky;
	top: 6rem;
	background: var(--wp--preset--color--bordeaux);
	color: #FBF0E6;
	border-radius: var(--hfv-radius);
	padding: clamp(1.5rem, 3vw, 2rem);
}
.hfv-rechner__summe small { display: block; color: #F0C9B8; font-size: 0.875rem; }
.hfv-rechner__gesamt { font-family: var(--wp--preset--font-family--cormorant); font-size: clamp(3rem, 6vw, 4rem); line-height: 1.05; margin: 0.25rem 0 0.5rem; }
.hfv-rechner__balken { display: grid; gap: 0.6rem; margin-top: 1.5rem; }
.hfv-rechner__balken div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 5.5rem; gap: 0.75rem; align-items: center; font-size: 0.875rem; }
.hfv-rechner__balken span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hfv-rechner__balken i { display: block; height: 6px; border-radius: 3px; background: #E7A58F; }
.hfv-rechner__balken b { display: block; height: 6px; border-radius: 3px; background: rgba(251, 240, 230, 0.15); }
@media (max-width: 860px) { .hfv-rechner__summe { position: static; } }

/* ---------- Fußbereich ---------- */
.hfv-footer a { color: #E9D9CF; text-decoration: none; }
.hfv-footer a:hover { color: #fff; text-decoration: underline; }
.hfv-footer h2 { font-family: var(--wp--preset--font-family--manrope); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--rose); margin: 0 0 0.75rem; }
.hfv-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.hfv-footer .hfv-footer__marke { font-family: var(--wp--preset--font-family--cormorant); font-size: 1.75rem; font-weight: 600; color: #FBF0E6; margin: 0; }
.hfv-footer__unten { border-top: 1px solid rgba(233, 217, 207, 0.18); }
.hfv-footer__unten p { font-size: 0.8125rem; color: #CDB8AE; margin: 0; }

/* ---------- 404 / Suche ---------- */
.hfv-suche-seite .hfv-suche { box-shadow: none; border: 1px solid var(--wp--preset--color--linie); }

/* Logo */
.hfv-logo { margin: 0; font-family: var(--wp--preset--font-family--cormorant); font-size: 1.625rem; font-weight: 600; line-height: 1.1; white-space: nowrap; }
.hfv-logo a { color: var(--wp--preset--color--tinte); text-decoration: none; letter-spacing: 0.01em; }
@media (max-width: 400px) { .hfv-logo { font-size: 1.375rem; } }

/* Hero- und Faktenbreite an die breite Spalte koppeln */
.hfv-hero .wp-block-cover__inner-container { width: 100%; }
.hfv-hero .wp-block-cover__inner-container > .alignwide { max-width: var(--wp--style--global--wide-size) !important; margin-inline: auto !important; width: 100%; }
.hfv-fakten { max-width: var(--wp--style--global--wide-size) !important; margin-inline: auto !important; }
.wp-block-cover.hfv-hero .wp-block-cover__inner-container { width: 100% !important; }
.hfv-header .wp-block-button__link { white-space: nowrap; }
@media (max-width: 480px) {
	.hfv-header .wp-block-button__link { padding: 0.55rem 0.95rem; font-size: 0.875rem; }
	.hfv-logo { font-size: 1.25rem; }
}
h1, h2 { overflow-wrap: break-word; }
@media (max-width: 600px) { h1, h2 { hyphens: auto; } }
