/* Startseite: Kopf mit Signalfeld, Filterleiste, Feed, Newsletter. */

/* ---- Hero ---- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--on); --focus: #ffd60a; min-height: calc(100svh - var(--tick) - var(--head) - var(--bar)); display: flex; transition: color 400ms ease; }
.hero[data-r]:not([data-r="alle"]) { --focus: var(--on); }
.hero__ground, .hero__flood { position: absolute; inset: 0; }
.hero__ground { z-index: -2; background: var(--cobalt); }
.hero__flood { background: var(--c); }
.field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding-block: clamp(24px, 3.6vh, 44px); }
.hero__text { grid-column: 1 / span 7; display: flex; flex-direction: column; min-width: 0; }
.field-slot { grid-column: 8 / -1; position: relative; min-height: 360px; }
.hero__kicker { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 400 13px/1.4 var(--mono); letter-spacing: -.03em; }
.hero h1 { margin-top: 16px; font: 600 clamp(40px, min(5.9vw, 9.6vh), 88px)/.98 var(--font); font-stretch: 106%; letter-spacing: -.04em; hyphens: manual; text-wrap: balance; }
.hero__claim { margin-top: 16px; font: 500 clamp(19px, 1.6vw, 24px)/1.25 var(--font); letter-spacing: -.015em; }

/* Aufmacher als feste Fläche: Text steht nie auf Partikeln. */
.lead { margin-top: auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--bg); color: var(--ink); border-radius: var(--r-lg); overflow: hidden; --focus: var(--cobalt); position: relative; }
.hero__text > .hero__claim + .lead { margin-top: clamp(16px, 3vh, 32px); }
.lead__img { display: block; background: var(--c); min-height: 100%; overflow: clip; }
.lead__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.lead { transition: transform 180ms var(--ease); }
.lead__img img { transition: transform var(--m-image) var(--ease); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .lead:hover { transform: translateY(-2px); }
  .lead:hover .lead__img img { transform: scale(1.03); }
}
.lead:hover .lead__title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.lead__body { padding: clamp(14px, 1.6vw, 22px); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; }
.lead__title { font: 600 clamp(20px, 1.85vw, 27px)/1.08 var(--font); letter-spacing: -.022em; hyphens: manual; text-wrap: pretty; }
.lead__title a { text-decoration: none; }
.lead__title a::after { content: ""; position: absolute; inset: 0; }
.lead__teaser { font-size: 15.5px; line-height: 1.4; }
.lead__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; width: 100%; }
.lead__more { position: relative; z-index: 1; font-weight: 500; font-size: 15px; white-space: nowrap; text-decoration: none; }
.lead__more:hover { text-decoration: underline; text-underline-offset: .2em; }

.field-label { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; font: 400 13px/1 var(--mono); letter-spacing: -.03em; }
.field-pause { width: 32px; height: 32px; display: grid; place-items: center; background: var(--on); color: var(--c, var(--cobalt)); border: 0; border-radius: 50%; cursor: pointer; transition: transform 140ms var(--ease); }
.field-pause:hover { transform: scale(1.08); }
.field-pause svg { width: 11px; height: 11px; }
.field-pause[aria-pressed="true"] .i-pause, .field-pause:not([aria-pressed="true"]) .i-play { display: none; }
.hero:not([data-r]) .field-pause, .hero[data-r="alle"] .field-pause { color: var(--cobalt); }
@media (prefers-reduced-motion: reduce) { .field-pause { display: none; } }

/* Ohne Partikel bleibt rechts die Farbfläche mit einem ruhigen Muster aus den Rubrikfarben. */
.no-field .field-slot::before { content: ""; position: absolute; inset: 14% 4%; background:
  linear-gradient(#ff7a3d, #ff7a3d) 0 0 / 100% 3px no-repeat, linear-gradient(#62e1ff, #62e1ff) 0 16.6% / 100% 3px no-repeat,
  linear-gradient(#3df09a, #3df09a) 0 33.3% / 100% 3px no-repeat, linear-gradient(#ffe14d, #ffe14d) 0 50% / 100% 3px no-repeat,
  linear-gradient(#ffa8cc, #ffa8cc) 0 66.6% / 100% 3px no-repeat, linear-gradient(#3af0d6, #3af0d6) 0 83.3% / 100% 3px no-repeat,
  linear-gradient(#b0bfff, #b0bfff) 0 100% / 100% 3px no-repeat; }

@media (max-width: 900px) {
  .field-label { top: 0; bottom: auto; right: 0; }
  .hero .wrap { display: flex; flex-direction: column; padding-block: 16px 20px; }
  .field-slot { order: -1; min-height: 0; height: clamp(190px, 30svh, 300px); }
  .hero__text { flex: 1; }
  .hero h1 { margin-top: 10px; font-size: clamp(36px, 8.6vw, 68px); }
  .lead { margin-top: 18px; }
}
@media (max-width: 560px) {
  .lead { grid-template-columns: 1fr; }
  .lead__img img { aspect-ratio: 16 / 7; }
  .lead__teaser { display: none; }
  .hero__kicker { font-size: 12px; }
  .hero__claim { margin-top: 10px; font-size: 18px; }
  .field-slot { height: 200px; }
}

/* ---- Filterleiste: dasselbe Element am Fuß des ersten Bildschirms und beim Scrollen ---- */
.filter { position: sticky; top: var(--head); z-index: 30; background: var(--ink); --focus: #ffd60a; }
.filter__row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; height: var(--bar); padding-block: 6px; }
.chip { position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-width: 0; padding: 0 10px; border: 0; border-radius: var(--r); background: color-mix(in oklab, #f3ecdf 13%, var(--ink)); color: #f3ecdf; font: 500 14px/1.05 var(--font); font-stretch: 84%; text-align: left; cursor: pointer; overflow: hidden; isolation: isolate; transition: color 160ms ease; }
.chip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c); transform: translateY(calc(100% - 4px)); transition: transform 240ms var(--ease); }
.chip:hover::before, .chip[aria-pressed="true"]::before { transform: none; }
.chip:hover, .chip[aria-pressed="true"] { color: var(--on); }
.chip[data-r="alle"] { --c: #f3ecdf; --on: #0a1040; }
.filter__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #f3ecdf; transform: scaleX(0); transform-origin: 0 50%; }
@media (max-width: 1100px) {
  .filter .wrap { width: 100%; }
  .filter__row { display: flex; overflow-x: auto; scrollbar-width: none; padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
  .filter__row::-webkit-scrollbar { display: none; }
  .chip { flex: none; padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) { .chip::before { transition: none; } }

/* ---- Feed-Kopf ---- */
.feedsec { padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 6vw, 88px); }
.feed-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 24px; margin-bottom: clamp(20px, 3vw, 36px); align-items: start; }
.feed-head__main { grid-column: span 5; display: grid; gap: 12px; justify-items: start; }
.feed-head h2 { font: 600 clamp(38px, 5vw, 76px)/.96 var(--font); font-stretch: 104%; letter-spacing: -.04em; hyphens: auto; text-wrap: balance; }
.feed-head__link { font-weight: 500; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.blick { grid-column: 6 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-content: start; }
.blick__label { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-weight: 600; font-size: 19px; letter-spacing: -.015em; }
.blick__label a { font-weight: 500; font-size: 15px; text-decoration: none; }
.blick__label a:hover { text-decoration: underline; text-underline-offset: .2em; }
.blick__item { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 2px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.blick__item::before { content: ""; width: 14px; height: 14px; margin-top: 3px; background: var(--c); }
.blick__item a { font-weight: 500; line-height: 1.22; letter-spacing: -.012em; text-decoration: none; text-wrap: pretty; }
.blick__item a::after { content: ""; position: absolute; inset: 0; }
.blick__item:hover a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.blick__item .meta { grid-column: 2; }
@media (max-width: 900px) {
  .feed-head__main, .blick { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .blick { grid-template-columns: 1fr; } }

/* ---- Feed ---- */
.feed { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); grid-auto-flow: dense; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fbf7ee; border-radius: var(--r-lg); overflow: hidden; color: var(--ink); will-change: auto; }
.card--ghost { position: absolute; z-index: 0; pointer-events: none; margin: 0; }
.card__media { display: block; min-width: 0; overflow: clip; background: var(--c); aspect-ratio: 3 / 2; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
.card__title { font: 600 var(--t-card)/1.1 var(--font); letter-spacing: -.02em; hyphens: manual; text-wrap: pretty; }
.card__link { text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: 3px solid var(--cobalt); outline-offset: -3px; border-radius: var(--r-lg); }
.card__teaser { font-size: 16px; line-height: 1.4; }
.card .meta { margin-top: auto; }
.card__top { display: flex; }

.card[data-size="xl"] { grid-column: span 8; --t-card: clamp(30px, 3.5vw, 52px); }
.card[data-size="tall"], .card[data-size="side"] { grid-column: span 4; --t-card: clamp(24px, 2.2vw, 32px); }
.card[data-size="m"] { grid-column: span 4; }
.card[data-size="w"] { grid-column: span 6; --t-card: clamp(22px, 2vw, 28px); flex-direction: row; }
.card[data-size="w"] .card__media { flex: 0 0 46%; aspect-ratio: auto; min-height: 220px; }
.card[data-size="s"] { grid-column: span 3; --t-card: 19px; }
.card[data-size="s"] .card__teaser { font-size: 15.5px; }
.card[data-size="full"] { grid-column: 1 / -1; --t-card: clamp(26px, 3vw, 44px); flex-direction: row; }
.card[data-size="full"] .card__media { flex: 0 0 50%; aspect-ratio: auto; }

/* Große Karten stehen ganz in der Rubrikfarbe. Das Bild geht in die Fläche über. */
.card:is([data-size="xl"], [data-size="tall"], [data-size="side"], [data-size="full"]) { background: var(--c); color: var(--on); }
.card:is([data-size="xl"], [data-size="tall"], [data-size="side"], [data-size="full"]) .meta { color: var(--on); }
.card:is([data-size="xl"], [data-size="tall"], [data-size="side"], [data-size="full"]) .tag { background: var(--on); color: var(--c); }
.card:is([data-size="xl"], [data-size="tall"], [data-size="side"]) .card__media img { -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.card[data-size="xl"] .card__media { aspect-ratio: 16 / 8.5; }
.card[data-size="xl"] .card__body { padding: 20px 24px 24px; }
.card[data-size="xl"] .card__teaser { font-size: 18px; max-width: 58ch; }

/* Die Business-Fläche im Feed. */
.promo { padding: clamp(20px, 2.4vw, 32px); background: var(--c); color: var(--on); justify-content: space-between; gap: 18px; }
.card.promo[data-size="s"], .card.promo { grid-column: span 6; }
.card.promo[data-size="full"] { grid-column: 1 / -1; flex-direction: column; }
.promo .tag { background: var(--on); color: var(--c); }
.promo__title { font: 600 clamp(32px, 3.6vw, 54px)/1 var(--font); letter-spacing: -.035em; hyphens: auto; margin-top: 14px; }
.promo p { font-size: 18px; line-height: 1.35; max-width: 42ch; }
.promo .card__link { font-weight: 500; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }

/* Tablet: zwei Spalten, dichtes Auffüllen, keine Löcher. */
@media (max-width: 1100px) and (min-width: 561px) {
  .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card[data-size], .card.promo { grid-column: span 1; }
  .card:is([data-size="xl"], [data-size="w"], [data-size="full"], [data-size="side"]), .card.promo { grid-column: 1 / -1; }
  .card[data-size="w"] .card__media { flex-basis: 42%; }
}
/* Telefon: eine Spalte. Kleine Karten werden dichte Zeilen mit Bild rechts. */
@media (max-width: 560px) {
  .feed { grid-template-columns: minmax(0, 1fr); }
  .card[data-size], .card.promo { grid-column: 1 / -1; }
  .card:is([data-size="w"], [data-size="full"]) { flex-direction: column; }
  .card:is([data-size="w"], [data-size="full"]) .card__media { flex: none; aspect-ratio: 3 / 2; min-height: 0; }
  .card[data-size="s"] { flex-direction: row-reverse; --t-card: 18px; }
  .card[data-size="s"] .card__media { flex: 0 0 34%; aspect-ratio: auto; }
  .card[data-size="s"] .card__teaser { display: none; }
  .card[data-size="xl"] .card__body { padding: 16px; }
  .card[data-size="xl"] .card__teaser { font-size: 16px; }
}

/* Scroll: Bilder setzen sich beim Eintreten. Inhalt bleibt immer sichtbar, nichts wird versteckt. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 561px) {
    .card__media img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .news__big { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .foot__word { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  }
}
@keyframes settle { from { transform: scale(1.09) translateY(-1.5%); } to { transform: none; } }
@keyframes drift { from { transform: translateX(-2.5%); } to { transform: translateX(2.5%); } }
@keyframes rise { from { transform: translateY(28%); } to { transform: none; } }
/* Hover-Zoom bleibt über der Scroll-Animation. */
.card:hover .card__media img { animation: none; }

/* ---- Newsletter ---- */
.news { background: #ffd60a; color: var(--ink); overflow: hidden; padding: clamp(40px, 6vw, 88px) 0; }
.news__label { font: 400 13px/1.4 var(--mono); letter-spacing: -.03em; }
.news__big { margin: 14px 0 0; font: 600 clamp(42px, 8.6vw, 132px)/.92 var(--font); font-stretch: 100%; letter-spacing: -.05em; text-wrap: balance; }
.news__big span { display: block; }
.news__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px 24px; margin-top: clamp(24px, 3vw, 44px); align-items: start; }
.news__row > p { grid-column: span 5; font-size: 20px; line-height: 1.32; }
.news-form { grid-column: 7 / -1; }
.news-form__row { display: flex; gap: 8px; margin-top: 6px; }
.news-form label { font: 400 13px/1.4 var(--mono); letter-spacing: -.03em; }
.news-form input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; background: #fff8d6; border: 1px solid var(--ink); border-radius: var(--r); font-size: 17px; }
.news-form input:focus { outline: 3px solid var(--ink); outline-offset: 1px; }
.news-form .btn { height: 48px; background: var(--ink); color: #f3ecdf; }
.news-form__note { margin-top: 10px; font-size: 15px; }
@media (max-width: 760px) {
  .news__row > p, .news-form { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .news-form__row { flex-direction: column; }
  .news-form input { flex: none; }
  .news-form .btn { width: 100%; }
}
