/**
 * onebyone Bootstrap 5 frontend styles
 * The grid itself is handled by Bootstrap 5: row / col-12 / col-lg-X.
 */
.onebyone,
.onebyone * {
  box-sizing: border-box;
}

.onebyone {
  width: 100%;
}

.onebyone-global-headline {
  margin-bottom: 1.25rem;
}

.onebyone-before {
  margin-bottom: 1.5rem;
}

.onebyone-after {
  margin-top: 1.5rem;
}

.onebyone-headline {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.onebyone-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.onebyone-text > :last-child,
.onebyone-code > :last-child,
.onebyone-before > :last-child,
.onebyone-after > :last-child {
  margin-bottom: 0;
}

/* Bildbox / Bildband
   Content 1 image becomes the visual background, Content 1 text is centered above it. */
.onebyone-imagebox {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: clamp(260px, 30vw, 460px);
  overflow: hidden;
  isolation: isolate;
  background: #1f1f1f;
}

.onebyone-imagebox-media,
.onebyone-imagebox-media img,
.onebyone-imagebox-overlay {
  position: absolute;
  inset: 0;
}

.onebyone-imagebox-media {
  z-index: 0;
  overflow: hidden;
}

.onebyone-imagebox-media img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center center;
}

.onebyone-imagebox-overlay {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.34), rgba(0,0,0,.12), rgba(0,0,0,.34)),
    linear-gradient(0deg, rgba(0,0,0,.28), rgba(0,0,0,.12));
}

.onebyone-imagebox-content-wrap {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 1320px);
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.onebyone-imagebox-content {
  max-width: 980px;
  margin-inline: auto;
  color: #fff;
  text-align: center;
  text-wrap: balance;
}

.onebyone-imagebox-global-headline,
.onebyone-imagebox-headline {
  margin: 0 0 1rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.onebyone-imagebox-global-headline {
  font-size: clamp(1.8rem, 4vw, 4rem);
}

.onebyone-imagebox-headline {
  font-size: clamp(1.5rem, 3vw, 3rem);
}

.onebyone-imagebox-text,
.onebyone-imagebox-code {
  font-size: clamp(1.45rem, 3.1vw, 3.3rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.02em;
  text-shadow: 0 6px 30px rgba(0,0,0,.38);
}

.onebyone-imagebox-text > :last-child,
.onebyone-imagebox-code > :last-child {
  margin-bottom: 0;
}

.onebyone-imagebox a {
  color: inherit;
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}

.onebyone-imagebox a:hover,
.onebyone-imagebox a:focus {
  color: #fff;
}

@media (max-width: 575.98px) {
  .onebyone-imagebox {
    min-height: 320px;
  }

  .onebyone-imagebox-content-wrap {
    width: min(100% - 1.5rem, 1320px);
    padding-block: 3rem;
  }
}
