/* ============================================================
   Weingut Landgrafenhof – Prototyp
   Corporate Design der Original-Seite: Anthrazit/Weiß,
   elegante Serifen, Weinrot als Akzent
   ============================================================ */

:root {
  --cream: #F7F4EF;
  --paper: #FFFFFF;
  --sand: #EFEAE1;
  --green: #2B2A28;
  --green-dark: #191817;
  --green-soft: #EAE6DE;
  --wine: #8E2A35;
  --wine-dark: #6E1F28;
  --wine-soft: #F2E2E4;
  --gold: #C7A253;
  --gold-soft: #F4ECDB;
  --ink: #1E1C1A;
  --ink-soft: #6B6560;
  --line: #E3DED4;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 4px 20px rgba(30, 26, 20, 0.08);
  --shadow-lg: 0 12px 40px rgba(30, 26, 20, 0.16);
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--green-dark); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Prototyp-Banner ---------- */
.proto-banner {
  background: var(--wine);
  color: #F7EFE8;
  text-align: center;
  font-size: 0.78rem;
  padding: 6px 16px;
  letter-spacing: 0.02em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(24, 23, 22, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.brand-logo { height: 46px; width: auto; }

.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  text-decoration: none;
  color: #EDE9E1;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s;
}

.main-nav a:hover { background: rgba(255, 255, 255, 0.1); }
.main-nav a.active { background: rgba(255, 255, 255, 0.16); color: #fff; }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--wine);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: 999px;
  transition: background 0.15s;
  flex: none;
}

.cart-btn:hover { background: var(--wine-dark); }

.cart-count {
  background: #fff;
  color: var(--wine-dark);
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  padding: 0 6px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  font-size: 1.1rem;
  color: #fff;
}

/* ---------- Hero (Foto-Hintergrund) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--green-dark) url("../img/hof.jpg") center 65% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 16, 0.55) 0%, rgba(20, 18, 16, 0.65) 100%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  padding: 96px 20px 80px;
  max-width: 860px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  color: #fff;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero p.lead {
  font-size: 1.12rem;
  color: #E9E4DA;
  max-width: 52ch;
  margin-bottom: 28px;
}

.hero .btn-row { justify-content: center; }
.hero .btn-secondary { color: #fff; border-color: #fff; }
.hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.15); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
}

.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--wine); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--wine-dark); }

.btn-secondary { background: transparent; color: var(--green-dark); border: 2px solid var(--green); }
.btn-secondary:hover { background: var(--green-soft); }

.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-badges {
  display: flex;
  gap: 34px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-badge { font-size: 0.86rem; color: #D9D3C7; }
.hero-badge strong { display: block; font-size: 1.5rem; color: #fff; font-family: var(--font-head); }

/* ---------- Abschnitte ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-sand { background: var(--sand); }
.section-green { background: var(--green-dark); color: #F2EFE6; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); }
.section-green .section-head p { color: #D8D9C8; }
.section-green .section-head .eyebrow { color: var(--gold); }

/* ---------- Schritt-Karten ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.step-num {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step-card p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Produktkarten ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.product-art {
  background: var(--sand);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 190px;
  position: relative;
}

.product-art svg { height: 165px; width: auto; }
.product-art img { height: 165px; width: auto; object-fit: contain; padding-bottom: 8px; }

.product-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.tag-trocken { background: var(--green-soft); color: var(--green-dark); border-color: transparent; }
.tag-feinherb { background: var(--gold-soft); color: #97671F; border-color: transparent; }
.tag-lieblich { background: var(--wine-soft); color: var(--wine-dark); border-color: transparent; }
.tag-neu { background: var(--wine); color: #fff; border-color: transparent; }

.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }

.product-name { font-size: 1.2rem; margin-bottom: 2px; }
.product-meta { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 10px; }

.product-desc {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
  flex: 1;
}

.product-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.price { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--green-dark); }
.price-note { display: block; font-family: var(--font-body); font-size: 0.68rem; font-weight: 400; color: var(--ink-soft); }

.btn-add {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s, transform 0.12s;
  white-space: nowrap;
}

.btn-add:hover { background: var(--green-dark); }
.btn-add:active { transform: scale(0.95); }
.btn-add.added { background: var(--wine); }

/* ---------- Shop-Filter ---------- */
.shop-toolbar {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.filter-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-right: 6px;
  min-width: 86px;
}

.chip {
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.12s;
}

.chip:hover { border-color: var(--green); }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }

.shop-utils { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.shop-search {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--cream);
}

.shop-search:focus { outline: 2px solid var(--green-soft); border-color: var(--green); }

.shop-sort {
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--paper);
  cursor: pointer;
}

.shop-count { font-size: 0.85rem; color: var(--ink-soft); }

.shop-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}

/* ---------- Info-Karten (Weingut, Events, Besuch) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }

.info-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.info-card-art { height: 170px; }
.info-card-art svg { width: 100%; height: 100%; }
.info-card-art img { width: 100%; height: 100%; object-fit: cover; }

.info-card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.info-card-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.info-card-body p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 16px; flex: 1; }

.link-arrow {
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--wine);
}
.link-arrow:hover { text-decoration: underline; }

/* ---------- Zwei-Spalten Story ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 16px; color: var(--green-dark); }
.split p { color: var(--ink-soft); margin-bottom: 14px; }
.split-art { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-art img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Öffnungszeiten ---------- */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.hours-table td:last-child { text-align: right; font-weight: 800; }
.hours-table tr:last-child td { border-bottom: none; }

/* ---------- Fakten ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; text-align: center; }
.fact strong { display: block; font-family: var(--font-head); font-size: 2.2rem; color: var(--gold); }
.fact span { font-size: 0.85rem; opacity: 0.85; }

/* ---------- Listen (Rebsorten, Lagen) ---------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.pill-list li {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ---------- Warenkorb ---------- */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; }

.cart-panel, .summary-panel {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.summary-panel { position: sticky; top: 90px; }

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child { border-bottom: none; }

.cart-item-art {
  background: var(--sand);
  border-radius: var(--radius-sm);
  height: 78px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.cart-item-art svg { height: 68px; width: auto; }
.cart-item-art img { height: 68px; width: auto; object-fit: contain; }

.cart-item-name { font-weight: 800; font-size: 0.95rem; }
.cart-item-meta { font-size: 0.78rem; color: var(--ink-soft); }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.qty-stepper button {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--green-dark);
}
.qty-stepper button:hover { background: var(--green-soft); }
.qty-stepper span { min-width: 30px; text-align: center; font-weight: 800; font-size: 0.9rem; }

.cart-item-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item-price { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--green-dark); }

.btn-remove {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--font-body);
}
.btn-remove:hover { color: var(--wine); }

.summary-row { display: flex; justify-content: space-between; font-size: 0.95rem; padding: 7px 0; }
.summary-row.total {
  border-top: 2px solid var(--ink);
  margin-top: 10px;
  padding-top: 14px;
  font-weight: 800;
  font-size: 1.15rem;
  font-family: var(--font-head);
}

.summary-hint {
  background: var(--green-soft);
  color: var(--green-dark);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  padding: 10px 14px;
  margin: 12px 0;
}

/* ---------- Checkout ---------- */
.checkout-section { margin-top: 26px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 5px;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream);
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--green-soft);
  border-color: var(--green);
}

.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.choice-card {
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  background: var(--paper);
  transition: all 0.12s;
  display: block;
}

.choice-card:hover { border-color: var(--green); }
.choice-card.selected { border-color: var(--green); background: var(--green-soft); }
.choice-card input { display: none; }
.choice-card strong { display: block; font-size: 0.95rem; }
.choice-card small { color: var(--ink-soft); font-size: 0.8rem; }

.form-section-title {
  font-size: 1.05rem;
  margin: 22px 0 12px;
  font-family: var(--font-head);
}

.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; margin: 18px 0; }
.check-row input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--green); }

.form-error { color: var(--wine); font-size: 0.85rem; margin-top: 10px; display: none; }
.form-error.show { display: block; }

/* ---------- Bestellbestätigung ---------- */
.confirm-box {
  text-align: center;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 60px 30px;
  max-width: 620px;
  margin: 0 auto;
}

.confirm-box .confirm-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--green-dark);
}

.confirm-box h2 { font-size: 1.7rem; margin-bottom: 10px; color: var(--green-dark); }
.confirm-box p { color: var(--ink-soft); margin-bottom: 10px; }
.confirm-box .order-no { font-family: var(--font-head); font-size: 1.2rem; color: var(--wine); font-weight: 700; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all 0.25s ease;
  z-index: 300;
  display: flex;
  gap: 14px;
  align-items: center;
  white-space: nowrap;
}

.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast a { color: var(--gold); font-weight: 800; text-decoration: none; }

/* ---------- Seite-Hero (Unterseiten) ---------- */
.page-hero {
  background: linear-gradient(180deg, #ECE7DE 0%, var(--cream) 100%);
  padding: 46px 0 34px;
  text-align: center;
}

.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--ink); margin-bottom: 10px; }
.page-hero p { color: var(--ink-soft); max-width: 60ch; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: #E8E6D8;
  padding: 52px 0 24px;
  margin-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 36px;
}

.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: #E8E6D8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer li { list-style: none; margin-bottom: 7px; font-size: 0.9rem; }
.site-footer p { font-size: 0.9rem; opacity: 0.9; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  opacity: 0.75;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary-panel { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #191817;
    flex-direction: column;
    padding: 12px 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .nav-toggle { display: block; margin-left: auto; }
  .cart-btn .cart-label { display: none; }
}

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .choice-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .product-art { height: 150px; }
  .product-art svg { height: 130px; }
}
