/* ====== Font ====== */
@font-face {
  font-family: "ABCSocialEdu";
  src: url("./fonts/ABCSocialEdu-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ====== Reset ====== */
* { box-sizing: border-box; }

html,
body {
  height: 100%;
  margin: 0;
}

/* ====== Seite ====== */
body.page-merch {
  background: #000;
  color: #fff;
  font-family: "ABCSocialEdu", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  cursor: none;
}

/* ====== Header oben, immer einzeilig ====== */
.header--top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  text-align: center;
  background: transparent;
  padding: 20px 0;
}

/* ====== Menü ====== */
.menue-flex-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: clamp(8px, 2vw, 30px);
  padding: 0 12px;
  max-width: 100vw;
  overflow: hidden;
}

.menue-flex-container a {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: clamp(0.72rem, 1.1vw, 1.2rem);
  line-height: 1;
  transition: color .25s ease, transform .25s ease;
}

.menue-flex-container a:hover,
.menue-flex-container a:focus-visible {
  color: #e1ff00;
  transform: scale(1.08);
}

.nav-active {
  color: #e1ff00;
}

/* ===== Custom Cursor ===== */
.custom-cursor {
  width: 25px;
  height: 25px;
  background-color: #e1ff00;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform .1s ease;
}

/* ===== Layout ===== */
.merch-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 16px 80px;
  display: grid;
  gap: 32px;
}

/* ===== Produkte Grid ===== */
.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

@media (max-width: 900px) {
  .products { grid-template-columns: repeat(2, 1fr); }
}

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

/* ===== Einzelnes Produkt ===== */
.product {
  display: grid;
  gap: 12px;
}

/* ===== Hover Bildwechsel ===== */
.product .media {
  position: relative;
  overflow: hidden;
}

.product .media img {
  width: 100%;
  display: block;
  transition: opacity .4s ease;
}

.product .media img.front {
  opacity: 1;
}

.product .media img.back {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product:hover .media img.front { opacity: 0; }
.product:hover .media img.back  { opacity: 1; }

/* ===== Text + Buttons ===== */
.product .meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.product .title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: .08em;
}

.product select {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 8px;
  border-radius: 999px;
}

/* ===== Buttons ===== */
.add,
.checkout-btn {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #fff;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease, transform .25s ease;
}

.add {
  padding: 8px 12px;
}

.checkout-btn {
  margin-top: 10px;
  width: 100%;
  padding: 12px 14px;
}

.add:hover,
.checkout-btn:hover,
.add:focus-visible,
.checkout-btn:focus-visible {
  color: #e1ff00;
  border-color: #e1ff00;
  transform: translateY(-1px);
}

.add:active {
  transform: translateY(1px);
}

/* ===== Hinweis ===== */
.note {
  margin-top: 10px;
  opacity: .85;
  letter-spacing: .05em;
  max-width: 70ch;
}

/* ======================================================
   FLOATING CART – Newsletter Look
   ====================================================== */
.floating-cart {
  position: fixed;
  top: 120px;
  right: 40px;
  z-index: 50;
  width: min(420px, 92vw);
  background: rgba(0,0,0,0.78);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

/* Drag Handle */
.floating-cart .cart-toggle {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 0;
  color: #fff;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-align: center;
  cursor: grab;
}

.floating-cart.dragging .cart-toggle {
  cursor: grabbing;
}

/* Inhalt */
.cart-panel {
  padding: 12px 14px 14px;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}

.cart-panel.closed {
  display: none;
  transform: translateY(100%);
}

/* Items */
.cart-items {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.04);
}

.ci-title {
  letter-spacing: .06em;
}

.ci-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 6px 8px;
}

.ci-qty button {
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  transition: color .2s ease, transform .2s ease;
}

.ci-qty button:hover {
  color: #e1ff00;
  transform: scale(1.08);
}

/* Remove Button */
.ci-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease, transform .2s ease;
}

.ci-remove:hover,
.ci-remove:focus-visible {
  color: #e1ff00;
  border-color: #e1ff00;
  transform: scale(1.05);
}

/* Total */
.cart-total {
  margin: 8px 0 14px;
  letter-spacing: .08em;
}

.cart-total hr {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.18);
  margin: 10px 0;
}

/* Checkout */
.checkout h4 {
  margin: 14px 0 8px;
  letter-spacing: .08em;
  font-size: .95rem;
}

.checkout .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkout input,
.checkout textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.35);
  color: #fff;
  letter-spacing: .06em;
}

.checkout textarea {
  resize: vertical;
}

.hint {
  font-size: .85rem;
  opacity: .85;
  margin-top: 8px;
  letter-spacing: .04em;
  text-transform: none;
}

.hint br {
  display: block;
  margin-top: 20px;
}

.agb-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.agb-link:hover,
.agb-link:focus-visible {
  color: #e1ff00;
}

/* ===== Footer-Link ===== */
.footer-link {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: center center;
  text-decoration: none;
  color: #ffffff;
  letter-spacing: 0.08em;
  font-weight: 700;
  transition: color .25s ease, transform .25s ease;
  z-index: 15;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #e1ff00;
  transform: translateX(-50%) scale(1.08);
}

/* ===== Mobile ===== */

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .floating-cart {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-width: none;
    border-radius: 16px 16px 0 0;
  }

  .floating-cart .cart-toggle {
    cursor: pointer;
  }

  .floating-cart .cart-panel {
    max-height: 62vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .floating-cart .cart-panel.closed {
    display: none;
  }
}

@media (max-width: 768px) {
  .menue-flex-container {
    padding: 0 6px;               /* nur Menü-Abstand halbiert */
    gap: clamp(6px, 1.6vw, 24px);
  }

  .footer-link {
    display: none;
  }
}

@media (max-width: 900px) {

  .floating-cart {
    position: fixed;

    left: 0;
    right: 0;
    top: auto;
    bottom: 0;

    width: 100%;
    max-width: none;

    border-radius: 16px 16px 0 0;
  }

  .floating-cart .cart-toggle {
    cursor: pointer;
  }

  .floating-cart .cart-panel {
    max-height: 62vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .checkout .grid {
    grid-template-columns: 1fr;
  }
}



/* =========================
   MOBILE: AUTO IMAGE SWITCH
   ========================= */
/* =========================
   MOBILE: AUTO IMAGE SWITCH
   ========================= */
@media (hover: none) and (pointer: coarse) {

  .product .media {
    position: relative;
  }

  /* Frontbild bleibt im normalen Layout */
  .product .media img.front {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    display: block;
    animation: frontFade 6s infinite;
  }

  /* Backbild liegt darüber */
  .product .media img.back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: backFade 6s infinite;
  }

  @keyframes frontFade {
    0%, 45%  { opacity: 1; }
    50%, 95% { opacity: 0; }
    100%     { opacity: 1; }
  }

  @keyframes backFade {
    0%, 45%  { opacity: 0; }
    50%, 95% { opacity: 1; }
    100%     { opacity: 0; }
  }
}
}
