/* "Über mich" on the homepage: portrait with offset frame and floating stats card */

/* the theme lays the heading over the image ("mode-overlay"), which left the
   outlined second line half on white and half on the photo; stack it instead */
#ueber-mich .heading-block.mode-overlay {
  position: relative;
  margin: 0 0 44px;
}

#ueber-mich .side-image-block {
  margin: 0 44px 60px 22px;
}

#ueber-mich .ueber-mich-bild-wrapper {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  isolation: isolate;
}

/* red offset frame behind the photo */
#ueber-mich .ueber-mich-bild-wrapper::before {
  content: "";
  position: absolute;
  inset: 22px 22px -22px -22px;
  border: 2px solid #c0202a;
  z-index: -1;
  pointer-events: none;
}

#ueber-mich .ueber-mich-bild-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45);
}

/* stats: a dark card hanging off the bottom-right edge of the photo */
#ueber-mich .hw-stats-bar {
  position: absolute;
  left: 44px;
  right: -44px;
  bottom: -40px;
  z-index: 2;
  display: flex;
  background: #0d0d0d;
  border-top: 2px solid #c0202a;
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.55);
}

#ueber-mich .hw-stat-item {
  flex: 1;
  padding: 18px 22px 16px;
}

#ueber-mich .hw-stat-item + .hw-stat-item {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

#ueber-mich .hw-stat-num {
  font-family: "Bebas Neue", Arial, Helvetica, sans-serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1px;
  color: #fff;
}

/* "Stuttgart" is a word, not a number: give it a wider cell and a smaller
   size, bottom-aligned in the same line box so all three labels line up */
#ueber-mich .hw-stat-red {
  flex: 1.4;
}

#ueber-mich .hw-stat-red .hw-stat-num {
  display: flex;
  align-items: flex-end;
  height: 1em;
  color: #c0202a;
}

#ueber-mich .hw-stat-red .hw-stat-num-word {
  font-size: 0.72em;
  line-height: 0.9;
}

#ueber-mich .hw-stat-lbl {
  margin-top: 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.6);
}

/* medium widths: narrower column, so tighten the card */
@media (min-width: 769px) and (max-width: 1199px) {
  #ueber-mich .hw-stats-bar { left: 22px; right: -22px; }
  #ueber-mich .hw-stat-item { padding: 14px 14px 12px; }
  #ueber-mich .hw-stat-num { font-size: 34px; }
  #ueber-mich .hw-stat-lbl { font-size: 9px; letter-spacing: 2px; }
}

/* small tablets: the photo column is too narrow for three cells, so the
   region drops onto its own row under the two numbers */
@media (min-width: 769px) and (max-width: 991px) {
  #ueber-mich .hw-stats-bar { flex-wrap: wrap; }
  #ueber-mich .hw-stat-item { min-width: 0; }
  #ueber-mich .hw-stat-lbl { white-space: normal; }
  #ueber-mich .hw-stat-red {
    flex-basis: 100%;
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* phones: card sits flush under the photo instead of hanging off it */
@media (max-width: 768px) {
  #ueber-mich .heading-block.mode-overlay { margin-bottom: 28px !important; }

  #ueber-mich .side-image-block { margin: 0 0 48px; }

  #ueber-mich .ueber-mich-bild-wrapper {
    width: calc(100% - 16px) !important;
    max-width: 380px !important;
    margin: 0 auto 0 16px !important;
  }

  #ueber-mich .ueber-mich-bild-wrapper::before { inset: 14px 14px -14px -14px; }

  #ueber-mich .hw-stats-bar {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
  }

  #ueber-mich .hw-stat-item { padding: 14px 12px 12px !important; }
  #ueber-mich .hw-stat-num { font-size: 30px !important; }
  #ueber-mich .hw-stat-lbl { font-size: 8px !important; letter-spacing: 1.5px !important; }
}

/* very small phones: let "Jahre Erfahrung" wrap instead of pushing the card wide */
@media (max-width: 400px) {
  #ueber-mich .hw-stat-item { min-width: 0; padding: 12px 10px 10px !important; }
  #ueber-mich .hw-stat-lbl { white-space: normal; }
}

/* "Reichweite" ticker under the tabs: all YouTube views added up (filled by video-views.js) */
#ueber-mich .hm-reach {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(18, 18, 18, 0.1);
}

#ueber-mich .hm-reach[hidden] {
  display: none;
}

#ueber-mich .hm-reach__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.55);
}

#ueber-mich .hm-reach__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: #c0202a;
}

#ueber-mich .hm-reach__live i {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c0202a;
}

#ueber-mich .hm-reach__live i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #c0202a;
  animation: hm-reach-pulse 1.8s ease-out infinite;
}

@keyframes hm-reach-pulse {
  from { transform: scale(1); opacity: 0.6; }
  to { transform: scale(3); opacity: 0; }
}

#ueber-mich .hm-reach__num {
  margin-top: 14px;
  font-family: "Bebas Neue", Arial, Helvetica, sans-serif;
  font-size: clamp(54px, 5.4vw, 84px);
  line-height: 0.95;
  letter-spacing: 1px;
  color: #121212;
  font-variant-numeric: tabular-nums;
}

/* outlined like "Videograf & Cutter" in the heading on the left */
#ueber-mich .hm-reach__pre {
  color: transparent;
  -webkit-text-stroke: 1.5px #121212;
}

#ueber-mich .hm-reach__lbl {
  margin-top: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: #555;
}

@media (prefers-reduced-motion: reduce) {
  #ueber-mich .hm-reach__live i::after { animation: none; }
}
