/* Leka-Interior — Shop-Design, aufgesetzt auf das Leka-Invest-System. */

.shop-body { background: var(--bg); color: var(--ink); }
.shop-shell { max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }

.shop-head {
  position: sticky; top: 0; z-index: 60; background: rgba(250, 250, 247, .92);
  backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.shop-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; }
.shop-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.shop-brand .mark {
  width: 38px; height: 38px; border: 1px solid var(--navy); border-radius: 50%;
  display: grid; place-items: center; font-family: 'Playfair Display', serif; font-size: 14px;
}
.shop-brand strong { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; letter-spacing: .3px; }
.shop-brand span.sub { display: block; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-ink); }
.shop-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.shop-nav a, .shop-nav button {
  font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: none; border: none; padding: 9px 12px; cursor: pointer;
  font-family: inherit; font-weight: 500;
}
.shop-nav a:hover, .shop-nav button:hover { color: var(--accent-ink); }
.cart-btn { position: relative; }
.cart-btn .count {
  position: absolute; top: 0; right: 0; background: var(--navy); color: #fff;
  font-size: 10px; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center;
  padding: 0 4px;
}

.hero-shop { padding: clamp(40px, 6vw, 76px) 0 26px; }
.hero-shop h1 { font-size: clamp(32px, 4.6vw, 58px); color: var(--navy); max-width: 18ch; line-height: 1.05; }
.hero-shop h1 em { font-style: italic; color: var(--accent-ink); }
.hero-shop p { color: var(--muted); font-weight: 300; max-width: 60ch; margin-top: 16px; font-size: 17px; }
.shop-usps { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 24px; }
.shop-usps span { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.shop-usps span::before { content: '—'; margin-right: 8px; color: var(--accent-ink); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 22px 0 8px; border-bottom: 1px solid var(--line); }
.filters button {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; padding: 8px 14px;
  cursor: pointer; font-family: inherit; border-radius: 2px;
}
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.grid-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 22px; padding: 32px 0 60px; }
.p-card-shop { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.p-media {
  aspect-ratio: 4/5; background: linear-gradient(160deg, #efece4, #e3ded2);
  display: grid; place-items: center; position: relative; overflow: hidden; border-radius: 3px;
  font-family: 'Playfair Display', serif; color: rgba(15, 42, 68, .28); font-size: 46px;
}
.p-media::after {
  content: attr(data-cat); position: absolute; left: 14px; top: 14px;
  font-family: 'Inter', sans-serif; font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(15, 42, 68, .5);
}
.p-card-shop:hover .p-media { background: linear-gradient(160deg, #eae5d9, #d9d2c1); }
.p-card-shop h3 { font-size: 17px; color: var(--navy); margin-top: 14px; font-family: 'Playfair Display', serif; }
.p-card-shop .meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.p-card-shop .price { font-size: 15px; color: var(--ink); margin-top: 8px; font-weight: 500; }
.p-card-shop .stock { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.p-card-shop .stock.low { color: #a4442c; }

/* Produktdetail */
.pd { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); padding: 40px 0 70px; }
.pd-media { aspect-ratio: 4/5; background: linear-gradient(160deg, #efece4, #ddd6c7); border-radius: 3px; display: grid; place-items: center; font-family: 'Playfair Display', serif; font-size: 86px; color: rgba(15, 42, 68, .22); }
.pd h1 { font-size: clamp(28px, 3.6vw, 44px); color: var(--navy); margin-bottom: 10px; }
.pd .price { font-family: 'Playfair Display', serif; font-size: 30px; color: var(--navy); margin: 16px 0 6px; }
.pd .spec { display: grid; gap: 6px; margin: 18px 0; font-size: 14.5px; color: var(--muted); }
.pd .spec b { color: var(--ink); font-weight: 500; }
.pd .desc { color: var(--muted); font-weight: 300; line-height: 1.75; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 38px; height: 42px; background: none; border: none; font-size: 18px; cursor: pointer; color: var(--navy); }
.qty input { width: 46px; height: 42px; border: none; text-align: center; font-family: inherit; font-size: 15px; background: none; }

.btn-shop {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--navy); color: #fff; border: 1px solid var(--navy);
  padding: 14px 28px; font-size: 11.5px; letter-spacing: 1.8px; text-transform: uppercase;
  font-weight: 600; cursor: pointer; font-family: inherit; border-radius: 2px; text-decoration: none;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-shop:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.btn-shop.ghost { background: transparent; color: var(--navy); }
.btn-shop.ghost:hover { background: var(--navy); color: #fff; }
.btn-shop[disabled] { opacity: .5; cursor: not-allowed; }

/* Warenkorb */
.cart-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(430px, 94vw); background: #fff; z-index: 80;
  transform: translateX(102%); transition: transform .35s var(--ease); display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .18);
}
.cart-drawer.open { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 20px; color: var(--navy); }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row .name { font-size: 14.5px; color: var(--navy); }
.cart-row .unit { font-size: 12px; color: var(--muted); }
.cart-row .line { text-align: right; font-size: 14px; }
.cart-row button { background: none; border: none; color: var(--muted); font-size: 11px; text-decoration: underline; cursor: pointer; padding: 0; font-family: inherit; }
.cart-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); background: var(--bg); }
.cart-total { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 14px; }
.cart-total b { font-family: 'Playfair Display', serif; font-size: 20px; }
.scrim { position: fixed; inset: 0; background: rgba(13, 27, 42, .45); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 70; }
.scrim.show { opacity: 1; pointer-events: auto; }

/* Formulare */
.form-shop { display: grid; gap: 16px; }
.form-shop .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-shop { display: flex; flex-direction: column; gap: 6px; }
.field-shop label { font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field-shop input, .field-shop select, .field-shop textarea {
  font-family: inherit; font-size: 15px; padding: 11px 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); border-radius: 2px;
}
.field-shop input:focus, .field-shop select:focus, .field-shop textarea:focus { outline: none; border-color: var(--navy); }
.field-shop .err { font-size: 12px; color: #a4442c; }
.fitting-option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); padding: 14px 16px; cursor: pointer; background: #fff; }
.fitting-option input { margin-top: 4px; accent-color: var(--navy); }
.fitting-option b { display: block; font-size: 14.5px; color: var(--navy); }
.fitting-option span { font-size: 12.5px; color: var(--muted); }
.fitting-option.selected { border-color: var(--navy); }

.summary { background: var(--bg-alt); padding: 22px; border: 1px solid var(--line); }
.summary h3 { font-size: 17px; color: var(--navy); margin-bottom: 14px; }
.summary .line { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 6px 0; }
.summary .line.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; color: var(--ink); font-size: 16px; }
.summary .line.total b { font-family: 'Playfair Display', serif; font-size: 22px; }

.checkout-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); padding: 36px 0 70px; }

/* Bestellbestätigung */
.confirm { max-width: 720px; margin: 0 auto; padding: 60px 0 80px; text-align: center; }
.confirm .ref { font-family: 'Playfair Display', serif; font-size: 30px; color: var(--navy); margin: 10px 0 4px; }
.confirm .steps { display: grid; grid-template-columns: 1fr; gap: 10px; text-align: left; max-width: 460px; margin: 30px auto 0; }
.confirm .steps div { border-left: 2px solid var(--accent-ink); padding: 8px 0 8px 16px; font-size: 14px; color: var(--muted); }
.confirm table { width: 100%; border-collapse: collapse; margin-top: 26px; font-size: 14px; text-align: left; }
.confirm th, .confirm td { padding: 10px 8px; border-bottom: 1px solid var(--line); }

/* Team/Admin */
.admin-body { background: #f6f4ee; }
.admin-shell { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 26px 0 60px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav button {
  text-align: left; background: none; border: none; border-left: 2px solid transparent;
  padding: 11px 14px; font-family: inherit; font-size: 13.5px; color: var(--muted); cursor: pointer;
}
.admin-nav button[aria-selected="true"] { color: var(--navy); border-left-color: var(--navy); background: #fff; }
.admin-panel h1 { font-size: 28px; color: var(--navy); margin-bottom: 6px; }
.admin-panel .lead { color: var(--muted); font-weight: 300; margin-bottom: 22px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 24px; }
.stat-box { background: #fff; padding: 18px 20px; }
.stat-box .l { font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); }
.stat-box .v { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--navy); margin-top: 6px; }
.card-admin { background: #fff; border: 1px solid var(--line); padding: 22px; margin-bottom: 20px; }
.card-admin h3 { font-size: 17px; color: var(--navy); margin-bottom: 14px; }
table.admin { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.admin th { text-align: left; font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.admin td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.admin select, table.admin input { font-family: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); background: #fff; }
.tag { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--line); color: var(--muted); }
.tag.fit { border-color: var(--accent-ink); color: var(--accent-ink); }
.admin-login { max-width: 380px; margin-top: 6vh; margin: 8vh auto; background: #fff; border: 1px solid var(--line); padding: 30px; }

@media (max-width: 900px) {
  .pd, .checkout-grid, .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { flex-direction: row; overflow-x: auto; }
}
@media (max-width: 600px) {
  .form-shop .row2 { grid-template-columns: 1fr; }
  .grid-shop { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .p-media { font-size: 30px; }
}

/* Referenzen und Beträge nicht umbrechen */
table.admin td:first-child strong { white-space: nowrap; }
table.admin td { vertical-align: middle; }

/* Kartenüberschriften auf zweiter Ebene */
.card-admin .card-h { font-size: 17px; color: var(--navy); margin-bottom: 14px; font-weight: 500; }

/* Suche und Sortierung */
.shop-tools { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.shop-search { flex: 1 1 260px; }
.shop-search input, .shop-sort select {
  width: 100%; font-family: inherit; font-size: 14px; padding: 11px 13px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 2px;
}
.shop-sort { flex: 0 0 210px; }
.shop-search input:focus, .shop-sort select:focus { outline: none; border-color: var(--navy); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* hidden muss auch gegen display:flex gewinnen */
[hidden] { display: none !important; }
