/* ============================================
   kurz-und-buendig-verlag.com — custom layout
   ============================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* --- Utilities --- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.hidden { display: none !important; }
.skip-to-content-link { display: none; }
.gradient { background: transparent; }
.isolate { isolation: isolate; }
.center { text-align: center; }

/* --- Page width container --- */
.page-width {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* ============================================
   HEADER
   ============================================ */
.section-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
}

.header-wrapper {
  border-bottom: 1px solid #000;
}

.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  gap: 0;
}

/* Hamburger — hidden on desktop */
.menu-drawer-container { display: none; }

/* Logo — center column */
.header__heading {
  grid-column: 2;
  text-align: center;
  font-size: 0; /* prevent text fallback from taking space */
}
.header__heading-link { display: inline-block; }
.header__heading-logo-wrapper img {
  height: 52px;
  width: auto;
  max-width: 260px;
  display: block;
  margin: 0 auto;
}

/* Inline nav — left column */
.header__inline-menu {
  grid-column: 1;
}
.list-menu--inline {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header__menu-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  padding: 4px 0;
  background: none;
  border: none;
  color: #000;
}
.header__menu-item .icon-caret { width: 10px; height: 6px; }

/* Mega menu — hidden */
.mega-menu__content { display: none; }

/* Icons — right column */
.header__icons {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.header__icon {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #000;
}
.icon { width: 18px; height: 18px; }
.cart-count-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  background: #E10000;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  margin-left: 3px;
  line-height: 1;
}

/* Hide drawers and search modal */
.menu-drawer,
.search-modal,
.cart-notification { display: none; }

/* ============================================
   MAIN CONTENT
   ============================================ */
#MainContent { }

/* Section base spacing */
.shopify-section { }

[class*="-padding"] {
  padding-top: 56px;
  padding-bottom: 56px;
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.grid {
  display: grid;
  gap: 24px;
}

.grid--2-col-desktop  { grid-template-columns: 1fr 1fr; }
.grid--4-col-desktop  { grid-template-columns: repeat(4, 1fr); }
.grid--1-col          { grid-template-columns: 1fr; }
.grid__item { min-width: 0; }

/* ============================================
   MEDIA / IMAGE RATIO HACK
   ============================================ */
.ratio {
  position: relative;
  overflow: hidden;
  display: block;
  padding-bottom: var(--ratio-percent, 100%);
}

/* for multicolumn direct padding-bottom inline style */
.media[style*="padding-bottom"] {
  position: relative;
  overflow: hidden;
  display: block;
}

.media {
  overflow: hidden;
  display: block;
  position: relative;
}
.media img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   MULTICOLUMN — intro section
   ============================================ */
.multicolumn { }
.multicolumn-list { align-items: start; }

.multicolumn-card { }
.multicolumn-card__image-wrapper {
  margin-bottom: 20px;
}
.multicolumn-card-spacing { }
.multicolumn-card__info h3,
.multicolumn-card__info .inline-richtext {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}
.multicolumn-card__info .rte {
  font-size: 15px;
  line-height: 1.65;
  color: #222;
}
.multicolumn-card__info .rte p { margin-bottom: 12px; }

/* Link with arrow */
.link.animate-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #E10000;
  margin-top: 16px;
  letter-spacing: 0.01em;
}
.icon-wrap { display: inline-flex; align-items: center; }
.icon-wrap .icon { width: 14px; height: 10px; }

/* ============================================
   COLLECTION SECTIONS
   ============================================ */
.collection {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.title-wrapper { margin-bottom: 28px; }
.title-wrapper--no-top-margin { margin-top: 0; }

.collection__title .title,
.collection__title .inline-richtext {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-left: 3px solid #E10000;
  padding-left: 12px;
  display: block;
}

/* override .page-width inside .collection to remove extra padding */
.collection .page-width {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-grid { gap: 20px; }

.card-wrapper { display: block; }

.card--standard { }
.card--media { }

.card__inner {
  background: #fffce7;
  display: block;
}

.card__content {
  padding: 10px 0 0;
}

.card__information { }

.card__heading,
.card__heading.h5 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 6px;
}
.card__heading a { color: #000; }
.card__heading a:hover { color: #E10000; }

.card-information { margin-top: 4px; }
.caption-large { display: block; font-size: 12px; color: #666; }

/* Price */
.price { font-size: 13px; font-weight: 600; color: #000; }
.price__container { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.price__regular { }
.price__sale { display: flex; gap: 8px; align-items: baseline; }
.price-item--regular s { color: #999; font-weight: 400; }
.price-item--sale { color: #E10000; }
.unit-price { display: none; }
.price__sale:has(.price-item--regular:empty) { }

/* Badge */
.card__badge { display: none; }

/* Card inner content duplicate heading (hidden inside .card__inner) */
.card__inner .card__content { display: none; }

/* View all */
.collection__view-all { margin-top: 36px; }

.button {
  display: inline-block;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.button:hover,
.button--secondary:hover {
  background: #000;
  color: #fff;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid #000;
  margin-top: 24px;
}

/* padding comes from [class*="-padding"] on the footer element itself */
.footer__content-top {
  /* no extra padding — section-[id]-padding handles it */
}

.footer__blocks-wrapper {
  display: grid;
  gap: 32px;
}

.grid--4-col-tablet   { grid-template-columns: repeat(4, 1fr); }
.grid--2-col          { grid-template-columns: 1fr 1fr; }
.grid--1-col-tablet-down { grid-template-columns: 1fr; }

.footer-block__image-wrapper img {
  max-width: 140px;
  height: auto;
}
.footer-block .rte {
  font-size: 13px;
  line-height: 1.7;
  color: #333;
}
.footer-block .rte p { margin: 0; }
.footer-block .list-unstyled { display: flex; flex-direction: column; gap: 6px; }
.list-menu__item--link {
  font-size: 13px;
  color: #000;
  padding: 0;
}
.list-menu__item--link:hover { color: #E10000; }

.footer__content-bottom {
  border-top: 1px solid #e0e0e0;
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================
   ANIMATION — kill Shopify slide-in triggers
   ============================================ */
.scroll-trigger { opacity: 1 !important; transform: none !important; }
.animate--slide-in { opacity: 1 !important; transform: none !important; }
.motion-reduce { }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 989px) {
  .page-width { padding-left: 24px; padding-right: 24px; }
  .collection { padding-left: 24px; padding-right: 24px; }

  .header__inline-menu { display: none; }
  .menu-drawer-container {
    display: block;
    grid-column: 1;
  }
  .header {
    grid-template-columns: auto 1fr auto;
  }
  .header__heading { grid-column: 2; }
  .header__icons { grid-column: 3; }
  .header__icon--search { display: none; }

  .grid--4-col-desktop { grid-template-columns: repeat(2, 1fr); }
  .grid--2-col-desktop { grid-template-columns: 1fr; }
  .grid--4-col-tablet  { grid-template-columns: repeat(2, 1fr); }

  [class*="-padding"] { padding-top: 36px; padding-bottom: 36px; }
}

@media (max-width: 749px) {
  .page-width { padding-left: 16px; padding-right: 16px; }
  .collection { padding-left: 16px; padding-right: 16px; }

  .grid--4-col-desktop { grid-template-columns: repeat(2, 1fr); }
  .product-grid { gap: 14px; }

  .grid--4-col-tablet { grid-template-columns: 1fr 1fr; }
  .footer__content-bottom { padding-left: 16px; padding-right: 16px; }

  [class*="-padding"] { padding-top: 28px; padding-bottom: 28px; }

  .collection__title .title,
  .collection__title .inline-richtext { font-size: 20px; }
}

@media (max-width: 480px) {
  .grid--4-col-desktop { grid-template-columns: 1fr 1fr; }
  .grid--4-col-tablet  { grid-template-columns: 1fr 1fr; }
}
