/* funktionen.css · /iptv-player-funktionen/ (24.10.2026). Nur Tokens aus qora.css.
   STATUS: Jede Funktion, jeder Abschnitt, jede Sprungmarke und jede FAQ-Frage traegt data-status="live" oder "kommt".
   "kommt" ist ausgeblendet. Zum Freischalten im Generator data-status="kommt" auf "live" setzen.
   Vorschau mit allen kommenden Funktionen: Seite mit ?kommt=1 aufrufen. */
html { scroll-padding-top: 150px; }
html:not(.zeige-kommt) [data-status="kommt"] { display: none !important; }
.fn-seite { min-width: 0; display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
.fn-seite h1, .fn-seite h2, .fn-seite h3, .fn-seite p { margin: 0; }
.fn-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.rg-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--panel-2); color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; text-align: center; transition: background-color 150ms ease-out; }
.rg-knopf:hover { background: #383838; color: var(--text); }
.rg-knopf--akzent { background: var(--akzent); color: var(--bg); font-weight: 700; }
.rg-knopf--akzent:hover { background: var(--akzent-hover); color: var(--bg); }
.rg-knopf--leise { background: transparent; box-shadow: inset 0 0 0 1px var(--panel-2); }
.rg-knopf--leise:hover { background: var(--panel-2); }
@media (max-width: 560px) { .rg-knoepfe .rg-knopf { flex: 1 1 100%; } }

/* Kopf */
.fn-kopf { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "titel probleme" "lead probleme" "aktionen probleme" "hinweis probleme"; gap: 22px clamp(40px, 6vw, 96px); align-items: start; }
.fn-titel { grid-area: titel; font-size: clamp(34px, 4.6vw, 60px); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.fn-probleme { grid-area: probleme; align-self: center; list-style: none; padding: 4px clamp(20px, 2.4vw, 28px); background: var(--panel); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--schatten); }
.fn-probleme li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 0; border-top: 1px solid var(--border); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; font-weight: 500; color: var(--text); text-wrap: pretty; }
.fn-probleme li:first-child { border-top: 0; }
.fn-probleme li::before { content: ""; width: 8px; height: 8px; margin-top: 0.55em; border-radius: 50%; background: var(--akzent); }
.fn-lead { grid-area: lead; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--text-muted); max-width: 58ch; text-wrap: pretty; }
.fn-lead strong { color: var(--text); font-weight: 600; }
.fn-kopf .rg-knoepfe { grid-area: aktionen; padding-top: 4px; }
.fn-hinweis { grid-area: hinweis; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.fn-hinweis strong { color: var(--text); font-weight: 600; }
@media (max-width: 980px) {
  .fn-kopf { grid-template-columns: minmax(0, 1fr); grid-template-areas: "titel" "probleme" "lead" "aktionen" "hinweis"; }
  .fn-probleme { align-self: stretch; box-shadow: none; }
  .fn-probleme li { padding: 16px 0; }
}

/* Problem-Navigator */
.fn-nav { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 90px; }
.fn-nav__liste { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.fn-nav__liste > li { flex: 1 1 calc(25% - 9px); min-width: 0; display: flex; }
@media (max-width: 1000px) { .fn-nav__liste > li { flex-basis: calc(50% - 6px); } }
.fn-nav__kachel { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 104px; padding: 18px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: background-color 150ms ease-out, border-color 150ms ease-out; }
.fn-nav__kachel:hover { background: var(--panel-2); color: var(--text); }
.fn-nav__problem { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.fn-nav__ziel { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-muted); }
.fn-nav__ziel svg { width: 14px; height: 14px; flex: none; color: var(--akzent); }
@media (max-width: 420px) { .fn-nav__kachel { padding: 14px 14px 16px; min-height: 96px; } .fn-nav__problem { font-size: 15.5px; } .fn-nav__ziel { font-size: 13px; } }

/* Klebende Leiste */
.fn-funktionen { display: flex; flex-direction: column; }
.fn-leiste { position: sticky; top: 70px; z-index: 20; margin: 0 calc(var(--pad-seite) * -1) -64px; padding: 10px var(--pad-seite); background: var(--bg); box-shadow: 0 1px 0 var(--border); transition: opacity 150ms ease-out, visibility 150ms; }
.fn-leiste.ist-versteckt { opacity: 0; visibility: hidden; }
.fn-leiste ul { list-style: none; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.fn-leiste ul::-webkit-scrollbar { display: none; }
.fn-leiste.ist-ueberlauf ul { margin: 0 -16px; padding: 0 16px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%); }
.fn-leiste li { flex: none; }
.fn-leiste a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--panel); color: var(--text-muted); font-size: 14.5px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background-color 150ms ease-out, color 150ms ease-out; }
.fn-leiste a:hover { background: var(--panel-2); color: var(--text); }
.fn-leiste a[aria-current="true"] { background: var(--text); color: var(--bg); }
.fn-leiste a:focus-visible { outline-offset: -3px; }

/* Abschnitte */
.fn-abschnitte { counter-reset: fn-nr; display: flex; flex-direction: column; }
.fn-abschnitt { counter-increment: fn-nr; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(32px, 5vw, 80px); padding-top: clamp(64px, 8vw, 112px); scroll-margin-top: 80px; }
.fn-abschnitt__kopf { position: sticky; top: 170px; align-self: start; display: flex; flex-direction: column; gap: 18px; }
.fn-problem-label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.fn-problem-label::before { content: counter(fn-nr, decimal-leading-zero); color: var(--akzent); font-variant-numeric: tabular-nums; }
.fn-problem { font-size: clamp(24px, 2.5vw, 34px); font-weight: 700; line-height: 1.2; letter-spacing: -0.022em; color: var(--text); text-wrap: pretty; }
.fn-h2 { padding-top: 18px; border-top: 1px solid var(--border); font-size: clamp(18px, 1.5vw, 21px); font-weight: 600; line-height: 1.4; color: var(--text-muted); text-wrap: balance; }
@media (max-width: 980px) {
  .fn-abschnitt { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .fn-abschnitt__kopf { position: static; gap: 14px; }
}

/* Funktionskarten */
.fn-karten { display: flex; flex-wrap: wrap; gap: 12px; align-content: start; min-width: 0; }
.fn-karte { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 2.2vw, 26px); background: var(--panel); border: 1px solid var(--border); border-radius: 16px; }
.fn-karte h3 { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.012em; text-wrap: balance; }
.fn-karte p { font-size: 16px; line-height: 1.6; color: var(--text-muted); max-width: 62ch; text-wrap: pretty; }
.fn-karte p strong { color: var(--text); font-weight: 600; }
.fn-karte--gross { flex-basis: 100%; gap: 22px; box-shadow: var(--schatten); }
.fn-karte--gross h3 { font-size: clamp(21px, 2vw, 25px); letter-spacing: -0.018em; }
.fn-karte--handy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 210px); align-items: center; gap: 24px clamp(20px, 3vw, 44px); }
@media (max-width: 560px) { .fn-karte--handy { grid-template-columns: minmax(0, 1fr); } }
.fn-karte__text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fn-tarife { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.fn-tarif { display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.2; }
.fn-tarif--gratis { background: var(--panel-2); color: var(--text); }
/* Ultra-Pille umrandet statt gefuellt: seit dem Umbau auf Gratis + Ultra steht sie auf vielen Karten. */
.fn-tarif--ultra { box-shadow: inset 0 0 0 1px var(--akzent); color: var(--akzent); }
.fn-weiter { flex-basis: 100%; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 6px; font-size: 15.5px; line-height: 1.45; color: var(--text-muted); text-decoration: none; }
.fn-weiter svg { width: 16px; height: 16px; flex: none; color: var(--akzent); }
.fn-weiter:hover { color: var(--text); }
.fn-mehr { flex-basis: 100%; padding: 16px 20px; border-radius: 14px; border: 1px solid var(--border); font-size: 15.5px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }
.fn-mehr a { font-weight: 600; text-underline-offset: 2px; }

/* Screenshot-Platzhalter: <img> in .fn-shot__flaeche setzen, Marke entfernen */
.fn-shot { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fn-shot__flaeche { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background-color: var(--bg); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 10px, transparent 10px 20px); border: 1px dashed rgba(255,255,255,0.2); }
.fn-shot--handy .fn-shot__flaeche { aspect-ratio: 9 / 19; max-width: 210px; margin: 0 auto; border-radius: 28px; border: 6px solid var(--panel-2); }
.fn-shot__flaeche img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fn-shot__marke { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 12px; background: var(--panel); text-align: center; }
.fn-shot__marke span { font-size: 13px; font-weight: 600; color: var(--text); }
.fn-shot__marke code { font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; font-size: 12px; color: var(--text-muted); }
.fn-shot figcaption { font-size: 14px; line-height: 1.45; color: var(--text-muted); text-wrap: pretty; }
.fn-shot--handy figcaption { text-align: center; }

/* Preise */
.fn-preis { padding-top: clamp(72px, 9vw, 128px); display: flex; flex-direction: column; gap: 28px; scroll-margin-top: 80px; }
.fn-preis__kopf { display: flex; flex-direction: column; gap: 14px; max-width: 62ch; }
.fn-h2-gross { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.fn-preis__text { font-size: 17px; line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }
.fn-tarifspalten { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .fn-tarifspalten { grid-template-columns: minmax(0, 1fr); } }
.fn-tarifspalte { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); }
.fn-tarifspalte--ultra { background: var(--panel-2); box-shadow: var(--schatten); }
.fn-preis__probe { font-size: 15.5px; line-height: 1.5; color: var(--text); text-wrap: pretty; }
.fn-tarifspalte__name { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--akzent); }
.fn-tarifspalte__preis { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.fn-tarifspalte__betrag { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fn-tarifspalte__zeit { font-size: 15px; color: var(--text-muted); }
.fn-tarifspalte p:last-child { font-size: 15.5px; line-height: 1.5; color: var(--text-muted); text-wrap: pretty; }
.fn-preis .rg-knoepfe { align-items: center; gap: 8px 20px; }
.fn-textlink { display: inline-flex; align-items: center; min-height: 44px; font-size: 15.5px; font-weight: 600; text-underline-offset: 3px; }

/* Fragen */
.fn-fragen { padding-top: clamp(72px, 9vw, 128px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 28px clamp(40px, 6vw, 96px); align-items: start; scroll-margin-top: 80px; }
@media (max-width: 900px) { .fn-fragen { grid-template-columns: minmax(0, 1fr); } }
.fn-faq { border-bottom: 1px solid var(--border); }
.fn-faq__eintrag { border-top: 1px solid var(--border); }
.fn-faq h3 { font-size: inherit; font-weight: inherit; }
.fn-faq__frage { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 18px 0; background: none; border: 0; color: var(--text); font: inherit; font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; line-height: 1.35; text-align: left; cursor: pointer; }
.fn-faq__plus { flex: none; color: var(--akzent); font-size: 26px; font-weight: 400; line-height: 1; transition: transform 180ms ease-out; }
.fn-faq__frage[aria-expanded="true"] .fn-faq__plus { transform: rotate(45deg); }
.fn-faq__antwort { padding: 0 0 24px; }
.fn-faq__antwort[hidden] { display: none; }
.fn-faq__antwort p { max-width: 62ch; font-size: 17px; line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }
.fn-faq__antwort a { text-underline-offset: 2px; }

/* Weitere Ratgeber */
.fn-seite .weitere-ratgeber { margin-top: 0; }
.fn-seite .ratgeber-karte { min-height: 150px; }

/* Einblenden */
@media (prefers-reduced-motion: no-preference) {
  .fn-js .fn-einblenden { opacity: 0; transform: translateY(8px); transition: opacity 200ms ease-out, transform 200ms ease-out; }
  .fn-js .fn-einblenden.ist-sichtbar { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .rg-knopf, .fn-nav__kachel, .fn-leiste, .fn-leiste a, .fn-faq__plus { transition: none; } }

/* Login-Buendel: eigener Schalter in inhalte/kommt.json, gleiche Vorschau ?kommt=1 */
html:not(.zeige-kommt) [data-status="kommt-buendel"] { display: none !important; }
/* Platzhalter ausblenden, solange kein echtes Bild in .fn-shot__flaeche steht */
.fn-shot:not(:has(img)) { display: none; }
.fn-karte--handy:not(:has(.fn-shot img)) { grid-template-columns: minmax(0, 1fr); }
/* Zusatzzeilen im Preisblock (KOMMT) wie die Beschreibung der Spalte */
.fn-tarifspalte > p:not(.fn-tarifspalte__name):not(.fn-tarifspalte__preis) { font-size: 15.5px; line-height: 1.5; color: var(--text-muted); text-wrap: pretty; }
.fn-tarifspalte__zusatz::before { content: "+ "; color: var(--akzent); font-weight: 700; }
/* Aufzaehlung und kleine Schlusszeile in einer Karte (Login-Buendel) */
.fn-karte__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 62ch; }
.fn-karte__liste li { position: relative; padding-left: 18px; font-size: 16px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
.fn-karte__liste li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--akzent); }
.fn-karte p.fn-karte__fuss { font-size: 14px; line-height: 1.5; color: var(--text-dim); }
