/* =========================================================
   Einsatzübersicht
   Hero breit, gelber Inhaltsblock schmaler und zentriert
   ========================================================= */

.hero--einsatz .hero__frame--einsatz{
  width: 100%;
}
.einsatzImageModal{
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 30px;
}

.einsatzImageModal.is-open{
  display: flex;
}

.einsatzImageModal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
}

.einsatzImageModal__dialog{
  position: relative;
  z-index: 1;

  width: min(1100px, 96vw);
  max-height: 90vh;

  display: flex;
  align-items: center;
  justify-content: center;
}

.einsatzImageModal__image{
  display: block;

  max-width: 100%;
  max-height: 88vh;

  width: auto;
  height: auto;

  object-fit: contain;

  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}

.einsatzImageModal__close{
  position: absolute;
  top: -18px;
  right: -18px;

  width: 44px;
  height: 44px;

  border: 0;
  border-radius: 50%;

  background: #fff;
  color: #111;

  font-size: 30px;
  line-height: 1;

  cursor: pointer;
  z-index: 2;
}

.einsatzImageModal__close:hover{
  background: var(--signal, #f6f92e);
}

body.modal-open{
  overflow: hidden;
}
/* Gelber Bereich liegt leicht über dem Hero und ist schmaler */
.einsatzOverview{
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 40px));
  margin: -42px auto 56px;
  padding: 24px;
  background: var(--leftbg, #e7e7df);
}

/* Jahreszahlen gehören in den gelben Inhaltsbereich */
.einsatzOverview .yearNav{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.einsatzOverview .yearNav a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  padding: 9px 14px;
  border: 2px solid #111;
  background: transparent;
  color: #111;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.einsatzOverview .yearNav a.active{
  background: #111;
  color: #fff;
}

/* Einsätze optisch klar voneinander trennen */
.einsatzOverview .einsatzList{
  display: grid;
  gap: 16px;
}

.einsatzOverview .einsatzCard{
  display: block;
  padding: 15px 18px 13px;
  background: #fff;
  border: 1px solid rgba(11,20,48,.16);
  border-left: 6px solid var(--logorot, #bc1413);
  box-shadow: 0 5px 14px rgba(11,20,48,.08);
}

.einsatzOverview .einsatzRow{
  display: grid;
  align-items: baseline;
  gap: 18px;
}

.einsatzOverview .einsatzRow--top{
  grid-template-columns: minmax(270px, .9fr) minmax(0, 1.25fr);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(11,20,48,.15);
}

.einsatzOverview .einsatzRow--bottom{
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
  padding-top: 8px;
}

.einsatzOverview .einsatzMeta,
.einsatzOverview .einsatzReason,
.einsatzOverview .einsatzRow--bottom p{
  margin: 0;
  line-height: 1.28;
}

.einsatzOverview .einsatzMeta{
  color: rgba(11,20,48,.78);
  font-size: 14px;
}

.einsatzOverview .einsatzMeta strong{
  color: var(--ink, #0b1430);
}

.einsatzOverview .einsatzMeta__sep{
  margin: 0 4px;
}

.einsatzOverview .einsatzReason{
  color: var(--ink, #0b1430);
  font-size: 18px;
  font-weight: 900;
}

.einsatzOverview .einsatzRow--bottom p{
  font-size: 15px;
}

.einsatzOverview .detailLink{
  display: inline-block;
  margin-top: 9px;
  color: var(--ink, #0b1430);
  font-size: 14px;
  font-weight: 800;
}

/* Leere Jahresansicht */
.einsatzOverview .emptyMessage{
  margin: 0;
  padding: 20px;
  background: #fff;
}

/* Tablet */
@media (max-width: 820px){
  .einsatzOverview{
    width: min(100% - 28px, 980px);
    margin-top: -24px;
    padding: 18px;
  }

  .einsatzOverview .einsatzRow--top,
  .einsatzOverview .einsatzRow--bottom{
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Smartphone */
@media (max-width: 520px){
  .einsatzOverview{
    width: min(100% - 20px, 980px);
    margin-top: 0;
    padding: 14px;
  }

  .einsatzOverview .yearNav{
    margin-bottom: 14px;
  }

  .einsatzOverview .einsatzCard{
    padding: 13px 14px 11px;
  }

  .einsatzOverview .einsatzMeta__sep{
    margin: 0 2px;
  }
}


/* =========================================================
   Ausklappbare Einsatzberichte
   ========================================================= */

.einsatzOverview .einsatzDetails{
  margin-top: 10px;
}

.einsatzOverview .einsatzDetails > summary{
  list-style: none;
}

.einsatzOverview .einsatzDetails > summary::-webkit-details-marker{
  display: none;
}

.einsatzOverview .detailButton{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 15px;
  border: 0;
  background: var(--navy, #17214b);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
}

.einsatzOverview .detailButton::after{
  content: "+";
  font-size: 20px;
  line-height: 1;
}

.einsatzOverview .einsatzDetails[open] .detailButton::after{
  content: "−";
}

.einsatzOverview .detailButton:hover{
  opacity: .9;
}

.einsatzOverview .detailButton:focus-visible{
  outline: 3px solid var(--logorot, #bc1413);
  outline-offset: 3px;
}

.einsatzOverview .einsatzDetails__content{
  margin-top: 14px;
  padding: 18px;
  background: var(--page, #f4f3ee);
  border-top: 4px solid var(--logorot, #bc1413);
}

.einsatzOverview .einsatzDetails__section + .einsatzDetails__section{
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(11,20,48,.15);
}

.einsatzOverview .einsatzDetails__section h3{
  margin: 0 0 8px;
  color: var(--ink, #0b1430);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.einsatzOverview .einsatzDetails__section p,
.einsatzOverview .einsatzDetails__text{
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

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

.einsatzOverview .einsatzVehicle{
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(11,20,48,.15);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.einsatzOverview .einsatzVehicle img{
  width: 100%;
  max-width: 145px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.einsatzOverview .einsatzDetails__empty{
  margin: 0;
  font-size: 15px;
}

@media (max-width: 760px){
  .einsatzOverview .einsatzVehicles{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px){
  .einsatzOverview .detailButton{
    width: 100%;
  }

  .einsatzOverview .einsatzDetails__content{
    padding: 14px;
  }

  .einsatzOverview .einsatzVehicles{
    grid-template-columns: 1fr;
  }
}


/* =========================
   Einsatzbilder
   ========================= */

.einsatzOverview .einsatzPhotos{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.einsatzOverview .einsatzPhoto{
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(11,20,48,.15);
}

.einsatzOverview .einsatzPhoto img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}

.einsatzOverview .einsatzPhoto:hover img{
  transform: scale(1.03);
}

.einsatzOverview .einsatzPhoto:focus-visible{
  outline: 3px solid var(--logorot, #bc1413);
  outline-offset: 3px;
}

@media (max-width: 760px){
  .einsatzOverview .einsatzPhotos{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px){
  .einsatzOverview .einsatzPhotos{
    grid-template-columns: 1fr;
  }
}
