/* ==========================================================================
   Shop — shop.danielotmar.com (Übersichten + Produktseiten)
   Aufbau nach Vorbild shop.lauraseiler.com: eigener Kopf mit drei Reitern
   neben dem Logo, Produktraster mit Sortierung, eigener Fuß mit den
   Zahlungsarten. Baut auf otmar.css + otmar-header.css auf (Navy/Gold-CI).
   Bezahlt wird im Digistore24-Checkout.
   ========================================================================== */

/* ===================== Shop-Kopf ===================== */

.shop-header .brand-shop {
  margin-left: 12px;
  padding: 4px 10px 3px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gold-text);
}
.shop-header .shop-site-link { display: none; }

/* Zwischen 940 und 1099 px passen Logo, drei Reiter und Login nicht nebeneinander:
   dort bleibt es beim Menü-Knopf wie am Handy */
@media (min-width: 940px) and (max-width: 1099px) {
  .shop-header .nav-links.nav-links,
  .shop-header .header-login.header-login { display: none; }
  .shop-header .hamburger.hamburger { display: inline-flex; }
  body.page-shop .drawer.drawer { display: flex; }
  body.page-shop .drawer-backdrop.drawer-backdrop { display: block; }
}
@media (min-width: 1100px) {
  /* die drei Reiter direkt neben dem Logo, rechts Website + Login */
  .shop-header .nav-links.nav-links { gap: 26px; margin-left: 28px; margin-right: auto; }
}
@media (min-width: 1240px) {
  .shop-header .header-inner.header-inner { gap: 20px; }
  .shop-header .shop-site-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--ink-muted);
    transition: color 0.3s var(--ease);
  }
  .shop-header .shop-site-link:hover { color: var(--navy); }
}

/* ===================== Übersichten ===================== */

.c-head { background: var(--white); padding: clamp(40px, 5vw, 72px) 0 0; }
.c-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s3) var(--s5);
  padding-bottom: var(--s3);
  border-bottom: 1px solid rgba(29, 46, 74, 0.10);
}
.c-head h1 { font-size: clamp(38px, 4.6vw, 58px); margin-bottom: 10px; }
.c-head p { max-width: 58ch; margin: 0; color: var(--ink-muted); font-size: 16px; }

.c-tools { display: flex; align-items: center; gap: var(--s3); font-size: 13px; color: var(--ink-muted); }
.c-sort { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.c-sort select {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23B89B5E' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 2px center / 10px 7px;
  border: 0;
  border-bottom: 1px solid var(--gold);
  border-radius: 0;
  padding: 6px 22px 6px 2px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.c-sort select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.c-count { white-space: nowrap; }

.c-list { background: var(--white); padding: var(--s5) 0 var(--section-y); }

/* --- Produktkarte (schlicht wie bei Laura: Bild, Titel, Preis) --- */
.c-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) 14px; }
.c-card { display: flex; flex-direction: column; }
.c-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.c-card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--sand-100); }
.c-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.c-card:hover .c-card-media img { transform: scale(1.04); }
/* Querformat-Grafik (VIP-Paket): ganz zeigen statt anschneiden */
.c-card-media.is-contain { background: var(--white); box-shadow: inset 0 0 0 1px rgba(29, 46, 74, 0.06); }
.c-card-media.is-contain img { object-fit: contain; }
.c-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 6px 12px;
  background: var(--navy);
  color: var(--sand-50);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}
.c-card-body { padding-top: 16px; }
.c-card-cat {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.c-card h3 {
  font-size: clamp(21px, 1.9vw, 25px);
  line-height: 1.2;
  margin-bottom: 8px;
  text-decoration: underline transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.3s var(--ease);
}
.c-card:hover h3 { text-decoration-color: var(--gold); }
.c-card-price { margin: 0; font-size: 15px; font-weight: 600; color: var(--navy); }
.c-card-price small { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--ink-muted); }

@media (min-width: 760px) { .c-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) var(--s3); } }
@media (min-width: 1100px) { .c-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* --- leere Kategorie (Kalender, Poster uvm.) --- */
.c-empty { max-width: 560px; margin: 0 auto; padding: var(--s5) 0; text-align: center; }
.c-empty h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: var(--s3); text-wrap: balance; }
.c-empty p { color: var(--ink-muted); margin-bottom: var(--s4); }

/* --- „Das könnte dich auch interessieren“ auf den Produktseiten --- */
.c-related { background: var(--sand-100); }

/* ===================== Shop-Fuß ===================== */

.shop-footer {
  background: var(--navy-deep);
  color: rgba(243, 239, 233, 0.78);
  padding: var(--s6) 0 var(--s4);
  font-size: 14px;
  line-height: 1.6;
}
.sf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s3); }
.sf-brand { grid-column: 1 / -1; }
.sf-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand-50);
}
.sf-logo small {
  padding: 4px 10px 3px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  color: var(--gold);
}
.sf-brand p { margin: var(--s2) 0 0; font-family: var(--font-display); font-style: italic; font-size: 18px; color: rgba(243, 239, 233, 0.66); }
.page-otmar .sf-col h4 {
  margin-bottom: var(--s2);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.sf-col li { margin-bottom: 10px; }
.sf-col a { transition: color 0.3s var(--ease); }
.sf-col a:hover { color: var(--gold); }

.sf-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid rgba(243, 239, 233, 0.12);
  font-size: 12px;
  color: rgba(243, 239, 233, 0.55);
}
.sf-bottom p { margin: 0; }
.sf-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-pay-item {
  width: 48px; height: 30px;
  border-radius: 4px;
  background: #FFFFFF;
  display: grid;
  place-items: center;
}
.sf-pay-item svg { width: auto; height: 18px; }
.sf-pay-item svg.is-wide { width: 36px; height: auto; }
.sf-pay-item.is-klarna { background: #FFB3C7; }
.sf-pay-item.is-klarna svg { height: 14px; }

@media (min-width: 900px) {
  .sf-grid { grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); }
  .sf-brand { grid-column: auto; }
}

/* Handy: Fußzeile kompakt */
@media (max-width: 599px) {
  .shop-footer { padding: var(--s5) 0 var(--s3); }
  .sf-grid { gap: var(--s4) var(--s3); }
  .sf-bottom { flex-direction: column-reverse; align-items: flex-start; }
}

/* --- Darauf kannst du dich verlassen --- */
.shop-trust-band { background: var(--sand-50); padding: var(--s6) 0; }

.shop-trust { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.shop-trust-item { text-align: center; padding: 0 var(--s2); }
.shop-trust-icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--s3);
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: grid;
  place-items: center;
}
.shop-trust-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.shop-trust-item h3 { font-size: 26px; margin-bottom: 10px; }
.shop-trust-item p { color: var(--ink-muted); font-size: 15px; max-width: 34ch; margin: 0 auto; }
.shop-trust-item p a, .pdp-prose a { color: var(--navy); border-bottom: 1px solid var(--gold); }
@media (min-width: 760px) { .shop-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Überschriften gleichmäßig umbrechen – kein einzelnes Wort allein in der letzten Zeile */
.c-head h1, .c-card h3, .pdp-info h1, .pdp-sub,
.pdp-section .section-headline h2, .pdp-prose p.is-lead { text-wrap: balance; }

/* ===================== Produktseite ===================== */

.shop-crumbs {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: var(--s4);
  margin: 0;
}
.shop-crumbs a { color: var(--ink-muted); transition: color 0.3s var(--ease); }
.shop-crumbs a:hover { color: var(--navy); }
.shop-crumbs span { margin: 0 10px; color: var(--gold); }

/* unten kaum Luft: der folgende Abschnitt bringt seinen eigenen Abstand mit */
.pdp { padding: var(--s4) 0 var(--s4); }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }

/* --- Galerie --- */
.pdp-main { aspect-ratio: 1 / 1; background: var(--white); box-shadow: var(--shadow-soft); overflow: hidden; }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-main.is-contain img { object-fit: contain; }

.pdp-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.pdp-thumb {
  padding: 0;
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: 1px solid transparent;
  cursor: pointer;
  opacity: 0.62;
  overflow: hidden;
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb:hover { opacity: 1; }
.pdp-thumb[aria-current="true"] { opacity: 1; border-color: var(--gold); }
.pdp-thumb:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* --- Kaufbereich --- */
.pdp-info .eyebrow { margin-bottom: 12px; }
.pdp-info h1 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.04; margin-bottom: var(--s2); }
.pdp-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.35;
  color: var(--ink-muted);
  margin-bottom: var(--s3);
}

.pdp-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: var(--s3) 0;
  margin-bottom: var(--s3);
  border-top: 1px solid rgba(29, 46, 74, 0.12);
  border-bottom: 1px solid rgba(29, 46, 74, 0.12);
}
.pdp-price strong {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.2vw, 50px);
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
}
.pdp-price span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.pdp-lead { color: var(--ink-muted); font-size: 16.5px; }

.pdp-points { display: grid; gap: 12px; margin: var(--s3) 0 var(--s4); }
.pdp-points li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.6; }
/* Häkchen in Gold */
.pdp-points li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.42em;
  width: 13px; height: 7px;
  border-left: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}

.pdp-buy { width: 100%; padding-top: 20px; padding-bottom: 20px; font-size: 14px; }
.pdp-alt { text-align: center; margin-top: var(--s2); }
.pdp-alt a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}

.pdp-trust { display: grid; gap: 10px; margin-top: var(--s4); }
.pdp-trust li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-muted); line-height: 1.5; }
.pdp-trust svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.pdp-note {
  margin-top: var(--s4);
  padding: 16px 20px;
  background: var(--white);
  border-left: 2px solid var(--gold);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-muted);
}
.pdp-note a { color: var(--navy); border-bottom: 1px solid var(--gold); }

.pdp-legal { margin-top: var(--s3); font-size: 12px; line-height: 1.6; color: var(--ink-muted); }

@media (min-width: 960px) {
  .pdp-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
  .pdp-gallery { position: sticky; top: 104px; }
}

/* --- Inhaltsbereiche unter dem Kaufbereich --- */
.pdp-section { padding: var(--section-y) 0; }
.pdp-section.is-white { background: var(--white); }
.pdp-section .section-headline { margin-bottom: var(--s5); }

.pdp-prose { max-width: 66ch; margin: 0 auto; }
.pdp-prose p { font-size: 17px; color: var(--ink-muted); }
.pdp-prose p.is-lead {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.35;
  color: var(--navy);
  text-align: center;
  margin-bottom: var(--s4);
}

/* Module / Wochen mit Bild */
.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s2); }
.tile { margin: 0; }
.tile-media { background: var(--sand-100); overflow: hidden; }
.tile-media img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.04); }
.tile figcaption { padding-top: 12px; font-size: 14px; line-height: 1.45; color: var(--navy); }
.tile figcaption strong {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
}
@media (min-width: 640px) { .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .tile-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4) var(--s3); }
  .tile-grid.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Module nur als Text (Love & Grow) */
.num-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; background: rgba(29, 46, 74, 0.08); }
.num-item { background: var(--white); padding: var(--s4); display: flex; gap: var(--s3); align-items: baseline; }
.num-item span { font-family: var(--font-display); font-size: 34px; line-height: 1; color: var(--gold); flex: none; min-width: 1.4em; }
.num-item h3 { font-size: 24px; }
@media (max-width: 639px) {
  .num-item { padding: 18px 22px; }
  .num-item span { font-size: 28px; }
  .num-item h3 { font-size: 21px; }
}
@media (min-width: 640px) { .num-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .num-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Inhalte eines Pakets (VIP) */
/* Flex statt Grid, damit eine unvollständige letzte Reihe mittig sitzt */
.pack-list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); }
.pack-item { flex: 0 1 100%; background: var(--white); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.pack-item img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pack-item div { padding: var(--s3) var(--s3) var(--s4); }
.pack-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.pack-item h3 { font-size: 24px; margin-bottom: 10px; }
.pack-item p { font-size: 15px; color: var(--ink-muted); }
@media (min-width: 700px) { .pack-item { flex-basis: calc((100% - var(--s3)) / 2); } }
@media (min-width: 1020px) { .pack-item { flex-basis: calc((100% - 2 * var(--s3)) / 3); } }

/* --- Kaufleiste am Handy, sobald der Kaufbutton aus dem Bild ist --- */
.buy-bar { display: none; }
@media (max-width: 959px) {
  .buy-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s2);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    padding: 12px var(--section-x) calc(12px + env(safe-area-inset-bottom));
    background: var(--navy);
    color: var(--sand-50);
    box-shadow: 0 -10px 30px rgba(22, 35, 58, 0.25);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
  }
  .buy-bar.is-shown { transform: none; visibility: visible; transition: transform 0.45s var(--ease); }
  .buy-bar-price { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.05; white-space: nowrap; }
  .buy-bar-price small {
    display: block;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(243, 239, 233, 0.7);
  }
  .buy-bar .btn { padding: 14px 22px; flex: none; }
  .has-buy-bar .site-footer { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .c-card:hover .c-card-media img, .tile:hover .tile-media img { transform: none; }
}
