/* ============================================================
   COOKIE BANNER – TCK Truck-Center Mönchengladbach
   ============================================================ */

#cookie-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  transform: none;
  width: 100%;
  max-width: 100%;
  background: #212731;
  color: #fff;
  border-radius: 0;
  padding: 18px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  animation: cookieSlideDown 0.4s cubic-bezier(0.25,0.46,0.45,0.94) both;
}

#cookie-banner.hidden {
  display: none;
}

@keyframes cookieSlideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

.cookie-banner-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.cookie-banner-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-banner-text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.cookie-banner-text p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

.cookie-banner-text a {
  color: #DFE5E6;
  text-decoration: underline;
}

.cookie-banner-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn-accept {
  flex: 1;
  min-width: 140px;
  padding: 11px 20px;
  background: #fff;
  color: #212731;
  border: 2px solid #fff;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cookie-btn-accept:hover {
  background: #DFE5E6;
  border-color: #DFE5E6;
  transform: translateY(-1px);
}

.cookie-btn-decline {
  flex: 1;
  min-width: 140px;
  padding: 11px 20px;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.cookie-btn-decline:hover {
  background: rgba(255,255,255,0.15);
}

/* Platzhalter für iFrames die noch nicht geladen wurden */
.iframe-placeholder {
  width: 100%;
  background: #f0f0f0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  border: 2px dashed #ccc;
  transition: background 0.2s ease, border-color 0.2s ease;
  min-height: 300px;
}

.iframe-placeholder:hover {
  background: #e8e8e8;
  border-color: #212731;
}

.iframe-placeholder i {
  font-size: 2.5rem;
  color: #666;
}

.iframe-placeholder p {
  font-size: 0.9rem;
  color: #555;
  max-width: 380px;
  line-height: 1.6;
}

.iframe-placeholder .placeholder-btn {
  padding: 10px 24px;
  background: #212731;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.iframe-placeholder .placeholder-btn:hover {
  background: #000;
}

@media (max-width: 500px) {
  #cookie-banner {
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cookie-banner-btns {
    flex-direction: row;
  }
  .cookie-btn-accept,
  .cookie-btn-decline {
    flex: 1;
  }
}
