/* Grundfarben und Variablen */
:root {
  --primary: #4b85f3;
  --primary-dark: #3a6bd1;
  --background: #f3f4da;
  --white: #ffffff;
  --text: #1a1a1a;
  --gray: #e0e0e0;
  --border-radius: 16px;
  --font-family: 'Arial', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.5;
}

/* Logo */
.logo img {
  height: 48px;
  display: block;
  margin: 24px auto 16px;
}

/* Kategorie Navigation */
.category-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 0 16px;
}

.category-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--white);
  border: 2px solid var(--primary);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.2s ease;
}

.category-button.active {
  background-color: var(--primary);
  color: var(--white);
}

.category-button img {
  height: 18px;
  width: 18px;
}

/* Cards */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 16px 100px; /* Platz für Footer */
}

.card {
  background-color: #c6ddfa;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
}

.card-image {
  width: 100%;
  height: auto;
  display: block;
}

.card-content {
  padding: 16px;
  position: relative;
}

.card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 4px;
}

.card-address {
  font-size: 14px;
  color: #444;
  margin-bottom: 16px;
}

.mehr-dazu-button {
  background-color: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.save-button {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: none;
  border: none;
  cursor: pointer;
}

.save-button img {
  width: 24px;
  height: 24px;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 20, 20, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  z-index: 1000;
}

.overlay.visible {
  display: flex;
}

.overlay-content {
  background-color: var(--primary);
  border-radius: var(--border-radius);
  padding: 16px;
  width: 100%;
  max-width: 420px;
  position: relative;
  color: var(--white);
  text-align: left; /* <-- vorher: center */
}

.overlay-image {
  width: 100%;
  border-radius: var(--border-radius);
  margin-bottom: 16px;
}

.overlay-content h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.overlay-content p {
  font-size: 14px;
  margin-bottom: 16px;
}

.zum-angebot-button {
  background-color: var(--white);
  color: var(--primary);
  border-radius: 999px;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-bottom: 0;
  margin-top: 12px; /* NEU: nach unten versetzt */
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 20; /* NEU: höher als die Pfeile */
}

.close-button img {
  width: 24px;
  height: 24px;
}

/* Footer Navigation */
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: var(--background);
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  border-top: 1px solid var(--gray);
  z-index: 999;
}

.footer-icon {
  background: none;
  border: none;
  cursor: pointer;
}

.footer-icon img {
  width: 28px;
  height: 28px;
}

/* Optional: Touch-Friendly Active States */
button:active {
  opacity: 0.8;
}

/* Responsive Fallback (für Tablets) */
@media (min-width: 600px) {
  .main-content {
    padding: 0 24px 100px;
  }

  .card-title {
    font-size: 22px;
  }
}
/* Slideshow-Container */
.slideshow {
  position: relative;
  width: 100%;
  margin: 32px 0 16px; /* Oben mehr Abstand */
  overflow: hidden;
  border-radius: var(--border-radius);
}

/* Einzelne Slides */
.slide {
  display: none;
  width: 100%;
}

.slide img.overlay-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}

/* Pfeil-Buttons */
.slide-prev,
.slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  border: none;
  border-radius: 50%;
  padding: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease;
}


.slide-prev {
  left: 8px;
}

.slide-next {
  right: 8px;
}

.slide-prev img,
.slide-next img {
  width: 28px;
  height: 28px;
}
