/* Über-mich-Seite: Rahmen mit Portrait, Haltung, Textwalze, Technik-Panel.
   Farben hier ändern: --uem-green (Akzent), --uem-dark (dunkle Flächen).
   Ohne JavaScript und bei "Bewegung reduzieren" ist alles statisch und vollständig lesbar. */

:root {
  --uem-dark: #141414;
  --uem-green: #c2fc7b;                       /* Akzentfarbe (Leingrün) */
  --uem-green-soft: rgba(194, 252, 123, 0.28);
  --uem-light: #ffffff;
  --uem-ink-soft: #4d4d4d;
  --uem-muted: rgba(13, 13, 13, 0.22);
  --uem-width: 1160px;
  --accent: #c2fc7b; /* Akzente der gemeinsamen style.css auf dieser Seite angleichen */
}

/* overflow-x: hidden aus style.css erzeugt einen Scroll-Container und
   verhindert dadurch position: sticky. clip beschneidet ohne Scroll-Container. */
.aniko-page { overflow-x: clip; }
body { overflow-x: clip; }

/* ================= 1. Rahmen mit Portrait ================= */

.uem-stage {
  display: grid;
  justify-items: center;
  align-items: start;
}
.uem-frame {
  width: min(var(--uem-width), 100%);
  min-height: 480px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% 125%, var(--uem-green-soft), transparent 70%),
    var(--uem-dark);
  color: var(--uem-light);
}
.uem-frame-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  height: 100%;
  min-height: inherit;
}
.uem-portrait {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: 50% 20%;
  background: #2a2a2a;
}
.uem-intro {
  align-self: center;
  padding: clamp(24px, 4vw, 56px);
}
.uem-eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--uem-green);
}
.uem-h1 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--uem-light);
}
.uem-intro p {
  margin: 0 0 24px;
  max-width: 42ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}
.uem-intro .uem-eyebrow { margin: 0 0 14px; color: var(--uem-green); }
.uem-link {
  color: var(--uem-light);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--uem-green);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.uem-link:hover { text-decoration-color: var(--uem-light); }
.uem-link:focus-visible { outline: 3px solid var(--uem-green); outline-offset: 4px; }

/* ================= 2. Haltung ================= */

.uem-story {
  max-width: 900px;
  margin: clamp(28px, 4vw, 48px) auto clamp(24px, 4vw, 48px);
}
.uem-lead {
  margin: 0 0 28px;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 24em;
}
.uem-lead mark {
  color: inherit;
  padding: 0 0.12em;
  background: linear-gradient(transparent 52%, var(--uem-green) 52%);
}
.uem-body {
  margin: 0;
  max-width: 60ch;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--uem-ink-soft);
}

/* ================= 3. Textwalze ================= */

.uem-wheel {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.uem-wheel-stage {
  position: relative;
  padding: clamp(32px, 5vw, 56px) 20px;
}
.uem-wheel-label {
  margin: 0 0 20px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.uem-wheel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.uem-wheel-list li {
  margin: 0;
  padding: 0.1em 0.4em;
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  white-space: nowrap;
  color: var(--uem-dark);
}
.uem-count { display: none; }
.uem-band { display: none; }

/* ================= 4. Technik-Panel ================= */

.uem-tech {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(24px, 5vw, 64px);
  max-width: var(--uem-width);
  margin: clamp(48px, 7vw, 88px) auto 0;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 28px;
  background:
    radial-gradient(60% 70% at 0% 110%, var(--uem-green-soft), transparent 70%),
    var(--uem-dark);
  color: var(--uem-light);
}
.uem-tech h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--uem-light);
}
.uem-tech-copy p {
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}
.uem-tech-copy p:last-child { margin-bottom: 0; }

/* Abschluss-Block aus der style.css: kleinerer Abstand zum Panel */
.cta-bottom-section.is-featured { margin-top: clamp(48px, 7vw, 88px); }

/* Handy, statisch */
@media (max-width: 760px) {
  .uem-frame { min-height: 0; border-radius: 22px; }
  .uem-frame-inner { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; }
  /* Gleicher Ausschnitt wie am Desktop (Haare, Gesicht, Kinn, Hand), nur quadratisch */
  .uem-portrait {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: 50% 20%;
  }
  .uem-intro { align-self: auto; padding: 22px 22px 26px; }
  .uem-tech { grid-template-columns: 1fr; border-radius: 22px; }
}

/* ================= Animierter Zustand ================= */

@media (prefers-reduced-motion: no-preference) {

  /* Rahmen: bleibt schmaler als die Kopfstreifen und wächst nur leicht */
  .js .uem-growth { height: 145svh; }
  .js .uem-stage {
    position: sticky;
    top: 0;
    height: 82vh;
    height: 82svh;
    padding-top: 8px;
    overflow: hidden;
  }
  .js .uem-frame {
    width: min(960px, calc(100vw - 48px));
    height: 66vh;
    height: 66svh;
    min-height: 0;
    border-radius: 40px;
    will-change: width, height, border-radius;
  }
  .js .uem-frame-inner { height: 100%; min-height: 0; }
  .js .uem-portrait { height: 100%; min-height: 0; }

  /* Textwalze: sticky bleibt während aller sechs Wörter sichtbar */
  .js .uem-wheel { height: 190svh; }
  .js .uem-wheel-stage {
    position: sticky;
    top: 0;
    height: 72vh;
    height: 72svh;
    padding: 0;
    overflow: hidden;
    perspective: 900px;
  }
  .js .uem-wheel-label {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% - clamp(5.5rem, 14vw, 9rem));
    margin: 0;
    z-index: 2;
  }
  .js .uem-band {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: clamp(4.2rem, 12vw, 8.2rem);
    transform: translateY(-50%);
    background: var(--uem-green);
  }
  .js .uem-wheel-list {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
  }
  .js .uem-wheel-list li {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    padding: 0;
    transform: translate3d(0, -50%, 0);
    will-change: transform, opacity;
  }
  .js .uem-count {
    display: block;
    position: absolute;
    left: 24px;
    bottom: 28px;
    margin: 0;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    color: var(--uem-ink-soft);
  }
  .js .uem-count b { color: var(--uem-dark); font-size: 1.25rem; }

  /* Einblendung beim Scrollen */
  .js .uem-anim {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .js .uem-anim.is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
  /* Mobil: dieselbe Karte wie statisch, nur die Breite wächst leicht beim Scrollen. */
  .js .uem-growth { height: auto; }
  .js .uem-stage { position: relative; height: auto; padding: 0; overflow: visible; }
  .js .uem-frame { width: calc(100% - 24px); height: auto; min-height: 0; border-radius: 22px; will-change: width; }
  .js .uem-frame-inner { height: auto; grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .js .uem-portrait {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: 50% 20%;
  }
  .js .uem-intro { align-self: auto; overflow: visible; padding: 22px 22px 26px; }
  .js .uem-intro p:not(.uem-eyebrow) { margin-bottom: 16px; }
  .js .uem-wheel-list li { font-size: clamp(1.9rem, 10vw, 2.8rem); }
}
