/*
Theme Name: HRF
Theme URI: https://www.hrf.co.at
Author: H. Reynaud & Fils Matières Premières Aromatiques GmbH
Description: Block-Theme für die Website von HRF Österreich – Parfumöle, ätherische Öle, Duftmanufaktur und Aromen. Ohne Page-Builder, Inhalte werden im WordPress-Editor gepflegt.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
License: Proprietary
Text Domain: hrf
*/

/* Ergänzende Styles, die theme.json nicht abdeckt. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

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

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

a { text-underline-offset: .2em; text-decoration-thickness: 1px; }

::selection { background: var(--wp--preset--color--lavendel); color: #fff; }

:focus-visible { outline: 2px solid var(--wp--preset--color--lavendel); outline-offset: 3px; }

.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: #fff; padding: .6rem 1rem; }

/* ---------- Kopfbereich ---------- */
.hrf-header-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .hrf-header-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .hrf-header-part { top: 46px; } }
.hrf-header { position: relative; isolation: isolate; border-bottom: 1px solid var(--wp--preset--color--linie); }
/* Hintergrund als Pseudo-Element: backdrop-filter direkt am Header würde das fixierte Mobilmenü einsperren */
.hrf-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--wp--preset--color--elfenbein) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }

.hrf-brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: inherit; }
.hrf-brand img, .hrf-brand svg { width: 52px; height: 52px; display: block; }
.hrf-brand__name { font-family: var(--wp--preset--font-family--serif); font-size: 1.05rem; line-height: 1.15; letter-spacing: .01em; color: var(--wp--preset--color--hrf-blau); }
.hrf-brand__name small { display: block; font-family: var(--wp--preset--font-family--sans); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--grau); }
@media (max-width: 900px) { .hrf-brand__name { display: none; } }

.hrf-nav { display: flex; align-items: center; gap: 2rem; }
.hrf-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; align-items: center; }
.hrf-nav li { position: relative; }
.hrf-nav a { color: var(--wp--preset--color--tinte); text-decoration: none; font-size: .92rem; letter-spacing: .02em; padding: .4rem 0; display: inline-block; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.hrf-nav a:hover, .hrf-nav .menu-item-type-post_type.current-menu-item > a, .hrf-nav .current-menu-ancestor > a, .hrf-nav .current_page_item > a, .hrf-nav .current-menu-parent > a { color: var(--wp--preset--color--hrf-blau); border-bottom-color: currentColor; }
.hrf-nav .sub-menu { position: absolute; left: -1.2rem; top: 100%; min-width: 15rem; display: block; background: #fff; padding: .8rem 1.2rem; border: 1px solid var(--wp--preset--color--linie); box-shadow: 0 18px 40px -20px rgba(13,34,68,.35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s ease; }
.hrf-nav .sub-menu li { display: block; }
.hrf-nav .sub-menu a { display: block; padding: .45rem 0; }
.hrf-nav li:hover > .sub-menu, .hrf-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.hrf-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: .38em; height: .38em; margin-left: .45em; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-.2em); }

.hrf-lang { display: flex; gap: .2rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.hrf-lang a, .hrf-lang span { padding: .3rem .45rem; text-decoration: none; color: var(--wp--preset--color--grau); border: 1px solid transparent; }
.hrf-lang .is-current { color: var(--wp--preset--color--hrf-blau); border-color: var(--wp--preset--color--linie); }

.hrf-cta-btn { white-space: nowrap; }
.hrf-nav .hrf-cta-btn .wp-block-button__link { color: #fff; border-bottom: 0; padding: .75rem 1.3rem; font-size: .78rem; }
.hrf-nav .hrf-cta-btn .wp-block-button__link:hover { color: #fff; }

.hrf-burger { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--wp--preset--color--hrf-blau); }
.hrf-burger svg { width: 28px; height: 28px; }

@media (max-width: 1080px) {
	.hrf-burger { display: inline-flex; }
	.hrf-nav { position: fixed; z-index: 100; inset: 0 0 0 auto; width: min(88vw, 380px); flex-direction: column; align-items: flex-start; gap: 1.6rem; padding: 6rem 2rem 2rem; background: var(--wp--preset--color--elfenbein); box-shadow: -20px 0 60px -30px rgba(13,34,68,.5); transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; }
	.hrf-nav.is-open { transform: none; }
	.hrf-nav ul { flex-direction: column; align-items: flex-start; gap: .4rem; width: 100%; }
	.hrf-nav a { font-size: 1.15rem; }
	.hrf-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 1rem; background: none; min-width: 0; }
	.hrf-nav .menu-item-has-children > a::after { display: none; }
	.hrf-nav__close { position: absolute; top: 1.2rem; right: 1.2rem; }
}
@media (min-width: 1081px) { .hrf-nav__close { display: none; } }

/* ---------- Hero ---------- */
.hrf-hero { position: relative; min-height: min(86vh, 820px); }
.hrf-hero .wp-block-cover__background { background: linear-gradient(100deg, rgba(10,25,52,.78) 0%, rgba(10,25,52,.45) 45%, rgba(10,25,52,0) 75%) !important; opacity: 1 !important; }
.hrf-hero h1 { text-wrap: balance; }
.hrf-eyebrow { font-family: var(--wp--preset--font-family--sans); font-size: .74rem !important; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.hrf-eyebrow::before { content: ""; display: inline-block; width: 2.2rem; height: 1px; background: currentColor; vertical-align: middle; margin-right: .8rem; opacity: .7; }

/* ---------- Karten / Raster ---------- */
.hrf-card { background: #fff; border: 1px solid var(--wp--preset--color--linie); transition: transform .3s ease, box-shadow .3s ease; height: 100%; display: flex; flex-direction: column; }
.hrf-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -35px rgba(13,34,68,.45); }
.hrf-card .wp-block-image { margin: 0; overflow: hidden; }
.hrf-card .wp-block-image img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .6s ease; }
.hrf-card:hover .wp-block-image img { transform: scale(1.04); }
.hrf-card__body { padding: 1.6rem 1.6rem 1.8rem; flex: 1; display: flex; flex-direction: column; }
.hrf-card__body > .wp-block-buttons, .hrf-card__body > p:last-child { margin-top: auto; }
.hrf-card a.hrf-more { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--wp--preset--color--hrf-blau); }
.hrf-card a.hrf-more::after { content: " →"; transition: margin .2s; }
.hrf-card:hover a.hrf-more::after { margin-left: .3em; }

.hrf-img-cover img { width: 100%; height: 100%; object-fit: cover; }
.hrf-ratio-43 img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hrf-ratio-32 img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.hrf-ratio-1 img { aspect-ratio: 1; object-fit: cover; width: 100%; }

/* Fakten-Leiste */
.hrf-facts { border-top: 1px solid rgba(255,255,255,.2); }
.hrf-fact__num { font-family: var(--wp--preset--font-family--serif); font-size: clamp(2.4rem, 5vw, 3.6rem) !important; line-height: 1; margin-bottom: .4rem !important; }

/* Zeitstrahl Geschichte */
.hrf-timeline { position: relative; }
.hrf-timeline__item { position: relative; padding-left: 2.2rem; border-left: 1px solid var(--wp--preset--color--stein); }
.hrf-timeline__item::before { content: ""; position: absolute; left: -6px; top: .55rem; width: 11px; height: 11px; border-radius: 50%; background: var(--wp--preset--color--elfenbein); border: 1px solid var(--wp--preset--color--hrf-blau); }
.hrf-timeline__year { font-family: var(--wp--preset--font-family--serif); color: var(--wp--preset--color--hrf-blau); font-size: 2.2rem !important; line-height: 1 !important; }

.hrf-photo-sepia img { filter: grayscale(.2) contrast(1.02); }

/* Team */
.hrf-person img { aspect-ratio: 1; object-fit: cover; width: 100%; filter: saturate(.9); }
.hrf-person__role { font-size: .78rem !important; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--lavendel); }

/* Zitat/Statement */
.hrf-statement { text-wrap: balance; }

/* ---------- Formular (Contact Form 7) ---------- */
.hrf-form .wpcf7-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; }
.hrf-form .wpcf7-form > p, .hrf-form .hrf-f-full { grid-column: 1 / -1; margin: 0; }
.hrf-form .hrf-f { display: flex; flex-direction: column; gap: .35rem; margin: 0; }
.hrf-form .hrf-f.hrf-f-full { grid-column: 1 / -1; }
.hrf-form label { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--grau); }
.hrf-form input[type=text], .hrf-form input[type=email], .hrf-form input[type=tel], .hrf-form select, .hrf-form textarea { width: 100%; font: inherit; font-size: 1rem; padding: .85rem 1rem; background: #fff; border: 1px solid var(--wp--preset--color--stein); border-radius: 0; color: var(--wp--preset--color--tinte); transition: border-color .2s, box-shadow .2s; box-sizing: border-box; }
.hrf-form input:focus, .hrf-form select:focus, .hrf-form textarea:focus { outline: none; border-color: var(--wp--preset--color--hrf-blau); box-shadow: 0 0 0 3px rgba(22,58,112,.12); }
.hrf-form textarea { min-height: 9rem; resize: vertical; }
.hrf-form .wpcf7-checkbox, .hrf-form .wpcf7-radio { display: flex; flex-wrap: wrap; gap: .5rem; }
.hrf-form .wpcf7-list-item { margin: 0; }
.hrf-form .wpcf7-list-item label { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border: 1px solid var(--wp--preset--color--stein); background: #fff; text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--wp--preset--color--tinte); cursor: pointer; }
.hrf-form .wpcf7-list-item input { accent-color: var(--wp--preset--color--hrf-blau); }
.hrf-form .wpcf7-acceptance .wpcf7-list-item label { border: 0; padding: 0; background: none; font-size: .85rem; color: var(--wp--preset--color--grau); align-items: flex-start; }
.hrf-form input[type=submit] { justify-self: start; font: inherit; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; padding: 1rem 2.2rem; background: var(--wp--preset--color--hrf-blau); color: #fff; border: 0; cursor: pointer; transition: background .2s; }
.hrf-form input[type=submit]:hover { background: var(--wp--preset--color--nachtblau); }
.hrf-form .wpcf7-not-valid-tip { font-size: .8rem; }
.hrf-form .wpcf7-response-output { grid-column: 1 / -1; margin: 0 !important; padding: 1rem 1.2rem !important; }
.hrf-form .wpcf7-spinner { margin: 0 0 0 1rem; }
@media (max-width: 700px) { .hrf-form .wpcf7-form { grid-template-columns: 1fr; } }

/* Kontaktliste */
.hrf-contact-list { list-style: none; padding: 0; margin: 0; }
.hrf-contact-list li { padding: .9rem 0; border-bottom: 1px solid var(--wp--preset--color--linie); display: flex; gap: 1rem; }
.hrf-contact-list li span:first-child { min-width: 6.5rem; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--grau); padding-top: .2rem; }

/* Footer */
.hrf-footer a { color: inherit; text-decoration: none; opacity: .85; }
.hrf-footer a:hover { opacity: 1; text-decoration: underline; }
.hrf-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }

/* Sanftes Einblenden beim Scrollen */
.hrf-reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.hrf-reveal.is-visible { opacity: 1; transform: none; }
.no-js .hrf-reveal, .block-editor-page .hrf-reveal, .editor-styles-wrapper .hrf-reveal { opacity: 1; transform: none; }

.hrf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Rechtstexte */
.hrf-legal h2 { font-size: 1.6rem; margin-top: 2.4rem; }
.hrf-legal h3 { font-size: 1.25rem; margin-top: 1.8rem; }
.hrf-legal p, .hrf-legal li { font-size: .98rem; }
.hrf-legal a { word-break: break-word; }

/* Vollbreite Cover: Seitenränder und Inhaltsbreite wie der Rest der Seite */
.wp-block-cover.alignfull { padding-left: var(--wp--style--root--padding-left); padding-right: var(--wp--style--root--padding-right); }
.wp-block-cover.alignfull > .wp-block-cover__inner-container,
.wp-block-cover.alignfull.has-custom-content-position > .wp-block-cover__inner-container { width: 100% !important; max-width: var(--wp--style--global--wide-size) !important; margin-inline: auto !important; }
.hrf-hero .wp-block-cover__inner-container > * { max-width: 780px; margin-left: 0 !important; }
.hrf-hero__sub { opacity: .9; }
.hrf-page-hero .wp-block-post-title { max-width: 900px; margin-left: 0 !important; }

/* Fußbereich */
.hrf-footer-legal ul { display: flex; gap: 1.6rem; grid: none; }
.hrf-footer .hrf-footer-cols ul a { font-size: .95rem; }

/* Fakten auf blauem Grund */
.hrf-facts-row p { color: rgba(255,255,255,.82); }
.hrf-facts-row .hrf-fact__num { color: #fff; }
.hrf-facts-row > .wp-block-column { border-left: 1px solid rgba(255,255,255,.18); padding-left: 1.4rem; }
@media (max-width: 1080px) { .admin-bar .hrf-nav { top: 46px; } }
@media (min-width: 783px) and (max-width: 1080px) { .admin-bar .hrf-nav { top: 32px; } }
