

/* Hauptlayout: Liste links, Karte rechts */
.regionen-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 1rem;
}

.grid-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Sidebar rechts */
.map-sidebar {
  width: 260px;
  flex-shrink: 0; /* verhindert Zusammenschieben */
}

/* Karte */
#previewMap {
  width: 260px;
  height: 400px; /* deine funktionierende Höhe */
  border: 2px solid #d2b48c;
  border-radius: 12px;
  background: #fdf6e3;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  overflow: visible; /* wichtig für Copyright */
  position: relative;
}
.maplibregl-ctrl-bottom-right {
    bottom: -75px !important;   /* unter die Karte schieben */
    right: 0 !important;
}

#previewMap {
    position: relative;
    overflow: visible; /* wichtig, damit das Copyright sichtbar bleibt */
}


/* Spalten-Card */
.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Einzelne Destillen-Zeilen */
.card div {
  margin-bottom: 3px;
}

/* farbige Region-Badges um jede Destille */
.region-badge {
  padding: 3px 6px;
  border-radius: 6px;
  display: block;
}

/* Links in der Liste */
.card a {
  text-decoration: none;
  font-size: 12px;
  display:block;
  padding:1px;
  margin: 0px auto;
}

.card a img {
  vertical-align: middle;
  margin-right: 4px;
}

/* Karte rechts */
.map-box {
  width: 240px;
  height: auto;
  border: 2px solid #d2b48c;
  border-radius: 12px;
  background: #fdf6e3;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
}

#scotKarte {
  max-width: 240px;
  max-height: 100%;
  border-radius: 10px;
  transition: opacity 0.3s ease;
}

/* Farblegende unter der Karte */
.legend {
  margin-top: 1.5rem;
  background: #fdf6e3;
  border: 1px solid #d2b48c;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.legend h3 {
  margin-top: 0;
  font-family: "Georgia", serif;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.legend-color {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  margin-right: 10px;
}






.region-table2 {
    width: 90%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1rem auto;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f4ec; /* warmes Whisky-Papier */
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.region-table2 th {
    background: #e7d7b1; /* warmes Lowlands-Beige */
    padding: 14px;
    font-size: 1rem;
    font-weight: 400;
    text-align: left;
    color: #4a3f2b;
}

.region-table2 td {
    padding: 6px 9px;
    text-align: center;
    border-bottom: 1px solid #e0d8c8;
}

.region-table2 tr:last-child td {
    border-bottom: none;
}

.region-badge2 {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 400;
    color: #fff;
    min-width: 200px;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.15);
    transition: filter 0.2s ease;
    cursor:pointer;
}

.region-badge2:hover {
    filter: brightness(1.1);
}

.region-filter {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 6px 12px;
  background: #eee;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.filter-btn:hover {
  background: #ddd;
}

.filter-btn.active {
  background: #c49a6c;
  color: #fff;
}

.region-info {
  font-size: 0.75rem;
  color: #4a3f2b;
  padding-top: 4px;
  opacity: 0.85;
  font-style: italic;
}





/* Tablet */
@media (max-width: 1000px) {
  .grid-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* Mobile: Desktop versteckt, Mobile sichtbar */

/* Mobil */
  @media (max-width: 700px) {
    .grid-wrapper {
      grid-template-columns: repeat(3, 1fr);
    }

  .desktop-text { display: none; }
  .mobile-text  { display: block; }

  h1 {
    font-size: 0.9rem;
    margin-top: 10px;}
  h2 {
    font-size: 0.8rem;
    text-align: center;
  }

  .card {
    padding:3px;
  }
  .region-table2 th {
      padding: 7px;
      font-size: 0.8rem;
      font-weight: 400;
  }
  .region-badge2 {
      display: inline-block;
      padding: 3px;
      border-radius: 6px;
      font-size: 0.8rem;
      min-width: 100px;
      box-shadow: inset 0 0 4px rgba(0,0,0,0.15);
      transition: filter 0.2s ease;
  }

    .regionen-wrapper {
      flex-direction: column;
    }

    .map-box {
      width: 100%;
      height: auto;
    }
  }

  /* Mini-Mobil */
  @media (max-width: 350px) {
    .grid-wrapper {
      grid-template-columns: repeat(1, 1fr);
    }
  }
