/* =========================================================
   EXPERIENCE PAGE BASE
   Prevents horizontal overflow caused by decorative hero elements.
   ========================================================= */

body[data-page="erfahrungen"] {
  overflow-x: hidden;
}


/* =========================================================
   EXPERIENCE HERO
   Styles the introductory hero, video links, and report summary card.
   ========================================================= */

.experience-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(9rem, 13vw, 11rem) 0 clamp(5rem, 9vw, 7rem);
  color: var(--white);
  background:
    radial-gradient(
      circle at 82% 24%,
      rgba(145, 189, 60, .22),
      transparent 25rem
    ),
    linear-gradient(
      135deg,
      #071512 0%,
      #10291f 58%,
      #071512 100%
    );
}

.experience-hero::after {
  position: absolute;
  right: -12rem;
  bottom: -22rem;
  width: 48rem;
  height: 48rem;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 7rem rgba(255, 255, 255, .02),
    0 0 0 14rem rgba(255, 255, 255, .012);
  pointer-events: none;
}

.experience-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 340px);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.experience-hero-copy {
  min-width: 0;
  max-width: 850px;
}

.experience-hero h1 {
  max-width: 850px;
  font-size: clamp(3rem, 5.4vw, 5.8rem);
  line-height: .98;
  overflow-wrap: anywhere;
}

.experience-hero h1 span {
  margin-top: .22em;
  display: block;
  color: var(--green);
  font-size: .78em;
  line-height: 1.05;
}

.experience-hero .lead {
  max-width: 720px;
  margin-top: 1.6rem;
  color: rgba(255, 255, 255, .74);
}

.experience-hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}

.experience-hero-actions .button-secondary {
  max-width: 560px;
  min-height: 54px;
  padding-block: .8rem;
  line-height: 1.35;
  text-align: center;
}


/* =========================================================
   HERO VIDEO LINKS
   Styles the stacked YouTube actions and supporting guidance text.
   ========================================================= */

.experience-video-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.experience-youtube-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
}

.experience-youtube-logo {
  width: 28px;
  height: 20px;
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  color: #ff0000;
}

.experience-youtube-logo svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.experience-youtube-logo .experience-youtube-play {
  fill: var(--white);
}

.experience-external-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.experience-video-note {
  width: 100%;
  max-width: 560px;
  margin: -.2rem 0 0;
  padding: .9rem 1rem;
  border-left: 3px solid var(--green);
  border-radius: 0 10px 10px 0;
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .045);
  font-size: .9rem;
  line-height: 1.55;
}

.experience-text-link {
  color: rgba(255, 255, 255, .82);
  font-weight: 800;
  text-underline-offset: .28rem;
}

.experience-text-link:hover {
  color: var(--white);
}


/* =========================================================
   HERO REPORT SUMMARY
   Styles the report-count panel shown beside the hero copy.
   ========================================================= */

.experience-hero-summary {
  width: 100%;
  max-width: 340px;
  min-height: 0;
  aspect-ratio: 1 / 1;
  padding: clamp(2rem, 4vw, 3rem);
  justify-self: end;
  display: grid;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.experience-hero-count {
  color: var(--green);
  font: clamp(5rem, 8vw, 7.5rem) / .85 Georgia, serif;
}

.experience-hero-summary strong {
  margin-top: 1rem;
  color: var(--white);
  font-size: 1.15rem;
}

.experience-hero-summary p {
  max-width: 220px;
  margin: .75rem 0 0;
  color: rgba(255, 255, 255, .65);
}


/* =========================================================
   EXPERIENCE INTRODUCTION
   Styles the two-column explanation below the hero.
   ========================================================= */

.experience-intro {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.experience-intro > * {
  min-width: 0;
}

.experience-intro-copy {
  max-width: 700px;
}

.experience-intro-copy p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   EXPERIENCE LIBRARY HEADER
   Styles the library heading, result count, search, and category filters.
   ========================================================= */

.experience-library-heading {
  margin-bottom: 2rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.experience-library-heading > div {
  min-width: 0;
}

.experience-result-text {
  margin: 0;
  flex: 0 0 auto;
  color: var(--ink-soft);
}

.experience-result-text strong {
  color: var(--green-dark);
  font-size: 1.3rem;
}

.experience-controls {
  margin-bottom: 2.5rem;
  display: grid;
  gap: 1.25rem;
}

.experience-search {
  display: grid;
  gap: .55rem;
}

.experience-search label {
  font-size: .86rem;
  font-weight: 850;
}

.experience-search-field {
  position: relative;
}

.experience-search-field svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--ink-soft);
  pointer-events: none;
}

.experience-search-field input {
  width: 100%;
  height: 58px;
  padding: .9rem 1rem .9rem 3rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(7, 21, 18, .04);
}

.experience-search-field input:focus {
  border-color: var(--green-dark);
  outline: 3px solid rgba(145, 189, 60, .22);
}

.experience-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.experience-filters button {
  min-height: 42px;
  padding: .65rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--white);
  font-weight: 800;
  white-space: nowrap;
}

.experience-filters button:hover,
.experience-filters button.is-active {
  color: #11200d;
  border-color: var(--green);
  background: var(--green);
}


/* =========================================================
   EXPERIENCE REPORT CARDS
   Styles report cards generated dynamically by the Erfahrungen JavaScript.
   ========================================================= */

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.experience-card {
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 1.65rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 16px 45px rgba(7, 21, 18, .065);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.experience-card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 132, 34, .36);
  box-shadow: 0 24px 58px rgba(7, 21, 18, .1);
}

.experience-card-head {
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.experience-card-number {
  color: var(--green-dark);
  font: 1.65rem / 1 Georgia, serif;
}

.experience-card-category {
  max-width: 70%;
  padding: .35rem .65rem;
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--cream);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.experience-card.is-sensitive {
  border-color: rgba(199, 166, 105, .38);
  background: linear-gradient(180deg, var(--white), #fffaf0);
}

.experience-card.is-sensitive .experience-card-category {
  color: #725222;
  background: #f6e7c7;
}

.experience-card h3 {
  margin-bottom: .9rem;
  font-size: 1.35rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.experience-card > p {
  color: var(--ink-soft);
}

/* =========================================================
   EMPTY AND LOAD-MORE STATES
   Styles the no-results message and report pagination control.
   ========================================================= */

.experience-empty {
  padding: 3rem 1rem;
  text-align: center;
}

.experience-empty p {
  color: var(--ink-soft);
}

.experience-load-more {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}


/* =========================================================
   TRANSPARENCY SECTION
   Explains how the anonymous experience reports were prepared.
   ========================================================= */

.experience-transparency {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.experience-transparency > * {
  min-width: 0;
}

.experience-principles {
  display: grid;
  gap: 1rem;
}

.experience-principles article {
  padding: 1.45rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 1.2rem;
  background: rgba(255, 255, 255, .05);
}

.experience-principles article > span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #11200d;
  background: var(--green);
  font-weight: 900;
}

.experience-principles strong {
  color: var(--white);
}

.experience-principles p {
  margin: .4rem 0 0;
  color: rgba(255, 255, 255, .65);
}


/* =========================================================
   SHARE EXPERIENCE CALL TO ACTION
   Styles the invitation to submit a personal experience.
   ========================================================= */

.share-experience {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: center;
}

.share-experience > div {
  min-width: 0;
  max-width: 760px;
}


/* =========================================================
   MEDICAL EXPERIENCE NOTICE
   Styles the final disclaimer about personal reports and medical evidence.
   ========================================================= */

.experience-notice {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(199, 166, 105, .42);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 1.5rem;
  background: #fbf4e5;
}

.experience-notice-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--gold);
  font: 700 1.4rem / 1 Georgia, serif;
}

.experience-notice h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.experience-notice p {
  max-width: 920px;
  color: #5c4d33;
}

.experience-notice p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   RESPONSIVE LAYOUT
   Adapts the experience page for tablets and smaller screens.
   ========================================================= */

@media (max-width: 1180px) {
  .experience-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
    gap: 3rem;
  }

  .experience-hero h1 {
    font-size: clamp(3rem, 5.2vw, 5rem);
  }

  .experience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .experience-hero-grid,
  .experience-intro,
  .experience-transparency {
    grid-template-columns: 1fr;
  }

  .experience-hero-summary {
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    justify-self: stretch;
    place-content: start;
  }

  .experience-hero-count {
    font-size: clamp(4.5rem, 12vw, 7rem);
  }

  .experience-hero-summary p {
    max-width: 460px;
  }
}

@media (max-width: 760px) {
  .experience-hero {
    padding: 8.5rem 0 4.5rem;
  }

  .experience-hero h1 {
    font-size: clamp(2.7rem, 12vw, 4.2rem);
  }

  .experience-hero h1 span {
    font-size: .76em;
  }

  .experience-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .experience-hero-actions .button {
    width: 100%;
  }

  .experience-text-link {
    padding: .65rem 0;
    display: inline-flex;
    justify-content: center;
  }

  .experience-library-heading {
    align-items: start;
    flex-direction: column;
  }

  .experience-result-text {
    flex: initial;
  }

  .experience-filters {
    padding-bottom: .55rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .experience-filters button {
    flex: 0 0 auto;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .share-experience {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .share-experience .button {
    width: 100%;
  }

  .experience-notice {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .experience-hero {
    padding-top: 8rem;
  }

  .experience-hero h1 {
    font-size: clamp(2.45rem, 11.5vw, 3.6rem);
  }

  .experience-hero-summary {
    padding: 1.6rem;
    border-radius: 20px;
  }

  .experience-hero-count {
    font-size: 4.8rem;
  }

  .experience-card {
    padding: 1.35rem;
  }

  .experience-card-head {
    align-items: flex-start;
  }

  .experience-card-category {
    max-width: 62%;
    font-size: .64rem;
  }

  .experience-principles article {
    grid-template-columns: 1fr;
  }

  .experience-load-more .button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .experience-hero h1 {
    font-size: 2.25rem;
  }

  .experience-hero h1 span {
    font-size: .72em;
  }

  .experience-card-head {
    flex-direction: column;
  }

  .experience-card-category {
    max-width: 100%;
  }
}


/* =========================================================
   REDUCED MOTION
   Disables report-card movement for users who prefer less animation.
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .experience-card {
    transition: none;
  }

  .experience-card:hover {
    transform: none;
  }
}
