:root {
  --ink: #f4ecd8;
  --void: #180f22;
  --void-deep: #100a17;
  --plum: #5b3a63;
  --gold: #c9a15f;
  --gold-soft: #e4c98a;
  --sage: #7c8a63;
  --rose: #8a4a4a;
  --line: rgba(244, 236, 216, 0.16);
  --max: 1100px;
  --max-narrow: 780px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, .display { font-family: 'Cinzel', serif; letter-spacing: 0.04em; }
.lede { font-family: 'Cormorant Garamond', serif; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--void-deep); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: var(--gold-soft);
}

/* ---------- Hintergrund-Atmosphäre ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(91, 58, 99, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(124, 138, 99, 0.14), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(201, 161, 95, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

main, section, header, footer { position: relative; z-index: 1; }
.page-shell { flex: 1; }

/* ---------- Navigation ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px clamp(20px, 5vw, 64px);
  background: linear-gradient(to bottom, rgba(16, 10, 23, 0.94), rgba(16, 10, 23, 0.45) 75%, transparent);
  backdrop-filter: blur(4px);
}

.nav-mark {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  opacity: 0.78;
  transition: opacity .25s, color .25s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
  color: var(--gold-soft);
}

.nav-links a:focus-visible,
.nav-mark:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.nav-cart {
  border: 1px solid var(--line);
  padding: 5px 11px;
  color: var(--gold-soft) !important;
  opacity: 0.95 !important;
}

.nav-cart:hover { border-color: var(--gold); background: rgba(201, 161, 95, 0.08); }

@media (max-width: 720px) {
  nav { flex-direction: column; padding: 14px 16px; gap: 10px; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 12px 16px; font-size: 0.68rem; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 24px 80px;
  gap: 24px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sage);
  opacity: 0.92;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 600;
  color: var(--ink);
  text-shadow: 0 0 40px rgba(201, 161, 95, 0.18);
  max-width: 14ch;
}

.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--ink);
  opacity: 0.84;
  max-width: 50ch;
  font-style: italic;
}

.hero-knot { width: min(340px, 70vw); height: auto; opacity: 0.9; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-family: 'Jost', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  background: rgba(201, 161, 95, 0.08);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.btn:hover, .btn:focus-visible {
  background: var(--gold);
  color: var(--void-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--gold);
  background: rgba(201, 161, 95, 0.08);
  color: var(--gold-soft);
}

.btn-danger {
  border-color: rgba(185, 88, 88, 0.6);
  background: rgba(138, 74, 74, 0.16);
  color: #f3c4c4;
}

.btn-danger:hover, .btn-danger:focus-visible {
  background: var(--rose);
  color: var(--ink);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.hero-scroll {
  margin-top: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.65;
  animation: floaty 2.6s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---------- Knot Divider ---------- */
.knot-divider {
  display: flex;
  justify-content: center;
  padding: 6px 24px;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 1s ease, transform 1s ease;
}

.knot-divider.in-view { opacity: 1; transform: translateY(0) scale(1); }
.knot-divider svg { width: min(420px, 80vw); height: auto; }

.knot-path {
  stroke: var(--gold);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  transition: stroke-dashoffset 1.6s cubic-bezier(.4, .1, .2, 1);
}

.knot-divider.in-view .knot-path { stroke-dashoffset: 0; }

/* ---------- Section Shell ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px clamp(20px, 6vw, 60px);
}

.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: 28px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s ease, transform .9s ease;
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }

.about-portrait {
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  background:
    repeating-linear-gradient(115deg, rgba(201, 161, 95, 0.10) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(25deg, rgba(124, 138, 99, 0.10) 0 2px, transparent 2px 22px),
    linear-gradient(160deg, #2a1c33, #1a1225 70%);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--gold-soft);
  opacity: 0.75;
  text-align: center;
  padding: 20px;
}

.about-portrait span { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; }
.about p { font-size: 1.06rem; opacity: 0.88; margin-bottom: 16px; max-width: 56ch; }
.about p:last-child { margin-bottom: 0; }

.signature-line {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold-soft);
  font-size: 1.18rem;
  margin-top: 22px;
}

/* ---------- Sortiment auf Startseite ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 10px;
}

.card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(91, 58, 99, 0.14), rgba(16, 10, 23, 0.45));
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  transition: transform .4s ease, border-color .4s ease;
}

.card:hover, .card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.card-art {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #231830, #170f20 65%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-art svg { width: 56%; height: 56%; opacity: 0.85; }

.card-tag {
  position: absolute;
  bottom: 8px; right: 10px;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.6;
}

.card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink);
}

.card p { font-size: 0.92rem; opacity: 0.74; }

/* ---------- Socials ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.social-card {
  border: 1px solid var(--line);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  background: rgba(244, 236, 216, 0.02);
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}

.social-card:hover, .social-card:focus-visible {
  background: rgba(201, 161, 95, 0.08);
  border-color: var(--gold);
  transform: translateY(-4px);
}

.social-card svg { width: 28px; height: 28px; stroke: var(--gold-soft); }
.social-card h3 { font-family: 'Cinzel', serif; font-size: 0.95rem; letter-spacing: 0.08em; color: var(--ink); }
.social-card span { font-size: 0.82rem; opacity: 0.62; }

/* ---------- Shop, Produkt-Detail, Warenkorb & Kasse ---------- */
.shop-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 125px clamp(20px, 5vw, 50px) 100px;
}

.shop-header {
  margin-bottom: 34px;
}

.shop-header h1 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  color: var(--gold-soft);
  margin-bottom: 12px;
}

.shop-intro {
  max-width: 62ch;
  font-size: 0.96rem;
  opacity: 0.78;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.filter-pill {
  padding: 7px 15px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
  transition: border-color .25s, background .25s, color .25s, opacity .25s;
}

.filter-pill:hover,
.filter-pill.active {
  border-color: var(--gold);
  background: rgba(201, 161, 95, 0.12);
  color: var(--gold-soft);
  opacity: 1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}

.product-card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(91, 58, 99, 0.14), rgba(16, 10, 23, 0.48));
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, border-color .35s ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.product-card.is-sold {
  opacity: 0.72;
}

.product-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(150deg, #231830, #170f20 65%);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.03);
}

.product-img-fallback {
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.55;
}

.product-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.ribbon-unique {
  background: rgba(16, 10, 23, 0.8);
  border: 1px solid var(--gold);
  color: var(--gold-soft);
}

.ribbon-sold {
  background: rgba(138, 74, 74, 0.88);
  border: 1px solid rgba(244, 236, 216, 0.3);
  color: var(--ink);
}

.product-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-cat {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
}

.product-card-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.product-sub {
  font-size: 0.88rem;
  opacity: 0.72;
}

.product-card-footer {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
}

.product-price {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: var(--gold-soft);
}

.product-more {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.68;
}

.empty-state {
  text-align: center;
  padding: 46px 28px;
}

.empty-state p {
  max-width: 48ch;
  margin: 0 auto 22px;
  opacity: 0.78;
}

/* Produkt-Detailseite */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.68;
  margin-bottom: 28px;
}

.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-soft); }

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

@media (max-width: 820px) {
  .product-detail-grid { grid-template-columns: 1fr; }
}

.gallery-main {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #231830, #170f20 65%);
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumb {
  border: 1px solid var(--line);
  background: none;
  padding: 0;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.68;
  transition: border-color .2s, opacity .2s;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--gold);
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-info h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 10px;
}

.product-detail-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
  opacity: 0.82;
  margin-bottom: 16px;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.product-price-block {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.product-price-lg {
  font-family: 'Cinzel', serif;
  font-size: 1.85rem;
  color: var(--gold-soft);
  margin-bottom: 6px;
}

.product-price-note {
  font-size: 0.82rem;
  opacity: 0.68;
  line-height: 1.55;
}

.buy-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}

.qty-picker {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.qty-picker label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.qty-picker input {
  width: 78px;
  padding: 10px 12px;
  background: rgba(16, 10, 23, 0.75);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-size: 0.96rem;
}

.add-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.add-feedback-ok {
  border-color: var(--sage);
  background: rgba(124, 138, 99, 0.14);
}

.add-feedback-err {
  border-color: var(--rose);
  background: rgba(138, 74, 74, 0.2);
}

.sold-notice {
  padding: 16px 18px;
  border: 1px dashed var(--line);
  font-size: 0.92rem;
  opacity: 0.8;
}

.product-section {
  margin-top: 28px;
}

.product-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold-soft);
  margin-bottom: 8px;
}

.product-description {
  white-space: pre-line;
  opacity: 0.88;
}

/* Warenkorb */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.85fr);
  gap: 28px;
  align-items: start;
}

@media (max-width: 820px) {
  .cart-layout { grid-template-columns: 1fr; }
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(91, 58, 99, 0.12), rgba(16, 10, 23, 0.5));
  padding: 16px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

@media (max-width: 540px) {
  .cart-item { grid-template-columns: 68px minmax(0, 1fr); }
  .cart-item-total { grid-column: 1 / -1; text-align: right; }
}

.cart-item-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
}

.cart-item-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.cart-item-title:hover { color: var(--gold-soft); }

.cart-item-meta {
  font-size: 0.84rem;
  opacity: 0.68;
  margin: 4px 0 12px;
}

.cart-item-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.cart-qty-form {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--gold-soft);
  padding: 4px 11px;
  font-size: 1rem;
  cursor: pointer;
}

.qty-btn:hover:not(:disabled) { background: rgba(201, 161, 95, 0.14); }
.qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.qty-val {
  min-width: 28px;
  text-align: center;
  font-size: 0.9rem;
}

.cart-qty-fixed {
  font-size: 0.82rem;
  opacity: 0.72;
}

.cart-remove-btn {
  background: none;
  border: none;
  color: #ebb8b8;
  font-family: 'Jost', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  opacity: 0.78;
}

.cart-remove-btn:hover { opacity: 1; }

.cart-item-total {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: var(--gold-soft);
  white-space: nowrap;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.summary-total {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--gold-soft);
  border-bottom: none;
  padding-top: 14px;
}

.summary-tax {
  font-size: 0.78rem;
  opacity: 0.64;
  margin-top: 8px;
}

.summary-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Checkout & Bestellbestätigung */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.95fr);
  gap: 28px;
  align-items: start;
}

@media (max-width: 860px) {
  .checkout-layout { grid-template-columns: 1fr; }
}

.payment-box {
  padding: 16px 18px;
  border: 1px solid var(--gold);
  background: rgba(201, 161, 95, 0.06);
}

.payment-box strong {
  display: block;
  color: var(--gold-soft);
  margin-bottom: 6px;
}

.payment-box p {
  font-size: 0.9rem;
  opacity: 0.84;
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.94rem;
}

.checkout-item-sub {
  font-size: 0.8rem;
  opacity: 0.65;
}

.checkout-item-price {
  white-space: nowrap;
  color: var(--gold-soft);
}

.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 0.86rem;
  line-height: 1.5;
  cursor: pointer;
}

.legal-check input {
  margin-top: 4px;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.order-confirm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.9fr);
  gap: 28px;
  align-items: start;
}

@media (max-width: 860px) {
  .order-confirm-grid { grid-template-columns: 1fr; }
}

.bank-giro-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.bank-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 250px;
}

.bank-details dt {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}

.bank-details dd {
  font-size: 0.98rem;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

.girocode-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--gold);
  background: var(--ink);
  color: var(--void-deep);
}

.girocode-wrap span {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

.girocode-svg svg {
  display: block;
  width: 210px;
  height: 210px;
}

.order-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.order-meta div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.order-address p {
  font-size: 0.92rem;
  opacity: 0.84;
}

/* ---------- Unterseiten (Rechtliches) ---------- */
.legal-main {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 130px clamp(20px, 6vw, 40px) 100px;
}

.legal-main h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: 36px;
}

.legal-main h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-style: italic;
  font-size: 1.38rem;
  color: var(--gold-soft);
  margin: 36px 0 10px;
}

.legal-main p { font-size: 0.98rem; opacity: 0.88; margin-bottom: 8px; }
a.inline { color: var(--gold-soft); text-underline-offset: 3px; }
.placeholder { color: var(--sage); font-style: italic; }

.note {
  margin-top: 44px;
  padding: 18px 20px;
  border: 1px dashed var(--line);
  font-size: 0.86rem;
  opacity: 0.78;
}

.note strong { color: var(--gold-soft); font-weight: 500; }

/* ---------- Admin & Formulare ---------- */
.admin-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px clamp(20px, 5vw, 48px) 90px;
}

.admin-narrow {
  max-width: 520px;
}

.admin-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.admin-topbar h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--gold-soft);
}

.admin-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.admin-user-pill {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.admin-tab {
  padding: 7px 16px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.72;
  transition: border-color .2s, background .2s, color .2s, opacity .2s;
}

.admin-tab:hover,
.admin-tab.active {
  border-color: var(--gold);
  background: rgba(201, 161, 95, 0.12);
  color: var(--gold-soft);
  opacity: 1;
}

.alert {
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  font-size: 0.92rem;
}

.alert-ok {
  border-color: var(--sage);
  background: rgba(124, 138, 99, 0.14);
  color: var(--ink);
}

.alert-err {
  border-color: var(--rose);
  background: rgba(138, 74, 74, 0.22);
  color: #f7d2d2;
}

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(91, 58, 99, 0.12), rgba(16, 10, 23, 0.55));
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: 28px;
}

.panel h2 {
  font-size: 1.3rem;
  color: var(--gold-soft);
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.field small {
  font-size: 0.78rem;
  opacity: 0.62;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="file"],
.field select,
.field textarea {
  width: 100%;
  background: rgba(16, 10, 23, 0.75);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-size: 0.96rem;
  font-weight: 300;
  padding: 10px 13px;
}

.field input[readonly] {
  opacity: 0.7;
  cursor: default;
}

.field select option {
  background: var(--void-deep);
  color: var(--ink);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  padding-top: 6px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.92rem;
}

.checkbox-label input {
  width: 17px;
  height: 17px;
  accent-color: var(--gold);
}

.form-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(16, 10, 23, 0.45);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.admin-table th {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 500;
  background: rgba(91, 58, 99, 0.18);
}

.admin-thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
}

.admin-thumb-empty {
  width: 54px;
  height: 54px;
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  opacity: 0.55;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 2px 9px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.badge-active { border-color: var(--sage); color: #cddbb3; }
.badge-draft { border-color: var(--gold); color: var(--gold-soft); }
.badge-sold { border-color: var(--rose); color: #ebb8b8; }
.badge-archived { opacity: 0.55; }

.badge-order-pending_payment { border-color: var(--gold); color: var(--gold-soft); }
.badge-order-paid { border-color: #7ea8be; color: #c7e2f0; }
.badge-order-shipped { border-color: var(--sage); color: #cddbb3; }
.badge-order-cancelled { border-color: var(--rose); color: #ebb8b8; }
.badge-order-revoked { border-color: var(--rose); color: #f5c6c6; background: rgba(138, 74, 74, 0.18); }

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.image-tile {
  border: 1px solid var(--line);
  background: rgba(16, 10, 23, 0.6);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

.image-tile small {
  font-size: 0.76rem;
  opacity: 0.7;
  min-height: 1.4em;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 46px 24px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

footer .mark {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.2em;
  color: var(--gold-soft);
  font-size: 0.9rem;
}

footer p { font-size: 0.76rem; opacity: 0.55; letter-spacing: 0.03em; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 4px;
}

.legal-link {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  opacity: 0.78;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-link:hover, .legal-link:focus-visible { opacity: 1; }

.revoke-link {
  margin-top: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.75;
}

.revoke-link:hover { border-color: var(--gold); color: var(--gold-soft); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .knot-divider { opacity: 1 !important; transform: none !important; }
  .knot-path { stroke-dashoffset: 0 !important; }
}