/* ============================================================================
   Legacy page styles still referenced by not-yet-converted markup.
   Everything here should eventually move into components or disappear.
   Gradients (.verlauf-*), the global `h1 { margin-top }`, the skip-link and the
   focus/motion rules have been removed — they now live in the token layer.
   ========================================================================= */

/* Start page: value proposition cards ------------------------------------- */

.value-proposition-section {
  color: var(--ep-text);
}

.value-card {
  height: 100%;
  padding: var(--ep-space-5);
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-lg);
  background: var(--ep-bg-card);
  transition: transform var(--ep-duration-base) var(--ep-ease),
              box-shadow var(--ep-duration-base) var(--ep-ease),
              border-color var(--ep-duration-base) var(--ep-ease);
}

.value-card:hover {
  transform: translateY(-3px);
  border-color: var(--ep-border-strong);
  box-shadow: var(--ep-shadow-md);
}

.value-card__number {
  display: block;
  margin-bottom: var(--ep-space-3);
  color: var(--ep-primary);
  font-family: var(--ep-font-body);
  font-size: var(--ep-text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.value-card__title {
  margin-bottom: var(--ep-space-3);
  color: var(--ep-text);
  font-family: var(--ep-font-heading);
  font-size: var(--ep-h3);
  font-weight: 700;
  line-height: var(--ep-leading-snug);
}

.value-card__text {
  margin-bottom: var(--ep-space-4);
  color: var(--ep-text-secondary);
}

.value-card__details summary {
  display: inline-flex;
  align-items: center;
  gap: var(--ep-space-2);
  color: var(--ep-primary);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

.value-card__details summary::before {
  content: "\25be";
  font-size: 0.75rem;
  transition: transform var(--ep-duration-base) var(--ep-ease);
}

.value-card__details[open] summary::before {
  transform: rotate(180deg);
}

.value-card__details-content {
  margin-top: var(--ep-space-4);
  padding-top: var(--ep-space-4);
  border-top: 1px solid var(--ep-border);
  color: var(--ep-text-secondary);
}

/* Start page: section wrappers -------------------------------------------- */

.clean-block {
  padding-block: var(--ep-section-y);
}

.clean-block .block-heading {
  margin-bottom: var(--ep-space-7);
  text-align: center;
}

/* Cards used by the start page and blog listing --------------------------- */

.clean-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-lg);
  background: var(--ep-bg-card);
}

/* The map lives in assets/css/leaflet.css, next to the rest of its styling.
   That file is only loaded by the one page that has a map. */

@media (min-width: 1600px) {
  main.page {
    max-width: 1600px;
    margin-inline: auto;
  }

  /* The hero image should always go to the edges of the viewport, even when
     the page itself is capped at 1600px. */
  .ep-hero {
    margin-inline: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
  }
}
