/*
 * Wildimpuls Über-mich-Seite (neu) – ergänzende Styles
 * Wird nur von wildimpuls-ueber-vorschau.php geladen, NACH wildimpuls-lp.css.
 * Nutzt ausschließlich die bestehenden Variablen (Farben, Schriften, Radien).
 */

/* ── Grundabstände ────────────────────────────────────────────────────── */
.ub-neu > .section:not(.hero) {
  padding-top: clamp(2rem, 4.5vw, 3.5rem);
  padding-bottom: clamp(2rem, 4.5vw, 3.5rem);
}

.ub-neu .section-heading {
  gap: 0.75rem;
}

.ub-neu .section-heading > p:not(.section-tag) {
  margin: 0;
}

.ub-neu .section-tag {
  margin-bottom: 0.35rem;
}

.ub-neu h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  line-height: 1.2;
}

.ub-neu h3 {
  font-family: var(--font-display);
}

.ub-textlink {
  font-weight: 700;
}

/* ── 1. Hero ──────────────────────────────────────────────────────────── */
.ub-hero__lead {
  margin: 0 0 0.6rem;
}

.ub-hero__lead:first-of-type {
  margin-top: 1.25rem;
}

/* Merkmale-Leiste unter dem Hero (gleiches Muster wie Programmseite) */
.ub-merkmale {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin: 0 auto;
}

.ub-merkmale ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(22, 56, 45, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
}

.ub-merkmale li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 0.75rem;
  color: var(--ink-soft);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.ub-merkmale li + li {
  border-left: 1px solid rgba(22, 56, 45, 0.1);
}

.ub-merkmale span {
  font-size: 1.2rem;
}

@media (max-width: 63.99rem) {
  .ub-merkmale li {
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 47.99rem) {
  .ub-merkmale ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ub-merkmale li {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }

  .ub-merkmale li:nth-child(3) {
    border-left: 0;
  }

  .ub-merkmale li:nth-child(n + 3) {
    border-top: 1px solid rgba(22, 56, 45, 0.1);
  }
}

/* ── 2. Geschichte + Sitzplatz ────────────────────────────────────────── */
.ub-geschichte {
  display: grid;
  gap: 1.5rem;
}

.ub-geschichte__text p:not(.section-tag) {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.ub-sitzplatz {
  align-self: start;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgba(22, 56, 45, 0.1);
  border-left: 4px solid var(--earth);
  border-radius: var(--radius-md);
  background: var(--surface-card);
}

.ub-sitzplatz p {
  margin: 0 0 0.7rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.ub-sitzplatz__tag {
  color: var(--earth) !important;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ub-sitzplatz__zitat {
  margin: 0.9rem 0 !important;
  color: var(--forest-deep) !important;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.4 !important;
}

.ub-sitzplatz__schluss {
  margin: 0 !important;
  color: var(--ink) !important;
  font-weight: 800;
}

@media (min-width: 48rem) {
  .ub-geschichte {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
  }
}

/* ── 3. Mentor ────────────────────────────────────────────────────────── */
.ub-mentor__grid {
  display: grid;
  gap: 1.5rem;
}

.ub-mentor__text p:not(.section-tag) {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.ub-mentor__tempo {
  margin-top: 0.25rem !important;
  color: var(--forest-deep) !important;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.35 !important;
}

.ub-mentor__bild {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  background: #1b2418;
}

.ub-mentor__bild img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ub-mentor__zitat {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(9, 23, 17, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fdf9f1;
}

.ub-mentor__zitat p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-style: italic;
  line-height: 1.35;
}

.ub-mentor__zitat span {
  display: block;
  margin-top: 0.35rem;
  color: var(--moss-bright);
  font-weight: 700;
}

.ub-belege {
  display: grid;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.ub-belege li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(22, 56, 45, 0.08);
  border-radius: var(--radius-md);
  background: var(--surface-card);
}

.ub-belege__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(154, 154, 36, 0.12);
  font-size: 1.15rem;
}

.ub-belege h3 {
  margin: 0 0 0.25rem;
  font-size: 1.08rem;
  line-height: 1.3;
}

.ub-belege p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

@media (min-width: 48rem) {
  .ub-mentor__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
  }

  .ub-mentor__bild {
    aspect-ratio: 4 / 5;
  }
}

@media (min-width: 56rem) {
  .ub-mentor__bild {
    aspect-ratio: 4 / 3;
  }

  .ub-belege {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* ── 4. Gemeinsam erleben ─────────────────────────────────────────────── */
.ub-erleben__grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.ub-erleben__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(22, 56, 45, 0.1);
  border-radius: var(--radius-md);
  background: var(--surface-card);
}

.ub-erleben__card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ub-erleben__body {
  padding: 1.1rem 1.25rem 1.3rem;
}

.ub-erleben__body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.ub-erleben__body p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.ub-erleben__schluss {
  max-width: 44rem;
  margin: 1.5rem auto 0;
  text-align: center;
}

.ub-erleben__schluss p {
  margin: 0 0 0.6rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width: 47.99rem) {
  .ub-erleben__card img {
    aspect-ratio: 5 / 2;
  }
}

@media (min-width: 48rem) and (max-width: 55.99rem) {
  .ub-erleben__card {
    flex-direction: row;
  }

  .ub-erleben__card img {
    flex: 0 0 36%;
    width: 36%;
    aspect-ratio: auto;
    height: auto;
    min-height: 100%;
  }
}

@media (min-width: 56rem) {
  .ub-erleben__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

/* ── 5. Haltung (einziger Foto-Hintergrund der Seite) ─────────────────── */
.ub-haltung__band {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(
      160deg,
      rgba(10, 22, 15, 0.9) 0%,
      rgba(14, 30, 20, 0.84) 55%,
      rgba(18, 34, 18, 0.8) 100%
    ),
    url("/img/artikel/im-wald-sitzen-sitzplatz-4-mann.jpg") center / cover
      no-repeat,
    #0e1d15;
  color: #fdf9f1;
}

.ub-haltung__inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2.25rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem);
  text-align: center;
}

.ub-haltung__inner .section-tag {
  justify-content: center;
}

.ub-haltung__inner h2 {
  color: #fff9f0;
  font-size: clamp(2rem, 5vw, 3rem);
}

.ub-haltung__inner p:not(.section-tag) {
  margin: 0 0 0.85rem;
  color: rgba(255, 250, 242, 0.88);
  font-size: 1.08rem;
  line-height: 1.7;
}

.ub-haltung__inner strong {
  color: #fff9f0;
}

.ub-haltung__drei {
  margin-top: 1.1rem !important;
  color: var(--moss-bright) !important;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.6rem) !important;
  line-height: 1.35 !important;
}

.ub-haltung__gruss {
  margin: 1.25rem 0 0 !important;
  color: #fff9f0 !important;
  font-weight: 800;
}

.ub-haltung__gruss span {
  display: block;
  margin-top: 0.15rem;
  color: rgba(255, 250, 242, 0.72);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* ── 6A. Hintergrund, Wege, Bücher ────────────────────────────────────── */
.ub-hintergrund__top {
  display: grid;
  gap: 0.75rem;
}

.ub-hintergrund__top h2 {
  margin-bottom: 0;
}

.ub-hintergrund__text p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.ub-hintergrund__zitat {
  margin: 1rem 0 0;
  padding: 0.6rem 0 0.6rem 1rem;
  border-left: 3px solid var(--earth);
}

.ub-hintergrund__zitat p {
  margin: 0 !important;
  color: var(--forest-deep) !important;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
}

.ub-hintergrund__zitat footer {
  margin-top: 0.25rem;
  color: var(--earth);
  font-weight: 700;
}

.ub-wege {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.ub-wege li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.ub-wege li > span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(154, 154, 36, 0.12);
  font-size: 1.15rem;
}

.ub-wege h3 {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
}

.ub-wege p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

.ub-buecher {
  margin-top: 2rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgba(22, 56, 45, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
}

.ub-buecher__kopf h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  line-height: 1.3;
}

.ub-buecher__grid {
  display: grid;
  gap: 1.25rem;
}

.ub-buecher__bucher {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.ub-buecher__bild img {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
}

.ub-buecher__liste {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ub-buecher__liste li {
  color: var(--ink-soft);
  line-height: 1.45;
}

.ub-buecher__liste a {
  font-weight: 700;
}

.ub-buecher__liste span {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.ub-buecher__medien-titel {
  margin: 0 0 0.6rem;
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ub-buecher__medien img {
  display: block;
  width: 100%;
  max-width: 24rem;
  height: auto;
  filter: grayscale(1) contrast(1.06);
  opacity: 0.8;
}

@media (min-width: 48rem) {
  .ub-wege {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .ub-buecher__bucher {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (min-width: 48rem) {
  .ub-hintergrund__top {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
  }

  .ub-buecher__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: 2rem;
    align-items: center;
  }
}

@media (max-width: 47.99rem) {
  .ub-buecher__bild img {
    max-width: 16rem;
    margin: 0 auto;
  }

  .ub-buecher__medien img {
    max-width: 16rem;
  }
}

/* ── 6B. Team ─────────────────────────────────────────────────────────── */
.ub-team__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.ub-team__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.1rem 0.9rem 1.2rem;
  border: 1px solid rgba(22, 56, 45, 0.1);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  text-align: center;
}

.ub-team__card img {
  width: 5rem;
  height: 5rem;
  margin-bottom: 0.7rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid rgba(154, 154, 36, 0.25);
}

.ub-team__card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.ub-team__rolle {
  margin: 0.15rem 0 0.45rem;
  color: var(--earth);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
}

.ub-team__card p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.ub-team__mehr {
  margin: 1.25rem 0 0;
  text-align: center;
}

@media (max-width: 47.99rem) {
  .ub-team__card {
    padding: 0.9rem 0.6rem 1rem;
  }

  .ub-team__card img {
    width: 4rem;
    height: 4rem;
  }
}

@media (min-width: 60rem) {
  .ub-team__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* ── 7. Abschluss ─────────────────────────────────────────────────────── */
.ub-schluss__karte {
  max-width: 50rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(
      circle at top left,
      rgba(185, 112, 63, 0.18),
      transparent 32%
    ),
    linear-gradient(145deg, rgba(9, 19, 14, 0.98), rgba(11, 32, 24, 0.96));
  color: #fdf9f1;
  text-align: center;
}

.ub-schluss__karte .section-tag {
  justify-content: center;
}

.ub-schluss__karte h2 {
  color: #fff9f0;
}

.ub-schluss__karte p:not(.section-tag) {
  margin: 0 auto 0.8rem;
  max-width: 42rem;
  color: rgba(255, 250, 242, 0.86);
  line-height: 1.7;
}

.ub-schluss__gruss {
  margin-top: 1rem !important;
  color: #fff9f0 !important;
  font-weight: 800;
}

.ub-schluss__gruss span {
  display: block;
  color: rgba(255, 250, 242, 0.72);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.ub-schluss__start {
  font-size: 0.95rem;
}

.ub-schluss__start strong {
  color: #fff9f0;
}

.ub-schluss__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (max-width: 29.99rem) {
  .ub-schluss__actions .button {
    width: 100%;
  }
}

/* ── Vorschau-Hinweis (nur Vorschau) ──────────────────────────────────── */
.ub-vorschau-hinweis {
  position: fixed;
  left: 0.6rem;
  bottom: 0.6rem;
  z-index: 9000;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: #b9703f;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

/* ── Handy: kompaktere Bild- und Kartenhöhen ──────────────────────────── */
@media (max-width: 47.99rem) {
  /* Hero-Foto: Martin bleibt komplett sichtbar, Block aber nicht übermäßig hoch */
  .ub-neu .page-hero .hero__visual {
    min-height: 0;
    aspect-ratio: 4 / 4.2;
  }

  .ub-neu .page-hero .hero__photo {
    object-position: 60% 30%;
  }

  .ub-mentor__bild {
    aspect-ratio: 4 / 3;
  }

  .ub-team__card p:last-child {
    font-size: 0.88rem;
  }

  .ub-buecher__medien img {
    max-width: 13rem;
  }
}

/* Mentor-Foto frei lassen: Zitat als dunkle Leiste UNTER dem Bild statt darüber */
.ub-neu .ub-mentor__bild {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
}

.ub-neu .ub-mentor__bild img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
}

.ub-neu .ub-mentor__zitat {
  position: static;
  border: 0;
  border-radius: 0;
  background: linear-gradient(145deg, #16261c, #1f3325);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 1rem 1.25rem 1.1rem;
}
