/* Wandervogel — Naturpapier, feine Linien, zurückhaltende Farbakzente */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/CormorantGaramond-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url(fonts/CormorantGaramond-italic.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/EBGaramond-normal.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 800; font-display: swap; src: url(fonts/EBGaramond-italic.woff2) format("woff2"); }

:root {
  --paper: #F4EFE6;
  --paper-2: #EBE4D7;
  --card: #F8F4EC;
  --ink: #1F1B17;
  --ink-soft: #5B534A;
  --ink-faint: #8A8176;
  --line: #D6CCBB;
  --amber: #B8742A;
  --wine: #6B2733;
  --rose: #B8736B;
  --ok: #3F6B47;
  --err: #9A2F2F;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  /* feine Papierstruktur */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--wine); color: var(--paper); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: 13px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 18px;
}
.rule { width: 36px; height: 1px; background: var(--ink-faint); border: 0; margin: 22px 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 26px; }
p { margin: 0 0 1em; }
.lead { font-size: 21px; color: var(--ink-soft); max-width: 40em; }
.caps { letter-spacing: .24em; text-transform: uppercase; font-size: 13px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { border: 1px solid var(--ink); padding: 8px 16px; color: var(--ink) !important; }
.nav-cta .count { display: inline-block; min-width: 1.4em; margin-left: 6px; text-align: center; background: var(--wine); color: var(--paper); border-radius: 99px; font-size: 11px; letter-spacing: 0; padding: 1px 5px; }
.nav-cta .count[hidden] { display: none; }
@media (max-width: 820px) { .nav-links a:not(.nav-cta):not(.icon-circle) { display: none; } .nav-links { gap: 14px; } }

.icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink); transition: border-color .2s, background .2s;
}
.icon-circle:hover { border-color: var(--ink); background: var(--card); }
.icon-circle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-logo { width: min(430px, 100%); margin: 0 0 clamp(28px, 4vw, 44px) -8px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); margin-bottom: 18px; }
.hero .origin { font-size: 14px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 34px; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; max-height: calc(100vh - 150px); aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 60% 30%; filter: grayscale(1) contrast(1.02); }
.hero-photo figcaption { position: absolute; left: -1px; bottom: -1px; background: var(--paper); padding: 10px 16px 0 0; font-style: italic; color: var(--ink-soft); font-size: 16px; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { order: -1; } .hero-photo img { aspect-ratio: 4 / 3.6; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 14px; letter-spacing: .22em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  padding: 15px 26px; cursor: pointer; text-decoration: none; transition: background .2s, color .2s;
}
.btn:hover { background: var(--wine); border-color: var(--wine); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn:disabled { opacity: .45; cursor: not-allowed; background: var(--ink); }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 112px) 0; }
.bordered { border-top: 1px solid var(--line); }

.story-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.story h2 { margin-bottom: 28px; max-width: 18em; }
.story-text p { font-size: 20px; }
.story-quote { font-family: var(--display); font-style: italic; font-size: 25px; line-height: 1.45; color: var(--ink); border-left: 1px solid var(--ink-faint); padding-left: 22px; margin: 36px 0 0; }
.story-aside img { width: 100%; max-width: 340px; border-radius: 50%; box-shadow: 0 18px 40px -24px rgba(31,27,23,.45); margin: 0 auto; }
.story-aside p { text-align: center; margin-top: 18px; color: var(--ink-soft); font-size: 15px; letter-spacing: .18em; text-transform: uppercase; }
@media (max-width: 820px) { .story-grid { grid-template-columns: 1fr; } }

.visual { padding: 0; }
.visual figure { margin: 0; }
.visual img { width: 100%; max-height: 86vh; object-fit: cover; }
.visual figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 18px var(--gutter) 0; max-width: var(--wrap); margin: 0 auto; color: var(--ink-soft); font-size: 13px; letter-spacing: .26em; text-transform: uppercase; }

/* ---------- Weine / Shop ---------- */
.wines-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px); }
.wines-head p { margin: 0; color: var(--ink-soft); max-width: 26em; }
.wine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); }
@media (max-width: 900px) { .wine-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.wine {
  background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column;
  position: relative;
}
.wine::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.wine-img { aspect-ratio: 3 / 3.4; overflow: hidden; background: #e9e2d6; }
.wine-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transition: transform .8s ease; }
.wine:hover .wine-img img { transform: scale(1.035); }
.wine-body { padding: 24px 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.wine-style { font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }
.wine h3 { font-size: 28px; }
.wine-text { color: var(--ink-soft); margin: 0; }
.wine-meta { font-size: 15px; color: var(--ink-faint); margin: 0; }
.wine-meta a { color: var(--ink-soft); }
.wine-buy { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-family: var(--display); font-size: 28px; line-height: 1; }
.price small { display: block; font-family: var(--serif); font-size: 13px; color: var(--ink-faint); margin-top: 6px; }

.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--ink); height: 42px; }
.stepper button { width: 40px; border: 0; background: transparent; font: inherit; font-size: 20px; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--paper-2); }
.stepper input { width: 44px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font: inherit; font-size: 18px; background: transparent; color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Bestellung ---------- */
.order-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .order-grid { grid-template-columns: 1fr; } }
.cart { background: var(--card); border: 1px solid var(--line); padding: 26px 28px; position: sticky; top: 96px; }
@media (max-width: 900px) { .cart { position: static; } }
.cart h3 { margin-bottom: 14px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.cart-lines li span:first-child em { color: var(--ink-faint); }
.cart-empty { color: var(--ink-faint); font-style: italic; padding: 8px 0 14px; }
.cart-total { display: flex; justify-content: space-between; padding-top: 14px; font-family: var(--display); font-size: 26px; }
.cart-note { font-size: 14px; color: var(--ink-faint); margin: 10px 0 0; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 18px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink-faint);
  padding: 8px 2px; border-radius: 0; outline: none; transition: border-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; border: 1px solid var(--ink-faint); padding: 10px 12px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--err); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-soft); line-height: 1.45; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--wine); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-msg { font-size: 17px; margin: 0; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }
.success { background: var(--card); border: 1px solid var(--line); padding: 30px; }
.success h3 { margin-bottom: 10px; }

/* ---------- Herkunft ---------- */
.origin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
@media (max-width: 820px) { .origin-grid { grid-template-columns: 1fr; } }
.origin-facts { list-style: none; margin: 26px 0 0; padding: 0; }
.origin-facts li { display: flex; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.origin-facts li span:first-child { min-width: 8.5em; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-faint); padding-top: 4px; }
.origin-img { aspect-ratio: 4/3; overflow: hidden; }
.origin-img img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 18%; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 88px); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-direct { margin-top: 28px; display: grid; gap: 14px; }
.contact-direct a { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-size: 19px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 44px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-sign { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.footer-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; }
.footer-legal a:hover { color: var(--ink); }

/* ---------- Rechtliches ---------- */
.legal { max-width: 760px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: 80px; }
.legal h1 { font-size: clamp(38px, 5vw, 54px); margin-bottom: 36px; }
.legal h2 { font-size: 28px; margin: 44px 0 14px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal h3 { font-family: var(--serif); font-size: 14px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin: 26px 0 8px; }
.legal p, .legal address { font-size: 18px; font-style: normal; }
.legal address { margin-bottom: 1em; line-height: 1.55; }
.back-link { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Grid-Kinder dürfen schrumpfen (verhindert horizontales Scrollen am Handy) */
.hero-grid > *, .story-grid > *, .order-grid > *, .origin-grid > *, .contact-grid > *, .form > * { min-width: 0; }
@media (max-width: 560px) {
  .btn { letter-spacing: .14em; padding: 14px 18px; text-align: center; }
  .form-actions .btn { width: 100%; }
  .nav-cta { padding: 7px 10px; letter-spacing: .14em !important; }
}
