/* ============================================================
   HFW Einsaetze - ergaenzendes Layout
   Farben, Typografie und Bausteine kommen aus hfw.css des Themes.
   Hier steht nur, was hfw.css nicht abdeckt. Prefix: .hfwe-
   ============================================================ */

.hfwe-block { margin: 0 0 32px; }

/* ---------------------------------------------------------- Kategorie-Icons */

.hfwe-icon {
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -0.14em;
}
.hfwe-icon-lg { width: 44px; height: 44px; opacity: .55; }

.hfwe-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.hfwe-chip .hfwe-icon { width: 14px; height: 14px; }

/* ------------------------------------------------------------ Filterleisten */

.hfwe-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.hfwe-filterbar .chip { cursor: pointer; border: 1px solid transparent; }
.hfwe-filterbar .chip.ghost { cursor: pointer; }

.hfwe-archivefilter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 30px;
}
.hfwe-field { display: flex; flex-direction: column; gap: 6px; }
.hfwe-field > span {
  font-family: var(--disp, inherit);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  font-weight: 600;
}
.hfwe-field select {
  min-width: 190px;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, .2);
  background: #fff;
  color: inherit;
  font: inherit;
}
.hfwe-archivefilter .btn { padding: 12px 24px; }

.hfwe-archive-hero { background: var(--ink-soft, #171a1f); }

/* ------------------------------------------------------------------- Suche
   Formular, Trefferzeile und Nachladeleiste nutzen die Klassen .suche,
   .trefferzeile und .mehrzeile aus hfw.css. Hier steht nur das, was dort
   fehlt: der Absendeknopf ohne JavaScript und der Zuruecksetzen-Verweis. */

.hfwe-suche { margin: 0 0 8px; }
.hfwe-sucheaktion { margin: 0 0 18px; }
.hfwe-sucheaktion[hidden] { display: none; }

.hfwe-reset {
  background: none;
  border: none;
  color: var(--red-hot, #e5383f);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hfwe-reset[hidden] { display: none; }

.hfwe-trefferliste { min-height: 40px; }
.hfwe-trefferliste mark {
  background: rgba(229, 56, 63, .3);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

.hfwe-leer { text-align: center; padding: 30px 0; }
.hfwe-leer[hidden] { display: none; }

.hfwe-seiten { justify-content: center; }
.hfwe-seiten[hidden] { display: none; }

.mehrzeile [data-hfwe-more][hidden] { display: none; }

/* ------------------------------------------------------------ Listeneintrag */

.hfwe-rowitem { align-items: center; }
.hfwe-rowtext { min-width: 0; }
.hfwe-rowtext h3 { margin-top: 2px; }

.hfwe-thumb {
  width: 104px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, .18);
}
.hfwe-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.6);
  transition: filter .35s, transform .35s;
}
.hfwe-rowitem:hover .hfwe-thumb img { filter: saturate(1); transform: scale(1.05); }

.hfwe-rowchip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.hfwe-rowimages {
  font-family: var(--disp, inherit);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
  opacity: .7;
}
@media (max-width: 700px) {
  .hfwe-rowchip { align-items: flex-start; }
  .hfwe-thumb { width: 100%; aspect-ratio: 16 / 9; }
}

/* Kacheldarstellung */
.hfwe-cardgrid { margin-top: 4px; }
.hfwe-card .hfwe-placeholder { position: absolute; inset: 0; }

/* --------------------------------------------------------------- Platzhalter */

.hfwe-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(190, 39, 46, .09) 0 12px, transparent 12px 24px),
    var(--ink-soft, #171a1f);
  color: var(--red-hot, #e5383f);
  border-radius: 10px;
  min-height: 100%;
  text-align: center;
  padding: 16px;
}
.hfwe-placeholder-label {
  font-family: var(--disp, inherit);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
  opacity: .8;
}
.hfwe-placeholder-thumb {
  width: 104px;
  aspect-ratio: 4 / 3;
  padding: 6px;
}
.hfwe-placeholder-thumb .hfwe-placeholder-label { display: none; }
.hfwe-placeholder-thumb .hfwe-icon-lg { width: 26px; height: 26px; }
.hfwe-placeholder-wide { aspect-ratio: 21 / 9; margin: 34px 0; }
@media (max-width: 700px) {
  .hfwe-placeholder-thumb { width: 100%; aspect-ratio: 16 / 9; }
}

/* ------------------------------------------------------------- Einzelansicht */

.hfwe-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hfwe-chips .chip { text-decoration: none; }

.hfwe-hero-views {
  margin-top: 12px;
  font-family: var(--disp, inherit);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  opacity: .7;
}

.hfwe-stripsection { padding-top: 46px; padding-bottom: 0; }
.hfwe-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.hfwe-strip-item { padding: 20px 18px; }
.hfwe-strip-item .n { font-size: clamp(24px, 3vw, 34px); }
.hfwe-strip-item .l { font-size: 11px; margin-top: 6px; }

.hfwe-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}
@media (max-width: 900px) {
  .hfwe-single-grid { grid-template-columns: 1fr; gap: 34px; }
}

.hfwe-bericht > * + * { margin-top: 1.1em; }
.hfwe-bericht img { border-radius: 12px; height: auto; }
.hfwe-bericht ul,
.hfwe-bericht ol { padding-left: 1.3em; }

.hfwe-single-side h2.display { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 16px; }
.hfwe-single-side h2.display + * { margin-bottom: 30px; }

.hfwe-orgs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.hfwe-org { text-decoration: none; }

.hfwe-backlink { margin-top: 46px; }

.hfwe-presse { margin-top: 40px; }
.hfwe-presselist { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hfwe-presselist a { text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------------------------------------------------- Bilder */

.hfwe-mediahead { margin-top: 48px; margin-bottom: 18px; }
.hfwe-media { margin-top: 8px; }

.hfwe-lead { margin: 0 0 16px; position: relative; }
.hfwe-lead a {
  display: block;
  position: relative;
  border-radius: var(--radius, 14px);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink-soft, #171a1f);
}
.hfwe-lead img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.hfwe-lead a:hover img { transform: scale(1.03); }
.hfwe-lead-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 13px;
  border-radius: 20px;
  background: rgba(13, 15, 18, .72);
  color: #fff;
  font-family: var(--disp, inherit);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
  font-weight: 600;
}
.hfwe-lead figcaption,
.hfwe-tile figcaption {
  font-size: 13px;
  opacity: .75;
  margin-top: 8px;
  line-height: 1.5;
}

.hfwe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.hfwe-tile { margin: 0; }
.hfwe-tile a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink-soft, #171a1f);
}
.hfwe-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.75);
  transition: transform .45s, filter .45s;
}
.hfwe-tile a:hover img { transform: scale(1.06); filter: saturate(1); }

.hfwe-media-count {
  margin-top: 14px;
  font-family: var(--disp, inherit);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
  opacity: .65;
}

/* ------------------------------------------------------------------ Lightbox */

html.hfwe-lb-open { overflow: hidden; }

.hfwe-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 7, 9, .95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 66px 16px 16px;
  animation: hfwe-lb-in .22s ease-out;
}
.hfwe-lightbox[hidden] { display: none; }
.hfwe-lightbox.hfwe-no-motion { animation: none; }
@keyframes hfwe-lb-in { from { opacity: 0; } to { opacity: 1; } }

.hfwe-lb-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}
.hfwe-lb-counter {
  font-family: var(--disp, inherit);
  letter-spacing: 2px;
  font-size: 13px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hfwe-lb-btn {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  border-radius: 8px;
  padding: 9px 15px;
  cursor: pointer;
  font-family: var(--disp, inherit);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.hfwe-lb-btn:hover { background: var(--red, #be272e); border-color: var(--red, #be272e); }
.hfwe-lb-btn:focus-visible { outline: 3px solid var(--red-hot, #e5383f); outline-offset: 3px; }

.hfwe-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hfwe-lb-nav[hidden] { display: none; }
.hfwe-lb-prev { left: 14px; }
.hfwe-lb-next { right: 14px; }

.hfwe-lb-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hfwe-lb-img {
  max-width: min(1500px, 92vw);
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.hfwe-lb-caption {
  color: #fff;
  opacity: .82;
  font-size: 14px;
  text-align: center;
  max-width: 74ch;
}
.hfwe-lb-caption[hidden] { display: none; }

@media (max-width: 620px) {
  .hfwe-lightbox { padding: 60px 8px 12px; }
  .hfwe-lb-nav { width: 44px; height: 44px; font-size: 25px; }
  .hfwe-lb-img { max-height: 68vh; }
}
@media (prefers-reduced-motion: reduce) {
  .hfwe-lightbox { animation: none; }
  .hfwe-lead a:hover img,
  .hfwe-tile a:hover img { transform: none; }
}

/* -------------------------------------------------------------------- Teilen */

.hfwe-share {
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line, rgba(255, 255, 255, .08));
}
.hfwe-share-label {
  display: block;
  font-family: var(--disp, inherit);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
.hfwe-share-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.hfwe-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1.5px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--disp, inherit);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  font-weight: 600;
  transition: .2s;
}
.hfwe-share-btn:hover {
  background: var(--red, #be272e);
  border-color: var(--red, #be272e);
  color: #fff;
}
.hfwe-share-btn[hidden] { display: none; }
.hfwe-share-native { background: var(--red, #be272e); border-color: var(--red, #be272e); color: #fff; }

.hfwe-share-feedback {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  opacity: 0;
  transition: opacity .2s;
}
.hfwe-share-feedback.is-visible { opacity: 1; }
.hfwe-share-note { font-size: 13px; opacity: .65; margin-top: 10px; }

/* ---------------------------------------------------------- Karte, Seitenzahlen */

.hfwe-map { border-radius: 12px; overflow: hidden; }
.hfwe-map-placeholder {
  padding: 28px 24px;
  text-align: center;
  border: 1px dashed currentColor;
  border-radius: 12px;
}
.hfwe-map-placeholder[hidden] { display: none; }
.hfwe-map-placeholder p { margin-bottom: 14px; font-size: 15px; }
.hfwe-map-hint { font-size: 13px; opacity: .75; margin: 14px 0 0; }
.hfwe-map-canvas { height: 340px; width: 100%; border-radius: 12px; }
.hfwe-map-canvas[hidden] { display: none; }

.hfwe-pagination { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.hfwe-pagination .page-numbers {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 8px;
  border: 1px solid currentColor;
  text-decoration: none;
  font-family: var(--disp, inherit);
  letter-spacing: 1px;
  font-size: 14px;
}
.hfwe-pagination .page-numbers.current,
.hfwe-pagination .page-numbers:hover {
  background: var(--red, #be272e);
  border-color: var(--red, #be272e);
  color: #fff;
}
.hfwe-pagination .dots { border-color: transparent; }

/* ----------------------------------------------------- Letzter Einsatz, Zahlen */

.hfwe-latest .hfwe-latest-meta { font-size: 14px; opacity: .8; margin-bottom: 10px; }

.hfwe-stats-extra { margin-top: 22px; }
.hfwe-stat-text { font-size: 15px; margin-top: 8px; }
.hfwe-stat-text a { text-decoration: underline; text-underline-offset: 3px; }

.hfwe-views { font-variant-numeric: tabular-nums; }

.hfwe-chronik-meta {
  font-family: var(--disp, inherit);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  opacity: .8;
  margin-bottom: 6px;
}
.hfwe-chronik h3 a { text-decoration: none; }
.hfwe-chronik h3 a:hover { text-decoration: underline; }
