/* =================== Handy-Optimierungen =================== */
@media (max-width: 768px) {
  main {
    width: 94%;
    margin: 0 auto;
    text-align: left;
    /* padding: 13px; */
  }
  h2 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
  }
  h3 {
    display: block;
    font-size: 1.0rem;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
  }
  p {
    line-height: 1.4erm;
    font-size: 0.8em;
  }
   .hero-caption {
    width: 80%;          /* nimmt 80% der Bildschirmbreite */
    font-size: 0.9em;    /* Text etwas größer */
    left: 50%;           /* sauber mittig */
    transform: translateX(-50%);
    font-size: 0.5em; 
    bottom: 1px;
   }
   .site-logo {
    position: absolute;
    top: 8px; 
    width: 15%;
    height: auto;
    z-index: 10;
   }
.  .mini-product {
    width: 80%; 
   }
    
   #kaufen-section { 
    flex: 1 1 300px; 
   }
   
   #paypal-container {
    display: block;
    visibility: visible;
   }
   #paypal-container {
    height: 100px; /* oder eine andere geeignete Höhe */
   }
  /* Kategorie-Buttons 1 pro Zeile */
 /* Container auf Handy: Buttons oben, Suchfeld darunter */
  .top-searchbar .container {
    max-width: 100%;
    margin: 0px 0%;
    /* padding: 11px 16px; */
    display: flex
    align-items: center;
    gap: 8px;
  }
  .site-logo-gallery {
    max-width: 38px;
    margin-left: 1%;
    position: absolute;
    left: 81%;
    top: 55px;
}
  /* Kategorie-Buttons: immer in einer Reihe */
  .category-buttons {
    display: flex;
    flex-wrap: nowrap;        /* keine zweite Zeile */
    justify-content: center;
    gap: 1px;
    width: 100%;
    overflow-x: hidden;       /* kein horizontales Scrollen */
    margin:1px;
    font-size: 0.8rem;
  }

 .category-buttons button {
    font-size: 0.75em;     /* deutlich kleinere Schrift */
    padding: 6px 1%;     /* schmaler */
    margin: 2px;           /* weniger Abstand */
    border-radius: 6px;    /* kleinere Rundung */
  }

  /* Suchfeld nimmt volle Breite */
 /* Suche auf Handy ausblenden */
  .top-searchbar form {
    display: none;
  }

  .top-searchbar input[type="search"] {
  display: none;
  }
  /* Intro untereinander */
  .intro-book {
    height: auto;
    padding: 30px;
    background-size: cover;
  }
  .intro-image, .intro-text {
    float: none;
    width: 100%;
    text-align: center;
  }
  .intro-text {
    padding-left: 0;
    text-align: left;
  }

  /* Galerie 1 pro Zeile */
  .gallery-item {
    flex: 0 0 100%;
  }

 /* Showcase: Karussell-Stil */
  .category-showcase {
    display: flex;
    flex-wrap: nowrap;        /* verhindert zweite Zeile */
    overflow-x: auto;         /* horizontales Scrollen */
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 10px;
    margin: 5px auto;
  }

  .showcase-block {
    flex: 0 0 80%;            /* jeder Block ~80 % breit */
    scroll-snap-align: start; /* Block einrasten beim Scrollen */
  }

  /* optional: Scrollbar etwas hübscher */
  .category-showcase::-webkit-scrollbar {
    height: 6px;
  }
  .category-showcase::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 3px;
  }
  .showcase-images img {
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.35),
      0 16px 32px rgba(0, 0, 0, 0.3),
      0 24px 48px rgba(0, 0, 0, 0.25);
  }

  #lightbox {
    display: none;              /* Standardmäßig unsichtbar */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);   /* leichter Hintergrund */
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  #lightbox-content {
    position: relative;
    display: inline-block; /* damit Bild und Zurück-Text nebeneinander sind */
  }
  
  #lightbox img {
    max-width: 142%;
    max-height: 140%;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
    display: block;
  }
  
  #lightbox-back {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.3em;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    z-index: 10;
  }
  
  #lightbox-back:hover {
    background: rgba(0,0,0,0.8);
  }

/* Für kleinere Bildschirme */
  #artikel-hinweis{
    font-size: 0.8em;  /* Kleinere Schriftgröße */
    margin-top: 5px;   /* Etwas weniger Abstand */
  }

  .einzelbild-header img {
    max-width: 160px;
  }

  .paypal-layout {
    flex-direction: column;
    align-items: center;
  }

  .paypal-layout .beschreibung {
    text-align: center;
    margin-bottom: 20px;
  }

  .paypal-layout .paypal-button {
    transform: scale(1.4);
  }

  .zurueck-link a {
    display: inline-block;
    font-size: 1.2em;
    padding: 2px 2px;
    border: 2px solid #888;
    border-radius: 6px;
    text-decoration: none;
    background-color: #f4f4f4;
    color: #333;
  }

  #paypal-wrapper {
    transform: scale(1.3);
    transform-origin: top center;
  }
  
  .zurueck-link {
  margin: 0px 0;
  font-size: 1.1em;
}

}

/* --- YouTube 2x2 Grid --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* Responsive: auf schmalen Screens 1 Spalte */
@media (max-width: 720px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* Saubere 16:9-Einbettung */
.video {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
