/* FILE: assets/css/termine.css */
/* ===== Konzerttermine Styles ===== */


/* TERMINBOXEN */
.event-box {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  padding: 16px;
  margin: 0 auto 20px auto;
  border: 1px solid #ff6b00;
  border-radius: 6px;
  width: 700px;
  background: transparent;
  box-sizing: border-box;
  gap: 12px;
}

.event-box.past-event { opacity: 0.6; }

.event-date {
  font-family: Arial, sans-serif;
  text-align: center;
  color: #fff;
  background-color: #ff6b00;
  width: 115px;
  padding: 14px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.event-date .date-line{
  display: flex;
  flex-direction: column;   /* Desktop: Tag/Monat/Jahr untereinander wie bisher */
  align-items: center;
}

.event-date .day {
  font-size: 2.52em;
  font-weight: bold;
  line-height: 1.05;
}

.event-date .monthyear {
  font-size: 1.4em;
  font-weight: bold;
  margin-top: 2px;
}

.event-date .year {
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 2px;
}

.event-date .time-block{
  margin-top: 6px;
}

.event-date .start-time {
  font-size: 1.25em;
  font-weight: bold;
  line-height: 1.1;
  white-space: nowrap;
}

.event-date .door-time {
  font-size: 0.95em;
  margin-top: 3px;
  line-height: 1.15;
  opacity: 0.95;
  white-space: nowrap;
}

.event-details {
  flex: 1;
  padding: 0 0 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  text-align: left;
  overflow-wrap: break-word;
  gap: 14px;
}

.event-main { flex: 1 1 auto; min-width: 0; }

.event-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #ff6b00;
  margin-bottom: 6px;
}

.event-meta,
.event-location {
  font-size: 1em;
  margin-bottom: 4px;
  color: #ddd;
  line-height: 1.4em;
}

.event-location span:first-child { font-weight: bold; color: #fff; }
.event-location span { display: block; }

/* Info-Badge */
.event-info{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 10px;
  border-left: 3px solid #ff6b00;
  border-radius: 6px;
  background: rgba(0,0,0,0.35);
  max-width: 100%;
  box-sizing: border-box;
}

.event-info .info-icon{
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  color: #ff6b00;
  background: rgba(255,107,0,0.12);
  border: 1px solid rgba(255,107,0,0.45);
  flex: 0 0 auto;
  margin-top: 1px;
}

.event-info .info-text{
  color: #ddd;
  line-height: 1.35em;
  overflow: hidden;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Rechts */
.event-side {
  width: 200px;
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  height: 100%;
  box-sizing: border-box;
}

/* Preise */
.event-prices{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.price-line{
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  font-weight: bold;
}
.price-line.is-empty{ visibility: hidden; }
.price-line .label{ color: #fff; opacity: 0.95; }
.price-line .value{ color: #fff; text-align: right; }

/* Buttons */
.event-actions{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.event-details .button {
  background-color: #ff6b00;
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  align-self: stretch;
}

.event-details .button.button-map{
  background-color: transparent;
  border: 1px solid #ff6b00;
  color: #ff6b00;
}
.event-details .button.button-map:hover{
  background-color: rgba(255,107,0,0.12);
}

.map-preview { display: none; }

/* MAP MODAL OVERLAY */
#map-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  justify-content: center;
  align-items: center;
}
#map-modal.active { display: flex !important; }

#map-modal .map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1;
}

#map-modal .map-content {
  position: relative;
  z-index: 2;
  width: 95vw;
  height: 80vh;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

#map-modal .map-content iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

#map-modal .close-map {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: #ff6b00;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

/* ============================================= */
/* 📱📲💻🖥 RESPONSIVE BREAKPOINTS – 5 STUFEN BASIS */
/* ============================================= */

/* 📱 1. XS – Kleine Smartphones */
@media (max-width: 480px) {
  .event-box{
    flex-direction: column;
    width: 95%;
    padding: 12px;
    gap: 12px;
  }

  .event-date{
    width: 100%;
    padding: 12px 12px;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
  }

  .event-date .date-line{
    grid-column: 1;
    grid-row: 1;
    flex-direction: row;
    gap: 6px;
    align-items: baseline;
    justify-content: flex-start;
  }

  /* Tag/Monat/Jahr bleiben groß (wie zuletzt), Uhrzeit wieder ORIGINAL */
  .event-date .day,
  .event-date .monthyear,
  .event-date .year{
    font-size: 2.10em;
    margin: 0;
    line-height: 1.05;
    font-weight: 800;
  }

  .event-date .time-block{
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }

  /* ✅ Uhrzeit zurück auf Originalwerte */
  .event-date .start-time{
    margin: 0;
    font-size: 1.25em;
    text-align: right;
    white-space: nowrap;
    line-height: 1.05;
  }
  .event-date .door-time{
    margin: 0;
    font-size: 0.95em;
    text-align: right;
    white-space: nowrap;
    line-height: 1.05;
  }

  .event-details{
    display: grid;
    grid-template-columns: 1fr 112px;
    column-gap: 12px;
    row-gap: 10px;
    padding: 0;
    align-items: stretch;
  }

  .event-main, .event-side, .event-actions { display: contents; }

  .event-title{ grid-column: 1; grid-row: 1; margin: 0; }
  .event-location{ grid-column: 1; grid-row: 2; margin: 0; text-align: left; }

  .button-map{
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    height: 100%;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .event-info{ grid-column: 1 / -1; grid-row: 3; margin-top: 0; }

  /* ✅ Ticket wieder unter Preise */
  .event-prices{ grid-column: 1 / -1; grid-row: 4; margin: 0; }
  .button-ticket{ grid-column: 1 / -1; grid-row: 5; }

  .event-details .button{ width: 100%; max-width: none; }
  .event-actions{ margin-top: 0; }
}

/* 📱 2. S – Normale Smartphones */
@media (min-width: 481px) and (max-width: 768px) {
  .event-box{
    flex-direction: column;
    width: 95%;
    padding: 12px;
    gap: 12px;
  }

  .event-date{
    width: 100%;
    padding: 12px 12px;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
  }

  .event-date .date-line{
    grid-column: 1;
    grid-row: 1;
    flex-direction: row;
    gap: 8px;
    align-items: baseline;
    justify-content: flex-start;
  }

  .event-date .day,
  .event-date .monthyear,
  .event-date .year{
    font-size: 2.16em;
    margin: 0;
    line-height: 1.05;
    font-weight: 800;
  }

  .event-date .time-block{
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }

  /* ✅ Uhrzeit zurück auf Originalwerte */
  .event-date .start-time{ margin: 0; font-size: 1.25em; text-align: right; white-space: nowrap; line-height: 1.05; }
  .event-date .door-time{ margin: 0; font-size: 0.95em; text-align: right; white-space: nowrap; line-height: 1.05; }

  .event-details{
    display: grid;
    grid-template-columns: 1fr 128px;
    column-gap: 12px;
    row-gap: 10px;
    padding: 0;
    align-items: stretch;
  }

  .event-main, .event-side, .event-actions { display: contents; }

  .event-title{ grid-column: 1; grid-row: 1; margin: 0; }
  .event-location{ grid-column: 1; grid-row: 2; margin: 0; text-align: left; }

  .button-map{
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    height: 100%;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .event-info{ grid-column: 1 / -1; grid-row: 3; margin-top: 0; }

  /* ✅ Ticket wieder unter Preise */
  .event-prices{ grid-column: 1 / -1; grid-row: 4; margin: 0; }
  .button-ticket{ grid-column: 1 / -1; grid-row: 5; }

  .event-details .button{ width: 100%; max-width: none; }
  .event-actions{ margin-top: 0; }
}

/* 📲 3. M – Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .event-box{
    flex-direction: column;
    width: 90%;
    padding: 16px;
    gap: 14px;
  }

  .event-date{
    width: 100%;
    padding: 14px 14px;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
  }

  .event-date .date-line{
    grid-column: 1;
    grid-row: 1;
    flex-direction: row;
    gap: 10px;
    align-items: baseline;
    justify-content: flex-start;
  }

  .event-date .day,
  .event-date .monthyear,
  .event-date .year{
    font-size: 2.24em;
    margin: 0;
    line-height: 1.05;
    font-weight: 800;
  }

  .event-date .time-block{
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }

  /* ✅ Uhrzeit zurück auf Originalwerte */
  .event-date .start-time{ margin: 0; font-size: 1.25em; text-align: right; white-space: nowrap; line-height: 1.05; }
  .event-date .door-time{ margin: 0; font-size: 0.95em; text-align: right; white-space: nowrap; line-height: 1.05; }

  .event-details{
    display: grid;
    grid-template-columns: 1fr 160px;
    column-gap: 14px;
    row-gap: 12px;
    padding: 0;
    align-items: stretch;
  }

  .event-main, .event-side, .event-actions { display: contents; }

  .event-title{ grid-column: 1; grid-row: 1; margin: 0; }
  .event-location{ grid-column: 1; grid-row: 2; margin: 0; text-align: left; }

  .button-map{
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    height: 100%;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .event-info{ grid-column: 1 / -1; grid-row: 3; margin-top: 0; }

  /* ✅ Ticket wieder unter Preise */
  .event-prices{ grid-column: 1 / -1; grid-row: 4; margin: 0; }
  .button-ticket{ grid-column: 1 / -1; grid-row: 5; }

  .event-details .button{ width: 100%; max-width: none; }
  .event-actions{ margin-top: 0; }
}

/* 💻 4. L – Laptops / kleine Desktops */
@media (min-width: 1025px) and (max-width: 1440px) {
  /* Desktop-Layout bleibt Standard */
}

/* 🖥 5. XL – Große Bildschirme / 4K */
@media (min-width: 1441px) {
  /* Desktop-Layout bleibt Standard */
}
