/* ==========================
   Imbisscontainer - Clean CSS
   (for template: Frenchise)
   ========================== */

/* === Base wrapper === */
#imbisscontainer-wrapper {
  font-family: "Roboto Slab", serif;
  color: #fff;
  background-color: #000;
  box-sizing: border-box;
  margin: 0;
  padding-top: 80px; /* space for header */
  overflow-x: hidden;
}

/* Force white text inside wrapper (safety) */
#imbisscontainer-wrapper,
#imbisscontainer-wrapper * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Basic link color (allow specific buttons to differ) */
#imbisscontainer-wrapper a {
  color: #ffd633;
  text-decoration: none;
}

/* === Hero === */
.imbiss-hero-section {
  position: relative;
  text-align: center;
  background-color: #000;
  overflow: hidden;
  min-height: 40vh;
  padding: 0;
}

.imbiss-hero-image {
  width: 100%;
  height: 60vh;
  max-height: 900px;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
  z-index: 0;
}

.imbiss-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
  pointer-events: none;
}

.imbiss-hero-text {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  padding: 1rem;
  text-align: center;
}

.imbiss-hero-text h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  text-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.imbiss-hero-text p {
  margin: .75rem 0 0;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  opacity: 0.95;
}

/* CTA / booking button (if used) */
.verkostung-booking-button,
.verkostung-booking-button:link,
.verkostung-booking-button:visited {
  display: inline-block;
  background-color: #ffcc00;
  color: #000;
  padding: 10px 18px;
  font-weight: 700;
  border-radius: 6px;
  transition: background-color .25s ease, transform .2s ease;
}

.verkostung-booking-button:hover {
  background-color: #ffd633;
  transform: translateY(-2px);
}

/* === Logo slider (responsive single-line scroller) === */
.imbiss-logo-slider,
.verkostung-logo-slider {
  overflow: hidden;
  position: relative;
  background: #000;
  padding: 18px 12px;
  text-align: center;
  box-sizing: border-box;
}

.logo-slider-track-custom {
  display: flex !important;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: nowrap !important;
  width: max-content !important;
  will-change: transform;
  animation: scroll-logos var(--logo-duration, 20s) linear infinite;
  animation-play-state: running;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.logo-items-wrapper {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: nowrap;
}

.logo-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item img {
  height: clamp(36px, 8vw, 120px);
  max-width: 300px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform .22s ease, filter .22s ease;
}

.logo-item img:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.06);
}

.logo-slider-track-custom:hover,
.logo-slider-track-custom:focus-within {
  animation-play-state: paused;
}

@keyframes scroll-logos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === Info / Technical data === */
.imbiss-info {
  background-color: #000;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.imbiss-info h2,
.imbiss-info h3 {
  margin-bottom: 1rem;
}

.imbiss-info p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #ddd;
}

/* === Photo gallery (carousel layout reset) === */
.imbiss-foto-galerie {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.imbiss-foto-galerie h2 { 
  text-align: center; 
  margin-bottom: 1.5rem; 
}

.gallery-slider .carousel-track {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.gallery-slider .carousel-item {
  flex: 1 1 100%;
}

.gallery-slider .carousel-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* Desktop layout: show grid-ish arrangement */
@media (min-width: 992px) {
  .gallery-slider .carousel-item:first-child { flex: 1 1 100%; }
  .gallery-slider .carousel-item:not(:first-child) {
    flex: 1 1 calc(33.333% - 1rem);
  }

  /* Photos edge-to-edge with small side padding */
  .imbiss-foto-galerie {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .gallery-slider .carousel-track {
    gap: 20px;
  }
}

/* Tablet */
@media (min-width: 600px) and (max-width: 991px) {
  .gallery-slider .carousel-item:first-child { flex: 1 1 100%; }
  .gallery-slider .carousel-item:nth-child(2),
  .gallery-slider .carousel-item:nth-child(3) {
    flex: 1 1 calc(50% - 1rem);
  }
}

/* Phones */
@media (max-width: 599px) {
  .gallery-slider .carousel-item { flex: 1 1 100%; }
}

/* === Video gallery / previews === */
.imbiss-video-gallery {
  padding: 48px 18px;
  text-align: center;
  background-color: #0f0f10;
  color: #fff;
}

.imbiss-video-gallery h2 { 
  font-size: 1.9rem; 
  margin-bottom: 20px; 
}

/* grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

/* video item + overlay */
.video-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  min-height: 140px;
  transition: transform .25s ease;
}

.video-item:hover { transform: scale(1.02); }

.video-item video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  background: #000;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

/* shadow when controls are active */
.video-item video[controls] { 
  box-shadow: 0 10px 30px rgba(0,0,0,0.6); 
}

/* play overlay */
.video-item .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  opacity: .95;
  z-index: 2;
}

/* hide overlay when playing (class toggled by JS) */
.video-item.is-playing .play-overlay {
  opacity: 0;
  transform: scale(.98);
  visibility: hidden;
  pointer-events: none;
}

/* Desktop: videos edge-to-edge with small side padding */
@media (min-width: 992px) {
  .video-grid {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* === Kooperationen / Kooperation section === */
.imbiss-kooperationen,
.verkostung-kooperationen {
  padding: 60px 20px;
  text-align: center;
  background-color: #000;
  color: #fff;
}

.imbiss-kooperationen h2,
.verkostung-kooperationen h2 { 
  font-size: 2rem; 
  margin-bottom: 1rem; 
}

.imbiss-kooperationen p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #ddd;
}

/* === Testimonials === */
.imbiss-testimonials {
  padding: 3rem 1rem;
  margin: 3rem auto;
  max-width: 1200px;
  text-align: center;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 40px 8px rgba(255,255,255,0.06);
  background-color: #000;
}

.imbiss-testimonials h2 { font-size: 2.2rem; margin-bottom: 1.5rem; }

.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.testimonial-card {
  background-color: #000;
  border-radius: 12px;
  padding: 1.75rem 1.25rem;
  max-width: 320px;
  box-shadow: 0 0 12px rgba(255,255,255,0.06);
}

/* star color (force gold) */
.imbiss-testimonials .stars,
.imbiss-testimonials .testimonial-author {
  color: #ffd700 !important;
  -webkit-text-fill-color: #ffd700 !important;
  text-shadow: 0 0 6px rgba(255,215,0,0.35);
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #ddd;
  margin-bottom: 1rem;
}

/* === WP content section === */
.imbiss-content-section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto 4rem;
  background-color: #000;
  line-height: 1.8;
}

/* === Animations (kept minimal) === */
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

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

/* === Responsive tweaks === */
@media (max-width: 1024px) {
  .logo-item img { height: clamp(36px, 9vw, 90px); }
  .imbiss-hero-image { height: 40vh; }
  .imbiss-hero-text h1 { font-size: clamp(1.6rem, 6vw, 2rem); }
  .testimonial-cards { flex-direction: column; align-items: center; }
  .testimonial-card { max-width: 90%; }
  .video-grid { gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

@media (min-width: 1600px) {
  .logo-item img { height: clamp(60px, 6vw, 160px); }
}
