/* =========================================================================
   Startseiten-Bloecke, 18.09.2026
   [fa_tiktok_karussell] — 9:16-Kachelreihe nach dem Muster transfermarkt
   [fa_news_grid]        — gewichtetes News-Raster
   Laedt nach tokens/global/home, nutzt deren Variablen (--navy, --blue, --r-*).
   ========================================================================= */

/* Sprungmarken aus dem Hero: Platz fuer die klebende Kopfzeile lassen */
.fa-tt, .fa-nw { scroll-margin-top: 96px; }

/* Das Karussell steht dichter an den Nachbarn als die uebrigen Sektionen:
   die SICHTBARE Luecke oben wie unten ist halbiert (Wunsch 18.09.2026).
   Eine Luecke entsteht aus dem Padding beider Nachbarn, halbes Eigenpadding
   allein reicht also nicht. Die negativen Margins holen den Anteil der
   Nachbarn heraus:
     oben   Vorgaenger ist eine .section--tight  -> dessen halbes Padding
     unten  das News-Raster ist eine .section    -> halbes --section-y
   Rechnung Desktop: vorher 54,6+95,6=150 -> 54,6+47,8-27,3=75 px.            */
.fa-tt {
  padding-block: calc(var(--section-y) / 2);
  margin-top: calc(clamp(2.4rem, 4vw, 3.6rem) / -2);
  /* 0.7rem = der nicht kollabierende Block-Margin zum News-Raster;
     ohne ihn blieben unten 11 px zu viel stehen. */
  margin-bottom: calc(var(--section-y) / -2 - 0.7rem);
}

/* ---- gemeinsamer Sektionskopf ------------------------------------------ */
.fa-tt-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.fa-tt-head-txt { max-width: 640px; margin: 0; }
.fa-tt-head-txt h2 { margin: .5rem 0 .8rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.fa-tt-head-txt .lead { margin: 0; }

.fa-tt-kanal {
  display: inline-flex; align-items: center; gap: .5rem; flex: 0 0 auto;
  padding: .6rem 1rem; text-decoration: none; color: var(--navy); font-weight: 700;
  font-size: .9rem; background: #fff; border: 1px solid var(--grey-200);
  border-radius: var(--r-pill, 999px);
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.fa-tt-kanal:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }

/* ---- Karussell --------------------------------------------------------- */
.fa-tt-rail-wrap { position: relative; margin-top: 1.9rem; }

.fa-tt-rail {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-left: 2px; padding: 4px 2px 10px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.fa-tt-rail::-webkit-scrollbar { display: none; }

.fa-tt-card { flex: 0 0 212px; scroll-snap-align: start; position: relative; }
@media (max-width: 560px) { .fa-tt-card { flex-basis: 158px; } }

.fa-tt-thumb {
  display: block; width: 100%; aspect-ratio: 9 / 16; position: relative;
  padding: 0; border: 0; cursor: pointer; overflow: hidden;
  background: var(--navy); border-radius: var(--r-lg, 22px);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fa-tt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fa-tt-card:hover .fa-tt-thumb { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.fa-tt-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(11,27,51,0) 45%, rgba(11,27,51,.55) 100%);
  transition: background .2s ease;
}
.fa-tt-play svg {
  width: 52px; height: 52px; color: #fff;
  background: rgba(11,27,51,.45); border-radius: 50%; padding: 12px;
  backdrop-filter: blur(3px); transition: transform .2s ease, background .2s ease;
}
.fa-tt-card:hover .fa-tt-play svg { transform: scale(1.08); background: var(--blue); }

.fa-tt-kicker {
  position: absolute; left: 12px; bottom: 12px;
  font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: #fff; background: rgba(11,27,51,.55); backdrop-filter: blur(3px);
  padding: .3rem .55rem; border-radius: var(--r-xs, 6px);
}

.fa-tt-brand {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: grid; place-items: center; width: 32px; height: 32px;
  color: #fff; background: rgba(11,27,51,.5); backdrop-filter: blur(3px);
  border-radius: 50%; text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.fa-tt-brand:hover { background: var(--ink); transform: scale(1.08); }

.fa-tt-title { margin: .75rem 0 0; font-size: .95rem; line-height: 1.35; }
.fa-tt-title .fa-tt-open {
  padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  font: inherit; color: var(--navy); font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.fa-tt-card:hover .fa-tt-open { color: var(--blue); }

.fa-tt-nav {
  position: absolute; top: calc(50% - 30px); transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer;
  color: var(--navy); background: #fff; border: 1px solid var(--grey-200);
  border-radius: 50%; box-shadow: var(--shadow-sm);
  transition: color .18s ease, border-color .18s ease;
}
.fa-tt-nav:hover { color: var(--blue); border-color: var(--blue); }
.fa-tt-nav svg { width: 20px; height: 20px; }
.fa-tt-prev { left: -14px; }
.fa-tt-next { right: -14px; }
@media (max-width: 860px) { .fa-tt-nav { display: none; } }

/* ---- Layer ------------------------------------------------------------- */
.fa-tt-layer { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 1.2rem; }
.fa-tt-layer[hidden] { display: none; }
.fa-tt-layer-bg { position: absolute; inset: 0; background: rgba(6,14,28,.82); backdrop-filter: blur(4px); }

.fa-tt-box { position: relative; width: min(420px, 100%); }

.fa-tt-close {
  position: absolute; top: -46px; right: 0; width: 38px; height: 38px;
  display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.14); border: 0; border-radius: 50%;
}
.fa-tt-close:hover { background: rgba(255,255,255,.26); }

.fa-tt-stage { position: relative; border-radius: var(--r-lg, 22px); overflow: hidden; background: #000; }
.fa-tt-video { display: block; width: 100%; aspect-ratio: 9 / 16; background: #000; }
.fa-tt-brand-lg { top: 12px; right: 12px; width: 38px; height: 38px; }

.fa-tt-end {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem;
  background: rgba(6,14,28,.78); backdrop-filter: blur(3px); padding: 1.4rem;
}
.fa-tt-end[hidden] { display: none; }
.fa-tt-end-t { margin: 0 0 .2rem; color: #fff; font-weight: 700; font-size: 1.05rem; }

.fa-tt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-width: 210px; padding: .7rem 1.1rem; cursor: pointer;
  font: inherit; font-size: .92rem; font-weight: 700; text-decoration: none;
  color: var(--navy); background: #fff; border: 1px solid transparent;
  border-radius: var(--r-pill, 999px);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.fa-tt-btn:hover { transform: translateY(-1px); }
.fa-tt-btn.is-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.fa-tt-btn.is-ghost:hover { background: rgba(255,255,255,.14); }
.fa-tt-end-next[hidden] { display: none; }

.fa-tt-meta { display: flex; align-items: center; gap: 1rem; margin-top: .9rem; }
.fa-tt-meta-t { margin: 0; color: #fff; font-size: .95rem; font-weight: 600; line-height: 1.4; }
.fa-tt-meta-tt {
  margin-left: auto; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: .4rem;
  color: #fff; opacity: .78; font-size: .85rem; font-weight: 700; text-decoration: none;
  white-space: nowrap;
}
.fa-tt-meta-tt:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 480px) {
  .fa-tt-meta { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .fa-tt-meta-tt { margin-left: 0; }
}

/* =========================================================================
   News-Raster
   ========================================================================= */
.fa-nw-dot {
  display: inline-block; width: 7px; height: 7px; margin-right: .45rem;
  background: var(--coral); border-radius: 50%; vertical-align: middle;
  animation: fa-nw-puls 2.2s ease-in-out infinite;
}
@keyframes fa-nw-puls { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .fa-nw-dot { animation: none; } }

.fa-nw-grid {
  display: grid; gap: 1.1rem; margin-top: 1.9rem;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-areas: "lead a b" "lead c c";
}
.fa-nw-grid .is-lead { grid-area: lead; }
.fa-nw-grid .is-klein:nth-of-type(2) { grid-area: a; }
.fa-nw-grid .is-klein:nth-of-type(3) { grid-area: b; }
.fa-nw-grid .is-klein:nth-of-type(4) { grid-area: c; flex-direction: row; }
.fa-nw-grid .is-klein:nth-of-type(4) .fa-nw-thumb { flex: 0 0 38%; aspect-ratio: 16 / 10; }

@media (max-width: 900px) {
  .fa-nw-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "lead lead" "a b" "c c"; }
}
@media (max-width: 620px) {
  .fa-nw-grid { grid-template-columns: 1fr; grid-template-areas: "lead" "a" "b" "c"; }
  .fa-nw-grid .is-klein { flex-direction: row; }
  .fa-nw-grid .is-klein .fa-nw-thumb { flex: 0 0 38%; aspect-ratio: 16 / 10; }
}

.fa-nw-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--grey-200); border-radius: var(--r-lg, 22px);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.fa-nw-card:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.fa-nw-thumb { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--grey-050); }
.fa-nw-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.fa-nw-card:hover .fa-nw-thumb img { transform: scale(1.04); }
.fa-nw-body { display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.15rem 1.2rem; min-width: 0; }

.fa-nw-zeit {
  font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue);
}
.fa-nw-title { font-weight: 700; color: var(--navy); line-height: 1.32; }
.fa-nw-card:hover .fa-nw-title { color: var(--blue); }
.fa-nw-text { font-size: .88rem; color: var(--ink); opacity: .64; line-height: 1.45; }

.fa-nw-card.is-lead .fa-nw-thumb { aspect-ratio: 16 / 10; }
.fa-nw-card.is-lead .fa-nw-title { font-size: clamp(1.15rem, 1.9vw, 1.45rem); }
.fa-nw-card.is-klein .fa-nw-title { font-size: .98rem; }

/* Textzeilen */
.fa-nw-liste { list-style: none; margin: 1.1rem 0 0; padding: 0; border-top: 1px solid var(--grey-200); }
.fa-nw-liste li { border-bottom: 1px solid var(--grey-200); }
.fa-nw-liste a {
  display: flex; align-items: baseline; gap: .9rem;
  padding: .82rem .2rem; text-decoration: none; color: var(--navy);
}
.fa-nw-liste a:hover { color: var(--blue); }
.fa-nw-liste .fa-nw-zeit { flex: 0 0 auto; min-width: 92px; color: var(--muted); }
.fa-nw-liste a:hover .fa-nw-zeit { color: var(--blue); }
.fa-nw-lt { font-weight: 600; line-height: 1.4; }
@media (max-width: 560px) {
  .fa-nw-liste a { flex-direction: column; gap: .2rem; }
  .fa-nw-liste .fa-nw-zeit { min-width: 0; }
}
