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

body {
  font-family: "Crimson Text", serif;
}

.bg-skyblue {
  background: #99c1d1;
}

.bg-leaf {
  background: #ABCBAB;
}

.bg-gray {
  background: #5E707E;
}

.bg-tomato {
  background: #FBC0A7;
}

.bg-cyan {
  background: #7DC5BD;
}

.bg-purple {
  background: #CF97AF;
}

.bg-pink {
  background: #E75C7B;
}

.bg-yellow {
  background: #FEF59B;
  color: #222 !important;
}

.bg-blue {
  background: #7A9FD3;
}

.text-center{
  text-align: center;
}

.text-dark{
  color: #525252 !important;
}

.d-map-boxes {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  background: #fff;
  gap: 20px;
}

.d-map-box {
  display: flex;
  flex-direction: column;
}

.page-image {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.page-image img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.d-map-box-inner {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 20px;
}

.box {
  display: flex;
  flex-direction: row;
  background: transparent;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  gap: 30px;
}

.category-column {
  flex: 1 1 0;
  min-width: 0;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
}

.shop-box-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.d-map-box-inner .header {
  width: fit-content;
  font-size: 16px;
  padding: 2px 10px;
  color: #fff;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.legendeinfo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legendeinfo .number {
 font-size: 10px; /* Etwas größer, besser lesbar */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #888; /* Beispiel, ggf. dynamisch */
    line-height: 1;
    box-sizing: border-box;
    flex-shrink: 0;
    /* Optional für Safari/Chrome: */
    overflow: visible;
    margin-right: 6px;
}

.legendeinfo .content {
  flex: 1;
  font-size: 9px;
  line-height: 1.2;
  text-wrap: wrap;
}

.legendeinfo p { 
font-size:10px; }

.legendeinfo a { 
font-size:10px; }

.legendeinfo a {
  color: #000;
}

.qr-code {
  text-align: center;
  font-size: 9px;
  line-height: 1.2;
  text-wrap: wrap;
}
.qr-code img {
  width: 60px;
  display: block;
  margin: auto;
  margin-bottom: 10px;
}
.qr-code a {
  color: #000;
}

/* responsive */
@media (max-width: 1400px) {
  .box {
    flex-direction: row;
    gap: 15px;
  }
}
@media (max-width: 768px) {
  .d-map-box-inner {
    grid-template-columns: 1fr;
  }
  
  .box {
    margin-bottom: 20px;
  }
}

.d-map-responsive {
  max-width: unset;
  grid-template-columns: repeat(1, 1fr);
}

.d-map-responsive .d-map-boxes {
  grid-template-columns: repeat(1, 1fr);
}
.d-map-responsive .page-image {
  margin-top: 0;
  order: -1;
}

.d-map-responsive .d-map-box-inner {
  grid-template-columns: repeat(1, 1fr);
}

.d-map-responsive .d-map-box-inner .box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.d-map-responsive .d-map-box-inner .header {
  grid-column: 1 / span 2;
  margin: auto;padding: 5px 20px;
}
.d-map-responsive .qr-code {
  grid-column: 1 / 2 span;
  margin-top: 25px;
}

/* temp */
.d-map-responsive {
  display: none;
}

@media(max-width: 991px) {
  .none {
    display: none;
  }
  .page-image{
    margin-top: 20px !important;
    order: 0 !important;
  }

  .d-map-responsive {
    display: grid;
    max-width: 767px;
    padding: 20px 0;
    width: 100%;
  }
  .legendeinfo .number {
    font-size: 10px;
    width: 16px;
    height: 16px;
}
.legendeinfo .content {
  flex: 1;
  font-size: 16px;
  line-height: 1.2;
  text-wrap: wrap;
}
.d-map-box-inner .header {
  font-size: 20px;
  margin-top: 15px !important;
  margin-bottom: 15px !important;
}
.d-map-box-inner .box {
  flex-direction: column;
  gap: 20px;
}
.category-column {
  padding: 10px 0;
}

}

@media(max-width: 576px) {
  .legendeinfo .number {
    font-size: 7px;
    width: 12px;
    height: 12px;
}
.legendeinfo .content {
  font-size: 12px;
}
.d-map-box-inner .header {
  font-size: 16px;
  margin-top: 5px !important;
  margin-bottom: 10px !important;
}
.d-map-box-inner .box {
  flex-direction: column;
  gap: 8px 15px;
  padding: 0 20px;
}
.category-column {
  padding: 10px 0;
}

}

.banner-fullwidth {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}
.banner-fullwidth img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.banner-column {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}
.banner-column img {
  max-width: 180px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.legend-banner-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0 30px 0;
}
.legend-banner-row img {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.legend-footer-banner {
  width: 100%;
  margin: 60px 0 0 0;
  padding: 40px 0 30px 0;
  background: linear-gradient(90deg, #eaf6fa 0%, #f7f7f7 100%);
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  display: flex;
  justify-content: center;
}
.legend-footer-content {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 900px;
  width: 100%;
  padding: 0 20px;
}
.legend-footer-banner-img {
  max-width: 220px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.legend-footer-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.legend-footer-text h4 {
  font-size: 1.5rem;
  color: #2a4c5a;
  margin-bottom: 0;
}
.legend-footer-text p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 0;
}
.legend-footer-qr {
  max-width: 100px;
  width: 100%;
  margin-top: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
@media (max-width: 900px) {
  .legend-footer-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .legend-footer-banner-img {
    max-width: 180px;
  }
  .legend-footer-qr {
    max-width: 80px;
  }
}

.legend-toggle-btn {
  position: fixed;
  left: 32px;
  bottom: 32px;
  z-index: 1200;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 14px 28px;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(52,152,219,0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.legend-toggle-btn:hover {
  background: #217dbb;
  box-shadow: 0 8px 24px rgba(52,152,219,0.28);
  transform: translateY(-2px) scale(1.04);
}
.legend-toggle-btn .material-symbols-outlined {
  font-size: 26px;
}

.legend-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.45);
  z-index: 1300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.legend-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.legend-overlay-content {
  background: rgba(255,255,255,0.85);
  border-radius: 0;
  box-shadow: none;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  overflow-y: auto;
  padding: 48px 0 32px 0;
  position: relative;
  animation: legend-fadein 0.4s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@keyframes legend-fadein {
  from { transform: translateY(40px) scale(0.98); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.legend-close-btn {
  position: absolute;
  top: 24px;
  right: 40px;
  background: none;
  border: none;
  font-size: 44px;
  color: #888;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}
.legend-close-btn:hover {
  color: #3498db;
}
@media (max-width: 700px) {
  .legend-overlay-content {
    padding: 18px 0 12px 0;
  }
  .legend-close-btn {
    top: 8px;
    right: 10px;
    font-size: 32px;
  }
  .legend-toggle-btn {
    left: 10px;
    bottom: 10px;
    padding: 10px 16px;
    font-size: 15px;
  }
}

.header[style*="background-color: #fcf5a6"] {
  color: #222 !important;
}

.header[style*="background-color: #fcf5a6"] + .legendeinfo .content {
  color: #222 !important;
}

.header[style*="background-color: #fcf5a6"] + .legendeinfo .content a {
  color: #222 !important;
}