/* Startseite (front-page.php) und Grundlage der Unterseiten (dazu landing/seiten.css) im Aufbau der Weinshop-Vorlage (Showcase „Männchen“, landing/landing.css dort).
   Übernommen: Bühne mit wachsendem Punkt, Fläche in der Akzentfarbe, klebende Bildspalte, Weine im Querlauf,
   Parallaxe, Aktuelles, Besuch. Geändert: Farben vom Bengel-Etikett (css/basis.css), Logo als Maske, Kopf und Fuß aus
   landing/rahmen.css. Verhalten: landing/start.js. */
:root {
	--papier: #ffffff;                       /* Seitenfläche weiß (Wunsch des Weinguts); Hellgrau 427 U nur als Fläche der Lagen */
	--flaeche: #ffffff;
	--tinte: var(--pcl-primary-dark-1);     /* Anthrazit tief */
	--grau: var(--pcl-primary-dark-3);
	--linie: var(--pcl-primary-light-3);
	--akzent: var(--pcl-primary-brand-1);   /* Anthrazit, Pantone 433 U: in der Vorlage „Oliv“ */
	--akzent-text: var(--pcl-primary-brand-1);
	--auf-akzent: var(--pcl-primary-light-2); /* Anthrazit ist dunkel: helle Schrift darauf */
	--auf-knopf: #ffffff;
	--lage: #ffffff;                         /* Fläche der Lagen und Dubbeengel: weiß wie die Seite (Wunsch des Weinguts) */
	--auf-lage: var(--tinte);
	--foto-text: #ffffff;
	--foto-schleier: rgba(30, 32, 36, .58);
	--schrift-display: var(--pcl-heading-font);
	--schrift-text: var(--pcl-body-font);
	--schrift-daten: var(--pcl-data-font);
	--breite: var(--pcl-container-l);
	--rand: max(var(--pcl-gutter), env(safe-area-inset-left, 0px));
	--rand-r: max(var(--pcl-gutter), env(safe-area-inset-right, 0px));
}

html { scroll-behavior: smooth; }
body.sc-landing { background: var(--papier); color: var(--tinte); font: 400 1rem/1.65 var(--schrift-text); overflow-x: clip; }
:is(.start, .unterseite) img { display: block; max-width: 100%; }
:is(.start, .unterseite) a { color: inherit; text-decoration: none; }
:is(.start, .unterseite) :is(h1, h2, h3) { margin: 0; font-family: var(--schrift-display); text-wrap: balance; }
:is(.start, .unterseite) p { margin: 0; }
:is(.start, .unterseite) :focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 0; }
.unsichtbar { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.innen { width: 100%; max-width: calc(var(--breite) + 2 * var(--pcl-gutter)); margin-inline: auto; padding-left: var(--rand); padding-right: var(--rand-r); }

.knopf {
	display: inline-flex; align-items: center; gap: .6em; width: fit-content;
	padding: .85em 1.5em; border-radius: 0;
	background: var(--akzent); color: var(--auf-knopf) !important;
	font: 600 1rem/1 var(--schrift-text); text-decoration: none;
	transition: transform .2s ease, filter .2s ease;
}
.knopf:hover { transform: translateY(-2px); filter: brightness(1.12); }
.knopf svg { width: 1em; height: 1em; }
.knopf--rand { background: transparent; color: var(--tinte) !important; box-shadow: inset 0 0 0 1.5px var(--tinte); }
.knopf--rand:hover { background: var(--tinte); color: var(--papier) !important; filter: none; }

/* ---------- Bühne: Foto, Logo, Punkt wächst beim Scrollen und füllt die Fläche in Hellgrau ---------- */
.held { position: relative; height: 100vh; height: 100svh; min-height: 520px; background: var(--tinte); }
.held__buehne { position: relative; height: 100%; overflow: hidden; display: grid; place-items: center; color: var(--foto-text); }
.held__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1.08)); will-change: transform; }
/* Slider: Fotos der Lese blenden über, jedes zoomt dabei langsam zurück (landing/start.js wechselt die Klasse) */
.held__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.held__slide.ist-aktiv { opacity: 1; }
.held__foto { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 9s linear; }
.held__slide.ist-aktiv .held__foto { transform: scale(1); }
.held__steuerung {
	position: absolute; z-index: 3; left: var(--rand); bottom: calc(22px + env(safe-area-inset-bottom, 0px));
	display: flex; align-items: center; gap: 10px; color: var(--foto-text); opacity: var(--blende, 1);
}
.held__punkte { display: flex; }
.held__punkte button { display: grid; place-items: center; width: 26px; height: 32px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.held__punkte i { display: block; width: 16px; height: 3px; background: currentColor; opacity: .45; transition: width .3s ease, opacity .3s ease; }
.held__punkte button[aria-current] i { width: 22px; opacity: 1; }
.held__punkte button:hover i { opacity: .9; }
.held__pause { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: var(--pcl-primary-brand-1); color: var(--pcl-primary-light-1); cursor: pointer; }
.held__pause:hover { background: var(--pcl-primary-brand-2); }
.held__pause span { width: 8px; height: 10px; border-inline: 3px solid currentColor; box-sizing: border-box; }
.held__pause.ist-pausiert span { width: 0; height: 0; border: 0; border-left: 9px solid currentColor; border-block: 6px solid transparent; margin-left: 3px; }
.held__steuerung button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 600px) { .held .scroll-hinweis { display: none; } } /* Steuerung steht immer links unten, weg von „Frag das Weingut“ rechts */
/* Testshop-Leiste von Weingut Shop liegt unten über der Bühne: Steuerung darüber setzen */
body.ws-testmodus-aktiv .held__steuerung { bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 600px) { body.ws-testmodus-aktiv .held__steuerung { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
/* Kein Verlauf über den Fotos (Wunsch des Weinguts): Lesbarkeit nur über einen weichen Schatten an der Schrift */
.held__schleier { display: none; }
.held__text { text-shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 2px 18px rgba(0, 0, 0, .45); }
.held__text .knopf { text-shadow: none; }
.held__text { position: relative; display: grid; justify-items: center; gap: 22px; padding: var(--kopf) var(--rand-r) 0 var(--rand); text-align: center; }
.held__titel { max-width: 14ch; font: 400 clamp(2.8rem, 1.6rem + 5.4vw, 6.25rem)/1 var(--schrift-display); text-wrap: balance; }
.held__unter { max-width: 36ch; font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.45; opacity: var(--blende, 1); }
.held__unten { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 24px; opacity: var(--blende, 1); }
.held__daten { font: 500 .8rem/1.2 var(--schrift-daten); letter-spacing: .1em; opacity: .85; }
/* Hinweis auf den Weinfinder unter dem Knopf: eigene Zeile, hell auf dem Foto */
.held__unten .held__finder { flex-basis: 100%; color: inherit !important; font-size: 1rem; line-height: 1.4; }
.held__unten .held__finder:hover, .held__unten .held__finder:focus-visible { color: inherit !important; text-decoration-thickness: 2px; }
.scroll-hinweis { position: absolute; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font: 500 .75rem/1.2 var(--schrift-daten); letter-spacing: .14em; text-transform: uppercase; opacity: var(--blende, 1); }
.scroll-hinweis span { display: block; width: 1px; height: 38px; background: currentColor; opacity: .6; animation: tropfen 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes tropfen { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* ---------- Lagen ---------- */
.lage { background: var(--lage); color: var(--auf-lage); padding-block: 96px 112px; }
.lage .innen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px 72px; align-items: start; }
.lage h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 400; line-height: .98; letter-spacing: 0; }
.lage__text { display: grid; gap: 28px; }
.lage__text > .pencil-richtext p, .lage__text > div:first-child p { max-width: 58ch; font-size: 1.15rem; }
.fakten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid color-mix(in srgb, var(--auf-lage) 30%, transparent); }
.fakten > div { padding: 18px 16px 18px 0; border-bottom: 1px solid color-mix(in srgb, var(--auf-lage) 30%, transparent); }
.fakten dt { font: 500 .72rem/1.2 var(--schrift-daten); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.fakten dd { margin: 6px 0 0; font: 400 1.6rem/1.1 var(--schrift-display); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.fakten dd small { font: 500 .85rem var(--schrift-text); letter-spacing: 0; opacity: .8; }
.lage__link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-weight: 600; text-decoration: underline !important; text-underline-offset: 4px; }

/* ---------- Drei Schritte: Bildspalte klebt, Texte laufen vorbei ---------- */
.jahr { padding-block: 112px 40px; }
.jahr__kopf { margin-bottom: 48px; }
.jahr__kopf h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 400; letter-spacing: 0; line-height: 1; }
.jahr__raster { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; }
.jahr__bild {
	position: sticky; top: calc(var(--kopf) + 32px + env(safe-area-inset-top, 0px)); align-self: start;
	aspect-ratio: 4 / 5; max-height: calc(100svh - var(--kopf) - 64px); width: 100%; margin: 0;
	border-radius: 0; overflow: hidden; background: var(--flaeche);
}
.jahr__ebene { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .7s ease, transform 1.2s ease; }
.jahr__ebene.ist-aktiv { opacity: 1; transform: scale(1); }
.jahr__ebene img, .jahr__ebene .pencil-image { width: 100%; height: 100%; object-fit: cover; }
.monate { position: absolute; left: 18px; right: 18px; bottom: 18px; display: grid; grid-template-columns: repeat(var(--anzahl, 4), 1fr); gap: 6px; }
.monate span { display: grid; gap: 8px; color: #fff; font: 500 .68rem/1.2 var(--schrift-daten); letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); opacity: .7; transition: opacity .3s; }
.monate span::before { content: ""; height: 3px; border-radius: 0; background: rgba(255, 255, 255, .45); transition: background-color .3s; }
.monate span.ist-aktiv { opacity: 1; }
.monate span.ist-aktiv::before { background: var(--akzent); }
.schritte { display: grid; }
.schritt { min-height: 78vh; display: grid; align-content: center; gap: 16px; padding-block: 40px; }
.schritt h3 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 600; letter-spacing: 0; line-height: 1.05; }
.schritt__text p { max-width: 46ch; color: var(--grau); font-size: 1.1rem; }
.schritt__text p + p { margin-top: .8em; }
.schritt__wert { width: fit-content; margin-top: 8px; padding: 10px 16px; border: 1px solid var(--linie); border-radius: 0; font: 500 .85rem/1.2 var(--schrift-daten); font-variant-numeric: tabular-nums; }
.schritt__wert b { margin-right: 8px; font: 400 1.15rem/1 var(--schrift-display); }
.schritt__bild-mobil { display: none; }

/* ---------- Weine als Querlauf ---------- */
.weine { position: relative; }
.weine__buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 28px; padding-top: var(--kopf); }
.weine__kopf { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; }
.weine__kopf h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 400; letter-spacing: 0; line-height: 1; }
.weine__text { max-width: 40ch; color: var(--grau); }
.weine__seite { display: grid; gap: 12px; justify-items: start; }
.spur { display: flex; gap: 24px; width: max-content; justify-self: start; padding-left: max(var(--rand), calc((100vw - var(--breite)) / 2)); padding-right: var(--rand-r); transform: translateX(calc(var(--quer, 0) * -1px)); will-change: transform; }
.flasche {
	display: grid; grid-template-rows: auto 1fr; flex: none;
	width: clamp(220px, 20vw, 260px); border-radius: 0; overflow: hidden;
	background: var(--flaeche); color: var(--tinte);
	box-shadow: 0 1px 0 var(--linie), 0 20px 40px -28px rgba(0, 0, 0, .35);
	transition: transform .3s ease, box-shadow .3s ease;
}
.flasche:hover { transform: translateY(-4px); }
:is(.start, .unterseite) a.flasche { color: var(--tinte); } /* auch auf der Akzentfläche dunkle Schrift in der weißen Karte */
/* Flaschenfotos stehen auf Weiß: Fläche weiß, ohne Tönung */
/* Oben Platz für die Auszeichnung, damit sie nicht über der Flasche liegt; bei allen Karten gleich, damit die Flaschen gleich groß sind */
.flasche__bild { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #fff; }
/* Bild fest im Rahmen (oben Platz für die Auszeichnung). Absolut statt height: 100 %, weil Safari die Höhe aus aspect-ratio
   nicht an das Bild weitergibt und es sonst unten über Jahrgang und Namen ragt. */
.flasche__bild img { position: absolute; inset: 46px 8px 8px; width: calc(100% - 16px); height: calc(100% - 54px); object-fit: contain; transition: transform .5s ease; }
.flasche:hover .flasche__bild img { transform: translateY(-6px) scale(1.03); }
.flasche__siegel { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 0; background: #fff; color: var(--tinte); font: 600 .72rem/1 var(--schrift-text); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.flasche__siegel::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f3dc7c, #c9a227 55%, #9a7614); }
/* Punkt in der Farbe der Münze */
.flasche__siegel--silber::before { background: radial-gradient(circle at 35% 30%, #f4f5f6, #b9bec3 55%, #868b91); }
.flasche__siegel--bronze::before { background: radial-gradient(circle at 35% 30%, #f0c49a, #b07440 55%, #7c4a22); }
.flasche__text { display: grid; align-content: start; gap: 6px; padding: 18px 20px 22px; }
.flasche__kopf { color: var(--akzent-text); font: 500 .68rem/1.2 var(--schrift-daten); letter-spacing: .14em; text-transform: uppercase; }
.flasche__name { font: 400 1.3rem/1.15 var(--schrift-display); letter-spacing: 0; }
.flasche__lage { color: var(--grau); font-size: .9rem; line-height: 1.45; }
.flasche__preis { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--linie); }
.flasche__preis b { font: 400 1.25rem/1 var(--schrift-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.flasche__preis span { color: var(--grau); font: 400 .78rem/1.3 var(--schrift-daten); font-variant-numeric: tabular-nums; text-align: right; }
.weine__fuss { color: var(--grau); font-size: .85rem; }
.weine__fuss a, .besuch__mehr { text-decoration: underline !important; text-underline-offset: 3px; }

/* ---------- Vinothek: Foto mit Parallaxe ---------- */
.probe { position: relative; overflow: hidden; color: var(--foto-text); }
.probe__bild { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; transform: translateY(calc(var(--para, 0) * 1px)); will-change: transform; }
.probe::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--foto-schleier), rgba(0, 0, 0, .1)); }
.probe .innen { position: relative; z-index: 1; padding-block: 140px; display: grid; }
.probe__karte { display: grid; gap: 18px; max-width: 520px; }
.probe__karte h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 400; letter-spacing: 0; line-height: 1; }
.probe__karte p { font-size: 1.15rem; }
.probe__knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 6px; }
.probe__link { font-weight: 600; text-decoration: underline !important; text-underline-offset: 4px; }

/* ---------- Aktuelles: die drei neuesten Beiträge ---------- */
.neues { padding-block: 112px 0; }
.neues__kopf { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.neues h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 400; letter-spacing: 0; line-height: 1; }
.neues__raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.notiz { display: grid; align-content: start; gap: 10px; }
.notiz__bild { display: block; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 8px; border-radius: 0; background: #fff; }
.notiz__bild img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s ease; }
.notiz:hover .notiz__bild img { scale: 1.04; }
.notiz__titel { font: 400 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.15 var(--schrift-display); letter-spacing: 0; text-wrap: balance; }
.notiz:hover .notiz__titel { text-decoration: underline; text-decoration-color: var(--akzent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Besuch ---------- */
.besuch { padding-block: 112px; }
.besuch .innen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px 72px; }
.besuch h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 400; letter-spacing: 0; line-height: 1; }
.besuch__spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.besuch__block { display: grid; gap: 10px; align-content: start; }
.besuch__block h3 { font: 500 .75rem/1.2 var(--schrift-daten); letter-spacing: .14em; text-transform: uppercase; color: var(--grau); }
.zeiten { display: grid; gap: 6px; margin: 0; font-variant-numeric: tabular-nums; }
.zeiten > div { display: grid; gap: 2px; padding-bottom: 6px; border-bottom: 1px solid var(--linie); }
.zeiten dt { font-weight: 500; }
.zeiten dd { margin: 0; color: var(--grau); }
.kontakt { display: grid; gap: 4px; font-size: 1.05rem; font-style: normal; }
.kontakt a:hover { text-decoration: underline; text-underline-offset: 3px; }
.kontakt .pencil-managed-region { display: grid; gap: 4px; } /* Anschrift, Telefon, E-Mail je eine Zeile, auch im Pencilino-Bereich */
.besuch__mehr { width: fit-content; margin-top: 6px; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 900px) {
	.lage .innen, .besuch .innen, .jahr__raster { grid-template-columns: minmax(0, 1fr); }
	.neues__raster { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.neues { padding-block: 88px 0; }
	.jahr__raster { gap: 0; }
	.jahr__bild { display: none; }
	.schritt { min-height: 0; padding-block: 28px; }
	.schritt__bild-mobil { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 0; }
	.schritt__bild-mobil img { width: 100%; height: 100%; object-fit: cover; }
	.weine { height: auto !important; }
	.weine__buehne { position: static; height: auto; padding-block: 96px 64px; }
	/* justify-self: stretch, sonst ist die Spur so breit wie alle Weine und lässt sich nicht wischen */
	.spur { transform: none; overflow-x: auto; width: auto; min-width: 0; justify-self: stretch; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rand) var(--rand-r); padding-bottom: 12px; scrollbar-width: none; overscroll-behavior-x: contain; }
	.spur::-webkit-scrollbar { display: none; }
	.flasche { scroll-snap-align: start; width: min(78vw, 300px); }
	.besuch__spalten { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) { .fakten { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.held { height: auto; }
	.held__buehne { position: relative; height: auto; min-height: 82vh; }
	.held__bild, .probe__bild { transform: none !important; }
	.held__foto, .held__slide.ist-aktiv .held__foto { transform: none; transition: none; }
	.held__slide { transition: opacity .3s linear; }
	.scroll-hinweis span { animation: none; }
	.weine { height: auto !important; }
	.weine__buehne { position: static; height: auto; padding-block: 96px 64px; }
	.spur { transform: none !important; overflow-x: auto; width: auto; min-width: 0; justify-self: stretch; }
	.jahr__ebene { transition: none; }
}

/* Seitenwarenkorb (Weingut Shop): Knöpfe als Pillen wie .knopf */
.ws-sc-btn { display: flex; align-items: center; justify-content: center; border-radius: 0; font: 600 1rem/1.2 var(--schrift-text); padding: .85em 1em; } /* Text mittig, auch neben einem zweizeiligen Knopf */
.ws-sc-leer .ws-sc-btn { border-color: var(--akzent); background: var(--akzent); color: var(--auf-knopf); }

/* Termine (Admin: Termine): Abschnitt der Startseite vor „Aktuell im Weingut“; die Liste selbst steht in rahmen.css */
.termine { padding-block: 112px 0; }
.termine h2 { margin-bottom: 40px; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 400; letter-spacing: 0; line-height: 1; }
@media (max-width: 600px) { .termine { padding-block: 88px 0; } }
