/* Posten: Accounts, geplante Posts, Posten-Schublade, Statuszeilen unter Clips, Pop-up-Ende (verbunden.html) */

.posten-teil { margin-bottom: clamp(36px, 5vw, 56px); }
textarea.feld-eingabe { min-height: 96px; padding: 12px 14px; line-height: 1.45; resize: vertical; }
.pd-zaehler { font-size: 12.5px; color: var(--grau); }
.pd-zaehler.zu-lang { color: var(--signal-text); font-weight: 600; }
.pd-zeit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 420px; }
.uhr-feld { width: 7.5em; min-height: 44px; padding: 0 8px; text-align: center; }
.tags-feld { max-width: 420px; }
.frage { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.frage > span { margin-right: 4px; font-weight: 600; font-size: 14.5px; }

/* ---------- Accounts ---------- */
.pf-liste { display: grid; gap: 12px; max-width: 880px; }
.pf { padding: 16px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); }
.pf-kopf { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "zeichen name" "aktion aktion"; align-items: center; gap: 12px 14px; }
.pf-zeichen { grid-area: zeichen; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--papier-2); }
.pf-zeichen .ic { width: 22px; height: 22px; }
.pf-name { grid-area: name; min-width: 0; }
.pf-name h3 { font-size: 24px; font-stretch: 78%; }
.pf-name .hinweis { margin-top: 3px; font-size: 13.5px; }
.pf-aktion { grid-area: aktion; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.pf-aktion .hinweis { font-size: 13.5px; }
@media (min-width: 640px) {
  .pf { padding: 18px 20px; }
  .pf-kopf { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "zeichen name aktion"; }
  .pf-aktion { justify-content: flex-end; }
}
.pf-konten { display: grid; margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--linie); }
.ac { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; padding: 12px 0 0; }
.ac + .ac { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--linie); }
.ac > .frage, .konto-fehler { grid-column: 1 / -1; }
.konto-weg { margin-right: -10px; }
.konto-bild { display: block; width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; }
.konto-bild.ohne-bild { display: grid; place-items: center; background: var(--tinte); color: var(--papier); font-weight: 800; font-size: 17px; }
.konto-text { display: grid; gap: 1px; min-width: 0; line-height: 1.25; }
.konto-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; }
.konto-text .hinweis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.demo-marke { padding: 0 5px; border: 1px solid var(--linie-2); border-radius: 3px; font: 500 11.5px/1.5 var(--mono); color: var(--tinte-2); }
.konto-fehler { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 8px 8px 12px; border-radius: 6px; background: #f7dfd5; color: #7a2409; font-size: 14px; font-weight: 600; }
.konto-fehler .knopf-rand { color: #7a2409; box-shadow: inset 0 0 0 1.5px currentColor; }

/* ---------- Geplant & veröffentlicht ---------- */
.post-gruppe { max-width: 880px; }
.post-gruppe + .post-gruppe { margin-top: 32px; }
.post-gruppe-titel { display: flex; align-items: baseline; gap: 10px; font-size: 24px; font-stretch: 78%; }
.post-gruppe-titel .zahl { font-size: 13px; color: var(--grau); }
.post-tag { margin: 18px 0 0; padding-bottom: 8px; border-bottom: 1.5px solid var(--tinte); font-size: 14px; font-weight: 700; }
.post-liste { margin: 0; padding: 0; list-style: none; }
.post { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.post-bild { display: block; width: 54px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 6px; background: #24221b; }
.post-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-text { display: grid; align-content: start; justify-items: start; gap: 4px; min-width: 0; }
.post-status { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.post-status > span:last-child { font-variant-numeric: tabular-nums; }
.post[data-status="veroeffentlicht"] .punkt, .c-posts [data-status="veroeffentlicht"] .punkt { background: var(--matte); }
.post[data-status="fehler"] .post-status { color: var(--signal-text); }
.post[data-status="veroeffentlicht"] .post-status { color: var(--matte); }
.post-titel { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; overflow: hidden; font-weight: 750; font-stretch: 82%; font-size: 19px; line-height: 1.2; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .post-titel:hover { text-decoration: underline; text-decoration-thickness: 1.5px; } }
.post-konto { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.post-konto .ic { width: 15px; height: 15px; }
.post-beschreibung { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 620px; font-size: 14.5px; color: var(--tinte-2); }
.post-fehler { padding: 6px 10px; border-radius: 6px; background: #f7dfd5; color: #7a2409; font-size: 14px; font-weight: 600; }
.post-knoepfe { margin-top: 6px; }
.post-knoepfe .knopf-text:first-child { margin-left: -10px; }
.post-text > .frage { margin-top: 6px; }
.post-aendern { display: grid; gap: 12px; justify-self: stretch; max-width: 560px; margin-top: 8px; }
.post-leer { padding-top: 4px; }
@media (min-width: 640px) { .post { grid-template-columns: 64px minmax(0, 1fr); gap: 18px; } .post-bild { width: 64px; } }

/* ---------- Posten-Schublade ---------- */
.pd { display: grid; gap: 24px; }
.pd > .feld > .legende { margin-bottom: 4px; }
.pd-clip { display: flex; align-items: center; gap: 14px; }
.pd-clip img { width: 54px; height: 96px; flex: none; border-radius: 6px; object-fit: cover; background: #24221b; }
.pd-clip b { display: block; font-weight: 750; font-stretch: 82%; font-size: 19px; line-height: 1.15; }
.pd-clip .hinweis { margin-top: 4px; font-size: 12.5px; }
.konto-wahlen { display: grid; gap: 8px; }
.konto-wahl { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border: 1.5px solid var(--linie); border-radius: 8px; background: var(--flaeche); cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease; }
.konto-wahl input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--tinte); cursor: pointer; }
.konto-wahl:has(input:checked) { border-color: var(--tinte); background: #fff; }
.konto-wahl:has(input:focus-visible) { outline: 2px solid var(--signal); outline-offset: 2px; }
.konto-wahl.kaputt { cursor: default; }
.konto-wahl.kaputt .konto-bild, .konto-wahl.kaputt b { opacity: 0.55; }
.konto-wahl .konto-text .warnung { white-space: normal; }
@media (hover: hover) and (pointer: fine) { .konto-wahl:not(.kaputt):not(:has(:checked)):hover { border-color: var(--linie-2); } }
.pd .hinweis-box { margin: 0; }

/* Statuszeilen unter einer Clip-Karte und die zweite Knopfreihe */
.c-reihe { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.c-reihe > .knopf { flex: 1 1 120px; }
.c-posts { display: grid; gap: 4px; margin: 4px 0 0; padding: 0; list-style: none; }
.c-posts li { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; color: var(--tinte-2); }
.c-posts .punkt { position: relative; top: -1px; }
.c-posts a { color: var(--tinte); font-weight: 600; }
.c-posts [data-status="fehler"] a { color: var(--signal-text); }
.konto-chip .ic { width: 17px; height: 17px; margin: 0 6px 0 -2px; }

/* ---------- Ende des Anmelde-Pop-ups ---------- */
.verbunden { display: grid; align-content: center; justify-items: start; gap: 14px; min-height: 100dvh; max-width: 440px; margin: 0 auto; padding: 32px 24px; }
.verbunden .marke { margin-bottom: 18px; }
.verbunden h1 { font-size: clamp(38px, 9vw, 52px); }
.verbunden p { color: var(--tinte-2); }
.verbunden .knopf { margin-top: 8px; }

/* Entwurf in der TikTok-App: hochgeladen, aber noch nicht öffentlich */
.post[data-status="entwurf"] .punkt, .c-posts [data-status="entwurf"] .punkt { background: transparent; box-shadow: inset 0 0 0 2px var(--matte); }
.post[data-status="entwurf"] .post-status { color: var(--matte); }

/* TikTok- und YouTube-Angaben in der Schublade */
.po { display: grid; gap: 14px; }
.po:empty { display: none; }
.po-block { display: grid; gap: 16px; padding: 16px; border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche); }
.po-titel { display: flex; align-items: center; gap: 8px; font-size: 22px; font-stretch: 78%; }
.po-titel .ic { width: 20px; height: 20px; }
.po-als { font-size: 15px; color: var(--tinte-2); }
.po-haken { display: grid; gap: 2px; }
.po-haken-zeile { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 15px; font-weight: 500; }
.po-haken-zeile input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--tinte); cursor: pointer; }
.po-haken-zeile.aus { cursor: default; color: var(--grau); }
.po-haken-zeile.aus input { cursor: default; }
.po-haken-zeile .hinweis { font-size: 13px; }
.po-werbung { gap: 10px; justify-items: start; }
.po-block .konto-fehler { margin: 0; }
.pd-zustimmung { flex: 1 0 100%; display: grid; gap: 4px; margin-bottom: 4px; font-size: 14px; color: var(--tinte-2); }
.pd-zustimmung a { color: var(--tinte); font-weight: 600; }
.pd-zustimmung .hinweis { font-size: 13px; }
.pd-grund { color: var(--signal-text); font-weight: 600; }
