/* === UBER UNS PAGE === */

body { background: var(--color-bg); }

.uber-wrap {
  padding-top: 100px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

/* HERO */
.uber-hero__head {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 75px;
}

.uber-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 96px;
  line-height: 96px;
  color: var(--color-text-heading);
  margin: 0;
  letter-spacing: -0.01em;
  white-space: pre-line;
}

.uber-hero__intro {
  max-width: 360px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 19.2px;
  line-height: 26.88px;
  color: var(--color-text-heading);
  margin: 0;
  padding-bottom: 12px;
  white-space: pre-line;
}

.uber-hero__video {
  width: 100%;
  height: 757px;
  border-radius: 0;
  overflow: hidden;
  background-color: rgb(40,40,40);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.uber-hero__video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

/* VIDEO FACADE */
.video-facade,
.video-facade__player {
  width: 100%;
  height: 100%;
}

.video-facade {
  position: relative;
  cursor: pointer;
}

.video-facade__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
  line-height: 0;
}

.video-facade__play:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-facade__player {
  object-fit: cover;
}

.uber-hero__video-error {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgb(238,238,238);
  font-family: -apple-system, "Roboto", sans-serif;
  max-width: 720px;
}

.uber-hero__video-icon {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uber-hero__video-icon svg { display: block; opacity: 0.7; }

.uber-hero__video-text { display: flex; flex-direction: column; gap: 4px; }
.uber-hero__video-text p { margin: 0; font-size: 18px; line-height: 24px; }
.uber-hero__video-text p:first-child { font-weight: 500; font-size: 22px; }
.uber-hero__video-text a { color: inherit; text-decoration: underline; }

/* INTRO + STATS GRID */
.uber-intro {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 0;
}

.uber-intro__text {
  background-color: var(--color-section-dark);
  border-radius: 25px;
  padding: 35px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: stretch;
  height: 694px;
  overflow: hidden;
}

.uber-intro__text p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 22.4px;
  color: #fff;
  margin: 0;
  white-space: pre-line;
}

.uber-intro__stats {
  padding-left: 20px;
  padding-right: 20px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 456px 218px;
  gap: 23px;
}

/* Row 1: 2 items, each 3 cols */
.uber-intro__stats > .stat-card:nth-child(1),
.uber-intro__stats > .stat-card:nth-child(2) {
  grid-column: span 3;
}

/* Row 2: 3 items, each 2 cols */
.uber-intro__stats > .stat-card:nth-child(3),
.uber-intro__stats > .stat-card:nth-child(4),
.uber-intro__stats > .stat-card:nth-child(5) {
  grid-column: span 2;
}

.stat-card {
  border-radius: 25px;
  padding: 45px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.stat-card--light  { background: var(--color-surface-muted); color: var(--color-text-heading); }
.stat-card--standorte { background-color: var(--color-section-dark); color: #fff; padding-bottom: 80px; }
.stat-card--dark   { background: var(--color-section-dark); color: #fff; }
.stat-card--photo  { background: var(--color-section-dark) center/cover no-repeat; color: #fff; }
.stat-card--photo::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.15);
  border-radius: inherit;
}
.stat-card--photo > * { position: relative; z-index: 1; }

.stat-card__photo--people  { background-image: url('../assets/about.webp'); }
.stat-card__photo--meeting { background-image: url('../assets/haushirsch-was-duerfen-wir-fuer-sie-tun.webp'); }
.stat-card__photo--image1  { background-image: url('../assets/ueber-uns/image-1.webp'); justify-content: flex-start; }
.stat-card__photo--image2  { background-image: url('../assets/ueber-uns/image-2.webp'); background-position: -190px -40px; background-size: 680px; }

.stat-card__mask {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.stat-card--light .stat-card__number,
.stat-card--light .stat-card__label {
  position: relative;
  z-index: 1;
}

.stat-card__icon {
  width: 85px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  position: absolute;
  top: 45px;
  left: 45px;
}

.stat-card__icon svg { width: 85px; height: 85px; }

.stat-card__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 60px;
  margin: 0;
}

.stat-card__label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 27.2px;
  line-height: 35.36px;
  margin: 0;
  white-space: pre-line;
}

.stat-card--light .stat-card__label,
.stat-card--icon-only .stat-card__label {
  font-weight: 500;
  font-size: 27.2px;
  line-height: 32.64px;
}

.stat-card--icon-only {
  justify-content: flex-start;
  padding-top: 145px;
  background: var(--color-surface-muted);
  color: var(--color-text-heading);
}

/* WERDEGANG */
.uber-werdegang {
  max-width: 1000px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 412px 1fr;
  gap: 16px;
  align-items: center;
  padding-inline: 24px;
}

.uber-werdegang__media {
  width: 412px;
  height: 575px;
  border-radius: 0;
  overflow: hidden;
  background: url('../assets/ueber-uns/hirsch-bild.webp') center/cover no-repeat;
}

.uber-werdegang__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.uber-werdegang__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 33.2px;
  line-height: 39.82px;
  color: var(--color-text-heading);
  margin: 0;
}

.uber-werdegang__body p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 22.4px;
  color: var(--color-text-heading);
  margin: 0;
  white-space: pre-line;
}

.uber-werdegang__body strong { font-weight: 700; }

/* TIMELINE */
.uber-timeline {
  width: 100%;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: none;
}

.uber-timeline::-webkit-scrollbar {
  display: none;
}

.uber-timeline__inner {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 144px;
  padding: 0 200px;
  min-width: max-content;
}

.uber-timeline__inner::before {
  content: "";
  position: absolute;
  top: 43px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-border-light);
}

.uber-timeline__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 233px;
  position: relative;
  z-index: 1;
}

.uber-timeline__date {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 25px;
  color: var(--color-text-heading);
  margin: 0;
}

.uber-timeline__point {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-border-light);
}

.uber-timeline__point--active { background: var(--color-text-heading); }

.uber-timeline__event {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 20px;
  line-height: 25px;
  color: var(--color-text-heading);
  margin: 0;
  padding-bottom: 8px;
}

.uber-timeline__tag {
  align-self: flex-start;
  background: rgb(239,239,239);
  border-radius: 55px;
  padding: 10px 31px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 25px;
  color: var(--color-text-heading);
}

/* AUSZEICHNET (dark 2-up) */
.uber-auszeichnet {
  background-color: var(--color-section-dark);
  border-radius: 25px;
  padding: 50px;
  color: #fff;
}

.uber-auszeichnet__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 33.2px;
  line-height: 33.18px;
  text-align: center;
  margin: 0 0 78px;
  color: #fff;
}

.uber-auszeichnet__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 76px;
}

.uber-auszeichnet__card {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.uber-auszeichnet__media {
  width: 100%;
  height: 400px;
  border-radius: 25px;
  overflow: hidden;
  background-color: rgba(255,255,255,0.06);
}

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

.uber-auszeichnet__card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 33.6px;
  color: #fff;
  margin: 0 0 16px;
}

.uber-auszeichnet__card p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 22.4px;
  color: #fff;
  margin: 0 0 22px;
  white-space: pre-line;
}

.uber-auszeichnet__card p:last-child { margin-bottom: 0; }

/* TEAM */
.uber-team__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 33.2px;
  line-height: 33.18px;
  color: var(--color-text-heading);
  text-align: center;
  margin: 0 0 20px;
}

.uber-team__intro {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17.6px;
  line-height: 24.64px;
  color: var(--color-text-heading);
  text-align: center;
  margin: 0 0 35px;
  white-space: pre-line;
}

.uber-team__map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 600px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 35px;
  background: linear-gradient(180deg, #d8e4ec 0%, #c9d6e0 100%);
  position: relative;
}

.map-skeleton {
  width: 100%;
  height: 100%;
}

.map-city-label {
  background: none !important;
  border: none !important;
  white-space: nowrap;
  text-align: center;
}

.map-city-label span,
.map-city-label a.map-city-link {
  display: inline-block;
  font-family: var(--font-sans);
  color: var(--color-text-heading) !important;
  font-size: 12px !important;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 25px;
  background: var(--color-surface);
  transform: translateX(-50%);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.map-city-label a.map-city-link:hover {
  background: var(--color-section-dark);
  color: var(--color-text-on-dark) !important;
}

.uber-team__filters {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 35px;
}

.uber-team__search {
  position: relative;
  width: 240px;
}

.uber-team__search-input {
  width: 100%;
  height: 58px;
  border-radius: 55px;
  border: 1px solid var(--color-border-input);
  background: var(--color-surface);
  color: var(--color-text-heading);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  padding: 0 48px 0 24px;
  box-sizing: border-box;
  outline: none;
}

.uber-team__search-input:focus {
  border-color: var(--color-border-input);
}

.uber-team__search-icon {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* CUSTOM SELECT — width override for team filters (base styles in style.css) */
.custom-select { width: 240px; }

.uber-team__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--color-text-muted);
}

.uber-team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 28px;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--color-border-light);
  border-radius: 20px;
  padding: 16px;
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 320 / 345;
  border-radius: 15px;
  background: rgb(243,244,246);
  overflow: hidden;
  position: relative;
}

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

.team-card__icons {
  display: inline-flex;
  flex-direction: row;
  gap: 8px;
  background-color: var(--color-surface-muted);
  padding: 10px;
  border-radius: 18px;
  align-self: flex-start;
}

.team-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-heading);
}

.team-card__icon img {
  width: 19px;
  height: 19px;
  display: block;
}

.team-card__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px !important;
  line-height: 22px;
  color: var(--color-text-heading);
  margin: 0;
}

.team-card__role {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 20px;
  color: var(--color-text-soft);
  margin: 0;
}

.team-card__meta {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-text-heading);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.team-card__pin {
  width: 14px;
  height: 14px;
  display: inline-block;
}

/* SKELETON LOADING */
.uber-team__skeletons {
  display: contents;
}

.team-card--skeleton {
  pointer-events: none;
}

.skeleton-box {
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}

.team-card--skeleton .team-card__photo {
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-box--sm {
  width: 24px;
  height: 24px;
  display: inline-block;
}

.skeleton-box--text {
  height: 16px;
  width: 70%;
  display: block;
}

.skeleton-box--short {
  width: 50%;
}

.uber-team__sentinel {
  height: 1px;
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .uber-hero__title  { font-size: 72px; line-height: 1; }
  .uber-hero__video  { height: 480px; }
  .uber-intro        { grid-template-columns: 1fr; }
  .uber-intro__stats { padding-left: 0; padding-right: 0; margin-top: 23px; }
  .uber-intro__text  { height: auto; }
  .uber-team__grid   { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
  .uber-wrap { gap: 60px; padding-top: 60px; padding-bottom: 60px; }

  .uber-hero__head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 30px; }
  .uber-hero__title { font-size: 48px; }
  .uber-hero__video { height: 280px; }

  .uber-werdegang  { grid-template-columns: 1fr; gap: 20px; }
  .uber-werdegang__media { width: 100%; height: 360px; background-size: contain; background-repeat: no-repeat; background-position: center; }

  .uber-intro__stats {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
  }
  .uber-intro__stats > .stat-card:nth-child(1),
  .uber-intro__stats > .stat-card:nth-child(2),
  .uber-intro__stats > .stat-card:nth-child(3),
  .uber-intro__stats > .stat-card:nth-child(4),
  .uber-intro__stats > .stat-card:nth-child(5) {
    grid-column: span 1;
  }

  .uber-timeline { display: none; }

  .uber-auszeichnet { padding: 30px 22px; }
  .uber-auszeichnet__grid { grid-template-columns: 1fr; gap: 36px; }
  .uber-auszeichnet__media { height: 260px; }
  .uber-auszeichnet__title { font-size: 26px; margin-bottom: 32px; }

  .uber-team__grid { grid-template-columns: minmax(0, 360px); justify-content: center; gap: 20px; }
  .custom-select { width: 100%; max-width: 360px; }
  .uber-team__search { width: 100%; max-width: 360px; }
  .uber-team__map { height: 320px; }
}

/* === DARK MODE === */
[data-theme="dark"] .skeleton-box,
[data-theme="dark"] .team-card--skeleton .team-card__photo{background:linear-gradient(90deg,#1D1D1D 25%,#2C2C2C 50%,#1D1D1D 75%)}
[data-theme="dark"] .uber-timeline__tag {
  color: #000;
}
[data-theme="dark"] .stat-card__icon svg path {
  fill: #33edba;
}
[data-theme="dark"] .stat-card__icon svg circle,
[data-theme="dark"] .stat-card__icon svg line,
[data-theme="dark"] .stat-card__icon svg polyline,
[data-theme="dark"] .stat-card__icon svg rect {
  stroke: #33edba;
}
