/**
 * 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;
  }
}

/* Hero background mode - isolated from legacy imagebox layout */
.onebyone-hero-bg {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 48vw, 760px);
  width: 100%;
  background-color: #17251c;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #fff;
}
.onebyone-hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,24,16,.91), rgba(10,24,16,.73) 55%, rgba(10,24,16,.24));
}
.onebyone-hero-inner {
  width: min(100% - 2.5rem, 1320px);
  margin-inline: auto;
  padding: 6.5rem 0 9rem;
}
.onebyone-hero-eyebrow {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .075em;
  color: #00fb00;
}
.onebyone-hero-headline {
  max-width: 880px;
  color: #fff;
  font-weight: 700;
  font-size: clamp(2.25rem, 4.1vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  overflow-wrap: break-word;
  hyphens: none;
}
.onebyone-hero-text { max-width: 760px; font-size: 1.08rem; line-height: 1.7; }
.onebyone-hero-text .hof-btn-light,
.onebyone-hero-text .hof-btn-light:hover,
.onebyone-hero-text .hof-btn-light:focus { color: #203229; }
@media(max-width:767.98px) {
 .onebyone-hero-bg { min-height: 490px; background-position: 60% center; }
 .onebyone-hero-inner { width: min(100% - 2rem, 1320px); padding: 4.5rem 0 7rem; }
}
