/* Weingut Andreas Reichert */
@font-face { font-family: "Lora"; src: url(fonts/lora.woff) format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url(fonts/lora-italic.woff) format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-medium.woff) format("woff"); font-weight: 500; font-display: swap; }

:root {
  --papier: #f4f0eb;
  --papier-2: #ebe4dc;
  --tinte: #1f1b18;
  --tinte-2: #5b524b;
  --taupe: #9a8579;
  --taupe-dunkel: #6f5d52;
  --linie: #d9cfc5;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --breite: 1240px;
  --rand: clamp(20px, 5vw, 56px);
  --abstand: clamp(72px, 11vw, 150px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--tinte); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
figure { margin: 0; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
p { text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--tinte); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--taupe); outline-offset: 3px; }

.kicker { font: 500 .75rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--taupe-dunkel); margin-bottom: 1.4em; display: flex; align-items: center; gap: 14px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Kopf ---------- */
.kopf { position: fixed; inset: 0 0 auto; z-index: 50; isolation: isolate; }
.kopf-innen { max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: 18px var(--rand); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.marke { display: block; flex: none; position: relative; z-index: 2; }
.logo { width: clamp(170px, 18vw, 230px); }
.logo-hell { display: none; }
.navigation { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.navigation a { font-size: .9rem; letter-spacing: .04em; text-decoration: none; padding: 6px 0; position: relative; }
.navigation a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.navigation a:hover::after { transform: scaleX(1); }
.menue-knopf { display: none; }

.mit-hero .kopf:not(.fest) { color: #fff; }
.mit-hero .kopf:not(.fest) .logo-dunkel { display: none; }
.mit-hero .kopf:not(.fest) .logo-hell { display: block; }
/* Hintergrund auf eigener Ebene: backdrop-filter direkt am Kopf würde das Handy-Menü (position: fixed) auf die Kopfhöhe einsperren */
.kopf::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(244, 240, 235, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--linie); opacity: 0; transition: opacity .3s; pointer-events: none; }
.kopf.fest::before, .unterseite .kopf::before { opacity: 1; }
.menue-offen .kopf::before { opacity: 0; }
.unterseite main { padding-top: 90px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #2a2420; }
.hero-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,13,.45) 0%, rgba(20,16,13,0) 28%, rgba(20,16,13,.15) 50%, rgba(20,16,13,.72) 100%); }
.hero-text { position: relative; z-index: 1; width: 100%; max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand) clamp(56px, 10vh, 110px); }
.hero h1 { max-width: 14ch; margin-bottom: .35em; }
.hero-lead { max-width: 52ch; font-size: clamp(1rem, 1.3vw, 1.15rem); color: rgba(255,255,255,.88); margin-bottom: 2em; }

.knopf { display: inline-block; font: 500 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 17px 30px; border: 1px solid var(--tinte); background: var(--tinte); color: var(--papier); cursor: pointer; transition: background .2s, color .2s; }
.knopf:hover { background: transparent; color: var(--tinte); }
.knopf-hell { background: transparent; border-color: rgba(255,255,255,.8); color: #fff; }
.knopf-hell:hover { background: #fff; color: var(--tinte); }

/* ---------- Abschnitte ---------- */
.abschnitt { max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: var(--abstand) var(--rand) 0; }
.abschnitt-kopf { max-width: 640px; margin-bottom: clamp(40px, 6vw, 72px); }
.abschnitt-kopf p:not(.kicker) { color: var(--tinte-2); }
.raster-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 110px); align-items: center; }
.raster-schmal-breit { grid-template-columns: 5fr 7fr; align-items: start; }

/* Über */
.ueber-bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ueber-text > p { color: var(--tinte-2); }
blockquote { margin: 2em 0 0; padding: 0 0 0 24px; border-left: 1px solid var(--taupe); font: italic 400 clamp(1.15rem, 1.7vw, 1.4rem)/1.5 var(--serif); color: var(--tinte); }

/* Weine */
.weine { padding-bottom: 0; }
.wein { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 110px); align-items: center; margin-bottom: clamp(64px, 9vw, 120px); }
.wein-rechts .wein-bild { order: 2; }
.wein-bild { background: var(--papier-2); }
.wein-bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.wein-text { max-width: 470px; }
.wein-text h3 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.wein-text p { color: var(--tinte-2); }
.wein-art { font: 500 .75rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--taupe-dunkel) !important; margin-bottom: .9em; }
.preis { font-family: var(--serif); font-size: 1.15rem; color: var(--tinte) !important; }

/* Terroir */
.lagen { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.5vw, 36px); }
.lage figure { margin-bottom: 22px; position: relative; }
.lage img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.lage figcaption { font: italic .88rem/1.4 var(--serif); color: var(--tinte-2); margin-top: 10px; }
.lage h3 { font-size: 1.4rem; }
.lage p { font-size: .95rem; color: var(--tinte-2); }

/* Philosophie */
.philosophie { position: relative; margin-top: var(--abstand); min-height: 78vh; display: flex; align-items: center; color: #fff; background: var(--tinte); overflow: hidden; }
.philosophie-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.philosophie-text { position: relative; max-width: 760px; margin: 0 auto; padding: var(--abstand) var(--rand); text-align: center; }
.philosophie-text p { font: 400 clamp(1.1rem, 1.6vw, 1.3rem)/1.7 var(--serif); color: rgba(255,255,255,.9); }

/* Termine */
.termine header { position: sticky; top: 120px; }
.termin-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.termin { padding: 26px 0; border-bottom: 1px solid var(--linie); }
.termin-wann { font: 500 .75rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--taupe-dunkel); margin-bottom: .6em; }
.termin h3 { font-size: 1.35rem; margin-bottom: .3em; }
.termin p:last-child { color: var(--tinte-2); margin: 0; font-size: .95rem; }

/* Weinliste */
.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.karte { background: #fff; display: flex; flex-direction: column; }
.karte figure { background: var(--papier-2); }
.karte img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.karte-text { padding: 24px 26px 26px; }
.karte h3 { font-size: 1.35rem; margin-bottom: .4em; }
.karte .preis { margin: 0; }

/* Auszeichnungen */
.preise { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); border-top: 1px solid var(--linie); padding-top: 40px; }
.preise h3 { font-size: 1.4rem; }
.preise p { color: var(--tinte-2); font-size: .95rem; }

/* Team */
.person { display: grid; grid-template-columns: 180px 1fr; gap: 32px; max-width: 760px; align-items: start; }
.person img { width: 180px; aspect-ratio: 1; object-fit: cover; }
.person p:not(.wein-art) { color: var(--tinte-2); }

/* Galerie */
.mosaik { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mosaik a { display: block; overflow: hidden; cursor: zoom-in; }
.mosaik img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.mosaik a:hover img { transform: scale(1.03); }
.mosaik figcaption { font: italic .88rem/1.4 var(--serif); color: var(--tinte-2); margin-top: 8px; }

/* Kontakt */
.kontakt { padding-bottom: var(--abstand); }
.kontakt .raster-2 { align-items: start; }
.kontakt-daten { margin: 2em 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; }
.kontakt-daten dt { font: 500 .72rem/2.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--taupe-dunkel); }
.kontakt-daten dd { margin: 0; }
.formular { display: grid; gap: 18px; background: #fff; padding: clamp(24px, 4vw, 44px); }
.formular label { display: grid; gap: 6px; font-size: .85rem; color: var(--tinte-2); }
.formular input:not([type=checkbox]):not([type=radio]), .formular textarea { font: inherit; font-size: 1rem; color: var(--tinte); padding: 12px 14px; border: 1px solid var(--linie); background: var(--papier); border-radius: 0; width: 100%; }
.formular input:focus, .formular textarea:focus { outline: none; border-color: var(--taupe); background: #fff; }
.formular .haken { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; line-height: 1.5; }
.formular .haken input { margin-top: 3px; accent-color: var(--taupe-dunkel); }
.formular .knopf { justify-self: start; }
.feld-falle { position: absolute !important; left: -9999px; }
.meldung { padding: 14px 16px; margin: 0; font-size: .95rem; }
.meldung.ok { background: #e7efe3; color: #2c4a24; }
.meldung.fehler { background: #f6e4e1; color: #7a2a1f; }

/* Rechtliches */
.rechtliches { max-width: 760px; padding-bottom: var(--abstand); }
.rechtliches h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 1em; }

/* ---------- Fuß ---------- */
.fuss { background: var(--tinte); color: rgba(255,255,255,.75); font-size: .92rem; }
.fuss-innen { max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: 72px var(--rand) 40px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; align-items: start; }
.fuss-logo { width: 220px; opacity: .9; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss-links { display: grid; gap: 6px; }
.fuss-copy { max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: 22px var(--rand) 32px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; color: rgba(255,255,255,.45); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(18,15,13,.95); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font: 300 2.6rem/1 var(--sans); cursor: pointer; padding: 16px 20px; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-zu { top: 8px; right: 8px; }
.lb-zurueck { left: 4px; }
.lb-weiter { right: 4px; }

/* ---------- Einblenden ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .einblenden { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
  .js .einblenden.da { opacity: 1; transform: none; }
}

/* ---------- Tablet & Handy ---------- */
@media (max-width: 1000px) {
  .lagen { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .karten { grid-template-columns: repeat(2, 1fr); }
  .fuss-innen { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .menue-knopf { display: grid; gap: 6px; width: 44px; height: 44px; place-content: center; background: none; border: 0; color: inherit; cursor: pointer; position: relative; z-index: 2; }
  .menue-knopf span:not(.sr) { width: 24px; height: 1.5px; background: currentColor; transition: transform .25s; }
  .menue-knopf[aria-expanded=true] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .menue-knopf[aria-expanded=true] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .navigation { position: fixed; inset: 0; background: var(--papier); color: var(--tinte); flex-direction: column; justify-content: center; align-items: center; gap: 10px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .navigation a { font: 400 1.9rem/1.3 var(--serif); }
  .menue-offen .navigation { opacity: 1; visibility: visible; }
  .menue-offen .kopf { color: var(--tinte) !important; }
  .menue-offen .logo-hell { display: none !important; }
  .menue-offen .logo-dunkel { display: block !important; }
  .raster-2, .raster-schmal-breit, .wein { grid-template-columns: 1fr; }
  .wein-rechts .wein-bild { order: 0; }
  .wein-bild img, .ueber-bild img { aspect-ratio: 4 / 4.4; }
  .preise { grid-template-columns: 1fr; }
  .termine header { position: static; }
  .person { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lagen, .karten { grid-template-columns: 1fr; }
  .lage img { aspect-ratio: 4 / 3; }
  .mosaik { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .fuss-innen { grid-template-columns: 1fr; }
  .knopf { width: 100%; text-align: center; }
  .hero h1 { font-size: 2.3rem; }
}

/* ---------- Angebot anfragen ---------- */
.knopf-anfrage { margin-top: 8px; }
.karte .knopf-anfrage { margin-top: 16px; padding: 13px 20px; font-size: .74rem; }
.weine .abschnitt-kopf .meldung { margin-top: 1em; }
.anfrage { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(20,16,13,.6); }
.anfrage:target, .anfrage.offen { display: flex; }
.anfrage-box { position: relative; background: var(--papier); width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: clamp(24px, 4vw, 44px); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.anfrage-box h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.anfrage-intro { color: var(--tinte-2); }
.anfrage-zu { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0; background: none; font: 300 2rem/1 var(--sans); color: var(--tinte); cursor: pointer; }
.anfrage .formular { background: none; padding: 0; margin-top: 8px; }
.formular select { font: inherit; font-size: 1rem; color: var(--tinte); padding: 12px 14px; border: 1px solid var(--linie); background: #fff; border-radius: 0; width: 100%; }
.anfrage .formular input:not([type=checkbox]):not([type=radio]), .anfrage .formular textarea { background: #fff; }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auswahl { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; color: var(--tinte-2); }
.auswahl legend { font-size: .85rem; margin-bottom: 8px; padding: 0; }
.auswahl label { display: flex !important; align-items: center; gap: 8px; color: var(--tinte); font-size: .95rem; }
.auswahl input { accent-color: var(--taupe-dunkel); width: 18px; height: 18px; }
.anfrage-meldung.ok { background: #e7efe3; color: #2c4a24; padding: 16px; }
.anfrage-meldung.fehler { background: #f6e4e1; color: #7a2a1f; padding: 14px 16px; }
.anfrage-formular.gesendet > :not(.anfrage-meldung) { display: none; }
body.anfrage-offen { overflow: hidden; }
@media (max-width: 560px) {
  .feld-reihe { grid-template-columns: 1fr; }
  .anfrage { padding: 0; align-items: stretch; }
  .anfrage-box { max-height: 100vh; min-height: 100%; }
}
