/**
 * Aktivitaeten hub styles ("akt-" classes) plus the few Legacy-Trip extras
 * ("akt-lp-" classes). Fork-owned. The Legacy-Trip page itself is built from
 * the shared mv-* components (components.css: hero, story, section head,
 * media strip, caption, link card, CTA band), see the block at the end of
 * this file. FWK-CH-01 B1 moved the media strip, the source line and the link
 * card out of this file into those components.
 *
 * DESIGN.md "Mindestgroessen": body/lead paragraphs are 1rem (16px), every
 * secondary/meta text is >= 15px.
 */

.akt-wrap { padding-bottom: 8px; }

/* ---------- hub: hero ------------------------------------------------- */

.akt-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 8px;
}
.akt-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  line-height: 1.15;
  color: var(--text);
}
.akt-hero-lead {
  margin: 16px 0 0;
  max-width: 68ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-2);
}

/* ---------- hub: card grid --------------------------------------------- */

.akt-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.akt-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
a.akt-card:hover,
a.akt-card:focus-visible { box-shadow: var(--shadow-2); transform: translateY(-2px); }
a.akt-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.akt-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--panel-a), var(--panel-b));
  border-radius: var(--radius-media) var(--radius-media) 0 0;
}
.akt-card-media-note {
  font-size: .9375rem;
  /* --text-2, not --text-3: this label sits directly on the panel-a/-b
     placeholder gradient (background-image, so getComputedStyle's
     backgroundColor is transparent, an ancestor-walk finds --surface,
     which is NOT what actually renders behind this text). Measured
     against the gradient itself: --text-3 bottoms out at 4.48:1 on
     --panel-a in the light theme, under the 4.5:1 AA floor; --text-2
     clears both stops with margin (5.97:1 light / 8.86:1 dark). */
  color: var(--text-2);
  font-weight: 500;
}
.akt-card-media-soon { border-radius: var(--radius-media) var(--radius-media) 0 0; }

.akt-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 24px;
}
.akt-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.akt-card-teaser {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-2);
}
.akt-card-link {
  margin-top: 8px;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--accent-text);
}
a.akt-card:hover .akt-card-link { text-decoration: underline; }

/* Non-link "weitere Aktivitaeten" announcement card: same shape as a real
 * card so the grid stays visually consistent, but not a <a> (nothing to
 * click yet), so it drops the hover/focus affordance and the link line. */
.akt-card-soon {
  border-style: dashed;
  cursor: default;
}
.akt-card-soon:hover { box-shadow: var(--shadow-1); transform: none; }
.akt-card-soon .akt-card-title { color: var(--text-2); }

/* ---------- Legacy-Trip page (CIQ-03) ------------------------------------
 * The page itself is built from the shared mv-* components (components.css:
 * hero, story, section head, media strip, caption, link card, CTA band;
 * waves via sections.css). Only the page-specific rest lives here. */

/* Full-bleed hero colour (the mv-hero box itself stays at --maxw), and
 * landscape media crops instead of the portrait photos' native height. */
.akt-hero-bleed { box-shadow: 0 0 0 100vmax var(--accent); clip-path: inset(0 -100vmax); }
.akt-hero-bleed .mv-hero__media img,
#akt-legacy-story .mv-story__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 20%;
}
.akt-lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

#akt-legacy-gallery .cm-gallery-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.akt-lp-people {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 860px) {
  .akt-lp-people { grid-template-columns: 1fr 1fr; gap: 56px; }
}
.akt-lp-people-copy { display: flex; flex-direction: column; gap: 12px; }
.akt-lp-people-copy h2 { margin: 0; font-family: var(--font-heading); color: var(--text); font-size: 1.35rem; }
.akt-lp-people-copy p { margin: 0; color: var(--text-2); font-size: 1.05rem; line-height: 1.7; }

@media (max-width: 640px) {
  .akt-hero,
  .akt-grid { padding-left: 20px; padding-right: 20px; }
}

/* CMQ-02: video below the gallery on the team-impression pages, kept to the
   9:16 width the player already uses on /team/. */
.akt-eindruck-video { max-width: 360px; margin: 32px auto 0; }
.akt-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
