/* Weinshop – Kundenseite. Gestaltung angelehnt an www.weingutschnabel.info.
   Schriften lokal eingebunden (keine Verbindung zu Google, DSGVO). */
@font-face { font-family: "Lora"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/lora-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/lora-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/open-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/open-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/open-sans-latin-700-normal.woff2) format("woff2"); }

:root {
  --wine: #472924;        /* Hauptfarbe (Schokobraun der Webseite), per Einstellung überschreibbar */
  --gold: #EDB059;        /* Akzent (aktiver Menüpunkt auf der Webseite) */
  --gold-dark: #9A6B22;   /* Gold in lesbarer Stärke für Text */
  --headline: #280400;
  --paper: #F9F5F1;
  --sand: #E8E2D7;
  --card: #FFFFFF;
  --ink: #3A2E2A;
  --muted: #7A6E66;
  --line: #E6DED3;
  --ok: #2E6B3F;
  --err: #A3241C;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", Arial, sans-serif;
  --r: 6px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--wine); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 640px; }

/* Kopfzeile wie auf der Webseite: dunkle Infoleiste + weißer Header mit Logo und Menü */
.topbar { background: var(--wine); color: #fff; font-size: 12px; font-weight: 600; }
.topbar .wrap { display: flex; gap: 18px; align-items: center; min-height: 30px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.topbar a:hover { color: var(--gold); }
.topbar .back { margin-left: auto; opacity: .9; }
.topbar svg { width: 12px; height: 12px; fill: currentColor; }

.site-head { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--headline); }
.brand img { height: 52px; width: auto; display: block; }
.brand span { font: 500 19px/1.1 var(--serif); }
.brand span small { display: block; font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.main-nav { display: flex; gap: 26px; }
.main-nav a { color: rgba(0,0,0,.6); text-decoration: none; font-weight: 600; font-size: 14px; padding: 26px 0; transition: color .15s; }
.main-nav a:hover { color: var(--wine); }
.main-nav a.on { color: var(--gold); }

/* Hero wie auf der Webseite: helle Fläche, großes Logo, Lora-Überschrift */
.hero { background:
    linear-gradient(90deg, var(--paper) 0%, var(--paper) 68%, var(--sand) 68%, var(--sand) 100%);
  border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 44px; align-items: center; padding: 44px 16px 46px; }
.hero-logo { width: 150px; height: auto; display: block; }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 700; color: var(--gold-dark); }
.hero h1 { font-family: var(--serif); font-weight: 500; color: var(--headline); font-size: clamp(30px, 4.6vw, 54px); line-height: 1.12; margin: 0 0 14px; }
.lead { max-width: 620px; margin: 0; font-size: 16px; color: #666; }

main.wrap { padding-top: 28px; padding-bottom: 60px; }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; align-items: start; }
.col-side { position: sticky; top: 92px; }

.steps { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.steps span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--headline); color: #fff; font-size: 12px; font-weight: 700; margin-right: 4px; }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }

.cat { margin-bottom: 26px; }
.cat h2 { font-family: var(--serif); font-weight: 500; color: var(--headline); font-size: 28px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); position: relative; }
.cat h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 2px; background: var(--gold); }

/* Weinzeile */
.wine { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 10px; transition: border-color .15s, box-shadow .15s; }
.wine.picked { border-color: var(--gold); box-shadow: inset 4px 0 0 var(--gold); }
.wine.sold { opacity: .55; }
.thumb { width: 48px; height: 72px; object-fit: contain; flex: none; }
.wine-main { flex: 1; min-width: 0; }
.wine h3 { margin: 0; font-size: 17px; font-weight: 650; line-height: 1.3; }
.nr { display: inline-block; font-size: 12px; font-weight: 700; color: var(--wine); border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; margin-right: 6px; vertical-align: 2px; }
.meta { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.desc { margin: 6px 0 0; font-size: 14px; }
.wine-buy { flex: none; text-align: right; display: grid; justify-items: end; gap: 2px; }
.price { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--headline); }
.base { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.price small { font: 400 12px var(--sans); color: var(--muted); }
.qty-row { display: flex; align-items: center; gap: 8px; }
.unit { font-size: 13px; color: var(--muted); }
.bottles { display: block; min-height: 18px; font-size: 13px; font-weight: 700; color: var(--wine); margin-top: 3px; }
.case-hint { background: #FDF8EF; border-left: 3px solid var(--gold); padding: 8px 12px; color: var(--ink); }
.soldout { font-size: 13px; color: var(--err); font-weight: 600; }

.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.stepper button { width: 38px; border: 0; background: var(--paper); color: var(--ink); font-size: 20px; cursor: pointer; line-height: 1; }
.stepper button:hover { background: var(--sand); }
.stepper input { width: 48px; border: 0; text-align: center; font: 600 16px var(--sans); padding: 8px 0; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: 2px solid var(--wine); outline-offset: -2px; }

.legal-small { font-size: 13px; color: var(--muted); margin: -8px 0 30px; }

/* Formular */
.form-sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.form-sec h2 { font-size: 21px; margin-top: 18px; }
.form-sec h2:first-child { margin-top: 0; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 12px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--gold); background: #FDF8EF; }
.opt input { margin-top: 4px; accent-color: var(--wine); }
.opt small { display: block; color: var(--muted); font-size: 13px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.fields .full { grid-column: 1 / -1; }
.fields label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.fields input, .fields textarea { font: 16px var(--sans); padding: 10px 12px; border: 1px solid #CFC5B7; border-radius: 8px; background: #fff; width: 100%; }
.fields input:focus, .fields textarea:focus { outline: 2px solid var(--wine); outline-offset: 0; border-color: transparent; }
.consents { margin-top: 18px; display: grid; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--wine); flex: none; }

/* Zusammenfassung */
.summary { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--r); padding: 18px; }
.summary h2 { font-family: var(--serif); font-weight: 500; color: var(--headline); font-size: 23px; margin: 0 0 10px; }
.sum-list { list-style: none; margin: 0 0 10px; padding: 0; font-size: 14px; max-height: 260px; overflow: auto; }
.sum-list li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.sum-list li.empty { color: var(--muted); border: 0; }
.sum-totals { margin: 0; font-size: 15px; }
.sum-totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.sum-totals dt { color: var(--muted); }
.sum-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.sum-totals .total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 8px; font-size: 19px; font-weight: 700; }
.sum-totals .total dt { color: var(--ink); }
.sum-note { font-size: 13px; color: var(--wine); min-height: 1em; margin: 8px 0 0; }
.tax-note { font-size: 12px; color: var(--muted); margin: 0 0 12px; text-align: right; }
.btn-order { width: 100%; border: 2px solid var(--wine); border-radius: 3px; background: var(--wine); color: #fff; font: 600 17px var(--sans); padding: 13px; cursor: pointer; transition: background .15s, color .15s; }
.btn-order:hover { background: #fff; color: var(--wine); }
.small { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

.errors { background: #FCEDEB; border: 1px solid #E6B4AE; color: var(--err); border-radius: var(--r); padding: 14px 18px; margin-bottom: 20px; }
.errors ul { margin: 6px 0 0; padding-left: 20px; }
.notice { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; font-size: 17px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mobile-bar { display: none; }

/* Danke */
.thanks { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; text-align: center; }
.thanks h2 { font-family: var(--serif); font-weight: 500; color: var(--headline); font-size: 32px; margin: 8px 0; }
.tick { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 30px; display: grid; place-items: center; margin: 0 auto; }
.mini { width: 100%; border-collapse: collapse; text-align: left; margin: 18px 0; font-size: 15px; }
.mini td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
.mini .r { text-align: right; white-space: nowrap; }
.mini .tot td { font-weight: 700; border-bottom: 0; }
.btn-ghost { display: inline-block; border: 1px solid var(--wine); color: var(--wine); padding: 10px 18px; border-radius: 8px; text-decoration: none; }

.site-foot { background: var(--wine); color: rgba(255,255,255,.8); font-size: 13px; padding: 26px 0 0; margin-top: 20px; }
.site-foot .foot-grid { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-bottom: 22px; }
.site-foot h4 { font: 500 18px var(--serif); color: #fff; margin: 0 0 6px; }
.site-foot p { margin: 2px 0; }
.site-foot a { color: rgba(255,255,255,.85); }
.site-foot a:hover { color: var(--gold); }
.site-foot .links a { margin-right: 16px; }
.foot-bottom { background: rgba(0,0,0,.32); padding: 14px 0 90px; font-size: 12px; color: rgba(255,255,255,.6); }
@media (min-width: 901px) { .foot-bottom { padding-bottom: 14px; } }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .site-head { position: static; }
  .site-head .wrap { min-height: 64px; }
  .hero { background: var(--paper); }
  .hero-inner { grid-template-columns: 1fr; padding: 26px 16px 30px; }
  .hero-logo { width: 96px; }
  .col-side { top: 0; }
  .layout { grid-template-columns: 1fr; gap: 20px; }
  .col-side { position: static; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--wine); color: #fff; padding: 10px 16px; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -4px 16px rgba(0,0,0,.15); }
  .mobile-bar div { display: grid; line-height: 1.2; }
  .mobile-bar span { font-size: 13px; opacity: .8; }
  .mobile-bar strong { font-size: 18px; }
  .btn-mini { background: var(--gold); color: var(--headline); text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 8px; }
}
@media (max-width: 560px) {
  .topbar .mail-link { display: none; }
  .brand span { font-size: 17px; }
  .wine { flex-wrap: wrap; padding: 12px; }
  .wine-buy { width: 100%; grid-template-columns: auto auto 1fr; align-items: center; justify-items: start; gap: 0 10px; text-align: left; }
  .wine-buy { grid-template-columns: 1fr auto; }
  .wine-buy .price { grid-column: 1; }
  .wine-buy .base { grid-column: 1; }
  .wine-buy .qty-row { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
  .wine-buy .bottles { grid-column: 2; justify-self: end; margin: 0; }
  .base { margin: 0; }
  .fields { grid-template-columns: 1fr; }
  .form-sec { padding: 16px; }
}
@media (max-width: 560px) { .bottles:empty { display: none; } }
@media (max-width: 560px) { .hero-logo { display: none; } }
