:root {
  --bg-elevated-soft: #0b1220; /* so wie bisher */
}

/* Seite */
html, body {
  height: 100%;
  margin: 0;
}

body {
  /* etwas dunkler, aber nicht schwarz und ohne Cut */
  background: radial-gradient(circle at top, #111827 0, #020617 60%);
  background-repeat: no-repeat;
  background-color: #020617;   /* Fallback / sehr lange Seiten */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Inhalt */
#wrapper {
  flex: 1 0 auto;
}

:root {
  --bg-elevated-soft: #0b1220; /* so wie bisher */
}

/* Seite */
html, body {
  height: 100%;
  margin: 0;
}

body {
  /* etwas dunkler, aber nicht schwarz und ohne Cut */
  background:
    radial-gradient(circle at top, #050816 0, #020617 55%),
    linear-gradient(#020617, #020617);
  background-repeat: no-repeat;
  background-color: #020617;   /* Fallback / sehr lange Seiten */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Inhalt */
#wrapper {
  flex: 1 0 auto;
}

/* GANZ ans Ende deiner globalen CSS, nach allen anderen Files */
#footer-custom {
  margin-top: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
}

/* falls Contao im Footer noch einen Wrapper hat */
#footer-custom .inside,
#footer-custom .mod_article,
#footer-custom .ce_text {
  background: transparent !important;
  border: 0 !important;
}


/* =========================
   GRID (Startseiten-Preview) - 2-SPALTIG
========================= */
.fw-news-grid {
  width: 100%;
  margin: 2.5rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.fw-news-grid__pagination {
  max-width: 1200px;
  margin: 1.5rem auto 0;
}

/* =========================
   NEWS CARD (Startseite - MINIMAL VERKLEINERT)
========================= */
.fw-news-box {
  height: 100%;
  display: flex;
}

.fw-news-box__link {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  border-radius: 1.1rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
  min-height: 220px; /* ← minimal verkleinert (von 260px) */
}

/* =========================
   BILD (PERFEKT GEFÜLLT)
========================= */
.fw-news-box__image {
  flex: 0 0 40%;
  background: #0f172a;
  overflow: hidden;
  border-radius: 1.1rem 0 0 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.fw-news-box__image figure,
.fw-news-box__image .image_container {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.fw-news-box__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* =========================
   CONTENT (Startseite - WEITERE INFOS UNTEN)
========================= */
.fw-news-box__content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.4rem 1.6rem 1.4rem 1.6rem; /* ← etwas weniger Padding */
  color: #e5e7eb;
}

.fw-news-box__title {
  padding-right: 4.2rem;
  margin: 0 0 0.4rem 0;
  font-size: 1.05rem; /* ← minimal kleiner */
  font-weight: 600;
  line-height: 1.35;
  color: #f8fafc;
  flex-shrink: 0;
}

.fw-news-box__text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fw-news-box__teaser {
  margin-top: 0.5rem;
  font-size: 0.88rem; /* ← minimal kleiner */
  line-height: 1.5;
  color: #cbd5f5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.fw-news-box__more {
  margin-top: auto !important;
  flex-shrink: 0 !important;
  padding-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fb7185;
}

.fw-news-box__more span::after {
  content: " →";
}

.fw-news-box__date {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 10;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #f97316;
  color: #111827;
  font-weight: 600;
  font-size: 0.8rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.7);
}

.fw-news-box__date-text {
  letter-spacing: 0.05em;
}

/* Responsive bleibt unverändert */
@media (max-width: 700px) {
  .fw-news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .fw-news-box__content,
  .fw-news-box__date {
    display: none !important;
  }

  .fw-news-box__link {
    display: block;
    position: relative;
    border-radius: 1.1rem;
    overflow: hidden;
    margin: 0 auto;
    min-height: auto; /* responsive behält originale Größe */
  }

  .fw-news-box__image {
    width: 75vw !important;
    height: 50vh !important;
    max-width: 380px !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 1.1rem !important;
  }

  .fw-news-box__image figure,
  .fw-news-box__image .image_container {
    position: absolute !important;
    height: 100% !important;
    width: 100% !important;
  }

  .fw-news-box__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
  }

  .fw-news-box__link:hover .fw-news-box__image {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  }

  .fw-news-box__link:hover .fw-news-box__image img {
    transform: scale(1.05);
  }

  .fw-news-box__image::after {
    content: "Tippen für mehr Infos";
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    text-align: center;
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 700;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 1.5rem 1rem 1rem;
    backdrop-filter: blur(10px);
    border-radius: 0 0 1.1rem 1.1rem;
  }
}

