/* Die Startseite nutzt weiterhin das V2-Design, ist aber für die Mehrseitenstruktur gestrafft. */

.headerLanguageMenu {
  position: relative;
  z-index: 15;
}

.headerLanguageMenu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.headerLanguageMenu summary::-webkit-details-marker {
  display: none;
}

.headerLanguageMenu > div {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 252, 244, .98);
  box-shadow: var(--shadow);
}

.headerLanguageMenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 9px;
  color: var(--ink-soft);
  font-weight: 700;
  text-decoration: none;
}

.headerLanguageMenu a:hover,
.headerLanguageMenu a[aria-current="page"] {
  background: var(--gold-soft);
  color: var(--ink);
}

.hero {
  min-height: 680px;
  background:
    radial-gradient(circle at 78% 18%, rgba(242, 207, 87, .12), transparent 28%),
    linear-gradient(135deg, var(--petrol), var(--petrol-900));
}

.heroImage {
  inset: 50% clamp(28px, 4vw, 64px) auto auto;
  z-index: 0;
  width: min(47vw, 680px);
  height: auto;
  max-height: none;
  border: 1px solid rgba(242, 207, 87, .38);
  border-radius: calc(var(--radius) + 6px);
  object-fit: contain;
  object-position: center;
  transform: translateY(-50%);
  animation: none;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .38);
}

.heroPhotoNote {
  position: absolute;
  top: calc(50% + 170px);
  right: clamp(28px, 4vw, 64px);
  z-index: 2;
  width: min(47vw, 680px);
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-size: .72rem;
  line-height: 1.45;
  text-align: center;
}

.heroOverlay {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(8, 26, 30, .98) 0%, rgba(8, 26, 30, .96) 42%, rgba(8, 26, 30, .74) 53%, rgba(8, 26, 30, 0) 68%),
    linear-gradient(0deg, rgba(7, 22, 26, .62), rgba(7, 22, 26, .08) 48%, rgba(7, 22, 26, 0) 70%);
}

.heroGlow {
  z-index: 0;
}

.heroInner {
  z-index: 1;
  width: min(100%, var(--container));
  padding-inline: 0;
}

.heroCopy {
  max-width: min(46%, 570px);
}

.hero h1 {
  font-size: clamp(3.25rem, 5.6vw, 5.45rem);
}

.scrollCue {
  z-index: 2;
}

/* Inhalte, die nun auf echten Unterseiten stehen, werden auf der Startseite nicht doppelt ausgespielt. */
.story,
.journeymap,
.impact,
.donate,
.company,
.projects,
.trust,
.gallery {
  display: none;
}

.homeImpact {
  background:
    radial-gradient(circle at 11% 8%, rgba(242, 207, 87, .14), transparent 26%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
}

.homeImpactGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.homeImpactCard {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}

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

.homeImpactCard > div {
  display: grid;
  gap: 10px;
  padding: 26px;
}

.homeImpactCard small {
  color: var(--bronze);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.homeImpactMediaLabel {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--bronze);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.homeImpactCard h3,
.homeImpactCard p,
.homeImpactFoot p {
  margin: 0;
}

.homeImpactCard p,
.homeImpactFoot p {
  color: var(--muted);
}

.homeImpactFoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  font-size: .88rem;
}

.homeImpactFoot a {
  flex: 0 0 auto;
  color: var(--petrol);
  font-weight: 800;
  text-decoration: none;
}

@media (hover: hover) {
  .homeImpactCard:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
  }
}

.homePaths {
  background: var(--paper) url("/v2/assets/bg/bg-warm.webp") center / cover;
}

.homeVisualStory {
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
}

.homeVisualGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.homeVisualCard {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

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

.homeVisualCard > div {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.homeVisualCard small {
  color: var(--bronze);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.homeVisualCard h3,
.homeVisualCard p {
  margin: 0;
}

.homeVisualCard p {
  color: var(--muted);
}

.homeVisualCard a {
  margin-top: 8px;
  color: var(--petrol);
  font-weight: 800;
  text-decoration: none;
}

.homeVisualDisclosure {
  margin: 22px auto 0;
  color: var(--muted);
  font-size: .88rem;
  text-align: center;
}

.donorChoice {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(242, 207, 87, .18), transparent 26%),
    linear-gradient(180deg, var(--petrol), var(--petrol-900));
  color: #fff;
}

.donorChoice .sectionLead h2 {
  color: #fff;
}

.donorChoice .sectionLead p:not(.eyebrow) {
  color: rgba(255, 255, 255, .72);
}

.donorChoiceGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.donorChoiceCard {
  display: grid;
  align-content: start;
  min-height: 270px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.donorChoiceCard.featured {
  border-color: rgba(242, 207, 87, .62);
  background: linear-gradient(145deg, rgba(242, 207, 87, .2), rgba(255, 255, 255, .08));
  box-shadow: var(--shadow-gold);
}

.donorChoiceNum {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--bronze);
  font-family: var(--serif);
  font-weight: 800;
}

.donorChoiceCard h3 {
  color: #fff;
  font-size: 1.45rem;
}

.donorChoiceCard p {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, .72);
}

.donorChoiceCard strong {
  margin-top: auto;
  color: var(--gold-bright);
}

.donorChoiceTrust {
  margin: 24px auto 0;
  color: rgba(255, 255, 255, .62);
  font-size: .86rem;
  text-align: center;
}

@media (hover: hover) {
  .donorChoiceCard:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, .11);
  }
}

.homePathGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.homePathCard {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 310px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}

.homePathCard::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(10, 28, 32, .03), rgba(10, 28, 32, .92));
}

.homePathCard > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.homePathCard small {
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: var(--gold-bright);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.homePathCard h3 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
}

.homePathCard p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .76);
  font-size: .91rem;
  line-height: 1.42;
}

.homePathCard span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--gold-bright);
  font-weight: 800;
}

@media (hover: hover) {
  .homePathCard:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
  }

  .homePathCard:hover > img {
    transform: scale(1.05);
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: 760px;
  }

  .heroCopy {
    max-width: 54%;
  }

  .heroImage {
    right: 24px;
    width: 44vw;
  }

  .heroPhotoNote {
    right: 24px;
    width: 44vw;
  }

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

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

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

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

  .donorChoiceCard {
    min-height: auto;
  }

  .topbar {
    grid-template-columns: auto 1fr auto auto;
  }

  .headerLanguageMenu {
    justify-self: end;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: auto;
  }

  .heroInner {
    padding: 250px 20px 64px;
  }

  .heroCopy {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 3.4rem);
  }

  .heroImage {
    inset: 24px 20px auto;
    width: calc(100% - 40px);
    transform: none;
  }

  .heroPhotoNote {
    top: 194px;
    right: 20px;
    width: calc(100% - 40px);
    padding: 5px 8px;
    border-radius: 9px;
    background: rgba(7, 22, 26, .72);
    color: rgba(255, 255, 255, .82);
    font-size: .64rem;
  }

  .heroOverlay {
    background: linear-gradient(180deg, rgba(8, 26, 30, .22) 0%, rgba(8, 26, 30, .08) 23%, rgba(8, 26, 30, .96) 30%, rgba(8, 26, 30, .98) 100%);
  }

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

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

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

  .homeImpactFoot {
    align-items: flex-start;
    flex-direction: column;
  }

  .donorChoiceCard {
    padding: 24px;
  }

  .homePathCard {
    min-height: 250px;
  }

  .headerLanguageMenu summary {
    min-height: 40px;
    padding: 0 9px;
  }

  .headerLanguageMenu summary strong {
    display: none;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    white-space: nowrap;
    font-size: 1rem;
  }

  .brand small {
    display: none;
  }
}
