/**
 * company: cube one GmbH
 * name: cube-group.css
 * author: Thomas Schäfer
 * created: 16.08.2026
 * change log: 07.09.2026 – Thomas Schäfer – Group hero lead uses full text
 *             primary brightness (removed 0.92 opacity wash).
 * change log: 05.09.2026 – Thomas Schäfer – Group hero drops the landing-page
 *             min-height and bottom-aligned copy so it matches the shared
 *             theme-banner padding and headline scale.
 * change log: 04.09.2026 – Thomas Schäfer – Dropped the 74ch cap on
 *             .group-article .article-body: the article grid track now carries
 *             the reading measure, so the cap only kept the copy 4px short of
 *             the headings beside it.
 * change log: 25.08.2026 – Thomas Schäfer – Homepage group teaser cards
 *             (.group-home__brand) use the values-duo glow pattern in orange,
 *             cube care berry and cube hub lime.
 * change log: 16.08.2026 – Added the bilingual cube group brand system, homepage teaser and article styles.
 *             16.08.2026 – Thomas Schäfer – Keep the white label on the dark CARE primary button after the global .btn-primary switched to a near-black label.
 *             04.09.2026 – Thomas Schäfer – CARE and HUB primary buttons follow the global lit-from-above gradient in their own hue and retune the cast shadow via --btn-cast; removed the ::after rule for the deleted idle pulse.
 *             04.09.2026 – Thomas Schäfer – Brand cards move the hover edge of the now globally defined .btn-secondary to berry and lime via --btn-edge.
 *             16.08.2026 – Thomas Schäfer – Integrated the official cube care logo and magenta brand accent.
 *             20.08.2026 – Thomas Schäfer – CUBE HUB rebrand: official lime accent (--hub-accent) for the hub brand card (timeline dot, hover border, promise bullets, index, primary button) and the white wordmark logo in the visual pill.
 *             20.08.2026 – Thomas Schäfer – Brand headings use official white wordmark logos; logo overlay pills on the visuals removed.
 *             21.08.2026 – Thomas Schäfer – Homepage brand cards use the three avatar motifs with offset wordmarks in diagonal CUBE frames.
 *             21.08.2026 – Thomas Schäfer – Group teaser subline renders on a single line from 1200px up (global .section-sub measure lifted); narrower viewports keep wrapping.
 *             21.08.2026 – Thomas Schäfer – Rebuilt homepage group cards as a resilient vertical 16:9 media-and-copy layout with contained logo badges and equal-height responsive cards.
 *             21.08.2026 – Thomas Schäfer – Added brand-colour hover frames and news-style read-more cues to the homepage group cards.
 *             21.08.2026 – Thomas Schäfer – Lightened the group hero and homepage banner veils while retaining readable text contrast.
 *             22.08.2026 – Thomas Schäfer – Homepage group heading and lead now share the full section-container width at every breakpoint.
 *             29.08.2026 – Thomas Schäfer – Replaced the broad 0.88 group-hero
 *             blackout with a localized left text scrim and light frame wash.
 *             29.08.2026 – Thomas Schäfer – Group hero uses the shared flat
 *             banner veil; no darker centre or left text scrim.
 */

.group-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Same rhythm as .page-hero--banner: height follows the copy, no forced
     viewport slab and no bottom-aligned text well. */
  padding: clamp(8rem, 14vw, 11rem) 0 clamp(4rem, 8vw, 6rem);
  background-color: var(--bg-primary);
  background:
    var(--photo-hero-veil),
    url("../img/allgemein/cubeone-themenbanner-cube-group.jpg") center 8% / cover no-repeat;
  border-bottom: none;
}

.group-hero::after {
  position: absolute;
  right: clamp(1rem, 5vw, 5rem);
  bottom: clamp(1rem, 4vw, 3rem);
  width: clamp(8rem, 21vw, 17rem);
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: var(--radius-xl);
  content: "";
  transform: rotate(12deg);
  box-shadow:
    inset 0 0 0 1.25rem rgba(8, 8, 8, 0.38),
    inset 0 0 0 1.3rem rgba(249, 115, 22, 0.16);
  pointer-events: none;
}

.group-hero__content {
  position: relative;
  z-index: 1;
  max-width: 52rem;
}

.group-hero__eyebrow,
.group-section__eyebrow,
.group-brand__index {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.group-hero__eyebrow::before,
.group-section__eyebrow::before {
  width: 2.25rem;
  height: 1px;
  background: var(--accent);
  content: "";
}

.group-hero__title {
  max-width: 18ch;
  margin: 0 0 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.75));
}

.group-hero__title span {
  color: var(--accent);
}

.group-hero__lead {
  max-width: 62ch;
  margin: 0;
  color: var(--text-primary);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.6);
}

.group-overview {
  padding: clamp(4rem, 9vw, 8rem) 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(249, 115, 22, 0.08), transparent 26rem),
    var(--bg-primary);
}

.group-section__head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}

.group-section__title {
  max-width: 17ch;
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.group-section__intro {
  max-width: 66ch;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.75;
}

.group-system {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.group-system::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.4rem;
  width: 1px;
  background: linear-gradient(var(--accent), rgba(249, 115, 22, 0.08));
  content: "";
}

.group-brand {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-left: 3.5rem;
  overflow: hidden;
  background: rgba(17, 17, 17, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition:
    border-color var(--transition),
    transform var(--transition);
}

.group-brand--care,
.group-home__brand--care,
.group-article {
  --care-accent: #a11e54;
  --care-accent-glow: rgba(161, 30, 84, 0.22);
}

/* The CUBE HUB lime itself lives as --hub-accent in the :root token block of
   style.css, next to the other brand tokens. */

.group-brand::before {
  position: absolute;
  top: 2rem;
  left: -2.63rem;
  z-index: 2;
  width: 0.72rem;
  aspect-ratio: 1 / 1;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
  border-radius: var(--radius-sm);
  content: "";
  box-shadow: 0 0 0 1px var(--accent);
}

.group-brand:hover,
.group-brand:focus-within {
  border-color: rgba(249, 115, 22, 0.46);
  transform: translateY(-0.2rem);
}

.group-brand--care::before {
  background: var(--care-accent);
  box-shadow: 0 0 0 1px var(--care-accent);
}

.group-brand--care:hover,
.group-brand--care:focus-within {
  border-color: rgba(161, 30, 84, 0.72);
}

.group-brand--hub::before {
  background: var(--hub-accent);
  box-shadow: 0 0 0 1px var(--hub-accent);
}

.group-brand--hub:hover,
.group-brand--hub:focus-within {
  border-color: rgba(180, 197, 17, 0.55);
}

.group-brand__visual {
  position: relative;
  min-height: 15rem;
  overflow: hidden;
}

.group-brand__visual img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.group-brand__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 8, 8, 0.88), transparent 65%);
  content: "";
  pointer-events: none;
}

.group-brand__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.group-brand__index {
  margin-bottom: 1rem;
}

.group-brand__title {
  margin: 0 0 1rem;
  line-height: 1;
}

.group-brand__title-logo {
  display: block;
  width: auto;
  height: clamp(2.25rem, 5vw, 3.25rem);
  max-width: min(100%, 18rem);
  object-fit: contain;
}

.group-brand__thesis {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.group-brand__promises {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.group-brand__promises li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.group-brand__promises li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
  border-radius: var(--radius-sm);
  content: "";
  transform: rotate(45deg);
}

.group-brand--care .group-brand__promises li::before {
  background: var(--care-accent);
}

.group-brand--hub .group-brand__promises li::before {
  background: var(--hub-accent);
}

.group-brand--care .group-brand__index {
  color: var(--care-accent);
}

.group-brand--hub .group-brand__index {
  color: var(--hub-accent);
}

/* The CARE brand button is dark magenta, so it keeps the white label the global
   .btn-primary no longer uses: near-black would only reach 2.7:1 here.
   The fill mirrors the global lit-from-above gradient in the brand hue instead
   of a flat swatch, and --btn-cast pulls the halo under the button from orange
   to magenta. */
.group-brand--care .btn-primary {
  --btn-cast: 122, 20, 63;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--care-accent) 84%, #fff) 0%,
    var(--care-accent) 55%,
    color-mix(in srgb, var(--care-accent) 88%, #000) 100%);
  border-color: var(--care-accent);
  color: #fff;
}

.group-brand--care .btn-primary:hover,
.group-brand--care .btn-primary:focus-visible {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--care-accent) 92%, #fff) 0%,
    #801743 55%,
    color-mix(in srgb, #801743 88%, #000) 100%);
  border-color: #801743;
}

/* The HUB primary button keeps the global near-black label: on the bright
   lime it reaches 10.4:1 (hover tone 8.0:1), well above WCAG AA. */
.group-brand--hub .btn-primary {
  --btn-cast: 140, 154, 13;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--hub-accent) 82%, #fff) 0%,
    var(--hub-accent) 55%,
    color-mix(in srgb, var(--hub-accent) 88%, #000) 100%);
  border-color: var(--hub-accent);
  color: var(--bg-primary);
}

.group-brand--hub .btn-primary:hover,
.group-brand--hub .btn-primary:focus-visible {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--hub-accent) 90%, #fff) 0%,
    #9cad0f 55%,
    color-mix(in srgb, #9cad0f 88%, #000) 100%);
  border-color: #9cad0f;
}

/* The secondary button sits beside a brand-coloured primary, so its hover edge
   follows the same hue. Orange here would pull a third colour into a card that
   is deliberately berry or lime. */
.group-brand--care .btn-secondary {
  --btn-edge: var(--care-accent);
  --btn-edge-glow: var(--care-accent-glow);
}

.group-brand--hub .btn-secondary {
  --btn-edge: var(--hub-accent);
  --btn-edge-glow: var(--hub-accent-glow);
}

.group-brand__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.group-brand__actions .btn {
  min-height: 44px;
}

.group-manifesto {
  padding: clamp(4rem, 9vw, 7rem) 0;
  background:
    linear-gradient(120deg, rgba(249, 115, 22, 0.13), transparent 44%),
    #0c0c0c;
  border-block: 1px solid var(--border);
}

.group-manifesto__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.group-manifesto__quote {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.group-manifesto__copy {
  max-width: 60ch;
  color: var(--text-secondary);
  line-height: 1.8;
}

.group-home {
  --group-home-card-gap: 1rem;
  --group-home-card-padding: 1.25rem;
  --group-home-logo-inset: clamp(0.625rem, 1.4vw, 1rem);
  --group-home-logo-height: clamp(1.375rem, 2.4vw, 2rem);
  padding: clamp(4rem, 9vw, 7rem) 0;
  background:
    var(--photo-band-veil),
    url("../img/allgemein/cubeone-themenbanner-cube-group.jpg") center / cover no-repeat;
  border-block: 1px solid var(--border);
}

.group-home .section-title,
.group-home .section-sub {
  width: 100%;
  max-width: none;
}

.group-home__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: var(--group-home-card-gap);
  align-items: stretch;
  margin-top: 2rem;
}

.group-home__brand {
  --group-home-accent: var(--accent);
  --group-home-glow: var(--accent-glow);
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  min-width: 0;
  height: 100%;
  /* Visible so the brand-colour hover glow can sit outside the cube frame.
     Photos still clip via .group-home__media { overflow: hidden }. */
  overflow: visible;
  color: var(--text-primary);
  text-decoration: none;
  background: rgba(8, 8, 8, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition),
    transform var(--transition);
}

.group-home__brand:hover,
.group-home__brand:focus-visible,
.group-home__brand:focus-within {
  background: rgba(17, 17, 17, 0.94);
  border-color: var(--group-home-accent);
  box-shadow:
    0 0 0 1px var(--group-home-accent),
    0 0 28px var(--group-home-glow);
  transform: translateY(-0.2rem);
}

.group-home__brand--care {
  --group-home-accent: var(--care-accent);
  --group-home-glow: var(--care-accent-glow);
}

.group-home__brand--hub {
  --group-home-accent: var(--hub-accent);
  --group-home-glow: var(--hub-accent-glow);
}

.group-home__media {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
}

.group-home__media > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 400ms ease;
}

.group-home__brand:hover .group-home__media > img,
.group-home__brand:focus-visible .group-home__media > img,
.group-home__brand:focus-within .group-home__media > img {
  transform: scale(1.025);
}

.group-home__logo-frame {
  position: absolute;
  bottom: var(--group-home-logo-inset);
  left: var(--group-home-logo-inset);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 60%;
  padding: 0.5rem 0.75rem;
  overflow: hidden;
  background: rgba(8, 8, 8, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.32);
  transition: border-color var(--transition);
}

.group-home__brand:hover .group-home__logo-frame,
.group-home__brand:focus-visible .group-home__logo-frame,
.group-home__brand:focus-within .group-home__logo-frame {
  border-color: var(--group-home-accent);
}

.group-home__logo-frame > img {
  flex: none;
  display: block;
  width: auto;
  max-width: 100%;
  height: var(--group-home-logo-height);
  max-height: var(--group-home-logo-height);
  object-fit: contain;
}

.group-home__copy {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: var(--group-home-card-padding);
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.55;
  overflow-wrap: normal;
  word-break: normal;
}

.group-home__description {
  display: block;
}

.group-home__brand strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.group-home__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  min-height: 44px;
  margin-top: auto;
  padding-top: 0.75rem;
  color: var(--group-home-accent);
}

.group-home__link svg {
  flex: none;
  transition: transform var(--transition);
}

.group-home__brand:hover .group-home__link svg,
.group-home__brand:focus-visible .group-home__link svg,
.group-home__brand:focus-within .group-home__link svg {
  transform: translateX(0.2rem);
}

.group-home__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 2rem;
  color: var(--accent-light);
  font-weight: 700;
  text-decoration: none;
}

.group-article-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.group-article .back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.group-article .back-link:hover,
.group-article .back-link:focus-visible {
  color: var(--accent);
}

.group-article .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1.5rem 0;
}

.group-article .article-tag {
  padding: 0.3rem 0.7rem;
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: var(--radius-sm);
}

.group-article .article-date {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.group-article-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0 0 1.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(161, 30, 84, 0.38);
  border-radius: var(--radius-md);
}

.group-article-brand img {
  width: clamp(10rem, 34vw, 13rem);
  max-width: 100%;
  height: auto;
}

.group-article .article-body h2 {
  margin: 2.25rem 0 0.8rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  text-align: left;
}

.group-article .article-body p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.group-article .article-body a {
  color: var(--accent-light);
}

.group-article-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.group-article-fact {
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.group-article-fact strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent-light);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.group-article-fact span {
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (min-width: 768px) {
  .group-section__head {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
    align-items: end;
  }

  .group-section__eyebrow {
    grid-column: 1 / -1;
  }

  .group-brand {
    grid-template-columns: minmax(17rem, 0.8fr) minmax(0, 1.2fr);
  }

  .group-brand:nth-child(even) {
    grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.8fr);
  }

  .group-brand:nth-child(even) .group-brand__visual {
    grid-column: 2;
    grid-row: 1;
  }

  .group-brand:nth-child(even) .group-brand__body {
    grid-column: 1;
    grid-row: 1;
  }

  .group-brand__visual img {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }

  .group-brand__visual::after {
    background: linear-gradient(90deg, transparent 58%, rgba(8, 8, 8, 0.78));
  }

  .group-brand:nth-child(even) .group-brand__visual::after {
    background: linear-gradient(-90deg, transparent 58%, rgba(8, 8, 8, 0.78));
  }

  .group-manifesto__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .group-brand,
  .group-home__brand,
  .group-home__link svg,
  .group-home__logo-frame,
  .group-home__media > img {
    transition: none;
  }

  .group-brand:hover,
  .group-brand:focus-within {
    transform: none;
  }

  .group-home__brand:hover,
  .group-home__brand:focus-visible,
  .group-home__brand:focus-within,
  .group-home__brand:hover .group-home__link svg,
  .group-home__brand:focus-visible .group-home__link svg,
  .group-home__brand:focus-within .group-home__link svg,
  .group-home__brand:hover .group-home__media > img,
  .group-home__brand:focus-visible .group-home__media > img,
  .group-home__brand:focus-within .group-home__media > img {
    transform: none;
  }
}
