/* Project cards on investoren-staging and aktuelle Projekte.
   Same card language as the IHRE ANFRAGE form and the Solarinvestment example card: faint border, soft shadow,
   inset image, neutral inner surfaces, 17px outline icons at 1.4px (drawn as CSS masks, no markup changes).
   Scoped to these two pages because investoren.html still relies on the base .invest-card rules. */

body:is(.investor-staging-page, .projects-page) {
  --pc-coins: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%271.4%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cellipse%20cx%3D%2712%27%20cy%3D%276%27%20rx%3D%277%27%20ry%3D%273%27%2F%3E%3Cpath%20d%3D%27M5%206v6c0%201.7%203.1%203%207%203s7-1.3%207-3V6M5%2012v6c0%201.7%203.1%203%207%203s7-1.3%207-3v-6%27%2F%3E%3C%2Fsvg%3E");
  --pc-bolt: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%271.4%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M13%202%204.5%2013.5H11L10%2022l8.5-11.5H13L13%202Z%27%2F%3E%3C%2Fsvg%3E");
  --pc-percent: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%271.4%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M19%205%205%2019%27%2F%3E%3Ccircle%20cx%3D%277%27%20cy%3D%277%27%20r%3D%272.5%27%2F%3E%3Ccircle%20cx%3D%2717%27%20cy%3D%2717%27%20r%3D%272.5%27%2F%3E%3C%2Fsvg%3E");
  --pc-calendar: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%271.4%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273.5%27%20y%3D%275%27%20width%3D%2717%27%20height%3D%2715.5%27%20rx%3D%272.5%27%2F%3E%3Cpath%20d%3D%27M8%203v4M16%203v4M3.5%2010h17%27%2F%3E%3C%2Fsvg%3E");
  --pc-doc: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%271.4%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M7%203h7l4%204v14H7z%27%2F%3E%3Cpath%20d%3D%27M14%203v4h4M9.5%2012h5M9.5%2016h5%27%2F%3E%3C%2Fsvg%3E");
  --pc-person: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%271.4%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%278%27%20r%3D%273.5%27%2F%3E%3Cpath%20d%3D%27M5%2020c0-3.9%203.1-6.5%207-6.5s7%202.6%207%206.5%27%2F%3E%3C%2Fsvg%3E");
  --pc-pin: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%271.4%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M20%2010c0%205-8%2011-8%2011S4%2015%204%2010a8%208%200%201%201%2016%200Z%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2710%27%20r%3D%272.4%27%2F%3E%3C%2Fsvg%3E");
}

body:is(.investor-staging-page, .projects-page) .invest-card.invest-card {
  --pc-pad: 16px;
  container-type: inline-size;
  padding: var(--pc-pad);
  border: 0;
  background: rgba(249, 250, 249, .965);
  box-shadow: 0 18px 56px rgba(24, 34, 29, .08);
}

/* Staging carousel: the rail scrolls (overflow-x:auto), which would clip the card shadow. Give the shadow room and cancel it with negative margins so the layout does not move. */
body.investor-staging-page .investor-projects__rail {
  --pc-rail-pad: min(2rem, var(--site-gutter, 1.25rem));
  margin-inline: calc(var(--pc-rail-pad) * -1);
  margin-bottom: -46px;
  padding: 6px var(--pc-rail-pad) 56px;
  scroll-padding-inline: var(--pc-rail-pad);
  scrollbar-width: none;
}
body.investor-staging-page .investor-projects__rail::-webkit-scrollbar { display: none; }

body:is(.investor-staging-page, .projects-page) .invest-card.invest-card .invest-card__media { border-radius: 1.25rem; }
body:is(.investor-staging-page, .projects-page) .invest-card.invest-card .invest-card__body { padding: 1.25rem .25rem 0; }

/* Status pill sits on the photo; the topline keeps only the project code. */
body:is(.investor-staging-page, .projects-page) .invest-card.invest-card .invest-card__topline { justify-content: flex-start; }
body:is(.investor-staging-page, .projects-page) .invest-card.invest-card .invest-card__badge {
  position: absolute;
  top: calc(var(--pc-pad) + .75rem);
  right: calc(var(--pc-pad) + .75rem);
  z-index: 2;
  border-color: transparent;
  background: rgba(251, 252, 251, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

body:is(.investor-staging-page, .projects-page) .invest-card.invest-card .invest-card__statusline { margin: 1rem 0 0; }
body:is(.investor-staging-page, .projects-page) .invest-card.invest-card .invest-card__location { display: flex; align-items: center; gap: .5rem; margin: .5rem 0 0; }
body:is(.investor-staging-page, .projects-page) .invest-card.invest-card .invest-card__location::before,
body:is(.investor-staging-page, .projects-page) .invest-card.invest-card .invest-card__summary-grid > div::before {
  content: "";
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  background: rgba(24, 34, 29, .45);
  -webkit-mask: var(--pc-ic) center / contain no-repeat;
  mask: var(--pc-ic) center / contain no-repeat;
}
body:is(.investor-staging-page, .projects-page) .invest-card.invest-card .invest-card__location::before { --pc-ic: var(--pc-pin); }

/* Spec grid: divided cells inside one rounded box; label above value. */
body:is(.investor-staging-page, .projects-page) .invest-card.invest-card .invest-card__summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 1.25rem 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 34, 29, .08);
  border-radius: 1rem;
  background: rgba(24, 34, 29, .08);
}
body:is(.investor-staging-page, .projects-page) .invest-card.invest-card .invest-card__summary-grid > div {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
  padding: .875rem 1rem 1rem;
  /* Same tint as the Solarinvestment example tiles (rgba(24,34,29,.035) on the card), opaque so the 1px divider gaps stay clean. */
  background: color-mix(in srgb, #f9faf9 96.5%, #18221d 3.5%);
}
body:is(.investor-staging-page, .projects-page) .invest-card.invest-card .invest-card__summary-grid > div::before { margin-bottom: .375rem; }
body:is(.investor-staging-page, .projects-page) .invest-card.invest-card .invest-card__summary-grid dt,
body:is(.investor-staging-page, .projects-page) .invest-card.invest-card .invest-card__summary-grid dd { margin: 0; }

body.investor-staging-page .invest-card.invest-card .invest-card__summary-grid dt { order: 1; }
body.investor-staging-page .invest-card.invest-card .invest-card__summary-grid dd { order: 2; }
body.projects-page .invest-card.invest-card .invest-card__summary-grid dd { order: 1; }
body.projects-page .invest-card.invest-card .invest-card__summary-grid dt { order: 2; }

body.investor-staging-page .invest-card.invest-card .invest-card__summary-grid > div:nth-child(1)::before { --pc-ic: var(--pc-coins); }
body.investor-staging-page .invest-card.invest-card .invest-card__summary-grid > div:nth-child(2)::before { --pc-ic: var(--pc-bolt); }
body.investor-staging-page .invest-card.invest-card .invest-card__summary-grid > div:nth-child(3)::before { --pc-ic: var(--pc-percent); }
body.investor-staging-page .invest-card.invest-card .invest-card__summary-grid > div:nth-child(4)::before { --pc-ic: var(--pc-calendar); }
body.investor-staging-page .invest-card.invest-card .invest-card__summary-grid > div:nth-child(5)::before { --pc-ic: var(--pc-doc); }
body.investor-staging-page .invest-card.invest-card .invest-card__summary-grid > div:nth-child(6)::before { --pc-ic: var(--pc-person); }
body.projects-page .invest-card.invest-card .invest-card__summary-grid > div:nth-child(1)::before { --pc-ic: var(--pc-coins); }
body.projects-page .invest-card.invest-card .invest-card__summary-grid > div:nth-child(2)::before { --pc-ic: var(--pc-bolt); }
body.projects-page .invest-card.invest-card .invest-card__summary-grid > div:nth-child(3)::before { --pc-ic: var(--pc-calendar); }
body.projects-page .invest-card.invest-card .invest-card__summary-grid > div:nth-child(4)::before { --pc-ic: var(--pc-doc); }

@container (min-width: 520px) {
  body.investor-staging-page .invest-card.invest-card .invest-card__summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@container (max-width: 340px) {
  body:is(.investor-staging-page, .projects-page) .invest-card.invest-card .invest-card__summary-grid > div { padding-inline: .75rem; }
}

/* Side panel enquiry form on investoren-staging: same spacing as aktuelle-projekte.html
   (css/projekte-form-spacing.css is scoped to .projects-page, so it cannot reach this page). */
body.investor-staging-page .project-dialog .project-request.land-check {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  margin: 2.5rem 0 2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
body.investor-staging-page .project-dialog .project-request.land-check .land-check__progress { margin: 1.5rem 0 2rem; }
body.investor-staging-page .project-dialog .project-request.land-check .land-check__heading { margin-bottom: 2rem; }
body.investor-staging-page .project-dialog .project-request.land-check .project-request__selection { margin: 0 0 1.5rem; }
body.investor-staging-page .project-dialog .project-request.land-check .land-check__surface { min-width: 0; padding: 1.5rem; gap: 1.25rem; }
body.investor-staging-page .project-dialog .project-request.land-check .land-check__field { min-width: 0; gap: .75rem; }
body.investor-staging-page .project-dialog .project-request.land-check .land-check__consent { margin-top: 1.5rem; }
body.investor-staging-page .project-dialog .project-request.land-check .land-check__step-footer { margin-top: 2rem; gap: 1.5rem; flex-wrap: wrap; }
body.investor-staging-page .project-dialog .project-request.land-check .project-request__textarea-shell { display: block; box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; }
body.investor-staging-page .project-dialog .project-request.land-check textarea[name="message"] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 12rem;
  min-height: 12rem;
  max-height: 24rem;
  resize: vertical;
  overflow: auto;
  padding: .875rem 1rem;
  border: 1px solid rgba(24, 34, 29, .14);
  border-radius: .75rem;
  background: rgba(255, 255, 255, .55);
  color: var(--form-ink, var(--ink));
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  transition: border-color .2s ease;
}
body.investor-staging-page .project-dialog .project-request.land-check textarea[name="message"]:focus {
  border-color: var(--form-orange, var(--orange));
  outline: 2px solid var(--form-orange, var(--orange));
  outline-offset: 2px;
}
body.investor-staging-page .project-dialog .project-request.land-check textarea[name="message"]::placeholder { color: var(--form-muted, var(--muted)); }
@media (max-width: 800px) {
  body.investor-staging-page .project-dialog .project-request.land-check { margin: 2rem 0 1.5rem; padding: 1.5rem; }
  body.investor-staging-page .project-dialog .project-request.land-check .land-check__surface { padding: 1.125rem; }
  body.investor-staging-page .project-dialog .project-request.land-check .land-check__surface--contact { grid-template-columns: minmax(0, 1fr); }
  body.investor-staging-page .project-dialog .project-request.land-check .land-check__step-footer { gap: 1rem; }
  body.investor-staging-page .project-dialog .project-request.land-check textarea[name="message"] { height: 11rem; min-height: 11rem; max-height: 20rem; }
}
@media (max-width: 480px) {
  body.investor-staging-page .project-dialog .project-request.land-check { padding: 1.25rem; }
  body.investor-staging-page .project-dialog .project-request.land-check .land-check__surface { padding: 1rem; }
}


/* Side panel on investoren-staging: hide rows without data, as aktuelle does. */
body.investor-staging-page .project-sidebar__row.is-empty { display: none; }

/* CTA: neutral pill, orange arrow, right aligned. */
body:is(.investor-staging-page, .projects-page) .invest-card.invest-card .invest-card__details {
  display: flex;
  width: max-content;
  margin: 1rem 0 0 auto;
  border-color: rgba(24, 34, 29, .12);
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
}

@media (max-width: 520px) {
  body:is(.investor-staging-page, .projects-page) .invest-card.invest-card { --pc-pad: 14px; }
  body:is(.investor-staging-page, .projects-page) .invest-card.invest-card .invest-card__summary-grid > div { padding-block: .75rem .875rem; }
}
