/* Feed wie in der App (Screenshots 29.09.2026) – eckig, Pink #e6197a, 15 px Rand, Abstände 4/8/12/16/24. */

.fi-feed { --fd-pink: #e6197a; --fd-line: #ececef; --fd-muted: #6b6b74; --fd-soft: #f4f4f6; max-width: 640px; margin: 0 auto; padding-bottom: 24px; }
.fi-feed button { font-family: inherit; }

/* Avatare */
.fi-fd-av { display: grid; place-items: center; flex: none; width: 42px; height: 42px; overflow: hidden; border: 1px solid #e3e3e6; background: #fff; color: var(--fd-pink); font-weight: 800; font-size: 17px; }
.fi-fd-av img { width: 100%; height: 100%; object-fit: cover; }
.fi-fd-av i { font-style: normal; }
.fi-fd-av[data-me-avatar]:not(.is-me) { background: #eeeef0; color: #b3b3bb; }
.fi-fd-av.is-s { width: 32px; height: 32px; font-size: 14px; }
.fi-fd-check { flex: none; }

/* Schreiben-Zeile */
.fi-fd-compose { display: flex; align-items: center; gap: 4px; padding: 10px 15px; border-bottom: 1px solid var(--fd-line); }
.fi-fd-compose-field { flex: 1; min-width: 0; height: 44px; padding: 0 4px 0 8px; border: 0; background: none; color: #77777f; font-size: 15.5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: text; }
.fi-fd-compose-ic { display: grid; place-items: center; flex: none; width: 32px; height: 44px; padding: 0; border: 0; background: none; color: #6b6b74; cursor: pointer; }
.fi-fd-compose-go { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-left: 4px; padding: 0; border: 0; background: var(--fd-pink); color: #fff; cursor: pointer; }

.fi-fd-tabs { position: sticky; top: calc(var(--fi-bar, 0px) + 52px); z-index: 40; background: #fff; }

/* Themen-Kopf */
.fi-fd-topic { display: flex; align-items: center; gap: 4px; padding: 8px 15px 8px 4px; border-bottom: 1px solid var(--fd-line); }
.fi-fd-topic[hidden] { display: none; }
.fi-fd-topic > button:first-child { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; color: #111; cursor: pointer; }
.fi-fd-topic h2 { flex: 1; margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.fi-fd-topic-post { height: 34px; padding: 0 14px; border: 0; background: var(--fd-pink); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }

.fi-fd-empty { margin: 0; padding: 40px 24px; color: var(--fd-muted); font-size: 15px; text-align: center; }

/* Beitrag */
.fi-fd-card { padding: 16px 15px 4px; border-bottom: 8px solid var(--fd-soft); }
.fi-fd-head { display: flex; align-items: center; gap: 12px; }
.fi-fd-who { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0; margin: 0; white-space: nowrap; }
.fi-fd-who b { flex: none; max-width: 55%; overflow: hidden; font-size: 16px; font-weight: 800; letter-spacing: -.01em; text-overflow: ellipsis; }
.fi-fd-who small { min-width: 0; overflow: hidden; color: var(--fd-muted); font-size: 14px; text-overflow: ellipsis; }
.fi-fd-more { display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin-right: -8px; padding: 0; border: 0; background: none; color: #8a8a92; cursor: pointer; }
.fi-fd-reposted { display: flex; align-items: center; gap: 4px; margin: 8px 0 0; color: var(--fd-muted); font-size: 13px; font-weight: 600; }
.fi-fd-reposted svg { width: 15px; height: 15px; }
.fi-fd-text { margin-top: 12px; font-size: 16.5px; line-height: 1.45; overflow-wrap: anywhere; }
.fi-fd-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.fi-fd-text a { color: var(--fd-pink); }
.fi-fd-moretext { margin: 4px 0 0; padding: 0; border: 0; background: none; color: var(--fd-muted); font-size: 16px; font-weight: 500; cursor: pointer; }
.fi-fd-tag { display: inline; padding: 0; border: 0; background: none; color: var(--fd-pink); font: inherit; font-weight: 700; cursor: pointer; }

.fi-fd-media { display: grid; gap: 2px; margin-top: 12px; overflow: hidden; }
.fi-fd-media a { display: block; background: #eee; }
.fi-fd-media img { display: block; width: 100%; height: auto; } /* ganzes Bild in voller Breite – nichts abschneiden */

/* Verlinkter Artikel */
.fi-fd-article { display: block; margin-top: 12px; border: 1px solid #e3e3e6; color: inherit; text-decoration: none; }
.fi-fd-article-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eee; }
.fi-fd-article-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fi-fd-article-text { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 14px; }
.fi-fd-article-text small { color: var(--fd-muted); font-size: 14px; }
.fi-fd-article-text small em { color: var(--fd-pink); font-style: normal; }
.fi-fd-article-text b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.fi-fd-article-go { display: flex; align-items: center; gap: 8px; color: var(--fd-muted); font-size: 15px; }
.fi-fd-article:active { background: var(--fd-soft); }

/* Umfrage */
.fi-fd-poll { display: grid; gap: 8px; margin-top: 12px; }
.fi-fd-poll-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 0 12px; overflow: hidden; border: 1.5px solid var(--fd-pink); background: #fff; color: #111; font-size: 15px; font-weight: 700; text-align: left; }
button.fi-fd-poll-row { cursor: pointer; color: var(--fd-pink); justify-content: center; }
button.fi-fd-poll-row:active { background: #fdeef5; }
.is-result .fi-fd-poll-row { border-color: var(--fd-line); }
.is-result .fi-fd-poll-row.is-mine { border-color: var(--fd-pink); }
.fi-fd-poll-row > span, .fi-fd-poll-row > b { position: relative; }
.fi-fd-poll-bar { position: absolute !important; inset: 0 auto 0 0; background: #fbe3ee; }
.fi-fd-poll-meta { margin: 0; color: var(--fd-muted); font-size: 13px; }

/* Zitierter Beitrag (Repost) */
.fi-fd-quote { margin-top: 12px; padding: 12px; border: 1px solid var(--fd-line); }
.fi-fd-quote-head { display: flex; align-items: center; gap: 6px; margin: 0; }
.fi-fd-quote-head .fi-fd-av { width: 24px; height: 24px; font-size: 12px; }
.fi-fd-quote-head b { font-size: 14px; font-weight: 800; }
.fi-fd-quote-head small { overflow: hidden; color: var(--fd-muted); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.fi-fd-quote-text { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; margin: 8px 0 0; font-size: 14.5px; line-height: 1.4; }

/* Aktionen */
.fi-fd-actions { display: flex; justify-content: space-between; margin: 8px -8px 0; }
.fi-fd-actions button { display: flex; align-items: center; gap: 6px; min-width: 64px; height: 44px; padding: 0 8px; border: 0; background: none; color: #56565e; font-size: 14px; font-weight: 600; cursor: pointer; }
.fi-fd-actions button:last-child { min-width: 0; }
.fi-fd-actions .is-liked { color: var(--fd-pink); }
.fi-fd-actions .is-liked svg path { fill: currentColor; }
.fi-fd-actions .is-repost { color: #0d9f6e; }

/* Themenliste */
.fi-fd-topics { margin: 0; padding: 0; list-style: none; }
.fi-fd-topics li { border-bottom: 1px solid var(--fd-line); }
.fi-fd-topics button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 15px; border: 0; background: none; color: #111; text-align: left; cursor: pointer; }
.fi-fd-topics button:active { background: var(--fd-soft); }
.fi-fd-topics-hash { display: grid; place-items: center; flex: none; width: 42px; height: 42px; background: #fdeef5; color: var(--fd-pink); font-size: 21px; font-weight: 800; }
.fi-fd-topics-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.fi-fd-topics-text b { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.fi-fd-topics-text small { color: var(--fd-muted); font-size: 13.5px; }
.fi-fd-topics svg { flex: none; color: #b0b0b8; }

/* Neuer Beitrag – Vollbild */
.fi-fd-composer { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .45); }
.fi-fd-composer[hidden] { display: none; }
.fi-fd-composer-panel { display: flex; flex-direction: column; max-width: 640px; height: 100%; margin: 0 auto; background: #fff; animation: fi-bell-in .2s ease-out; }
.fi-fd-composer-top { display: flex; align-items: center; justify-content: space-between; flex: none; height: 56px; padding: 0 12px 0 4px; border-bottom: 1px solid var(--fd-line); }
.fi-fd-composer-top h2 { margin: 0; font-size: 16.5px; font-weight: 800; }
.fi-fd-x { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #111; cursor: pointer; }
.fi-fd-post { height: 36px; padding: 0 18px; border: 0; border-radius: 18px; background: var(--fd-pink); color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; }
.fi-fd-post:disabled { opacity: .4; cursor: default; }
.fi-fd-composer-body { flex: 1; overflow-y: auto; padding: 16px 15px; }
.fi-fd-composer-row { display: flex; gap: 12px; }
.fi-fd-composer-row textarea { flex: 1; min-height: 120px; padding: 8px 0 0; border: 0; outline: 0; resize: none; font: inherit; font-size: 17px; line-height: 1.45; color: #111; }
.fi-fd-attach { margin-left: 54px; }
.fi-fd-attach > * { margin-top: 12px; }
.fi-fd-att-img, .fi-fd-att-art { position: relative; }
.fi-fd-att-img img { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.fi-fd-att-art .fi-fd-article { margin-top: 0; pointer-events: none; }
.fi-fd-att-img > button, .fi-fd-att-art > button { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; background: rgba(0, 0, 0, .7); color: #fff; font-size: 14px; cursor: pointer; }
.fi-fd-att-poll { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--fd-line); }
.fi-fd-att-poll > p { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--fd-muted); }
.fi-fd-att-opt { display: flex; gap: 8px; }
.fi-fd-att-opt input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1.5px solid var(--fd-line); font: inherit; font-size: 15px; }
.fi-fd-att-opt input:focus { border-color: var(--fd-pink); outline: 0; }
.fi-fd-att-opt button { width: 44px; border: 0; background: var(--fd-soft); cursor: pointer; }
.fi-fd-att-add, .fi-fd-att-del { height: 36px; padding: 0; border: 0; background: none; color: var(--fd-pink); font-size: 14.5px; font-weight: 700; text-align: left; cursor: pointer; }
.fi-fd-att-del { color: #c0392b; }
.fi-fd-toolbar { display: flex; align-items: center; gap: 4px; flex: none; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--fd-line); }
.fi-fd-tool { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--fd-pink); cursor: pointer; }
.fi-fd-tool.is-on { background: #fdeef5; }
.fi-fd-count { margin-left: auto; padding-right: 8px; color: var(--fd-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.fi-fd-count.is-full { color: #c0392b; }

/* Blätter */
.fi-fd-sheet.is-over { z-index: 100001; }
.fi-fd-menu { display: grid; padding: 8px 0; }
.fi-fd-menu button { height: 52px; padding: 0 20px; border: 0; border-bottom: 1px solid var(--fd-line); background: none; color: #111; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.fi-fd-menu button.is-danger { color: #d0021b; }
.fi-fd-rep-sub, .fi-fd-rep-note { margin: 12px 20px 0; color: var(--fd-muted); font-size: 14px; }
.fi-fd-rep-note { margin-bottom: 12px; font-size: 13px; }

/* Artikel-Auswahl */
.fi-fd-pick input { display: block; width: calc(100% - 30px); height: 44px; margin: 12px 15px 4px; padding: 0 12px; border: 1.5px solid var(--fd-line); background: var(--fd-soft); font: inherit; font-size: 15px; }
.fi-fd-pick input:focus { border-color: var(--fd-pink); outline: 0; }
.fi-fd-pick ul { margin: 0; padding: 0; list-style: none; }
.fi-fd-pick li button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 15px; border: 0; border-bottom: 1px solid var(--fd-line); background: none; color: #111; text-align: left; cursor: pointer; }
.fi-fd-pick li button:active { background: var(--fd-soft); }
.fi-fd-pick li img, .fi-fd-pick li button > span:first-child:empty { flex: none; width: 76px; height: 50px; object-fit: cover; background: #eee; }
.fi-fd-pick li span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fi-fd-pick li b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.fi-fd-pick li small { color: var(--fd-muted); font-size: 12.5px; }

/* Kommentare */
.fi-fd-c-post { padding: 12px 15px; border-bottom: 1px solid var(--fd-line); color: #333; font-size: 14px; line-height: 1.4; }
.fi-fd-clist { margin: 0; padding: 4px 0 8px; list-style: none; }
.fi-fd-c { display: flex; gap: 10px; padding: 12px 15px 0; }
.fi-fd-c.is-reply { padding-left: 57px; }
.fi-fd-c-main { position: relative; flex: 1; min-width: 0; }
.fi-fd-c-who { display: flex; align-items: center; gap: 4px; margin: 0; }
.fi-fd-c-who b { font-size: 14px; font-weight: 800; }
.fi-fd-c-who small { margin-left: 4px; color: var(--fd-muted); font-size: 12.5px; }
.fi-fd-c-text { margin: 2px 0 0; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.fi-fd-c-acts { display: flex; align-items: center; gap: 2px; margin: 2px 0 0 -8px; }
.fi-fd-c-acts button { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border: 0; background: none; color: #77777f; font-size: 13px; font-weight: 700; cursor: pointer; }
.fi-fd-c-acts b { min-width: 16px; font-size: 13px; text-align: center; }
.fi-fd-c-acts [data-cv="1"][aria-pressed="true"] { color: var(--fd-pink); }
.fi-fd-c-acts [data-cv="-1"][aria-pressed="true"] { color: #3060d0; }
.fi-fd-c-acts [data-cmenu] { margin-left: auto; }
.fi-fd-c-pop { display: grid; margin: 4px 0; border: 1px solid var(--fd-line); }
.fi-fd-c-pop button { height: 42px; padding: 0 12px; border: 0; border-bottom: 1px solid var(--fd-line); background: #fff; color: #d0021b; font-size: 14.5px; font-weight: 600; text-align: left; cursor: pointer; }
.fi-fd-cbar { flex: none; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--fd-line); background: #fff; }
.fi-fd-cbar > div { display: flex; align-items: flex-end; gap: 8px; }
.fi-fd-cbar textarea { flex: 1; min-width: 0; min-height: 40px; max-height: 120px; padding: 9px 12px; border: 1.5px solid var(--fd-line); background: var(--fd-soft); font: inherit; font-size: 15px; line-height: 1.3; resize: none; }
.fi-fd-cbar textarea:focus { border-color: var(--fd-pink); outline: 0; background: #fff; }
.fi-fd-cbar button[type=submit] { height: 40px; padding: 0 14px; border: 0; background: var(--fd-pink); color: #fff; font-size: 14.5px; font-weight: 800; cursor: pointer; }
.fi-fd-cbar button[type=submit]:disabled { opacity: .4; }
.fi-fd-creply { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; color: var(--fd-muted); font-size: 13px; }
.fi-fd-creply[hidden] { display: none; }
.fi-fd-creply button { border: 0; background: none; color: var(--fd-muted); cursor: pointer; }

.fi-fd-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 100002; max-width: calc(100% - 32px); margin: 0; padding: 12px 16px; background: #111; color: #fff; font-size: 14.5px; font-weight: 600; transform: translateX(-50%); }
.fi-fd-toast[hidden] { display: none; }

@media (min-width: 700px) {
	.fi-feed { border-left: 1px solid var(--fd-line); border-right: 1px solid var(--fd-line); }
	.fi-fd-card { border-bottom-width: 1px; border-bottom-color: var(--fd-line); }
}

/* GIFs */
.fi-fd-tool.is-gif span { display: grid; place-items: center; width: 26px; height: 20px; border: 1.8px solid currentColor; font-size: 10.5px; font-weight: 900; letter-spacing: .02em; }
.fi-fd-gifgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 8px 15px 0; }
.fi-fd-gifgrid button { position: relative; display: block; height: 0; padding: 0 0 100%; overflow: hidden; border: 0; background: #eee; cursor: pointer; } /* quadratisch auch in Safari */
.fi-fd-gifgrid img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.fi-fd-gifgrid .fi-fd-empty { grid-column: 1 / -1; }
.fi-fd-giphy { margin: 8px 15px 4px; color: var(--fd-muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-align: right; text-transform: uppercase; }
.fi-fd-composer-row textarea:focus, .fi-fd-composer-row textarea:focus-visible { outline: none !important; border: 0 !important; box-shadow: none !important; }

/* Tabs wie in der App: Strich über das ganze Drittel */
.fi-fd-tabs { justify-items: stretch; padding: 0; }
.fi-fd-tabs .fi-tab { justify-content: center; }

/* Karussell wie in der App: Bildtext über dem Bild, „1/5“ oben rechts, Punkte darunter */
.fi-fd-cap { margin: 12px 0 0; font-size: 16.5px; line-height: 1.45; overflow-wrap: anywhere; }
.fi-fd-cap[hidden] { display: none; }
.fi-fd-carousel { margin-top: 12px; }
.fi-fd-carousel .fi-fd-cap-slot .fi-fd-cap { margin: 0 0 12px; }
.fi-fd-car-view { position: relative; }
.fi-fd-car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #eee; }
.fi-fd-car-track::-webkit-scrollbar { display: none; }
.fi-fd-car-track a { flex: 0 0 100%; scroll-snap-align: start; }
.fi-fd-car-track img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #f2f2f4; } /* Bilder mit anderem Format: ganz zeigen statt abschneiden */
.fi-fd-car-count { position: absolute; top: 10px; right: 10px; padding: 3px 8px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fi-fd-car-dots { display: flex; justify-content: center; gap: 5px; margin: 8px 0 0; }
.fi-fd-car-dots i { width: 6px; height: 6px; border-radius: 50%; background: #d3d3d8; }
.fi-fd-car-dots i.is-on { background: var(--fd-pink); }
/* Mehrere Fotos im Schreibfenster */
.fi-fd-att-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.fi-fd-att-imgs .fi-fd-att-img img { aspect-ratio: 1; max-height: none; }
.fi-fd-att-imgs .fi-fd-att-img > button { top: 4px; right: 4px; width: 26px; height: 26px; }
.fi-fd-att-more { display: grid; place-items: center; aspect-ratio: 1; border: 1.5px dashed #cfcfd4; color: var(--fd-pink); font-size: 30px; font-weight: 300; cursor: pointer; }
.fi-fd-att-hint { margin: 8px 0 0 !important; color: var(--fd-muted); font-size: 13px; }
.fi-fd-at { color: var(--fd-pink); font-weight: 700; }
.fi-fd-empty a, .fi-fd-retry { display: inline-block; margin-top: 10px; padding: 8px 14px; border: 1px solid var(--fd-pink, #e6197a); background: none; color: var(--fd-pink, #e6197a); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }

/* Werbeplätze im Feed (fi-feed.php): zwischen je 4 Beiträgen, mittig; ohne Anzeige oder ohne Beiträge danach kein Platz */
.fi-fd-seg:empty { display: none; }
.fi-fd-ad { display: flex; flex-direction: column; align-items: center; max-width: 100%; overflow: hidden; } /* nie ausblenden – sonst lädt Traffective nicht */
.fi-fd-ad:has(> [id^="traffective-ad-"]:not([style*="display: none"])) { padding: 16px 0; border-bottom: 1px solid var(--fd-line, #ececef); }
