/* Weingut Riffel – Theme-Styles
   Palette und Typo aus dem CSS von weingut-riffel.de abgeleitet (weiß, Salbeigrün, Greige, feine graue Linien).
   Die Originalschrift "ITC Legacy Sans" ist lizenzpflichtig: Webfont-Dateien (Lizenz vorausgesetzt) als
   assets/fonts/LegacySansITCW05-Book.woff2 ablegen, sonst greift der System-Fallback. */

@font-face {
	font-family: "ITC Legacy Sans";
	font-style: normal; font-weight: 400; font-display: swap;
	src: local("Legacy Sans ITC W05 Book"), local("LegacySansITCW05-Book"),
	     url("../fonts/LegacySansITCW05-Book.woff2") format("woff2");
}

:root {
	--c-bg: #fff;
	--c-text: #000;
	--c-muted: #707070;
	--c-greige: #bdb8b1;
	--c-sage: #8e9582;
	--c-dark: #8e9582;
	--c-on-dark: #fff;
	--c-accent: #bdb8b1;
	--c-line: rgba(255, 255, 255, .9);
	--c-border: #707070;

	--f-sans: "ITC Legacy Sans", "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
	--f-display: var(--f-sans);

	--header-h: 84px;
	--gutter: clamp(1.25rem, 4vw, 3.5rem);
	--max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font: 400 1.0625rem/1.65 var(--f-sans);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: auto 0 0 0; z-index: 50;
	height: var(--header-h);
	display: flex; align-items: center; justify-content: space-between;
	padding: 0 var(--gutter);
	background: #fff; color: var(--c-text);
	transition: box-shadow .3s;
}
.site-header { box-shadow: 0 -1px 0 rgba(112, 112, 112, .35); }
.site-header__logo { text-decoration: none; display: inline-flex; align-items: center; min-width: 120px; }
.site-header__logo img { max-height: 44px; width: auto; height: auto; }
.site-header__mark { display: block; }
.wordmark {
	font: 600 1.5rem/1 var(--f-display);
	letter-spacing: .32em; text-transform: uppercase;
}
.nav { flex: 1; }
.nav__list {
	list-style: none; margin: 0 auto; padding: 0;
	display: flex; justify-content: center; gap: 36px;
}
.nav__list a {
	text-decoration: none; font-size: .8rem; font-weight: 400;
	letter-spacing: .2em; text-transform: uppercase; padding: .4rem 0;
}
.nav__list a:hover,
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a { text-decoration: underline; text-underline-offset: .35em; }

.nav-toggle { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle__bar { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .25s, top .25s; }
.nav-toggle__bar:first-child { top: 17px; }
.nav-toggle__bar:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.nav {
		position: fixed; inset: 0 0 var(--header-h) 0;
		background: var(--c-dark); color: var(--c-on-dark);
		display: flex; align-items: center; justify-content: center;
		opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
	}
	.nav.is-open { opacity: 1; visibility: visible; }
	.nav__list { flex-direction: column; align-items: center; gap: 1.75rem; }
	.nav__list a { font-size: 1.25rem; }
	body.nav-open .site-header { background: var(--c-dark); color: var(--c-on-dark); box-shadow: none; }
	body.nav-open { overflow: hidden; }
}

/* ---------- Startseite (Aufbau wie weingut-riffel.de) ---------- */
.site-main { min-height: 60vh; }
body { padding-bottom: var(--header-h); } /* Platz für die untere Menüleiste */

.hero {
	position: relative; aspect-ratio: 2 / 1; min-height: 340px;
	display: flex; align-items: center; justify-content: center;
	background: var(--c-sage) center / cover no-repeat; color: #fff;
}
.hero__title {
	margin: 0; font-weight: 300; text-transform: uppercase;
	font-size: clamp(2.75rem, 7vw, 6rem); letter-spacing: .32em; text-indent: .32em; line-height: 1;
	text-shadow: 0 1px 24px rgba(0, 0, 0, .18);
}

.band { background: #fff; text-align: center; padding: clamp(3.5rem, 8vw, 7rem) var(--gutter) clamp(2rem, 4vw, 3.5rem); }
.band p { margin: 0 auto; }
.band--tagline p { max-width: 46rem; font-size: clamp(1.05rem, 1.7vw, 1.55rem); line-height: 2; letter-spacing: .22em; }
.band--small p { max-width: 26rem; font-size: clamp(.9rem, 1.1vw, 1.05rem); line-height: 2; letter-spacing: .18em; }
.band--small .more { display: inline-block; margin-left: .75em; font-size: .7em; letter-spacing: .2em; text-transform: uppercase; color: var(--c-muted); text-decoration: none; border-bottom: 1px solid var(--c-greige); }
.band--small .more:hover { color: var(--c-text); border-color: var(--c-text); }
.company-name { margin: 2.5rem 0 0; text-align: center; text-transform: uppercase; color: var(--c-greige); font-size: .7rem; letter-spacing: .5em; text-indent: .5em; }

.split { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 2 / 1; background: #fff; }
.split__fill { background: var(--c-sage); }
.split__img { width: 100%; height: 100%; object-fit: cover; }

.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }

.twocol {
	position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 0 auto;
	border: 1px solid var(--c-border); border-left: 0; border-right: 0;
	background: #fff;
}
.twocol p { margin: 0; padding: clamp(1.5rem, 3vw, 3rem) clamp(1.25rem, 3vw, 3rem) clamp(3.5rem, 6vw, 5rem); font-size: clamp(.9rem, 1.1vw, 1.05rem); line-height: 1.9; letter-spacing: .1em; }
.twocol p + p { border-left: 1px solid var(--c-border); }
.twocol__badge { position: absolute; right: clamp(1rem, 2vw, 2rem); bottom: clamp(1rem, 2vw, 2rem); width: 56px; height: auto; }

.panorama { position: relative; margin: 0; }
.panorama img { width: 100%; height: auto; display: block; }
.panorama__lines { position: absolute; inset: 0; pointer-events: none; }
.panorama__lines i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .75); }
.panorama__lines i:nth-child(1) { left: 9%; }
.panorama__lines i:nth-child(2) { left: 29%; }
.panorama__lines i:nth-child(3) { left: 53%; }
.panorama__lines i:nth-child(4) { left: 66%; }
.panorama__lines i:nth-child(5) { left: 78%; }

@media (max-width: 700px) {
	.hero { aspect-ratio: 4 / 3; }
	.split { grid-template-columns: 1fr; aspect-ratio: auto; }
	.split__fill { display: none; }
	.split__img { aspect-ratio: 4 / 5; }
	.twocol { grid-template-columns: 1fr; }
	.twocol p + p { border-left: 0; border-top: 1px solid var(--c-border); }
	.panorama__lines i:nth-child(n+4) { display: none; }
}

/* ---------- Einblenden beim Scrollen ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; will-change: opacity, transform; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Unterseiten ---------- */
.page-head { padding: clamp(3rem, 8vw, 7rem) var(--gutter) clamp(2rem, 4vw, 3.5rem); max-width: var(--max); margin: 0 auto; }
.page-head h1 { margin: 0; font: 300 clamp(2.75rem, 8vw, 6.5rem)/1 var(--f-display); letter-spacing: -.01em; }

.prose { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter) 6rem; }
.prose > * + * { margin-top: 1.25em; }
.prose img { margin-inline: auto; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 0 var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.tile {
	position: relative; aspect-ratio: 4 / 5; display: flex; align-items: flex-end;
	color: #fff; text-decoration: none; overflow: hidden;
	background: #8e9582 center / cover no-repeat;
	background-image: linear-gradient(160deg, #a3ab97, #6f7765);
}
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent 60%); transition: opacity .3s; }
.tile__body { position: relative; z-index: 1; padding: 1.75rem; }
.tile__title { margin: 0 0 .5rem; font: 300 clamp(1.6rem, 2.4vw, 2.25rem)/1.1 var(--f-display); }
.tile__text { display: block; font-size: .95rem; line-height: 1.5; opacity: .88; max-width: 34ch; }
.tile:hover .tile__title { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.shop-hint { text-align: center; padding: 4rem var(--gutter) 6rem; margin: 0; color: var(--c-muted); }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tile { aspect-ratio: 4 / 3; } }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 7rem; }
.contact h2 { margin: 0 0 1rem; font: 300 1.75rem/1.2 var(--f-display); }
.contact address { font-style: normal; margin-bottom: 1rem; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 5rem; }
.card { text-decoration: none; display: block; }
.card__img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; margin-bottom: 1rem; }
.card__body time { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.card__body h2 { margin: .25rem 0 .5rem; font: 400 1.5rem/1.25 var(--f-display); }
.navigation.pagination { text-align: center; padding-bottom: 5rem; }
.navigation .page-numbers { display: inline-block; padding: .4rem .8rem; text-decoration: none; }
.navigation .current { border-bottom: 1px solid; }

/* ---------- Pinnwand (Blog) ---------- */
:root { --c-orange: #ff9300; }
.pinboard { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 100vh; }
.pinboard--single { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; padding-top: 4rem; }
.pinboard__left { background: var(--c-orange); }
.pin-feature { position: sticky; top: 0; }
.pin-feature__card { background: var(--c-greige); padding: clamp(1.5rem, 3vw, 2.75rem); }
.pin-feature__title { margin: 1.5rem 0 .25rem; font-size: clamp(1.1rem, 1.5vw, 1.45rem); font-weight: 400; letter-spacing: .06em; line-height: 1.4; }
.pin-feature__title a, .pin__title a { text-decoration: none; }
.pin-feature__title a:hover, .pin__title a:hover { text-decoration: underline; text-underline-offset: .25em; }
.pin-feature__date { margin: 0 0 1.25rem; font-size: clamp(1.1rem, 1.5vw, 1.45rem); letter-spacing: .06em; }
.pin-feature__text { margin: 0; padding-bottom: 1.25rem; border-bottom: 1px solid var(--c-muted); font-size: .72rem; line-height: 1.7; letter-spacing: .06em; }
.pin-feature__img { display: block; }
.pin-feature__img img { width: 100%; height: auto; display: block; }

.pinboard__right { padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3.5rem) 5rem; background: #fff; }
.pin { max-width: 34rem; margin: 0 0 2.75rem; }
.pin-meta { margin: 0 0 .6rem; font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--c-muted); }
.pin__title { margin: 0 0 .5rem; font-size: .9rem; font-weight: 400; line-height: 1.6; letter-spacing: .06em; }
.pin__text { margin: 0 0 .6rem; font-size: .8rem; line-height: 1.7; letter-spacing: .05em; }
.pin .more { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-muted); text-decoration: none; border-bottom: 1px solid var(--c-greige); }
.pin .more:hover { color: var(--c-text); border-color: var(--c-text); }
@media (max-width: 760px) {
	.pinboard { grid-template-columns: 1fr; min-height: 0; }
	.pin-feature { position: static; }
}

/* ---------- Footer ---------- */
.site-footer { background: #fff; color: var(--c-text); font-size: .8rem; letter-spacing: .08em; line-height: 1.8; border-top: 1px solid var(--c-border); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__inner {
	max-width: var(--max); margin: 0 auto; padding: 4.5rem var(--gutter) 3rem;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.site-footer__brand { margin: 0 0 .5rem; letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; color: var(--c-greige); }
.site-footer address { font-style: normal; }
.site-footer p { margin: 0; }
.site-footer__social { display: flex; flex-direction: column; gap: .35rem; }
.site-footer__bottom {
	max-width: var(--max); margin: 0 auto; padding: 1.5rem var(--gutter) 2.5rem;
	border-top: 1px solid var(--c-greige);
	display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
	font-size: .8125rem; color: var(--c-muted);
}
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__inner { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero__scroll { animation: none; }
}

/* ---------- Header-Layout Desktop: Navigation mittig, Logo rechts ---------- */
@media (min-width: 861px) {
	.site-header { display: grid; grid-template-columns: 1fr auto 1fr; }
	.nav { grid-column: 2; grid-row: 1; flex: none; }
	.site-header__logo { grid-column: 3; grid-row: 1; justify-self: end; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; transform: none; transition: none; }
}
