/** Shopify CDN: Minification failed

Line 8:1 Unexpected "<"
Line 250:2 Unexpected "<"
Line 546:0 Unexpected "<"

**/
x<!DOCTYPE html>
<html lang="de">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>Komponenten-Demo</title>
  <style>
    /* 1. Reset & Normalize */
    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    html, body {
      font-family: 'Inter', sans-serif;
      line-height: flex;
      -webkit-font-smoothing: antialiased;
      background: #fafafa;
      color: #222;
    }

    /* 2. Grundelemente */
    img, video {
      display: block;
      max-width: 100%;
      height: auto;
    }

    button, input, select, textarea {
      font: inherit;
      color: inherit;
      background: transparent;
      border: none;
      outline: none;
    }

    ul, ol {
      list-style: none;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    hr {
      border: none;
      border-top: 1px solid #ccc;
    }

    /* 3. Flex-Helferklassen */
    .flex-column {
      display: flex;
      flex-direction: column;
    }

.icon {
  vertical-align: middle;
}

    .flex-row {
      display: flex;
      flex-direction: row;
    }

    .centered {
      justify-content: center;
      align-items: center;
    }

    /* 4. Komponenten: Card mit Bild, Text, Button */
.card {
  width: 300px !important;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: none;
  text-align: center;
  transition: transform 0.3s ease;
}

.card-startseite {
  max-width: 300px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: #D8F5F5;
  border-radius: 12px;
  box-shadow: none;
  text-align: center;
  transition: transform 0.3s ease;
}
    .card:hover {
      transform: scale(1.03);
    }

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto; /* schiebt den Bereich ganz nach unten */
}

    .card-title {
  font-size: 2.5rem;
  font-weight: 500;
  max-width: 90%;
  margin: 0 auto 0.75rem;
  text-align: center;
  color: #1a908c;
  line-height: 1.3;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
  transform-origin: center;
}

.card-text {
      font-size: 1.6rem;
      font-weight: 500;
      max-width: 100%;
      margin-left: 2rem;
      margin-right: 2rem;
      color: #333;
      line-height: 1.5;
      overflow: hidden;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      text-overflow: ellipsis;
   mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    }

.text-wrapper {
  display: flex;
  flex-direction: column;
  max-height: 15em; 
  overflow: hidden;
}

.card-price {
      font-size: 2.5rem;
      font-weight: 500;
      text-align: center;
      color: #333;
    }

    .button {
      display: inline-block;
      margin-top: 1rem;
      padding: 0.75rem 1.25rem;
      background: #1a908c;
      color: white;
      border-radius: 6px;
      cursor: pointer;
      transition: background 0.2s;
    }

    .button:hover {
      background: #166c66;
    }

    /* 5. Responsive Video / Image Container */
    .media-wrapper {
      position: relative;
      padding-top: 56.25%; /* 16:9 Aspect Ratio */
      margin-bottom: 1rem;
    }

    .media-wrapper iframe,
    .media-wrapper video,
   .media-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.media-wrapper img {
  width: 80%;
  height: auto;
  object-fit: contain;
  position: static;
}


    /* 6. Slider (Horizontal Beispiel) */
    .slider {
      display: flex;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      padding: 1rem;
    }

    .slide {
      flex: 0 0 300px;
      background: white;
      border-radius: 8px;
      scroll-snap-align: center;
      padding: 1rem;
      /*box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
    }

    /* 7. Animationen */
    .fade-in {
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 0.6s ease forwards;
    }
      

    @keyframes fadeInUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }


    /* 8. Visually Hidden (für a11y) */
    .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;
    }

    /* 9. Breakpoints
    @media (max-width: 768px) {
      .card {
        margin: 1rem;
      }
      
    }*/


  </style>
</head>
<body>

  <div class="card fade-in">
    <div class="media-wrapper">
      <img src="https://via.placeholder.com/640x360" alt="Beispielbild" />
    </div>
    <h2 class="card-title">Demo-Komponente</h2>
    <p class="card-text">Dies ist eine beispielhafte Darstellung einer vollständig ausgestatteten UI-Komponente mit Rich-Content, Medien und Interaktion.</p>
    <button class="button">Aktion</button>
  </div>

  <!-- Slider-Beispiel -->
  <div class="slider">
    <div class="slide">Slide 1</div>
    <div class="slide">Slide 2</div>
    <div class="slide">Slide 3</div>
  </div>

/* Bild-Hover */
.media-wrapper img {
  transition: transform 0.4s ease;
}
.media-wrapper:hover img {
  transition: transform 0.4s ease;
  transform: scale(1.05);
}

.card-title:hover {
  transform: scale(1.05) translateX(2px); /* leicht größer + minimal verschoben */
  color: #1a908c;
}
.card-title:hover {
  color: #1a908c;
  
}

/* Icon-Hover */
.instant-add-to-cart-button svg {
  transition: transform 0.4s ease;
}
.instant-add-to-cart-button:hover svg {
  transform: scale(1.1);
}

.card-slogan {
  margin-top: -0.7rem;
  margin-bottom: -0.7rem;
  font-size: 1.6rem;
  font-weight: 500;
  color: #1a908c;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.card-slogan-link {
  text-decoration: none;
  color: #1a908c;
}

.card-slogan-underline {
  position: relative;
  display: inline-block;
}

.card-slogan-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: #1a908c;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card-slogan-link:hover .card-slogan-underline::after {
  transform: scaleX(1);
}

.custom-grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}
.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-cols-5 {
  grid-template-columns: repeat(5, 1fr);
}
.custom-grid-js {
  display: grid;
  grid-template-columns: repeat(var(--custom-columns), 1fr);
  gap: var(--custom-gap);
}

/* Responsive fallback: Mobile = 1 Spalte */
/* .custom-grid {
  display: grid;
  grid-template-columns: repeat(var(--columns), max-content);
  justify-content: center; 
  gap: var(--gap);
  width: 100%;
  flex-wrap: wrap;
  
} */

.custom-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(300px, 1fr));
  gap: 2rem; /* Fester Abstand */
  justify-content: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}


@media (max-width: 1530px) {
  .custom-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  #sidebar-menu {
    display: none !important; /* Sidebar zuerst ausblenden */
    gap: 16px;
    
  }
}

@media (max-width: 992px) {
  .custom-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    justify-items: center;
  }
}

@media (max-width: 768px) {
  .custom-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}


/* 
@media (max-width: 768px) {
  .custom-grid {
    grid-template-columns: 1fr !important;
    gap: var(--gap) !important;
    justify-items: center;
  }
} */

/*.custom-grid[data-section-id='{{ section.id }}'] {
  display: flex;
  gap: {{ section.settings.gap }}px !important;

}  */

.custom-flex-grid {
  display: flex;
  flex-wrap: wrap;
}


.custom-flex-grid .card {
  margin-bottom: var(--custom-gap);
}
.custom-flex-grid.no-wrap {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 1rem; /* optional für Scrollplatz */
}
.instant-add-to-cart-button {
  position: relative;
}

.inline-cart-popup {
  position: absolute;
  bottom: 100%;
  right: 0;
  transform: translateY(-10px);
  background: white;
  border: 1px solid #1a908c;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 999;
  width: 200px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
}

.inline-cart-popup.hidden {
  display: none;
}

.popup-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.card-spacer {
  flex: 0 0 300px;
  max-width: 300px;
  height: 0;

  visibility: hidden;
  pointer-events: none;
}


.button.small,
.button-outline.small {
  font-size: 1.4rem;
  padding: 0.5rem 0.75rem;
  text-align: center;
}
.button-outline {
  background: none;
  border: 1px solid #1a908c;
  color: #1a908c;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.4rem;
  text-align: center;
}

.button-outline:hover {
  background: #1a908c;
  color: white;
}


.inline-cart-popup.show {
  display: block;
}
.instant-add-to-cart-button,
.instant-add-to-cart-button svg {
  outline: none;
  box-shadow: none;
  background-color: transparent;
  -webkit-tap-highlight-color: transparent;
}

.card.placeholder {
  opacity: 0; /* Unsichtbar, aber messbar */
  pointer-events: none;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  width: 100%;
  min-height: 100px; /* Oder mehr, je nach Produkt */
  box-sizing: border-box;
  border: 1px solid transparent; /* simuliert Schattenrand etc. */
  background: transparent;
}
.breite-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gap, 16px);
  width: 100%;
  box-sizing: border-box;
}
@font-face {
  font-family: 'Barriecito';
  src: url('{{ "barriecito-v17-latin-regular.woff2" | asset_url }}') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


</body>
</html>

