.operation-detail {
  width: min(calc(100% - 40px), 1120px);
  max-width: none;
  margin: 24px auto 64px;
  color: #171717;
}

.operation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
}

.operation-back,
.operation-neighbors a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.operation-back:hover,
.operation-back:focus-visible,
.operation-neighbors a:hover,
.operation-neighbors a:focus-visible {
  border-color: #b90008;
  color: #b90008;
}

.operation-neighbors {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.operation-neighbors a {
  width: 40px;
  padding: 0;
  color: #b90008;
}

.operation-intro {
  margin-bottom: 28px;
}

.operation-intro .page-intro-title {
  overflow-wrap: anywhere;
}

.operation-type {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin: 2px 0 0;
  padding: 4px 10px;
  border-radius: 3px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.operation-type.background-bma,
.operation-type.background-verkehr,
.operation-type.background-technischer,
.operation-type.background-sonstiges {
  color: #171717;
}

.operation-hero {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 28px;
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 5px;
  background: #f3f3f1;
}

.operation-hero a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
}

.operation-hero img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 680px;
  height: auto;
  margin: 0;
  object-fit: contain;
}

.operation-facts {
  overflow: hidden;
  margin: 0 auto 36px;
  border: 1px solid #d9d9d5;
  border-radius: 4px;
  background: #fff;
}

.operation-facts-primary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}

.operation-facts-primary > div {
  min-width: 0;
  margin: 0;
  padding: 10px 14px;
  border-right: 1px solid #e4e4e0;
}

.operation-facts-primary > div:last-child {
  border-right: 0;
}

.operation-fact-location {
  display: block;
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid #e4e4e0;
}

.operation-fact-location > div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  text-align: left;
}

.operation-fact-location dd {
  justify-self: start;
  text-align: left;
  overflow-wrap: anywhere;
}

.operation-facts dt {
  margin: 0 0 3px;
  color: #777;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.operation-facts dd {
  min-width: 0;
  margin: 0;
  color: #222;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.operation-section {
  width: 100%;
  margin: 0 auto 36px;
}

.operation-section h2 {
  position: relative;
  margin: 0 0 14px;
  padding: 0 0 9px 14px;
  border-bottom: 1px solid #d9d9d5;
  color: #171717;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.operation-section h2::before {
  position: absolute;
  top: 0;
  bottom: 9px;
  left: 0;
  width: 4px;
  border-radius: 2px;
  background: #df1018;
  content: "";
}

.operation-report-copy {
  color: #3c3c3c;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.operation-report-copy h2,
.operation-report-copy h3 {
  margin: 1.25em 0 .45em;
  color: #252525;
  line-height: 1.35;
  letter-spacing: 0;
}

.operation-report-copy h2 {
  font-size: 1.45em;
}

.operation-report-copy h3 {
  font-size: 1.2em;
}

.operation-report-copy li.ql-indent-1 { padding-left: 3em; }
.operation-report-copy li.ql-indent-2 { padding-left: 6em; }
.operation-report-copy li.ql-indent-3 { padding-left: 9em; }
.operation-report-copy li.ql-indent-4 { padding-left: 12em; }
.operation-report-copy li.ql-indent-5 { padding-left: 15em; }
.operation-report-copy li.ql-indent-6 { padding-left: 18em; }
.operation-report-copy li.ql-indent-7 { padding-left: 21em; }
.operation-report-copy li.ql-indent-8 { padding-left: 24em; }

.operation-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.operation-resource-group {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #dedede;
  border-radius: 5px;
  background: #fff;
  text-align: left;
}

.operation-resource-group h3 {
  width: 100%;
  margin: 0 0 7px;
  color: #252525;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

.operation-resource-group ul {
  display: grid;
  width: 100%;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.operation-resource-group li {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  overflow-wrap: anywhere;
}

.operation-resource-group li span {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  text-align: left;
}

.operation-resource-group li i {
  width: 14px;
  flex: 0 0 14px;
  margin: 3px 0 0;
  color: #b90008;
  font-size: 12px;
  text-align: center;
}

.operation-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.operation-gallery li {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 4px;
  background: #eee;
  aspect-ratio: 4 / 3;
}

.operation-gallery a {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.operation-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform 180ms ease;
}

.operation-gallery a:hover img,
.operation-gallery a:focus-visible img {
  transform: scale(1.03);
}

.operation-detail a:focus-visible {
  outline: 2px solid #df1018;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .operation-detail {
    width: calc(100% - 32px);
    margin: 20px auto 40px;
  }

  .operation-toolbar {
    margin-bottom: 16px;
  }

  .operation-intro {
    margin-bottom: 22px;
  }

  .operation-facts {
    margin-bottom: 28px;
  }

  .operation-facts-primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operation-facts-primary > div {
    padding: 9px 10px;
    border-bottom: 1px solid #e4e4e0;
  }

  .operation-facts-primary > div:nth-child(2n) {
    border-right: 0;
  }

  .operation-facts-primary > div.operation-fact-keyword {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .operation-fact-location {
    padding: 9px 10px;
  }

  .operation-fact-location > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .operation-facts dt {
    font-size: 10px;
  }

  .operation-facts dd {
    font-size: 13px;
  }

  .operation-hero {
    margin-bottom: 22px;
  }

  .operation-section {
    margin-bottom: 28px;
  }

  .operation-resource-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .operation-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .operation-detail {
    width: calc(100% - 24px);
  }

  .operation-toolbar {
    gap: 6px;
  }

  .operation-back {
    min-height: 36px;
    gap: 6px;
    padding: 0 8px;
    font-size: 13px;
  }

  .operation-neighbors {
    gap: 4px;
  }

  .operation-neighbors a {
    width: 34px;
    min-height: 34px;
  }

  .operation-facts-primary > div,
  .operation-fact-location {
    padding: 8px;
  }

  .operation-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .operation-gallery img,
  .operation-neighbors a,
  .operation-back {
    transition: none;
  }
}
