/* ============================================================
   ÜBER MICH PAGE
   ============================================================ */

body {
  background: var(--bg);
  max-width: var(--max-w);
  margin: 0 auto;
  overflow-x: hidden;
}

/* ── Pinned Scroll Intro ─────────────────────────────────── */
.um-pin {
  /* Höhe wird per JS dynamisch gesetzt: vh + startPx → exakte 1:1 Scrollgeschwindigkeit */
  position: relative;
}

.um-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.um-photo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 29px;
}

.um-photo-img {
  width: 335px;
  height: 577px;
  object-fit: cover;
  object-position: center top;
  border-radius: 3px;
  /* Startwert; wird sofort per JS in px überschrieben */
  transform: translateY(200%);
  will-change: transform;
}

/* Logo zentriert mit mix-blend-mode:difference */
.um-logo-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  mix-blend-mode: difference;
  pointer-events: none;
  /* Entrance: Logo faded beim Laden sanft ein */
  opacity: 0;
  animation: um-logo-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.um-logo-img {
  width: 220px;
  height: auto;
  display: block;
}

@keyframes um-logo-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* Scroll-Hint auf über-mich: hero__scroll neu positioniert im sticky container */
#umScrollHint {
  position: absolute;
  /* Figma: left:152px, aber zentriert auf der Seite */
  left: 50%;
  transform: translateX(-50%);
  bottom: 36px;
  top: auto;
  /* Einblend-Animation */
  opacity: 0;
  animation: um-hint-in 0.6s ease 1s forwards;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

#umScrollHint.is-hidden {
  opacity: 0 !important;
}

@keyframes um-hint-in {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Content Blöcke ──────────────────────────────────────── */
/* Figma: left:29px width:335px */
.um-block {
  padding-left: 29px;
  padding-right: 29px;
  padding-bottom: 0;
}

.um-heading {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  color: var(--dark);
  margin: 0;
}

.um-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  color: var(--dark);
  margin: 0;
}

/* ── Foto-Karussell ──────────────────────────────────────── */
/* Figma: left:-224px overflow-clip width:841px height:328px
   3 Fotos à 253px, Abstand 294px (=253+41) */
.um-carousel-wrap {
  margin-top: 40px;
  overflow: hidden;
  /* Links über den Rand hinaus wie in Figma: margin-left:-224px aber
     wir verwenden padding-left:29px und scrollen horizontal */
}

.um-carousel {
  display: flex;
  gap: 41px;
  padding-left: 29px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.um-carousel::-webkit-scrollbar { display: none; }

.um-carousel__item {
  flex-shrink: 0;
  width: 253px;
  height: 328px;
  border-radius: 3px;
  overflow: hidden;
  scroll-snap-align: start;
}

.um-carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Vollbild-Bild ───────────────────────────────────────── */
/* Figma: left:29px width:335px height:339px */
.um-fullimg {
  padding: 0 29px;
}

.um-fullimg img {
  width: 335px;
  height: 339px;
  object-fit: cover;
  display: block;
  border-radius: 3px;
}

/* ── CTA Link ────────────────────────────────────────────── */
.um-cta-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: var(--dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  line-height: 1.4;
  display: inline-block;
}

/* ── Stats ───────────────────────────────────────────────── */
.um-stats {
  display: flex;
  gap: 0;
  padding: 0 29px;
}

.um-stat {
  flex: 1;
}

.um-stat__number {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  color: var(--dark);
  overflow: hidden;
}

.um-stat__label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: var(--dark);
  margin-top: 4px;
}

/* ── Logo Band ───────────────────────────────────────────── */
.um-logoband-wrap {
  overflow: hidden;
}

.um-logoband {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 0 29px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}
.um-logoband::-webkit-scrollbar { display: none; }

.um-logoband__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Explizite Bild-Höhe direkt (nicht per height:100% vom Parent) */
.um-logoband__item img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  filter: grayscale(1);
  opacity: 0.65;
}
