/* Static project introduction; the existing native blocks remain usable without scripts. */
.lavelal-wk-home-enhanced.lw-sf-home {
  max-width: 1200px;
  margin-inline: auto;
  padding: clamp(16px, 3vw, 44px) clamp(0px, 1.7vw, 24px) clamp(40px, 6vw, 80px);
}
.lw-sf-home.lavelal-wk-home-enhanced .lavelal-wk-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4.5vw, 72px);
  margin: 0 0 clamp(28px, 4vw, 56px);
}
.lw-sf-home .lavelal-wk-hero h1 { max-width: 18ch; margin-bottom: 14px; }
.lw-sf-home .lavelal-wk-hero .lavelal-wk-intro { max-width: 48ch; margin-bottom: 20px; }
.lw-sf-home.lavelal-wk-home-enhanced .lavelal-wk-hero figure img {
  width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; max-height: none;
}
.lw-sf-home .lavelal-wk-hero figcaption { margin: 8px 0 0; font-size: .9rem; line-height: 1.4; }
.lw-sf-home .lw-sf-bilanz { margin: 0 0 clamp(36px, 5vw, 72px); }
.lw-sf-home .lw-sf-bilanz-kopf { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.lw-sf-home .lw-sf-bilanz-kopf h2 { margin: 0; }
.lw-sf-home .lw-sf-bilanz .lavelal-wk-bilanz { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 0; }
.lw-sf-home .lw-sf-bilanz .lavelal-wk-bilanz p { margin: 0; padding: clamp(12px, 1.7vw, 24px); border-radius: 8px; background: #f7f3f9; }
.lw-sf-home .lw-sf-bilanz .lavelal-wk-bilanz strong { display: block; color: #823f7c; font-size: clamp(1.65rem, 2.2vw, 2.2rem); line-height: 1.12; }
.lw-sf-home .lw-sf-bilanz .lavelal-wk-bilanz span { display: block; margin-top: 3px; line-height: 1.3; }
.lw-sf-home .lw-sf-bilanz .lavelal-wk-fineprint { margin: 8px 0 0; line-height: 1.45; }
.lw-sf-home .lw-sf-aktuell {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 30%); gap: clamp(22px, 4vw, 54px);
  align-items: center; padding: clamp(20px, 4vw, 48px); margin: 0;
  color: #29242c; background: #f7f3f9; border-radius: 8px;
}
.lw-sf-home .lw-sf-aktuell p:not(.lavelal-wk-kicker) { max-width: 62ch; }
.lw-sf-home .lw-sf-aktuell img.lw-sf-gewinnerbild { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
@media (max-width: 850px) {
  .lavelal-wk-home-enhanced.lw-sf-home { padding-inline: 0; }
  .lw-sf-home.lavelal-wk-home-enhanced .lavelal-wk-hero { grid-template-columns: 1fr; gap: 18px; }
  .lw-sf-home .lavelal-wk-hero h1 { max-width: 24ch; }
}
@media (max-width: 640px) {
  .lw-sf-home .lw-sf-bilanz .lavelal-wk-bilanz { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lw-sf-home .lw-sf-aktuell { grid-template-columns: 1fr; }
  .lw-sf-home .lw-sf-aktuell { gap: 18px; }
  .lw-sf-home .lw-sf-aktuell .lw-sf-gewinnerbild { max-width: 360px; }
  .lw-sf-home .lavelal-wk-hero .lavelal-wk-actions { align-items: flex-start; gap: 10px; }
  .lw-sf-home .lavelal-wk-hero h1 { font-size: clamp(1.9rem, 8vw, 2.5rem); }
}
@media (max-width: 359px) {
  .lavelal-wk-home-enhanced.lw-sf-home { padding-block-start: 8px; }
  .lw-sf-home .lavelal-wk-hero .lavelal-wk-intro { margin-bottom: 14px; line-height: 1.5; }
}

/* The editorial panels sit inside the page gutter. Full-width bands keep their edges. */
.home .entry-content {
  --lw-home-panel-padding: 32px;
  --lw-home-text-inset: 24px;
  --lw-home-section-gap: 48px;
}
@media (min-width: 768px) {
  .home .entry-content {
    --lw-home-panel-padding: 48px;
    --lw-home-text-inset: 32px;
    --lw-home-section-gap: 64px;
  }
}
@media (min-width: 1024px) {
  .home .entry-content {
    --lw-home-panel-padding: 64px;
    --lw-home-text-inset: 48px;
    --lw-home-section-gap: 80px;
  }
}
.home .entry-content > :is(.lavelal-wk-sf-gold, .lavelal-wk-sf-press):not(.alignfull) {
  border-radius: 8px;
  padding-block: var(--lw-home-panel-padding) !important;
}
/* The saved Gutenberg sections put vertical padding on both the panel and its inner group. */
.home .entry-content > :is(.lavelal-wk-sf-gold, .lavelal-wk-sf-press):not(.alignfull) > .wp-block-group:only-child {
  padding-block: 0 !important;
}
.home .entry-content > .lavelal-wk-sf-gold:not(.alignfull) {
  padding-inline: var(--lw-home-text-inset);
}
.home .entry-content > .lavelal-wk-sf-gold:not(.alignfull) > .wp-block-group:only-child {
  padding-inline: 0 !important;
}
.home .entry-content > .lavelal-wk-sf-gold + .lavelal-wk-sf-gold {
  margin-block-start: var(--lw-home-section-gap);
}
/* Astra resets the last block's margin. Keep the white space outside the EU acknowledgement. */
.home .entry-content:has(> .lavelal-wk-funding:last-child) {
  padding-block-end: var(--lw-home-section-gap);
}
.home .entry-content > .lavelal-wk-funding:last-child {
  margin-block-end: 0;
}

/* Manual topic selection on the homepage; all stories are readable before enhancement. */
.lw-sf-home .lw-sf-themen {
  margin: 0 0 clamp(32px, 5vw, 72px);
}
.lw-sf-home .lw-sf-themen-titel {
  margin: 0 0 clamp(16px, 2vw, 24px);
}
.lw-sf-home .lw-sf-themen-flaeche {
  padding: clamp(18px, 3.6vw, 46px);
  border-radius: 8px;
  background: #f7f3f9;
  color: #29242c;
}
.lw-sf-themen .lw-sf-themen-wahl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 clamp(22px, 3vw, 36px);
  padding: 0 0 clamp(16px, 2vw, 24px);
  border-bottom: 1px solid #ded3e1;
}
.lw-sf-home .lw-sf-themen-wahl a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #b99bbb;
  border-radius: 6px;
  background: #fff;
  color: #683361;
  font-weight: 600;
  line-height: 1.22;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.lw-sf-home .lw-sf-themen-wahl a:hover { background: #eee6f0; }
.lw-sf-home .lw-sf-themen-wahl a[aria-selected="true"] {
  border-color: #823f7c; background: #823f7c; color: #fff;
}
.lw-sf-home .lw-sf-themen-wahl a:focus-visible,
.lw-sf-home .lw-sf-thema:focus-visible {
  outline: 3px solid #62275b;
  outline-offset: 3px;
}
.lw-sf-home .lw-sf-themen .lavelal-wk-highlights,
.lw-sf-home .lw-sf-themen .lavelal-wk-highlights-track {
  display: block;
  margin: 0;
  padding: 0;
}
.lw-sf-home .lw-sf-themen .lw-sf-thema {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .88fr);
  grid-template-areas: "copy bild";
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  margin: 0; padding: 0;
  border: 0; border-radius: 0;
  background: transparent; color: inherit;
  overflow: visible;
  scroll-margin-block-start: calc(16px + var(--wp-admin--admin-bar--height, 0px));
}
.lw-sf-home .lw-sf-themen .lw-sf-thema[hidden] { display: none !important; }
.lw-sf-home .lw-sf-themen:not(.is-ready) .lavelal-wk-highlight.lw-sf-thema {
  margin-top: clamp(24px, 4vw, 48px);
  padding-top: clamp(24px, 4vw, 48px);
  border-top: 1px solid #ded3e1;
}
.lw-sf-home .lw-sf-thema :is(.lw-sf-meldung, .lavelal-wk-highlight-copy) {
  grid-area: copy; min-width: 0; max-width: 61ch; padding: 0;
}
.lw-sf-home .lw-sf-thema :is(.lw-sf-meldung, .lavelal-wk-highlight-copy) :is(h2, h3) {
  color: #29242c;
  font-size: clamp(1.65rem, 2.7vw, 2.4rem);
  letter-spacing: -.025em;
  line-height: 1.16;
  margin: 0 0 16px;
}
.lw-sf-home .lw-sf-thema :is(.lw-sf-meldung, .lavelal-wk-highlight-copy) p {
  color: #29242c;
  margin: 0 0 12px;
}
.lw-sf-home .lw-sf-thema :is(.lw-sf-meldung, .lavelal-wk-highlight-copy) :is(.lavelal-wk-kicker, .lavelal-wk-highlight-kicker) {
  color: #823f7c;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .028em;
}
.lw-sf-home .lw-sf-themen .lw-sf-thema .wp-block-buttons {
  flex-flow: row wrap; align-items: center; margin: 0;
}
.lw-sf-home .lw-sf-themen .lw-sf-thema .wp-block-button { width: auto; margin: 0; }
.lw-sf-home .lw-sf-themen .lw-sf-thema .wp-block-button a.wp-block-button__link,
.lw-sf-home .lw-sf-themen .lw-sf-meldung > a {
  display: inline-flex;
  align-items: center;
  justify-content: start;
  gap: .3em;
  width: auto; min-height: 44px;
  padding: 0; border: 0; border-radius: 0;
  color: #823f7c; background: transparent;
  font: inherit; font-weight: 600; line-height: 1.35;
  text-align: start; text-decoration: underline; text-underline-offset: .18em;
}
.lw-sf-home .lw-sf-themen .lw-sf-thema a:focus-visible {
  outline: 3px solid #62275b;
  outline-offset: 3px;
  box-shadow: none;
}
.lw-sf-home .lw-sf-themen .lw-sf-thema > figure {
  grid-area: bild;
  justify-self: end; align-self: center;
  display: block; position: static;
  width: 100%; min-width: 0; min-height: 0;
  max-width: 410px; aspect-ratio: auto;
}
.lw-sf-home .lw-sf-themen .lw-sf-thema > .lavelal-naturmomente-bild { max-width: 360px; }
.lw-sf-home .lw-sf-themen .lw-sf-thema.lw-briedel-news > figure { max-width: 196px; justify-self: center; }
.lw-sf-home .lw-sf-themen .lw-sf-thema.lavelal-wk-highlight-whatsapp > figure {
  max-width: 218px; padding: 0; justify-self: center; background: transparent;
}
.lw-sf-home .lw-sf-themen .lw-sf-thema > figure > a { display: block; height: auto; }
.lw-sf-home .lw-sf-themen .lw-sf-thema > figure:not(.lavelal-naturmomente-bild) img {
  display: block; position: static;
  width: 100%; height: auto; min-height: 0; max-height: none;
  padding: 8px; border: 1px solid #e1d6df; border-radius: 8px; background: #fff;
  aspect-ratio: auto; object-fit: contain;
}
.lw-sf-home .lw-sf-themen .lw-sf-thema figcaption {
  display: block;
  position: static; inset: auto; margin: 6px 0 0;
  padding: 0; border: 0; background: transparent; color: #554c57;
  font-size: .87rem; line-height: 1.35; text-align: start;
}
@media (max-width: 700px) {
  .lw-sf-home .lw-sf-themen .lw-sf-thema {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "bild";
    gap: 16px;
  }
  .lw-sf-home .lw-sf-themen .lw-sf-thema > figure { max-width: 340px; justify-self: start; }
  .lw-sf-home .lw-sf-themen .lw-sf-thema:is(.lw-briedel-news,.lavelal-wk-highlight-whatsapp) > figure { justify-self: start; }
}
@media (max-width: 490px) {
  .lw-sf-themen .lw-sf-themen-wahl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lw-sf-home .lw-sf-themen-wahl a { padding: 8px 4px; }
  .lw-sf-themen .lw-sf-themen-wahl a:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (forced-colors: active) {
  .lw-sf-home .lw-sf-themen-wahl a[aria-selected="true"] { outline: 2px solid Highlight; outline-offset: -4px; }
}
