/* FDL Ausbildung: Öffentliches Teilen (teilen.js). Baut auf fdl.css auf und nutzt dessen Farben. */

/* ---- Entdecken: Suche, Sortierung, Arten, Themen */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.share-bar .search { flex: 1 1 260px; width: auto; max-width: 520px; }
.share-sort .segbtn { min-height: 36px; }
.share-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; }
.share-topics[hidden] { display: none; }
.topicbtn { border: 0; font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 12px; cursor: pointer; }
.topicbtn .ic { font-size: 13px; }
#shareTools + #shareList > .tile { margin-top: 0; }
#shareList .more { display: flex; justify-content: center; margin-top: 16px; }

/* ---- Karten in der Liste und Kopf eines geteilten Decks */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.head .chips { margin-bottom: 8px; }
.head .chips .chip.topic { margin-bottom: 0; }
.sharetile { min-height: 120px; }
.sharetile .chips { margin-bottom: 2px; }
.head .hint { margin-top: 6px; }

/* ---- Knopf „Geteilt“ am eigenen Deck */
.btn.on { border-color: rgba(var(--accent-rgb), .6); color: var(--accent); }

/* ---- Ordner wählen beim Übernehmen: lange Namen dürfen umbrechen */
.folderpick { max-height: 240px; overflow-y: auto; }
.folderpick .segbtn { max-width: 100%; text-align: left; overflow-wrap: anywhere; padding-block: 8px; }

@media (pointer: coarse) {
  .topicbtn { padding: 9px 14px; }
  .share-sort .segbtn { min-height: 44px; }
}

@media (max-width: 640px) {
  .share-bar .search { flex-basis: 100%; max-width: none; }
}
