.leaflet-popup-content {
    font-size: 2.08333em !important;
}

/* Reduces the title font size and displays more than two title lines */
.yarpp-thumbnail { height: 220px !important; }
.yarpp-thumbnail-title { font-size: 0.8em !important; max-height: 6em !important; }

/* Hide your Sidebar on Mobile Globally */
@media (max-width: 767px) {
    .widget-area.sidebar-primary { display: none; }
}

#map { height: 100%; }

/* Grid style */
.display-posts-listing.grid {
    display: grid;
    grid-gap: 16px;
}

.display-posts-listing.grid .title {
    display: block;
}

.display-posts-listing.grid img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 2 columns */
@media (min-width: 600px) {
    .display-posts-listing.grid { grid-template-columns: repeat(2, 1fr); }
}

/* 3 columns */
@media (min-width: 1024px) {
    .display-posts-listing.grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   Bundeslaender Flaggen
   ========================================================= */
.cl-flaggen-wrap{
  max-width: 1100px;
  margin: 0 auto;
}

.cl-flaggen{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;  /* last row stays left aligned */
  align-items: flex-start;
  gap: 18px;
  margin: 18px 0 26px 0;
  padding: 0;
}

/* Each flag is a clickable tile */
.cl-flaggen .flagge{
  position: relative;
  display: inline-block;
  width: 70px;
  height: 44px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
  text-decoration: none !important;
  transform: translateZ(0);
}

/* Show the whole flag inside the tile */
.cl-flaggen .flagge img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Abbreviation on top of the flag */
.cl-flaggen .flagge .abbr{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 1px;
  color: #fff;
  text-shadow:
    0 2px 6px rgba(0,0,0,.45),
    0 1px 0 rgba(0,0,0,.25);
  pointer-events: none;
}

/* Hover / focus */
.cl-flaggen .flagge:hover,
.cl-flaggen .flagge:focus{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.14);
  outline: none;
}

/* Optional: keyboard focus ring */
.cl-flaggen .flagge:focus-visible{
  outline: 3px solid rgba(0,0,0,.25);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 600px){
  .cl-flaggen{ gap: 12px; }
  .cl-flaggen .flagge{
    width: 98px;
    height: 62px;
    border-radius: 16px;
  }
  .cl-flaggen .flagge .abbr{ font-size: 24px; }
}
