:root {
  --ink: #15130f;          /* fast-schwarz, warm */
  --paper: #f6f3ec;        /* creme */
  --paper-2: #efeae0;
  --gold: #b08d4f;         /* edles Gold */
  --gold-soft: #c9ad78;
  --line: #ddd5c6;
  --muted: #8a8273;
  --white: #fffdf8;
  --shadow: 0 18px 50px rgba(20,16,10,.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Jost", system-ui, sans-serif; font-weight: 300;
  line-height: 1.7; letter-spacing: .01em;
}
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; line-height: 1.12; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.gold { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2.2rem; border-bottom: 1px solid var(--line);
  background: rgba(246,243,236,.92); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.logo-link { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.emblem { object-fit: contain; display: block; }
.logo-link .emblem { width: 60px; height: 60px; }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); position: relative; padding-bottom: 3px; }
.main-nav a:hover { color: var(--gold); }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width .3s; }
.main-nav a:hover::after { width: 100%; }
.cart-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .7rem; letter-spacing: 0; }

/* ---------- Flash ---------- */
.flash-wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.flash { margin-top: 1rem; padding: .8rem 1.1rem; border-radius: 2px; font-size: .9rem; border-left: 3px solid var(--gold); background: var(--white); }
.flash.error { border-left-color: #a3372e; color: #7c2820; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); padding: .85rem 2rem;
  font-family: "Jost", sans-serif; font-size: .78rem; letter-spacing: .22em;
  text-transform: uppercase; transition: all .25s; font-weight: 400;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn.gold:hover { background: var(--ink); border-color: var(--ink); }
.btn.small { padding: .5rem 1.1rem; font-size: .7rem; }
.btn.block { display: block; width: 100%; text-align: center; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--paper); text-align: center; padding: 6rem 1.5rem 6.5rem; overflow: hidden; }
.hero .emblem { width: clamp(220px, 34vw, 360px); height: clamp(220px, 34vw, 360px); margin: 0 auto 1.2rem; opacity: .98; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: .04em; font-weight: 500; }
.hero .kicker { letter-spacing: .42em; text-transform: uppercase; font-size: .78rem; color: var(--gold-soft); margin-bottom: 1.4rem; }
.hero .lead { max-width: 540px; margin: 1.4rem auto 2.2rem; color: #cfc6b4; font-size: 1.05rem; font-weight: 300; }
.hero-rule { width: 60px; height: 1px; background: var(--gold); margin: 0 auto 2rem; }

/* ---------- Sections ---------- */
section { padding: 5rem 1.5rem; }
.wrap { max-width: 1100px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head .kicker { letter-spacing: .38em; text-transform: uppercase; font-size: .74rem; color: var(--gold); margin-bottom: .8rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }

/* ---------- Produkt-Raster ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2.2rem; }
.card { background: var(--white); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 1/1; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .thumb img { transform: scale(1.05); }
.card .body { padding: 1.3rem 1.4rem 1.6rem; text-align: center; }
.card .body h3 { font-size: 1.5rem; margin-bottom: .2rem; }
.card .body .sub { color: var(--muted); font-size: .85rem; margin-bottom: .8rem; }
.card .price { font-family: "Cormorant Garamond", serif; font-size: 1.4rem; color: var(--gold); letter-spacing: .02em; }

/* Platzhalter-Bild (kein Foto) */
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; background:
  repeating-conic-gradient(var(--paper-2) 0% 25%, var(--white) 0% 50%) 50% / 40px 40px; }
.placeholder img { width: 62%; height: 62%; object-fit: contain; opacity: .55; }

/* ---------- Produkt-Detail ---------- */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; max-width: 1100px; margin: 0 auto; align-items: start; }
.product-detail .gallery { background: var(--white); border: 1px solid var(--line); aspect-ratio: 1/1; display: grid; place-items: center; overflow: hidden; }
.product-detail .gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-detail .info .kicker { letter-spacing: .3em; text-transform: uppercase; font-size: .72rem; color: var(--gold); }
.product-detail .info h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin: .4rem 0 .2rem; }
.product-detail .info .sub { color: var(--muted); font-style: italic; font-family: "Cormorant Garamond", serif; font-size: 1.3rem; }
.product-detail .price-lg { font-family: "Cormorant Garamond", serif; font-size: 2.2rem; color: var(--gold); margin: 1.4rem 0; }
.product-detail .desc { border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: 1.4rem; }
.spec { display: flex; gap: .6rem; font-size: .92rem; margin: .3rem 0; }
.spec .k { color: var(--muted); min-width: 110px; letter-spacing: .05em; }
.qty-row { display: flex; align-items: center; gap: 1rem; margin: 1.6rem 0; }
input[type=number], input[type=text], input[type=email], textarea {
  font-family: "Jost", sans-serif; padding: .7rem .8rem; border: 1px solid var(--line);
  background: var(--white); font-size: 1rem; width: 100%; border-radius: 2px; color: var(--ink);
}
input[type=number] { width: 80px; text-align: center; }
.stock { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.stock.in { color: #5a7d4f; }
.stock.out { color: #a3372e; }

/* ---------- Tabelle / Warenkorb ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-weight: 400; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 0 .6rem 1rem; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 1.1rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-prod { display: flex; align-items: center; gap: 1rem; }
.cart-prod .mini { width: 64px; height: 64px; object-fit: cover; background: var(--paper-2); border: 1px solid var(--line); }
.cart-summary { margin-top: 2rem; display: flex; justify-content: flex-end; }
.cart-summary .box { min-width: 320px; }
.sum-row { display: flex; justify-content: space-between; padding: .5rem 0; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: 1rem; font-size: 1.3rem; font-family: "Cormorant Garamond", serif; }
.sum-row.total .gold { font-size: 1.6rem; }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; max-width: 1000px; margin: 0 auto; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); padding: 2rem; }
.panel h2 { font-size: 1.8rem; margin-bottom: 1.2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
#paypal-buttons { margin-top: 1rem; }
.pp-note { background: var(--paper-2); border: 1px dashed var(--gold); padding: 1rem 1.2rem; font-size: .88rem; margin-top: 1rem; }

/* ---------- Success ---------- */
.success { max-width: 640px; margin: 0 auto; text-align: center; }
.success .emblem { width: 90px; height: 90px; color: var(--gold); margin: 0 auto 1.5rem; }
.success h1 { font-size: 3rem; }
.order-box { text-align: left; background: var(--white); border: 1px solid var(--line); padding: 1.6rem; margin-top: 2rem; }

/* ---------- Admin ---------- */
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.admin-nav a { margin-left: 1.4rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.adm-table { width: 100%; border-collapse: collapse; background: var(--white); }
.adm-table th, .adm-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .92rem; }
.adm-table th { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.badge { display: inline-block; padding: .12rem .6rem; border: 1px solid var(--line); border-radius: 999px; font-size: .72rem; letter-spacing: .08em; }
.inline { display: inline; }
.login-card { max-width: 380px; margin: 4rem auto; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .product-detail, .checkout-grid { grid-template-columns: 1fr; }
  .main-nav { gap: 1.2rem; }
  .logo-word { display: none; }
  section { padding: 3.5rem 1.2rem; }
}
