
/* ==========================================================================
   Schlepperfreunde Schwitten 2.14.1
   Visueller Feinschliff nach Desktop-/Mobilprüfung
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. AKTUELLES
   Die Kategorie ist eine kleine Kennzeichnung – nicht das Hauptmotiv.
   Der alte Fallback-Selektor war spezifischer und machte auch das Badge
   riesig. Dieser Block trennt Icon und Badge eindeutig.
   -------------------------------------------------------------------------- */

.sf2120-news-image.is-fallback {
  display: grid;
  place-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 38%, rgba(224,190,105,.16), transparent 34%),
    linear-gradient(135deg, #294b3a 0%, #17392c 100%);
}

/* Nur das eigentliche große Fallback-Icon. */
.sf2120-news-image.is-fallback > span:not(.sf2120-news-type) {
  position: static;
  z-index: 1;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1;
  opacity: .88;
  filter: saturate(.82);
  transform: translateY(-5px);
}

/* Kategorie-Badge: bewusst klein, ruhig und kompakt. */
.sf2120-news-image > .sf2120-news-type,
.sf2120-news-image.is-fallback > .sf2120-news-type {
  position: absolute;
  z-index: 3;
  left: 14px;
  right: auto;
  bottom: 13px;
  width: auto;
  max-width: calc(100% - 28px);
  min-height: 28px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 39, 28, .92);
  border: 1px solid rgba(229, 190, 91, .36);
  color: #efd075;
  font-family: inherit;
  font-size: 9px !important;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  opacity: 1 !important;
  box-sizing: border-box;
  transform: none;
}

.sf2120-news-type-icon {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1;
}

.sf2120-news-type-label {
  min-width: 0;
  font-size: inherit;
  line-height: inherit;
  white-space: nowrap;
}

/* Etwas kompaktere Bildhöhe lässt ältere Beiträge weniger klobig wirken. */
.sf2120-news-grid:not(:has(.sf2120-news-card.is-large)) .sf2120-news-image {
  height: clamp(190px, 18vw, 225px);
}

/* Das Intro rechts oben soll optisch zum Raster gehören. */
.sf2120-news-magazine > header p {
  max-width: 470px;
  justify-self: end;
  font-size: 13px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   2. TERMIN – ANMELDUNG GESCHLOSSEN
   Eine spätere alte CSS-Regel hatte die geschlossene Box wieder in zwei
   Spalten gezwungen. Dadurch stand der Titel in einer extrem schmalen Spalte.
   -------------------------------------------------------------------------- */

.event-registration.event-registration-closed {
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center;
  align-items: center;
  min-height: 330px;
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}

.event-registration.event-registration-closed > div:first-child {
  width: min(100%, 900px);
  max-width: 900px !important;
  margin: 0 auto;
}

.event-registration.event-registration-closed .section-kicker {
  margin-left: auto;
  margin-right: auto;
}

.event-registration.event-registration-closed h2 {
  width: 100%;
  max-width: none;
  margin: 8px auto 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -.025em;
  text-align: center;
  white-space: normal;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.event-registration.event-registration-closed h2 em {
  display: inline;
}

.event-registration.event-registration-closed > div:first-child > p:last-child {
  max-width: 650px;
  margin: 22px auto 0;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

/* --------------------------------------------------------------------------
   3. GÄSTEBUCH / KOMMENTAR CTA
   Text + Button sind jetzt als bewusster Mittelblock angeordnet und stehen
   nicht mehr verloren ganz links auf einer breiten Fahrzeugseite.
   -------------------------------------------------------------------------- */

.sf-community-cta-2116 {
  width: min(1100px, calc(100% - 44px));
  margin: 34px auto !important;
  padding: clamp(24px, 3.5vw, 38px);
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  justify-content: center;
  gap: 17px;
  text-align: center;
  box-sizing: border-box;
}

.sf-community-cta-2116 > div {
  width: min(100%, 760px);
  margin: 0 auto;
}

.sf-community-cta-2116 span {
  text-align: center;
}

.sf-community-cta-2116 strong {
  max-width: 760px;
  margin: 4px auto 0;
  text-align: center;
}

.sf-community-cta-2116 p {
  max-width: 680px;
  margin: 8px auto 0;
  text-align: center;
  line-height: 1.65;
}

.sf-community-cta-2116 .button {
  width: auto;
  min-width: 220px;
  margin: 0 auto;
  justify-content: center;
  text-align: center;
}

/* --------------------------------------------------------------------------
   4. Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 950px) {
  .sf2120-news-magazine > header p {
    justify-self: start;
    max-width: 720px;
  }

  .event-registration.event-registration-closed {
    min-height: 280px;
    padding: 42px 28px;
  }

  .event-registration.event-registration-closed h2 {
    font-size: clamp(38px, 7vw, 56px);
  }
}

/* --------------------------------------------------------------------------
   5. Smartphone
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
  .sf2120-news-image.is-fallback > span:not(.sf2120-news-type) {
    font-size: 38px;
    transform: translateY(-3px);
  }

  .sf2120-news-image > .sf2120-news-type,
  .sf2120-news-image.is-fallback > .sf2120-news-type {
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    min-height: 27px;
    padding: 6px 8px;
    gap: 5px;
    font-size: 8px !important;
    letter-spacing: .055em;
  }

  .sf2120-news-type-icon {
    font-size: 11px;
  }

  .sf2120-news-type-label {
    white-space: normal;
    overflow-wrap: break-word;
  }

  .event-registration.event-registration-closed {
    min-height: 245px;
    padding: 34px 18px;
  }

  .event-registration.event-registration-closed h2 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.04;
  }

  .event-registration.event-registration-closed h2 em {
    display: block;
    margin-top: 3px;
  }

  .event-registration.event-registration-closed > div:first-child > p:last-child {
    margin-top: 17px;
    font-size: 13px;
  }

  .sf-community-cta-2116 {
    width: calc(100% - 20px);
    margin: 20px auto !important;
    padding: 22px 16px;
    gap: 14px;
  }

  .sf-community-cta-2116 strong {
    font-size: clamp(20px, 6vw, 24px);
  }

  .sf-community-cta-2116 p {
    font-size: 12px;
  }

  .sf-community-cta-2116 .button {
    width: 100%;
    min-width: 0;
  }
}

/* --------------------------------------------------------------------------
   6. Sehr kleine Smartphones
   -------------------------------------------------------------------------- */
@media (max-width: 390px) {
  .event-registration.event-registration-closed h2 {
    font-size: 34px;
  }

  .sf2120-news-image > .sf2120-news-type,
  .sf2120-news-image.is-fallback > .sf2120-news-type {
    font-size: 7.5px !important;
  }
}
