/* Tops & Flops v2 (inc/tops-flops-v2.php). Liegt ueber den Inline-Styles des Plugins ff-tops-flops,
   daher alles unter body.ff-tf2 (hoehere Spezifitaet), wo das Plugin !important setzt, ebenfalls
   !important. Tokens wie Startseite, Fondsvergleich, Mediathek. Ueberschriften als
   :is(hN,:where([data-ff-hd="N"])), weil inc/heading-dedupe.php doppelte zu <div> macht. */
body.ff-tf2{
  --tf-bg:#00070C; --tf-bg2:#04131D; --tf-bg3:#0A1F2C;
  --tf-fg:#F2F7FA; --tf-muted:#8FA6B4; --tf-muted2:#6E8798;
  --tf-line:rgba(255,255,255,.09); --tf-line2:rgba(255,255,255,.16);
  --tf-coral:#FE4F59; --tf-cta:#D63A44; --tf-cta-h:#C2303A;
  --tf-green:#02D095; --tf-amber:#FFC43D; --tf-red:#FF4D5E;
  --tf-font:"Inter","Segoe UI Variable","Segoe UI",system-ui,-apple-system,Arial,sans-serif;
  background:var(--tf-bg);
}
body.ff-tf2 .site-main{font-family:var(--tf-font)}
body.ff-tf2 .site-main :is(:is(h1,:where([data-ff-hd="1"])),:is(h2,:where([data-ff-hd="2"])),:is(h3,:where([data-ff-hd="3"])),p,a,span,small,li,button,div){font-family:var(--tf-font)!important}

/* Kopf: Theme-Seitentitel als H1, darueber eine Kicker-Zeile */
body.ff-tf2 .page-header{padding-top:130px!important;padding-bottom:0}
@media (max-width:767px){body.ff-tf2 .page-header{padding-top:100px!important}}
body.ff-tf2 .page-header::before{content:"Täglich aktualisiert";display:block;margin-bottom:12px;font-family:var(--tf-font);font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--tf-coral)}
body.ff-tf2 .page-header .entry-title{font-size:clamp(30px,4.2vw,46px)!important;line-height:1.1!important;font-weight:800!important;letter-spacing:-.025em!important;color:var(--tf-fg)!important;text-wrap:balance;max-width:20ch;margin:0 0 14px!important;text-transform:none!important;padding-inline:0!important}
body.ff-tf2 .page-content > p.wp-block-paragraph{color:var(--tf-muted)!important;font-size:17px!important;line-height:1.6!important;max-width:62ch;margin:0 0 32px!important}

/* Rahmen: kein Kasten mehr um alles, die Karten tragen die Flaeche */
body.ff-tf2 .ff-tf-wrap{background:transparent!important;padding:0!important;border-radius:0!important;color:var(--tf-fg)!important;font-family:var(--tf-font)!important;margin-bottom:48px}

/* Zeitraum und Gruppe */
body.ff-tf2 .ff-tf-wrap .ff-tf-periods{justify-content:flex-start!important;gap:6px!important;margin:0 0 24px!important;padding:4px;border:1px solid var(--tf-line2);border-radius:999px;width:max-content;max-width:100%;background:var(--tf-bg2)}
body.ff-tf2 .ff-tf-wrap .ff-tf-period-btn{background:transparent!important;border:0!important;color:var(--tf-muted)!important;font-size:14px!important;font-weight:600!important;line-height:1.2!important;padding:9px 18px!important;border-radius:999px!important;text-decoration:none!important;box-shadow:none!important;min-height:0!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-period-btn:hover{color:var(--tf-fg)!important;background:rgba(255,255,255,.06)!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-period-btn.active{background:var(--tf-fg)!important;color:var(--tf-bg)!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-bucket-switch{gap:8px}
body.ff-tf2 .ff-tf-wrap .ff-tf-bucket-btn{font-size:14px!important;font-weight:600!important;color:var(--tf-muted)!important;border-color:var(--tf-line2)!important;border-radius:10px!important;padding:9px 16px!important;text-decoration:none!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-bucket-btn.active{color:var(--tf-green)!important;border-color:rgba(2,208,149,.5)!important;background:rgba(2,208,149,.08)!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-ak-breadcrumb{text-align:left!important;font-size:14px!important;margin:0 0 16px!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-ak-breadcrumb a{color:var(--tf-green)!important;font-weight:600!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-ak-breadcrumb span{color:var(--tf-muted)!important}

/* Karten der Uebersicht */
body.ff-tf2 .ff-tf-wrap .ff-tf-grid{gap:16px!important;max-width:none!important}
body.ff-tf2 .ff-tf-wrap :is(.ff-tf-card,.ff-tf-af-card,.ff-tf-ak-card){background:var(--tf-bg2)!important;border:1px solid var(--tf-line2)!important;border-radius:18px!important;padding:22px 22px 18px!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-card :is(h3,:where([data-ff-hd="3"])),
body.ff-tf2 .ff-tf-wrap .ff-tf-af-card :is(h3,:where([data-ff-hd="3"])){font-size:18px!important;font-weight:700!important;line-height:1.3!important;letter-spacing:-.01em!important;color:var(--tf-fg)!important;margin:0 0 12px!important;gap:8px!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-tag{font-size:11px!important;font-weight:700!important;letter-spacing:.06em!important;padding:3px 9px!important;color:var(--tf-green)!important;background:rgba(2,208,149,.1)!important;border:1px solid rgba(2,208,149,.35);border-radius:999px!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-currency{font-size:12.5px!important;font-weight:500!important;color:var(--tf-muted2)!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-af-count{font-size:14px!important;color:var(--tf-muted)!important}

/* Zeilen */
body.ff-tf2 .ff-tf-wrap .ff-tf-row{gap:12px!important;padding:10px 6px!important;margin:0 -6px;border-bottom:1px solid var(--tf-line)!important;border-radius:8px}
body.ff-tf2 .ff-tf-wrap .ff-tf-row:last-child{border-bottom:0!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-clickable:hover{background:rgba(255,255,255,.04)!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-rank{width:28px!important;font-size:13px!important;font-weight:600!important;color:var(--tf-muted2)!important;font-variant-numeric:tabular-nums}
body.ff-tf2 .ff-tf-wrap .ff-tf-name{font-size:15px!important;font-weight:500!important;line-height:1.35!important;color:var(--tf-fg)!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-cat{font-size:12.5px!important;color:var(--tf-muted)!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-value{font-size:15px!important;font-weight:700!important;font-variant-numeric:tabular-nums;min-width:76px!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-value.pos,body.ff-tf2 .ff-tf-wrap .ff-tf-ak-value.pos{color:var(--tf-green)!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-value.neg,body.ff-tf2 .ff-tf-wrap .ff-tf-ak-value.neg{color:var(--tf-red)!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-discover{font-size:14px!important;font-weight:600!important;color:var(--tf-green)!important;margin-top:14px!important;text-decoration:none!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-discover:hover{color:#3fe3b0!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-row-compact[data-tooltip]:hover::after{font-family:var(--tf-font);font-weight:600;font-size:13px;background:var(--tf-bg3);border-color:var(--tf-line2)}
body.ff-tf2 .ff-tf-wrap .ff-tf-row-compact[data-tooltip]:hover::before{background:var(--tf-bg3);border-color:var(--tf-line2)}

/* Handy: Namen umbrechen statt abschneiden, dann braucht es den Dreh-Hinweis nicht */
@media (max-width:767px){
  body.ff-tf2 .ff-tf-wrap .ff-tf-name,body.ff-tf2 .ff-tf-wrap .ff-tf-cat{white-space:normal!important;overflow:hidden!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  body.ff-tf2 .ff-tf-wrap .ff-tf-rotate-hint{display:none!important}
  body.ff-tf2 .ff-tf-wrap .ff-tf-row-compact[data-tooltip]:hover::after,body.ff-tf2 .ff-tf-wrap .ff-tf-row-compact[data-tooltip]:hover::before{display:none}
  body.ff-tf2 .ff-tf-wrap :is(.ff-tf-card,.ff-tf-af-card,.ff-tf-ak-card){padding:18px 16px 14px!important}
}

/* Alle Kategorien */
body.ff-tf2 .ff-tf-wrap .ff-tf-ak-heading{text-align:left!important;font-size:22px!important;font-weight:700!important;letter-spacing:-.01em!important;margin:8px 0 16px!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-ak-grid{gap:14px!important;max-width:none!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-ak-name{font-size:16px!important;font-weight:700!important;line-height:1.3!important;color:var(--tf-fg)!important;letter-spacing:-.01em!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-ak-sub{font-size:11.5px!important;font-weight:600!important;letter-spacing:.06em!important;color:var(--tf-muted2)!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-ak-value{font-size:28px!important;font-weight:800!important;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
body.ff-tf2 .ff-tf-wrap .ff-tf-ak-btn{font-size:14px!important;font-weight:600!important;background:transparent!important;border:1px solid var(--tf-line2)!important;border-radius:10px!important;padding:11px 14px!important;color:var(--tf-fg)!important;text-decoration:none!important}
body.ff-tf2 .ff-tf-wrap .ff-tf-ak-btn:hover{border-color:var(--tf-fg)!important;background:rgba(255,255,255,.03)!important}

/* Hinweis auf die Ampel */
body.ff-tf2 .tf2-cta{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:28px;align-items:center;margin:-16px 0 56px;padding:28px;border:1px solid rgba(254,79,89,.35);border-radius:18px;
  background:radial-gradient(600px 260px at 0% 0%,rgba(254,79,89,.12),transparent 70%),var(--tf-bg2);color:var(--tf-fg)}
@media (max-width:820px){body.ff-tf2 .tf2-cta{grid-template-columns:minmax(0,1fr);gap:18px;padding:22px 18px}}
body.ff-tf2 .tf2-lights{display:inline-flex;gap:5px;margin-bottom:10px}
body.ff-tf2 .tf2-lights i{width:10px;height:10px;border-radius:50%}
body.ff-tf2 .tf2-lights .g{background:var(--tf-green)}body.ff-tf2 .tf2-lights .a{background:var(--tf-amber)}body.ff-tf2 .tf2-lights .r{background:var(--tf-red)}
body.ff-tf2 .tf2-cta :is(h2,:where([data-ff-hd="2"])){font-size:clamp(20px,2.2vw,26px)!important;font-weight:800!important;line-height:1.2!important;letter-spacing:-.02em!important;color:var(--tf-fg)!important;margin:0 0 8px!important;text-wrap:balance;text-transform:none!important}
body.ff-tf2 .tf2-cta p{color:var(--tf-muted)!important;font-size:15px!important;line-height:1.55!important;margin:0!important;max-width:58ch}
body.ff-tf2 .tf2-cta-acts{display:grid;gap:10px}
body.ff-tf2 .tf2-cta-acts small{color:var(--tf-muted2);font-size:13px;text-align:center}
body.ff-tf2 .tf2-btn{display:flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;font-weight:700!important;font-size:16px!important;line-height:1.2;padding:14px 20px;text-decoration:none!important;border:1px solid transparent;transition:background .15s,border-color .15s}
body.ff-tf2 .tf2-btn-primary{background:var(--tf-cta);color:#fff!important}
body.ff-tf2 .tf2-btn-primary:hover{background:var(--tf-cta-h)}
body.ff-tf2 .tf2-btn-ghost{background:transparent;color:var(--tf-fg)!important;border-color:var(--tf-line2)}
body.ff-tf2 .tf2-btn-ghost:hover{border-color:var(--tf-fg)}
body.ff-tf2 :is(.ff-tf-wrap,.tf2-cta) :is(a,button):focus-visible{outline:2px solid var(--tf-coral)!important;outline-offset:2px}
@media (prefers-reduced-motion:reduce){body.ff-tf2 .tf2-btn{transition:none}}
