/*
 * Band unter der Kopfzeile (inc/banner.php), Entwurf 3. Der Kopf des Themes steht mit position: absolute ueber der
 * Seite; mit Band bekommt das Band den Platz, den die Seite sonst selbst fuer den Kopf laesst (Klasse am body).
 */

/* ---------- Platz unter dem Kopf ---------- */
/* Ohne Skript: so hoch wie der Kopf meist ist (Logo 2.2rem und 1rem Rand oben und unten). Mit Skript misst
   inc/banner.php den Kopf gleich nach dem Band, assets/banner.js wieder bei jeder neuen Fensterbreite. */
body.solreco-mit-band .solreco-band { margin-top: 4.2rem; }
body.solreco-mit-band.home .teaser { padding-top: 0; }
body.solreco-mit-band.page-template-default .grey { margin-top: 0; }

/* ---------- das Band ---------- */
.solreco-band { position: relative; z-index: 1; background: #E6E6EF; color: #1A1C27; line-height: 1.4; }
.solreco-band[hidden] { display: none; }
.solreco-band-innen {
  box-sizing: border-box; max-width: 1200px; min-height: 112px; margin: 0 auto; padding: 0 20px;
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 0 28px;
}
.solreco-band-datum {
  flex: none; box-sizing: border-box; width: 168px; padding: 0 30px; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 4px; background: #2f3648; color: #ffffff;
  clip-path: polygon(26px 0, 100% 0, calc(100% - 26px) 100%, 0 100%);
}
.solreco-band-tage { font-size: 36px; line-height: 1; font-weight: 300; letter-spacing: -.01em; white-space: nowrap; }
.solreco-band-monat { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: #c7c7df; white-space: nowrap; }
.solreco-band-grafik {
  flex: none; position: relative; width: 220px; min-height: 112px; margin-left: -46px; overflow: hidden; background: #ffffff;
  clip-path: polygon(26px 0, 100% 0, calc(100% - 26px) 100%, 0 100%);
}
.solreco-band-grafik img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.solreco-band-grafik.art-logo img { box-sizing: border-box; padding: 14px 34px; object-fit: contain; }
.solreco-band-grafik.stelle-links img { object-position: left center; }
.solreco-band-grafik.stelle-rechts img { object-position: right center; }
.solreco-band-text { flex: 1 1 280px; min-width: 0; padding: 18px 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.solreco-band-kennzeile { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #3a6890; }
.solreco-band-titel { font-size: 22px; line-height: 1.2; font-weight: 400; color: #2f3648; }
.solreco-band-zusatz { font-size: 15px; font-weight: 300; }
.solreco-band-zaehler {
  flex: none; align-self: center; display: flex; flex-direction: column; align-items: center; padding-right: 24px;
  border-right: 1px solid #B1B3CD;
}
.solreco-band-zaehler-klein { font-size: 12px; color: #4D4D4D; }
.solreco-band-zaehler-gross { font-size: 40px; line-height: 1; font-weight: 300; color: #2f3648; }
.solreco-band-zaehler.wort .solreco-band-zaehler-gross { font-size: 24px; line-height: 1.2; }
.solreco-band a.solreco-band-knopf {
  flex: none; align-self: center; box-sizing: border-box; min-height: 46px; padding: 0 34px; display: flex; align-items: center;
  background: #3a6890; color: #ffffff; font-size: 15px; font-weight: 700; text-decoration: none;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.solreco-band a.solreco-band-knopf:hover { background: #2f3648; }
.solreco-band a.solreco-band-knopf:focus-visible { outline: 2px solid #2f3648; outline-offset: 3px; }
.solreco-band-zu {
  flex: none; align-self: center; width: 44px; height: 44px; margin: 0 -12px 0 -14px; padding: 0; display: flex; align-items: center;
  justify-content: center; border: 0; background: transparent; color: #4D4D4D; cursor: pointer;
}
.solreco-band-zu[hidden] { display: none; }
.solreco-band-zu:hover { color: #1A1C27; }
.solreco-band-zu:focus-visible { outline: 2px solid #3a6890; outline-offset: -2px; }
.solreco-band-vorschau { margin: 0; padding: 6px 20px; background: #fcf0d0; color: #4a3d0b; font-size: 13px; font-weight: 400; text-align: center; }

/* ---------- Handy ---------- */
@media only screen and (max-width: 767px) {
  .solreco-band-innen {
    display: grid; grid-template-columns: 116px minmax(0, 1fr) 44px;
    grid-template-areas: "grafik grafik grafik" "datum text zu" "zaehler knopf knopf";
    gap: 12px 14px; min-height: 0; padding: 0 0 14px;
  }
  .solreco-band-grafik { grid-area: grafik; width: auto; height: 84px; min-height: 0; margin: 0 0 -12px; clip-path: none; }
  .solreco-band-grafik.ohne-handy { display: none; }
  .solreco-band-datum {
    grid-area: datum; width: 116px; min-height: 80px; padding: 0 18px 0 0; gap: 3px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
  }
  .solreco-band-tage { font-size: 26px; }
  .solreco-band-monat { font-size: 10px; letter-spacing: .16em; }
  .solreco-band-text { grid-area: text; padding: 12px 0; gap: 3px; }
  .solreco-band-kennzeile { font-size: 10px; letter-spacing: .16em; }
  .solreco-band-titel { font-size: 17px; }
  .solreco-band-zusatz { display: none; }
  .solreco-band-zu { grid-area: zu; align-self: start; margin: 2px 0 0; }
  .solreco-band-zaehler { grid-area: zaehler; flex-direction: row; align-items: baseline; gap: 4px; padding: 0 0 0 16px; border: 0; }
  .solreco-band-zaehler-klein { font-size: 13px; }
  .solreco-band-zaehler-gross, .solreco-band-zaehler.wort .solreco-band-zaehler-gross { font-size: 22px; }
  .solreco-band a.solreco-band-knopf { grid-area: knopf; min-height: 44px; margin-right: 16px; padding: 0 16px; justify-content: center; font-size: 14px; }
  .solreco-band-zaehler + .solreco-band-knopf { grid-area: knopf; }
}
