/* Posten: Kalender-Ansicht (Monatsraster, auf dem Handy Liste nach Tagen) und Clip-Auswahl */

#pt-posts + .segment { margin-left: auto; }
.kal-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.kal-monat { font-size: 26px; font-stretch: 78%; }
.kal-nav { display: flex; align-items: center; gap: 4px; }
.kal-vor .ic { transform: rotate(180deg); }

/* Monatsraster */
.kal-raster { border-top: 1.5px solid var(--tinte); }
.kal-wt, .kal-woche { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.kal-wt span { padding: 8px 8px 6px; font-size: 12.5px; font-weight: 700; color: var(--grau); }
.kal-woche { border-top: 1px solid var(--linie); }
.kal-tag { display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 120px; padding: 6px; border-left: 1px solid var(--linie); }
.kal-tag:first-child { border-left: 0; }
.kal-tag[data-vorbei] { background: rgba(22, 21, 15, 0.022); }
.kal-tag-kopf { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.kal-nr { padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.kal-tag[data-vorbei] .kal-nr { color: var(--grau); }
.kal-tag[data-fremd] .kal-nr { opacity: 0.45; }
.kal-tag[data-heute] .kal-nr { background: var(--tinte); color: var(--papier); }
.kal-plus { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--grau); cursor: pointer; opacity: 0.55; transition: opacity 140ms ease, background-color 140ms ease, color 140ms ease; }
.kal-plus .ic { width: 16px; height: 16px; stroke-width: 2.2; }
.kal-tag:hover .kal-plus, .kal-plus:focus-visible { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .kal-plus:hover { background: var(--papier-2); color: var(--tinte); } }
@media (hover: none) { .kal-plus { opacity: 1; } }

/* Post-Karten im Raster */
.kal-posts { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.kal-post { display: grid; gap: 2px; min-width: 0; padding: 5px 6px; border: 1px solid var(--linie); border-radius: 6px; background: var(--flaeche); font-size: 12.5px; line-height: 1.3; }
.kal-tag[data-vorbei] .kal-post { background: transparent; }
.kal-post-kopf { display: flex; align-items: center; gap: 5px; min-width: 0; }
.kal-post .konto-bild { width: 18px; height: 18px; font-size: 10px; }
.kal-konto { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tinte-2); }
.kal-uhr { font-size: 11.5px; color: var(--grau); }
.kal-titel { display: flex; align-items: baseline; gap: 5px; min-width: 0; color: var(--tinte); font-weight: 600; text-decoration: none; }
.kal-titel > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .kal-titel:hover > span:last-child { text-decoration: underline; } }
.kal-titel .punkt { width: 7px; height: 7px; flex: none; position: relative; top: -1px; }
.kal-status { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kal-post[data-status="veroeffentlicht"] .punkt { background: var(--matte); }
.kal-post[data-status="entwurf"] .punkt { background: transparent; box-shadow: inset 0 0 0 2px var(--matte); }
.kal-aktionen { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.kal-link { padding: 2px 0; border: 0; background: none; color: var(--tinte); font: 600 12px/1.4 "Archivo", sans-serif; text-decoration: underline; text-decoration-color: var(--linie-2); text-underline-offset: 2px; cursor: pointer; }
.kal-link.gefahr { color: var(--signal-text); }
@media (hover: hover) and (pointer: fine) { .kal-link:hover { text-decoration-color: currentColor; } }

/* Handy: Liste nach Tagen */
.kal-agenda { display: grid; gap: 20px; }
.kal-a-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 8px; border-bottom: 1.5px solid var(--tinte); }
.kal-a-kopf h4 { font-size: 15px; font-weight: 700; }
.kal-a-tag[data-heute] .kal-a-kopf h4 { color: var(--signal-text); }
.kal-a-tag[data-vorbei] .kal-post { background: transparent; }
.kal-agenda .kal-plus { width: 44px; height: 44px; margin-right: -8px; opacity: 1; }
.kal-agenda .kal-plus .ic { width: 20px; height: 20px; }
.kal-agenda .kal-posts { gap: 8px; }
.kal-agenda .kal-post { gap: 4px; padding: 10px 12px; font-size: 14.5px; }
.kal-agenda .kal-post .konto-bild { width: 28px; height: 28px; font-size: 13px; }
.kal-agenda .kal-uhr { font-size: 13px; }
.kal-agenda .kal-titel { font-weight: 700; font-size: 15.5px; }
.kal-agenda .kal-status { position: static !important; width: auto; height: auto; overflow: visible; clip-path: none; font-size: 13px; color: var(--grau); }
.kal-agenda .kal-link { min-height: 36px; font-size: 14px; }
.kal-leer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

/* Clip-Auswahl in der Schublade */
.kw-hinweis { margin-bottom: 18px; }
.kw-projekt + .kw-projekt { margin-top: 22px; }
.kw-titel { margin-bottom: 8px; font-size: 19px; font-stretch: 82%; font-weight: 750; line-height: 1.15; }
.kw-liste { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.kw-clip { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px; border: 1.5px solid var(--linie); border-radius: 8px; background: var(--flaeche); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color 150ms ease, transform 150ms var(--ease-out); }
.kw-clip:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) { .kw-clip:hover { border-color: var(--tinte); } }
.kw-clip img, .kw-bild-leer { width: 40px; height: 71px; flex: none; border-radius: 4px; object-fit: cover; background: #24221b; }
.kw-text { display: grid; gap: 3px; min-width: 0; }
.kw-text b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 15px; line-height: 1.25; }
.kw-text .hinweis { font-size: 12.5px; }
