/* areas/areas.css */
.areas {
  margin: 20px;
}

.areas h2{
  color:var(--h2-color) ;

}
.areas .header {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.areas .header .image {
  width: 50%;
  
}

.areas .header .image img {
  width: 100%;
  height: auto;
  border-radius: var(--card-photo-radius, var(--radius-big));
  box-shadow: var(--shadow-offset) var(--shadow-color);
  border: 1px solid var(--border-color);
}

.areas .header .header-text {
  flex: 1;
  min-width: 300px;
}

.areas .header .header-text .description {
  background: var(--neutral-color-light);
  padding: 20px;
  border-radius: var(--radius-big);
  box-shadow: var(--shadow-offset) var(--shadow-color);
  border: 1px solid var(--border-color);
}

.areas .list {
  background:var(--neutral-color-light);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content:space-evenly;
  align-items: stretch;
}

.areas .list .item {
  display: flex;
  flex-direction: column;
  flex-basis: 220px;
  background: var(--neutral-color-light);
  border: 1px solid var(--border-color);
  padding: 8px 8px 12px 8px;
  border-radius: var(--radius-big);
  box-shadow: var(--shadow-offset) var(--shadow-color);
  transition: box-shadow var(--transition-time),
  background-color var(--transition-time),
  transform  var(--transition-time);
  position: relative;
  top: 0;
}

.areas .list .item:hover {
  box-shadow:  var(--shadow-offset-hover) var(--shadow-color-hover);
  transform: scale(1.03);
  top: 1px;
}
.areas .list .item:active {
  box-shadow: inset var(--shadow-offset-aktiv) var(--shadow-color);
  transform: scale(0.98);
  top: 1px;
  background-color: var(--background-hover-light);
}
.areas .list .item .image img {
  width: var(--card-photo-width, 100%);
  aspect-ratio: var(--card-photo-aspect, 4 / 3);
  object-fit: var(--card-photo-fit, contain);
  border-radius: var(--card-photo-radius, var(--radius-small));
  display: block;
  margin-inline: auto;
}

.areas .list .item .image {
  background-color: var(--card-photo-background, var(--logo-color-1-light));
  border-radius: var(--radius-small);
}

.areas .list .item .placeholder {
  background: var( --logo-color-1-light);
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color:  var(--font-color-dark);
  font-size: 14px;
  border-radius: var(--radius-small);
}

.areas .list .item .name {
  font-weight: bold;
  font-size: 16px;
  margin-top: 10px;
  margin-bottom: 4px;
  color:var(--font-color-dark);
}

.areas .list .item .address {
  font-size: 14px;
  color: var(--font-color-dark);
  line-height: 1.4;
}

.areas .list .item .next-session {
  margin-top: auto;
  font-size: 14px;
  color: var(--logo-color-1); 
}

@media (max-width: 1100px) {
    .areas .list .item {
        flex-basis: 180px; 
    }
}
@media (max-width: 510px) {
    .areas .list .item {
      flex-basis: 100%;
    }
    .areas .header .image {
      width: 100%;
    }
}
/* Die gemeinsame Musikerkarte bleibt auch innerhalb von Termindetails gleich. */
.areas .list .musician-card p { font-size: 14px; }
.areas .list .musician-card, .areas .musician-profile {
  position: relative;
  --card-photo-width: 75%;
  --card-photo-aspect: 1;
  --card-photo-fit: cover;
  --card-photo-radius: 50%;
  --card-photo-background: transparent;
}
.areas .list .musician-card-edit {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    background: var(--neutral-color-light);
    color: var(--link-color);
}
.musician-participation .areas { margin: 16px 0; }

.musician-participation .areas .list { justify-content: flex-start; }

.areas h1 { overflow-wrap: anywhere; }
