/* Startseite: Einstieg, Organisationsbeiträge, Veranstaltungsausblick und animierte Partnerlogos.
   Bei mehrfach definierten Selektoren gilt die CSS-Kaskade: spätere bzw. spezifischere Regeln können frühere überschreiben. */
.home-hero {
  padding: 3rem 0 1.5rem;
}

/* Organisation posts and the preview of events after the Welcome Weeks. */
.community-section {
  padding-top: 2rem;
}
.outlook-section {
  padding: 3rem 0 4rem;
}
.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.6rem;
}
.home-section-kicker {
  color: #c4b5fd;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.home-section-heading h2 {
  margin: 0.6rem 0 0;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.home-section-heading > p {
  max-width: 35ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}
/* Organisationsbeiträge auf der Startseite: Raster und Beitragskarten. */
.community-grid {
  display: grid;
  gap: 0.85rem;
}
.community-card {
  display: grid;
  grid-template-rows: 225px minmax(0, 1fr);
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.19);
  border-radius: 20px;
  background: #101018;
}
.community-media,
.outlook-poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: #b3a8c9;
  background: #191724;
  font-size: 0.75rem;
  letter-spacing: 0.035em;
}
.community-media {
  width: 100%;
  height: 225px;
  min-height: 225px;
  overflow: hidden;
  padding: 0;
  border-right: 0;
  border-bottom: 1px solid var(--border);
}
.community-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.media-tone-2,
.media-tone-1,
.media-tone-0 {
  background: #191724;
}
.placeholder-image-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px dashed rgba(196, 181, 253, 0.35);
  border-radius: 12px;
  font-size: 1.4rem;
  font-weight: 300;
}
.community-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  padding: 1.15rem 1.35rem;
}
.community-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.organisation-avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.1);
  color: #c4b5fd;
}
.placeholder-label {
  display: inline-block;
  width: fit-content;
  padding: 0.25rem 0.45rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: var(--faint);
  font-size: 0.65rem;
  font-weight: 400;
}
.community-byline .placeholder-label {
  margin-left: auto;
}
.community-category {
  margin-top: 0.85rem;
  color: #c4b5fd;
  font-size: 0.75rem;
}
.community-content h3,
.outlook-content h3 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.community-content p,
.outlook-content p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.community-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.25rem;
  color: #b4afc2;
  font-size: 0.8rem;
}
.community-content .community-facts {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}
.community-facts span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.community-facts svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: #a78bfa;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.community-card-text {
  background: #101018;
}
/* Ausblick auf kommende Veranstaltungen: Anordnung der Vorschaukarten. */
.outlook-list {
  display: grid;
  gap: 1rem;
}
.outlook-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: stretch;
  gap: 1.25rem;
  min-height: 275px;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.19);
  border-radius: 20px;
  background: #101018;
}
.outlook-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  padding: 1rem;
  color: #c4b5fd;
  border-right: 1px solid rgba(167, 139, 250, 0.22);
}
.outlook-date strong {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
}
.outlook-date span {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}
.outlook-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;

  /*
   * Nur einen Teil des Bildbereichs reservieren.
   * Dadurch darf das Bild optisch unter den rechten Textbereich laufen.
   */
  padding: 0.25rem 210px 0.25rem 0;
}
.outlook-content p {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
}
.outlook-poster {
  position: absolute;
  top: 0.45rem;
  right: 1rem;
  bottom: 0.45rem;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  width: 460px;

  overflow: hidden;

  border: 0;
  border-radius: 0;
  background: transparent;

  line-height: 0;
}

.outlook-poster img {
  display: block;

  width: auto;
  max-width: none;
  height: 100%;

  object-fit: contain;
  object-position: right center;

  border: 0;
  border-radius: 0;
  background: transparent;

  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    transparent 32%,
    rgba(0, 0, 0, 0.16) 42%,
    rgba(0, 0, 0, 0.55) 56%,
    #000 72%,
    #000 100%
  );

  mask-image: linear-gradient(
    to right,
    transparent 0%,
    transparent 32%,
    rgba(0, 0, 0, 0.16) 42%,
    rgba(0, 0, 0, 0.55) 56%,
    #000 72%,
    #000 100%
  );
}

.outlook-actions {
  display: flex;
  margin-top: 1rem;
}

.outlook-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.55rem 0.75rem;

  border: 1px solid rgba(196, 181, 253, 0.38);
  border-radius: 9px;

  background: #211c30;
  color: #ddd6fe;

  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;

  box-shadow: none;

  transition:
    transform 0.2s var(--ee),
    background 0.2s var(--ee),
    border-color 0.2s var(--ee),
    box-shadow 0.2s var(--ee);
}

.outlook-link-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Bildschirmabhängige Anpassungen: gelten nur bei der folgenden Breite bzw. Systemeinstellung. */
@media (max-width: 900px) {
  .home-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 0.8rem;
  }
  .home-section-heading > p {
    max-width: 60ch;
  }
  .community-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .outlook-card {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 1rem;
  }
  .outlook-content {
    padding-right: 210px;
  }
  .outlook-poster {
    right: 1rem;
    width: 190px;
  }
}
/* Bildschirmabhängige Anpassungen: gelten nur bei der folgenden Breite bzw. Systemeinstellung. */
@media (max-width: 640px) {
  .community-section {
    padding-top: 1.5rem;
  }
  .outlook-section {
    padding: 2rem 0 2.5rem;
  }
  .community-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .community-media {
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .community-content {
    padding: 1.2rem;
  }
  .outlook-card {
    grid-template-columns: 60px minmax(0, 1fr);
    min-height: 0;
    padding: 1rem;
    align-items: start;
  }
  .outlook-content {
    padding-right: 0;
  }
  .outlook-poster {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    grid-column: 1 / -1;
    width: 100%;
    min-height: 150px;
    margin-top: 0.75rem;
    justify-content: center;
  }
  .outlook-poster img {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
    object-position: center;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .outlook-date strong {
    font-size: 2rem;
  }
  .outlook-content h3 {
    font-size: 1.2rem;
  }
  .outlook-content .community-facts {
    flex-direction: column;
  }
}

.home-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  min-height: 390px;
}

.home-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
}

.home-hero-content h1 {
  max-width: 15ch;
  margin: 0.8rem 0 1rem;
  color: var(--text);
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.home-hero-content .lead {
  max-width: 58ch;
}

.hero-actions {
  gap: 0.75rem;
  margin-top: 1.65rem;
}

.hero-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0.65rem 1rem;
  border: 1px solid #8c52ff;
  border-radius: 10px;
  background: #8c52ff;
  color: #ffffff;
  font-weight: 700;
  box-shadow:
    0 12px 24px rgba(140, 82, 255, 0.28),
    0 0 24px rgba(140, 82, 255, 0.14);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.hero-actions .btn-primary:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: #8c52ff;
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(140, 82, 255, 0.26),
    0 0 30px rgba(140, 82, 255, 0.18);
}

.hero-actions .btn-primary:focus-visible {
  outline: 3px solid rgba(140, 82, 255, 0.75);
  outline-offset: 3px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 2rem;
}

/* Partner der Erstiwochen */
/* Partnerlogos: sichtbarer Bereich der automatisch laufenden Logoleiste. */
.partners-section {
  padding: 2.5rem 0 1rem;
}

.partners-heading {
  max-width: 700px;
  margin-bottom: 1.25rem;
}

.partners-heading h2 {
  margin: 0.55rem 0 0.45rem;
  color: var(--text);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.partners-heading p {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.partners-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.35rem 0;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.partners-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: partners-scroll var(--partners-duration, 14s) linear infinite;
}

.partners-logo-set {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 2.25rem;
  padding-right: 2.25rem;
}

.partner-logo {
  display: block;
  width: 150px;
  height: 150px;
  flex: 0 0 150px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  line-height: 0;
  opacity: 0.72;
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    filter 0.2s ease;
}

.partner-logo:hover,
.partner-logo:focus-visible {
  opacity: 1;
  filter: brightness(1.15);
}

.partner-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.partner-logo:focus-visible {
  outline: 2px solid #8c52ff;
  outline-offset: 5px;
}

@keyframes partners-scroll {
  to {
    transform: translateX(calc(-1 * var(--partners-set-width, 50%)));
  }
}

/* Bildschirmabhängige Anpassungen: gelten nur bei der folgenden Breite bzw. Systemeinstellung. */
@media (max-width: 640px) {
  .partners-section {
    padding: 2rem 0 0.75rem;
  }

  .partners-heading {
    margin-bottom: 1rem;
  }

  .partners-heading h2 {
    font-size: clamp(1.6rem, 9vw, 2.2rem);
  }

  .partner-logo {
    width: 110px;
    height: 110px;
    flex-basis: 110px;
  }

  .partners-logo-set {
    gap: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Bildschirmabhängige Anpassungen: gelten nur bei der folgenden Breite bzw. Systemeinstellung. */
@media (max-width: 900px) {
  .home-hero-card {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 280px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* Bildschirmabhängige Anpassungen: gelten nur bei der folgenden Breite bzw. Systemeinstellung. */
@media (max-width: 640px) {
  .home-hero {
    padding: 1.8rem 0 1rem;
  }

  .home-hero-content {
    padding: 1.5rem;
  }

  .home-hero-content h1 {
    max-width: none;
    font-size: clamp(2.15rem, 11vw, 3rem);
  }

  .hero-actions .btn-primary {
    width: 100%;
  }

  .hero-visual {
    min-height: 230px;
  }
}
